Esempio n. 1
0
            $pdf->SetX(10);
        }
    } else {
        $pdf->Cell(10,4,$numrig,'LR',0,'R');
        $pdf->Cell(78,4,'',0,0,'L');
        $pdf->Cell(16,4,$mov['codcon'],'L',0,'C');
        $pdf->Cell(46,4,$clfoco['descri'],'L',0,'L',0,'',1);
        $pdf->Cell(20,4,$dare,'L',0,'R');
        $pdf->Cell(20,4,$avere,'LR',1,'R');
    }

    $topCarry[1]['name']= gaz_format_number($tot_dare);
    $botCarry[1]['name']= gaz_format_number($tot_dare);
    $topCarry[2]['name']= gaz_format_number($tot_avere);
    $botCarry[2]['name']= gaz_format_number($tot_avere);
    $pdf->setTopCarryBar($topCarry);
    $pdf->setBotCarryBar($botCarry);

    $ctrlmopre = $mov["id_tes"];
    $numrig ++;
}
$pdf->setBotCarryBar('');
$pdf->Cell(150,4,'TOTALI : ',1,0,'L');
$pdf->Cell(20,4,gaz_format_number($tot_dare),1,0,'R',1);
$pdf->Cell(20,4,gaz_format_number($tot_avere),1,0,'R',1);
if (isset($_GET['stadef'])) {
    gaz_dbi_put_row($gTables['aziend'],"codice",$admin_aziend['codice'],'upggio', $pdf->getGroupPageNo()+$n_page-1);
}
$pdf->Output($title.'.pdf');
?>
Esempio n. 2
0
    $pdf->Cell(50,5,"DETTAGLIO FORNITORI",1,1,'C',1);
    $pdf->Cell(100,5,'','L',1);
    $totmas = 0;
    $descri = gaz_dbi_get_row($gTables['clfoco'],"codice",$admin_aziend['masfor']*1000000);
    $pdf->Cell(20,5,$admin_aziend['masfor'],'L');
    $pdf->Cell(80,5,$descri['descri'],1,1,'C');
    foreach ($conti['for'] as $key => $value){
       $descri = gaz_dbi_get_row($gTables['clfoco'],"codice",$key);
       $pdf->Cell(20,5,substr($key,3,6),'L',0,'R');
       $pdf->Cell(80,5,$descri['descri']);
       $pdf->Cell(35,5,gaz_format_number(-$value),'L',1,'R');
       $totmas += $value;
       $topCarry[1]['name']= gaz_format_number(-$totmas);
       $botCarry[1]['name']= gaz_format_number(-$totmas);
       $pdf->setTopCarryBar($topCarry);
       $pdf->setBotCarryBar($botCarry);
    }
    $pdf->Cell(100,5,'','LB');
    $pdf->Cell(40,5,'','TB');
    $pdf->Cell(15,5,$admin_aziend['curr_name'],'TB');
    $pdf->Cell(35,5,gaz_format_number(-$totmas),1,1,'R');
    $pdf->setTopCarryBar('');
    $pdf->setBotCarryBar('');
}
$pdf->Output();
if (!empty($_GET['sd'])) {
    gaz_dbi_put_row($gTables['aziend'], "codice", 1, "upginv", $pagini);
}
?>