示例#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');
?>
示例#2
0
    $interessi=0;
    $interessi=round($saldo_totale*$admin_aziend['interessi']/100,2);
    $pdf->Cell(114,6,$script_transl['inter'].$admin_aziend['interessi'].'% ',0,0,'R');
    $pdf->Cell(20,6,gaz_format_number($interessi),1,1,'R');
    $saldo_totale += $interessi;
} 

// totale
$pdf->Ln(2);
$pdf->Cell(31,6);
$pdf->SetFont('helvetica','B',12);
$pdf->Cell(72,6,strtoupper($script_transl['tot'].$script_transl['pay']),'LTB',0,'L',1);
$pdf->Cell(5,6,$admin_aziend['symbol'],'TB',0,'L',1);
$pdf->Cell(26,6,gaz_format_number($saldo_totale),'RTB',1,'R',1);

// dati versamento
if ($saldo_totale > 0) {
    $pdf->SetFont('helvetica','',8);
    $pdf->Ln(6);
    $pdf->Cell(50,6,$script_transl['pay_date'],0,0,'L');
    $pdf->Cell(60,6,$script_transl['co'],0,0,'L');
    $pdf->Cell(40,6,$script_transl['abi'],0,0,'L');
    $pdf->Cell(40,6,$script_transl['cab'],0,1,'L');
}

if ($_GET['sd']=='sta_def') {
    gaz_dbi_put_row($gTables['aziend'],'codice',1,'upgrie', $pdf->getGroupPageNo()+$n_page-1);
}
$pdf->Output($title.'.pdf');
?>