ksort($passivo); ksort($clienti); ksort($fornitori); $conti = array("cos" => $costi,"ric" => $ricavi,"att" => $attivo,"pas" => $passivo,"cli" => $clienti,"for" => $fornitori); return $conti; } $title = $script_transl[6].$script_transl[7].$gioini.'-'.$mesini.'-'.$annini.$script_transl[8].$giofin.'-'.$mesfin.'-'.$annfin ; $topCarry = array(array('lenght' => 100,'name'=>'da riporto : ','frame' => 0,'fill'=>0), array('lenght' => 35,'name'=>'','frame' => 1,'fill'=>0)); $botCarry = array(array('lenght' => 100,'name'=>'a riporto : ','frame' => 0,'fill'=>0), array('lenght' => 35,'name'=>'','frame' => 1,'fill'=>0)); require("../../config/templates/standard_template.php"); $pdf = new Standard_template(); $pdf->setVars($admin_aziend,$title,0,1); $pdf->AddPage(); $pdf->SetFont('helvetica','',10); $totatt=0; $conti = ValoriConti($datainizio,$datafine,$datadopo,$admin_aziend['mascli'],$admin_aziend['masfor'],$dettcf); if ($conti) { $loss = round(array_sum($conti['cos']),2); $profit = round(array_sum($conti['ric']),2); $assets = round(array_sum($conti['att']),2); $liabilities = round(array_sum($conti['pas']),2); $ctrl_bal = round($loss + $profit + $assets + $liabilities,2); $income = round($loss + $profit,2); $pdf->Cell(190,5,$script_transl[9].$script_transl[8].$giofin.'-'.$mesfin.'-'.$annfin ,1,1,'C',1); $pdf->Ln(5); $mas=0; $ctrlmas=0;
array('lenght' => 20,'name'=>'','frame' => 1,'fill'=>1)); $top = array(array('lenght' => 10,'name'=>'Progr.','frame' => 1,'fill'=>1,'font'=>8), array('lenght' => 18,'name'=>'Data Reg.','frame' => 1,'fill'=>1), array('lenght' => 60,'name'=>'Descrizione Operazione / Num. e Data Doc.','frame' => 1,'fill'=>1), array('lenght' => 16,'name'=>'N.Conto','frame' => 1,'fill'=>1), array('lenght' => 46,'name'=>'Nome Conto','frame' => 1,'fill'=>1), array('lenght' => 20,'name'=>'Dare','frame' => 1,'fill'=>1), array('lenght' => 20,'name'=>'Avere','frame' => 1,'fill'=>1)); require("../../config/templates/standard_template.php"); $pdf = new Standard_template(); $n_page = intval($_GET['pagini']); if (isset($_GET['copert'])) { $n_page--; } $pdf->setVars($admin_aziend,$title,0,array('ini_page'=>$n_page,'year'=>'Pagina '.$annfin)); if (isset($_GET['copert'])) { $pdf->setCover($cover_descri); $pdf->AddPage(); } $pdf->setTopBar($top); if (($tot_avere+$tot_dare)> 0.01){ $topCarry[1]['name']= gaz_format_number($tot_dare); $topCarry[2]['name']= gaz_format_number($tot_avere); $pdf->setTopCarryBar($topCarry); } $pdf->AddPage(); $pdf->setFooterMargin(21); $pdf->setTopMargin(44); $pdf->SetFont('helvetica','',7); $ctrlmopre = 0;
array('lenght' => 32,'name'=>'','frame' => 1,'fill'=>1), array('lenght' => 20,'name'=>'','frame' => 1,'fill'=>1)); $botCarry = array(array('lenght' => 118,'name'=>'a riporto : ','frame' => 'T','fill'=>0,'font'=>8), array('lenght' => 20,'name'=>'','frame' => 1,'fill'=>1), array('lenght' => 32,'name'=>'','frame' => 1,'fill'=>1), array('lenght' => 20,'name'=>'','frame' => 1,'fill'=>1)); require("../../config/templates/standard_template.php"); $pdf = new Standard_template(); $n_page = intval($_GET['pi']); if ($_GET['cv']=='cover') { $n_page--; } $pdf->setVars($admin_aziend,$title,0,array('ini_page'=>$n_page,'year'=>$script_transl['page'].' '.$annfin)); if ($_GET['cv']=='cover') { $pdf->setCover($cover_descri); $pdf->AddPage(); } $pdf->AddPage(); $pdf->setFooterMargin(21); $pdf->setTopMargin(44); $ctrl_sezione = 0; $ctrl_registro = 0; $pdf->SetFont('helvetica','',10); $totale_iva_registro = 0.00; $saldo_periodo = 0.00; while ($row = gaz_dbi_fetch_array($result)) { if ($ctrl_sezione != $row['seziva']) {