[
MAINHACK
]
Mail Test
BC
Config Scan
HOME
Create...
New File
New Folder
Viewing / Editing File: print_invoice.php
<?php $lng = $this->session->userdata('language'); $ln_text = isset($lng) && $lng && $lng=="bangla"?"bangla":''; ?> <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title><?php echo lang('supplier_payment') . '-' . lang('reference_no') . '-' . $receipt_object[0]->reference_no; ?></title> <link rel="stylesheet" href="<?php echo base_url(); ?>frequent_changing/css/inv_font.css"> <link rel="stylesheet" href="<?php echo base_url(); ?>frequent_changing/css/print_invoice_a4.css"> <link rel="stylesheet" href="<?php echo base_url(); ?>frequent_changing/css/inv_common.css"> </head> <body> <div id="wrapper" class="m-auto border-2s-e4e5ea br-5 br-5 p-30"> <div class="d-flex justify-content-between"> <div> <h3 class="pb-7 shop-name"><?php echo escape_output($this->session->userdata('business_name')); ?></h3> <p class="pb-7 common-heading"><?php echo escape_output($outlet_info->outlet_name); ?></p> <p class="pb-7 f-w-500 color-71"><?php echo escape_output($outlet_info->address); ?></p> <p class="pb-7 f-w-500 color-71"><?php echo lang('email');?>: <?php echo escape_output($outlet_info->email); ?></p> <p class="pb-7 f-w-500 color-71"><?php echo lang('phone');?>: <?php echo escape_output($outlet_info->phone); ?></p> <?php if($this->session->userdata('collect_tax') == 'Yes'){ ?> <p class="pb-7 f-w-900 rgb-71"><?php echo $this->session->userdata('tax_title'); ?>: <?php echo $this->session->userdata('tax_registration_no'); ?></p> <?php } ?> </div> <div class="d-flex align-items-center"> <div class="m-auto"> <?php $invoice_logo = $this->session->userdata('invoice_logo'); if($invoice_logo): ?> <img src="<?=base_url()?>uploads/site_settings/<?=escape_output($invoice_logo)?>"> <?php endif; ?> </div> </div> </div> <div class="text-center py-10"> <h2 class="invoice-heading"><?php echo lang('Money_Receipt');?></h2> </div> <div class="d-grid g-template-c-33-33-32 g-gap-1"> <div class="d-flex justify-content-start"> <div> <h3 class="pb-7 common-heading"><?php echo lang('payment_info');?></h3> <p class="pb-7"><span class="f-w-600"><?php echo lang('payment_by');?>:</span> <?php echo userName($receipt_object[0]->user_id); ?></p> <p class="pb-7"><span class="f-w-600"><?php echo lang('date');?>:</span> <?php echo date($this->session->userdata('date_format'), strtotime($receipt_object[0]->date)); ?></p> </div> </div> <div class="d-flex justify-content-center"> <div> <h3 class="pb-7 common-heading"><?php echo lang('company_info');?></h3> <?php if($company_info->business_name != ''){ ?> <p class="pb-7 f-w-500 color-71"><span class="f-w-600"><?php echo lang('name');?>:</span> <?php echo escape_output($company_info->business_name); ?></p> <?php } ?> <?php if($company_info->phone != ''){ ?> <p class="pb-7 f-w-500 color-71"><span class="f-w-600"><?php echo lang('phone');?>:</span> <?php echo escape_output($company_info->phone); ?></p> <?php } ?> <?php if($company_info->email != ''){ ?> <p class="pb-7 f-w-500 color-71"><span class="f-w-600"><?php echo lang('email');?>:</span> <?php echo escape_output($company_info->email); ?></p> <?php } ?> <?php if($company_info->website != ''){ ?> <p class="pb-7 f-w-500 color-71"><span class="f-w-600"><?php echo lang('website');?>:</span> <?php echo escape_output($company_info->website); ?></p> <?php } ?> </div> </div> <div class="d-flex justify-content-end"> <div> <?php $supplier_info = getSupplierInfoById($receipt_object[0]->supplier_id); ?> <h3 class="pb-7"><?php echo lang('Supplier_Info');?></h3> <?php if($supplier_info->name != ''){ ?> <p class="pb-7 f-w-500 color-71"><span class="f-w-600"><?php echo lang('name');?>:</span> <?php echo escape_output($supplier_info->name); ?></p> <?php } ?> <?php if($supplier_info->phone != ''){ ?> <p class="pb-7 f-w-500 color-71"><span class="f-w-600"><?php echo lang('phone');?>:</span> <?php echo escape_output($supplier_info->phone); ?></p> <?php } ?> <?php if($supplier_info->address != ''){ ?> <p class="pb-7 f-w-500 color-71"><span class="f-w-600"><?php echo lang('address');?>:</span> <?php echo escape_output($supplier_info->address); ?></p> <?php } ?> </div> </div> </div> <div class="mt-20"> <?php if($receipt_object[0]->amount && $receipt_object[0]->amount!="0.00"): ?> <div class="d-flex justify-content-between border-bottom-dotted-gray border-top-dotted-gray padding-y-10"> <h4><?php echo lang('paid_amount');?></h4> <h4><?php echo getAmtCustom($receipt_object[0]->amount); ?></h4> </div> <?php endif; ?> <?php if($receipt_object[0]->amount > 0): ?> <div class="d-flex justify-content-between border-bottom-dotted-gray padding-y-10"> <h4><?php echo lang('payment_method');?></h4> <h4><?php echo getName("tbl_payment_methods", $receipt_object[0]->payment_method_id); ?></h4> </div> <?php endif; ?> </div> <div> <div class="pt-20"> <h4 class="d-block pb-10"><?php echo lang('note');?></h4> <div class="w-100 bg-240 m-h-120px-m-h-220px p-15 b-1s-240"> <p> <?php echo escape_output($receipt_object[0]->note) ?> </p> </div> </div> </div> <div class="d-flex justify-content-end mt-60"> <div> <p class="color-71 d-inline b-t-1p-e4e5ea pt-10"><?php echo lang('authorized_signature');?></p> </div> </div> <div class="d-flex justify-content-center pt-30"> <button onclick="window.print();" type="button" class="print-btn"><?php echo lang('print');?></button> </div> </div> <script src="<?php echo base_url(); ?>assets/bower_components/jquery/dist/jquery.min.js"></script> <script src="<?php echo base_url(); ?>frequent_changing/js/onload_print.js"></script> </body> </html>
Save Changes
Cancel / Back
Close ×
Server Info
Hostname: server1.winmanyltd.com
Server IP: 203.161.60.52
PHP Version: 8.3.27
Server Software: Apache
System: Linux server1.winmanyltd.com 4.18.0-553.22.1.el8_10.x86_64 #1 SMP Tue Sep 24 05:16:59 EDT 2024 x86_64
HDD Total: 117.98 GB
HDD Free: 59.79 GB
Domains on IP: N/A (Requires external lookup)
System Features
Safe Mode:
Off
disable_functions:
None
allow_url_fopen:
On
allow_url_include:
Off
magic_quotes_gpc:
Off
register_globals:
Off
open_basedir:
None
cURL:
Enabled
ZipArchive:
Enabled
MySQLi:
Enabled
PDO:
Enabled
wget:
Yes
curl (cmd):
Yes
perl:
Yes
python:
Yes (py3)
gcc:
Yes
pkexec:
Yes
git:
Yes
User Info
Username: eliosofonline
User ID (UID): 1002
Group ID (GID): 1003
Script Owner UID: 1002
Current Dir Owner: 1002