Changeset 411 for trunk/client/modules
- Timestamp:
- Apr 6, 2024, 12:09:37 PM (7 months ago)
- Location:
- trunk/client/modules/Elezioni
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/client/modules/Elezioni/affluenze-inc.php
r407 r411 48 48 "._RISULTA." "._CONSULTA."<br/ >"; 49 49 $datipdf .= "$descr_cons<br />"._DISCLAIMER." 50 <br />< b>"._DETTAGLIO." "._AFFLUENZE."</b>";50 <br /><hr/><b>"._DETTAGLIO." "._AFFLUENZE."</b>"; 51 51 if($xls!=1) $datipdf .= "</td></tr></table>"; 52 52 $datipdf .="</div>"; … … 179 179 $num_ril= $resril->rowCount(); //numero delle rilevazioni previste 180 180 if(!isset($html)) $html=''; 181 if($csv && $pdf) $tabpdf=" style=\"width:45%; margin:0px auto;text-align:center;\"";181 if($csv && $pdf) $tabpdf="<col width=\"50\">"; 182 182 else $tabpdf=''; 183 $html .= "<table class=\"td-100\" $tabpdf>";183 $html .= "<table class=\"td-100\"> $tabpdf"; 184 184 $html .= "<tr class=\"bggray\"><td>"._SEZIONI."</td><td>"._ISCR_SEZ."</td>"; 185 185 $sql="SELECT orario,data FROM ".$prefix."_ele_rilaff where id_cons_gen=$id_cons_gen order by data desc,orario desc limit 0,1"; … … 198 198 # if(($data==$ultdata) and ($ora==$ultora)) 199 199 { 200 $tot[$data.$ora]="<table style=\"width:100%;border:none;\"><tr class=\"bggray2\"><td style=\"width:3 3%;text-align:center;border:none;max-width:50px;\">201 <b>".number_format($votiu,0,',','.')."</b></td><td style=\"width:3 3%;text-align:center;border:none;max-width:50px;\">202 <b>".number_format($votid,0,',','.')."</b></td><td style=\"width: 33%;text-align:center;border:none;max-width:50px;\">200 $tot[$data.$ora]="<table style=\"width:100%;border:none;\"><tr class=\"bggray2\"><td style=\"width:30%;text-align:center;border:none;max-width:50px;\"> 201 <b>".number_format($votiu,0,',','.')."</b></td><td style=\"width:30%;text-align:center;border:none;max-width:50px;\"> 202 <b>".number_format($votid,0,',','.')."</b></td><td style=\"width:40%;text-align:center;border:none;max-width:80px;\"> 203 203 <b>".number_format($somma,0,',','.')."</b></td> 204 204 </tr></table>"; … … 229 229 $html .= "<br /><table style=\"width:100%;border:none;\"><tr class=\"bggray\">"; 230 230 if ((isset($perc_u[$data1.$ora1]) or isset($perc_d[$data1.$ora1])) and ($perc_u[$data1.$ora1]+$perc_d[$data1.$ora1])>0) 231 $html .= "<th style=\"width: 33%;max-width:100px;text-align:center;border:none;\">"._UOMINI."</th><th style=\"width:33%;max-width:50px;text-align:center;border:none;\">"._DONNE."</th><th style=\"width:33%;max-width:150px;text-align:center;border:none;\">"._COMPLESSIVI."</th></tr></table></td>";231 $html .= "<th style=\"width:28%;max-width:100px;text-align:center;border:none;\">"._UOMINI."</th><th style=\"width:28%;max-width:50px;text-align:center;border:none;\">"._DONNE."</th><th style=\"width:44%;max-width:150px;text-align:center;border:none;\">"._COMPLESSIVI."</th></tr></table></td>"; 232 232 233 233 else $html .= "<th style=\"width:150px;text-align:center;border:none;\">"._COMPLESSIVI."</th></tr></table></td>"; -
trunk/client/modules/Elezioni/affluenze.php
r407 r411 34 34 $nomefile="$descr_cons affluenze.pdf"; 35 35 $stampa ="$datipdf $html $style"; 36 #if($vismf)36 if($vismf) 37 37 $html2pdf = new Html2Pdf('L','A4', 'it'); 38 #else39 #$html2pdf = new Html2Pdf('P','A4', 'it');38 else 39 $html2pdf = new Html2Pdf('P','A4', 'it'); 40 40 $html2pdf->WriteHTML($stampa, isset($_GET['vuehtml'])); 41 41 $html2pdf->Output($nomefile);
Note:
See TracChangeset
for help on using the changeset viewer.