gest366/templates/prt_ordini/pdfgen.prt_ordini.php

58 lines
1.7 KiB
PHP
Raw Normal View History

2021-02-24 20:40:04 +00:00
<?php
$module_name = "Anagrafiche";
include_once( $docroot."/lib/permissions_check.php" );
//carica report html
$report = file_get_contents ($docroot."/templates/prt_ordini/prt_ordini.html");
$body = file_get_contents ($docroot."/templates/prt_ordini/prt_ordini_body.html");
include_once( "pdfgen_variables.php" );
$search_tipo = $html->form('search_tipo');
$titolo = "Stampa Elenco Ordini ";
$body .= "<h3>".$titolo." dal ".date( "d/m/Y", strtotime($_SESSION['period_start']) )." al ".date( "d/m/Y", strtotime($_SESSION['period_end']) )."</h3>\n";
$body .= "<table class=\"table_values\" cellspacing=\"0\" border=\"0\" cellpadding=\"0\" style=\"table-layout:fixed; border-color:#aaa;\">\n";
$body .= "<col width=\"150\"><col width=\"200\"><col width=\"225\"><col width=\"75\"><col width=\"100\">\n";
$body .= "<thead>\n";
$body .= " <tr>\n";
$body .= " <th style='padding:2mm; background:#eee;'>Data</th>\n";
$body .= " <th style='padding:2mm; background:#eee;'>Numero</th>\n";
$body .= " <th style='padding:2mm; background:#eee;'>Ragione Sociale</th>\n";
$body .= " <th style='padding:2mm; background:#eee;'>Stato</th>\n";
$body .= " </tr>\n";
$body .= "</thead>\n";
$body .= "<tbody>\n";
$query=$_SESSION['query_controller'] ;
$rs = $dbo->fetchArray($query);
for( $i=0; $i<sizeof($rs); $i++ ){
$body .= " <tr>";
$body .= " <td>".$rs[$i]['data1']."</td>\n";
$body .= " <td>".$rs[$i]['Numero']."</td>\n";
$body .= " <td>".$rs[$i]['Ragione sociale']."</td>\n";
$body .= " <td>".$rs[$i]['icon_title_Stato']."</td>\n";
$body .= " </tr>\n";
}
$body .= "</tbody>\n";
$body .= "</table>\n";
$orientation = "L";
$report_name = "prt_anagrafiche.pdf";
?>