include "system.php"; include "menu.php"; //include_once 'class/Log.php'; include_once 'class/BankReconcilation.php'; include_once 'class/Transaction.php'; //include_once 'class/SelectCtrl.php'; include_once "../simantz/class/datepicker/class.datepicker.php"; //include_once "../system/class/Period.php"; $dp = new datepicker($url); $dp->dateFormat = 'Y-m-d'; error_reporting(E_ERROR | E_WARNING | E_PARSE | E_NOTICE); //$log = new Log(); $s = new XoopsSecurity(); $trans = new Transaction(); $o = new BankReconcilation(); $orgctrl = ""; $action = ""; //marhan add here --> ajax echo "<iframe src='bankreconcilation.php' name='nameValidate' id='idValidate' style='display:none' width='100%'></iframe>"; echo "<div id='simit'><form name='frmValidate' target='nameValidate' method='POST'></form></div>"; //////////////////// echo <<<EOF <script type="text/javascript"> \tfunction refreshAccounts(accounts_id){ \t\t//batchdate = document.forms['frmBankReconcilation'].batchdate.value; \t\tvar id = document.forms['frmBankReconcilation'].bankreconcilation_id.value; \t\tvar arr_fld=new Array("action","accounts_id","bankreconcilation_id");//name for POST
$this->SetFont('courier', 'I', 8); $this->Cell(0, 5, 'Page ' . $this->PageNo() . '/{nb} Generated dated ' . $timestamp, 0, 0, 'C'); } } if (isset($_GET["submit"])) { include_once "system.php"; include_once "../simantz/class/Period.inc.php"; include_once "class/Accounts.php"; include_once "class/BankReconcilation.php"; $period = new Period(); $pdf = new PDF('P', 'mm', 'A4'); $acc = new Accounts(); $pdf->AliasNbPages(); $pdf->SetAutoPageBreak(true, $pdf->pagefooterheight + 1); $currentbankreconcilation_id = $_GET['bankreconcilation_id']; $r = new BankReconcilation(); $r->fetchBankReconcilation($currentbankreconcilation_id); $accounts_id = $r->accounts_id; $period_id = $r->period_id; //$periodfrom_id=1; //$periodto_id=2; //getdatefrom $period->fetchPeriod($period_id); if (strlen($period->period_month) == 1) { $period->period_month = '0' . $period->period_month; } $datefrom = "{$period->period_year}-{$period->period_month}-01"; //getdateto $dateto = "{$period->period_year}-{$period->period_month}-31"; $pdf->datefrom = $datefrom; $pdf->dateto = $dateto;