?
Current Path : /home1/savoy/www/oscarerp.com/application/views/accounting/ |
Linux gator3171.hostgator.com 4.19.286-203.ELK.el7.x86_64 #1 SMP Wed Jun 14 04:33:55 CDT 2023 x86_64 |
Current File : /home1/savoy/www/oscarerp.com/application/views/accounting/xls_bank_reconciliation_statement.php |
<?php if (!defined('BASEPATH')) exit('No direct script access allowed'); $html = '<html><head><body>'; $html.='<table width="100%"> <tr><td colspan="2"></td><td align="right"></td> <tr><td colspan="3" style="font-size:16px;" align="center"><b><u>Reconciliation Bank Statement</u></b></td></tr> <tr><td colspan="3">Printout Date : ' . date('d-m-Y') . ', ' . date('h:i:s a') . '</td></tr> </table><br><br>'; $html.='<hr>'; $html.='<table cellspacing="-1" style="width:100%;text-align:left"> <thead> <tr><th style="text-align:left" bgcolor="#7FCEFF">Sl No</th> <th style="text-align:left" bgcolor="#7FCEFF">Account Code</th> <th style="text-align:left" bgcolor="#7FCEFF">Account Name</th> <th style="text-align:left" bgcolor="#7FCEFF">Debit</th> <th style="text-align:left" bgcolor="#7FCEFF">Credit</th> <th style="text-align:left" bgcolor="#7FCEFF">Cheque No</th> <th style="text-align:left" bgcolor="#7FCEFF">Description</th> <th style="text-align:left" bgcolor="#7FCEFF">Reconcile Date</th> </tr> </thead> <tbody>'; $i = 0; if (count($view_info) > 0) { foreach ($view_info as $value) { if (isset($cheque_info[$value['journal_id']])) { $cheque_no = $cheque_info[$value['journal_id']]->cheque_no; } else $cheque_no = ""; $i++; $html.='<tr><td>' . $i . '</td> <td>' . $value['chart_account_code'] . '</td> <td>' . $this->mastermodel->get_single_field_value('finance_chart_master', 'chart_account_name', 'chart_account_code', $value['chart_account_code']) . '</td> <td>' . $value['debit'] . '</td> <td>' . $value['credit'] . '</td> <td>' . $cheque_no . '</td> <td>' . $value['description'] . '</td> <td>' . $this->mastermodel->convertdatenormalformat($value['reconcile_date']) . '</td> </tr>'; } } $html.='</tbody></table>'; $html.='<hr>'; $html.='</body></html>'; $filename = "Reconcile Statement"; header("Content-type: application/octet-stream"); header("Content-Disposition: attachment; filename=" . $filename . ".xls"); header("Pragma: no-cache"); header("Expires: 0"); print $html; exit; ?>