Example #1
0
                                array('lun' => 28,'nam'=>$acc[3]),
                                array('lun' => 28,'nam'=>$acc[4]),
                                array('lun' => 28,'nam'=>$acc[5]),
                                array('lun' => 18,'nam'=>$acc[6])
                            )
              );
$aRiportare = array('top'=>array(array('lun' => 166,'nam'=>'da riporto : '),
                           array('lun' => 20,'nam'=>'')
                           ),
                    'bot'=>array(array('lun' => 166,'nam'=>'a riportare : '),
                           array('lun' => 20,'nam'=>'')
                           )
                    );
$pdf = new Report_template();
$pdf->setVars($admin_aziend,$title);
$pdf->setFooterMargin(22);
$pdf->setTopMargin(43);
$pdf->setRiporti('');
$pdf->AddPage();
$paymov = new Schedule;
$paymov->setScheduledPartner($admin_aziend['mascli']);
if (sizeof($paymov->Partners) > 0) {
      $anagrafica = new Anagrafica();
      foreach ($paymov->Partners as $p){
          $anagrafica = new Anagrafica();
          $prt = $anagrafica->getPartner($p);
          $pdf->SetFont('helvetica','B',10);
          $pdf->SetFillColor(200,255,200);
          $pdf->Ln(2);
          $pdf->Cell(186,5,$prt['ragso1']." ".$prt['ragso2']." tel:".$prt['telefo']." fax:".$prt['fax']." mob:".$prt['cell']." ",1,1,'',1,'',1);
          $pdf->SetFont('helvetica','',9);
Example #2
0
               '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':
        $price = $row['preve1'];
        break;
        case '2':