Пример #1
0
$title=array('luogo_data'=>$luogo_data,
               'title'=>"Listino ".$descrlis,
               'hile'=>array(array('lun' => 35,'nam'=>'Codice'),
                             array('lun' => 85,'nam'=>'Descrizione'),
                             array('lun' => 15,'nam'=>'U.M.'),
                             array('lun' => 25,'nam'=>'Prezzo'),
                             array('lun' => 25,'nam'=>'Esistenza'),
                             array('lun' => 15,'nam'=>'% I.V.A.'),
                             array('lun' => 70,'nam'=>'Annotazioni')
                             )
            );
$gForm = new magazzForm();
$pdf = new Report_template();
$pdf->setVars($admin_aziend,$title,'L');
$pdf->setAuthor($admin_aziend['ragso1'].' '.$_SESSION['Login']);
$pdf->setTitle($title['title']);
$pdf->SetTopMargin(39);
$pdf->setFooterMargin(10);
$pdf->AddPage('L');
$pdf->SetFillColor(hexdec(substr($admin_aziend['colore'],0,2)),hexdec(substr($admin_aziend['colore'],2,2)),hexdec(substr($admin_aziend['colore'],4,2)));
$ctrlcatmer=0;
while ($row = gaz_dbi_fetch_array($result)) {
       $mv=$gForm->getStockValue(false,$row['codice']);
       $magval=array_pop($mv);
       $pdf->SetFont('helvetica','',10);
       switch($_GET['li']) {
        case '0':
        $price = $row['preacq'];
        break;
        case '1':