Beispiel #1
0
 foreach ($data as $i => $row) {
     if ($row['c_null']) {
         if (isset($nulled[$row['c_exe']])) {
             continue;
         }
         $nulled[$row['c_exe']] = true;
     }
     if ($new_page) {
         if ($create_page) {
             $aop->pdf->ezNewPage();
         }
         $print_height = 295;
         if ($total_fp) {
             $write_total_fp = '<b>VIENEN</b>';
             $new_total_fp = '<b>' . number_format($total_fp, 2) . '</b>';
             $aop->text(490 + $aop->right($aop->pdf->getTextWidth(6, $write_total_fp), 6, $write_total_fp), $print_height, $write_total_fp, 6);
             $aop->text(529 + $aop->right(50, 7, $new_total_fp), $print_height, $new_total_fp, 7);
             $print_height += $line_height;
         }
         $aop->header();
         $page_created = true;
         $new_page = false;
         $create_page = false;
     }
     //
     // Blank all data if null
     //
     parse_nulled($row, true);
     if ($row['c_null']) {
         $row['p_name'] = $row['c_text'];
     }