Changeset 407 for trunk/client/modules
- Timestamp:
- Mar 5, 2024, 10:09:23 PM (9 months ago)
- Location:
- trunk/client/modules/Elezioni
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/client/modules/Elezioni/affluenze-inc.php
r400 r407 179 179 $num_ril= $resril->rowCount(); //numero delle rilevazioni previste 180 180 if(!isset($html)) $html=''; 181 $html .= "<table class=\"td-89\">"; 181 if($csv && $pdf) $tabpdf="style=\"width:45%; margin:0px auto;text-align:center;\""; 182 else $tabpdf=''; 183 $html .= "<table class=\"td-100\" $tabpdf>"; 182 184 $html .= "<tr class=\"bggray\"><td>"._SEZIONI."</td><td>"._ISCR_SEZ."</td>"; 183 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"; … … 196 198 # if(($data==$ultdata) and ($ora==$ultora)) 197 199 { 198 $tot[$data.$ora]="<table style=\"width:100%;border:none;\"><tr class=\"bggray2\"><td style=\"width:33%;text-align:center;border:none; \">199 <b>".number_format($votiu,0,',','.')."</b></td><td style=\"width:33%;text-align:center;border:none; \">200 <b>".number_format($votid,0,',','.')."</b></td><td style=\"width:33%;text-align:center;border:none; \">200 $tot[$data.$ora]="<table style=\"width:100%;border:none;\"><tr class=\"bggray2\"><td style=\"width:33%;text-align:center;border:none;max-width:50px;\"> 201 <b>".number_format($votiu,0,',','.')."</b></td><td style=\"width:33%;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;\"> 201 203 <b>".number_format($somma,0,',','.')."</b></td> 202 204 </tr></table>"; … … 227 229 $html .= "<br /><table style=\"width:100%;border:none;\"><tr class=\"bggray\">"; 228 230 if ((isset($perc_u[$data1.$ora1]) or isset($perc_d[$data1.$ora1])) and ($perc_u[$data1.$ora1]+$perc_d[$data1.$ora1])>0) 229 $html .= "<th style=\"width:28%;text-align:center;border:none;\">"._UOMINI."</th><th style=\"width:28%;text-align:center;border:none;\">"._DONNE."</th>"; 230 $html .= "<th style=\"width:28%;text-align:center;border:none;\">"._COMPLESSIVI."</th></tr></table></td>"; 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>"; 232 233 else $html .= "<th style=\"width:150px;text-align:center;border:none;\">"._COMPLESSIVI."</th></tr></table></td>"; 231 234 232 235 if (isset($tot[$data1.$ora1])){ … … 234 237 if (($perc_u[$data1.$ora1] or $perc_d[$data1.$ora1])){ 235 238 $ar['perc'][$data1.$ora1]="<table style=\"width:100%;border:none;\"><tr class=\"bggray2\"> 236 <td style=\"width:33%;text-align:center;border:none; \"><b><i><span class=\"red\">".$perc_u[$data1.$ora1]."%</span></i></b></td>237 <td style=\"width:33%;text-align:center;border:none; \"><b><i><span class=\"red\">".$perc_d[$data1.$ora1]."%</span></i></b></td>238 <td style=\"width:33%;text-align:center;border:none; \" ><span class=\"red\"><b><i>".$perc_c[$data1.$ora1]."%</i></b></span></td>239 <td style=\"width:33%;text-align:center;border:none;max-width:50px;\"><b><i><span class=\"red\">".$perc_u[$data1.$ora1]."%</span></i></b></td> 240 <td style=\"width:33%;text-align:center;border:none;max-width:50px;\"><b><i><span class=\"red\">".$perc_d[$data1.$ora1]."%</span></i></b></td> 241 <td style=\"width:33%;text-align:center;border:none;max-width:50px;\" ><span class=\"red\"><b><i>".$perc_c[$data1.$ora1]."%</i></b></span></td> 239 242 </tr></table>"; 240 243 $ar[0][$data1.$ora1]=$tot[$data1.$ora1]; … … 270 273 if(($uomini+$donne)>0) 271 274 $ar[$numsez][$data.$ora]="<table style=\"width:100%;border:none;\"><tr> 272 <td style=\"width:33%;text-align:center;border:none; \">$uomini</td>273 <td style=\"width:33%;text-align:center;border:none; \">$donne</td>274 <td style=\"width:33%;text-align:center;border:none; \">$complessivi</td>275 <td style=\"width:33%;text-align:center;border:none;max-width:50px;\">$uomini</td> 276 <td style=\"width:33%;text-align:center;border:none;max-width:50px;\">$donne</td> 277 <td style=\"width:33%;text-align:center;border:none;max-width:50px;\">$complessivi</td> 275 278 </tr></table>"; 276 279 else … … 285 288 foreach ($arr as $valore) 286 289 { 287 $html .= "<td >$valore</td>";290 $html .= "<td style=\"max-width:33%;text-align:center;border:none;\">$valore</td>"; 288 291 } 289 292 $html .= "</tr>"; … … 311 314 if($csv==1){ 312 315 $data=date("d-m-y G:i"); 313 $style .="\t\t\n<br/><br/><br/>< div style=\"margin:0px auto;text-align:center;\"><i>Stampato: $data</i></div>";314 $style .="<br/><div style=\"text-align:center;\"><i>Eleonline by luciano apolito e roberto gigli - www.eleonline.it</i></div> ";316 $style .="\t\t\n<br/><br/><br/><table style=\"width:50%; margin:0px auto;text-align:center;\"><tr><td><div style=\"margin:0px auto;text-align:center;\"><i>Stampato: $data</i></div>"; 317 $style .="<br/><div style=\"text-align:center;\"><i>Eleonline by luciano apolito e roberto gigli - www.eleonline.it</i></div></td></tr></table>"; 315 318 $style .= "<br/> "; 316 319 } -
trunk/client/modules/Elezioni/affluenze.php
r400 r407 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); -
trunk/client/modules/Elezioni/blocchi/04_sezioni.php
r347 r407 73 73 if ($genere==0) $pos="gruppo_sezione";elseif($genere=='4' || $votog) $pos="lista_sezione"; 74 74 else $pos="gruppo_sezione"; 75 76 $html .="<td style=\"margin:0px auto; text-align:center; width:5%;background-color:$bgsez;\" ><ahref=\"modules.php?id_cons_gen=$id_cons_gen&name=Elezioni&id_comune=$id_comune&perc=true&file=index&op=$pos&minsez=$sez_num&offsetsez=$sez_num\"><b>$sez_num</b></a></td>";75 76 $html .="<td style=\"margin:0px auto; text-align:center; width:5%;background-color:$bgsez;\"><a style=\"background-color:$bgsez;\" href=\"modules.php?id_cons_gen=$id_cons_gen&name=Elezioni&id_comune=$id_comune&perc=true&file=index&op=$pos&minsez=$sez_num&offsetsez=$sez_num\"><b>$sez_num</b></a></td>"; 77 77 78 78 if (($i%5) ==0) $html .="</tr>\n<tr>";
Note:
See TracChangeset
for help on using the changeset viewer.