Changeset 458
- Timestamp:
- Apr 7, 2025, 7:21:24 PM (8 months ago)
- Location:
- trunk
- Files:
-
- 7 edited
-
admin/modules/Elezioni/ele.php (modified) (1 diff)
-
admin/versione.php (modified) (1 diff)
-
client/modules/Elezioni/affluenze-inc.php (modified) (7 diffs)
-
client/temi/bootstrap/css/altricss.css (modified) (1 diff)
-
client/temi/bootstrap/pagine/grafici/affluenza.php (modified) (1 diff)
-
client/temi/bootstrap/pagine/grafici/affluenza_referendum.php (modified) (1 diff)
-
client/versione.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/admin/modules/Elezioni/ele.php
r454 r458 239 239 elseif(($tipo_cons>5 and $tipo_cons<20) and $tipo_cons!=9 and $tipo_cons!=12 and $tipo_cons!=13 and $tipo_cons!=17 ) 240 240 echo "<a href=\"admin.php?op=importadait&id_cons_gen=$id_cons_gen\">$bullet Importa da DAIT</a><br>"; 241 if($tipo_cons==3) 242 echo "<a href=\"admin.php?op=assegna_seggi&id_cons_gen=$id_cons_gen\">$bullet Assegna Seggi</a><br>"; 241 if($tipo_cons==3){ 242 $sql="select distinct id_sez from ".$prefix."_ele_voti_candidati where id_cons='$id_cons'"; 243 $sth = $dbi->prepare("$sql"); 244 $sth->execute(); 245 $scrutinate = $sth->rowCount(); 246 $sql="select id_sez from ".$prefix."_ele_sezioni where id_cons='$id_cons'"; 247 $sth = $dbi->prepare("$sql"); 248 $sth->execute(); 249 $sez_totali = $sth->rowCount(); 250 if($scrutinate==$sez_totali and $sez_totali>0){ 251 $sql="select id_sez,count(id_cand) from ".$prefix."_ele_voti_candidati where id_cons=$id_cons group by id_sez"; 252 $sth = $dbi->prepare("$sql"); 253 $sth->execute(); 254 $candsez = $sth->fetchAll(); 255 $sql="select count(id_cand) from ".$prefix."_ele_candidati where id_cons=$id_cons"; 256 $sth = $dbi->prepare("$sql"); 257 $sth->execute(); 258 $candtot = $sth->fetch(PDO::FETCH_BOTH); 259 $seggiattivo=1; 260 foreach($candsez as $val) 261 if($candtot[0]!=$val[1]) {$seggiattivo=0; break;} 262 if($seggiattivo) 263 echo "<a href=\"admin.php?op=assegna_seggi&id_cons_gen=$id_cons_gen\">$bullet Assegna Seggi</a><br>"; 264 } 265 } 243 266 echo "<a href=\"admin.php?op=operatori&id_cons_gen=$id_cons_gen\">$bullet"._OPERATORI."</a> <br><a href=\"admin.php?op=permessi&id_cons_gen=$id_cons_gen\">$bullet"._PERMESSI."</a> <br>"; 244 267 } -
trunk/admin/versione.php
r457 r458 1 1 <?php 2 2 3 $versione = "3.0 rev 45 7";3 $versione = "3.0 rev 458"; 4 4 $version_number = $versione; 5 5 $datarel = "07 aprile 2025"; -
trunk/client/modules/Elezioni/affluenze-inc.php
r425 r458 37 37 list($descr_com) = $res->fetch(PDO::FETCH_NUM); 38 38 $descr_com =stripslashes($descr_com); 39 $datipdf .= "<div style=\"margin:0px auto; text-align:center;\">";39 if($xls!=1) $datipdf .= "<div style=\"margin:0px auto; text-align:center;\">"; 40 40 $siteistat=$id_comune; 41 41 # salva sull'hardisk lo stemma del comune … … 49 49 $datipdf .= "$descr_cons<br />"._DISCLAIMER." 50 50 <br /><hr/><b>"._DETTAGLIO." "._AFFLUENZE."</b>"; 51 if($xls!=1) $datipdf .= "</td></tr></table> ";52 $datipdf .="</div>";53 54 $html = "<style type=\"text/css\">51 if($xls!=1) $datipdf .= "</td></tr></table></div>"; 52 $datipdf .=""; 53 54 if($xls!=1) {$html = "<style type=\"text/css\"> 55 55 <!-- 56 56 … … 101 101 --> 102 102 </style>"; 103 } 103 104 } 104 105 // referendum … … 195 196 $perc_d[$data.$ora]=0; 196 197 $perc_c[$data.$ora]=0; 197 #if($votiu or $votid)198 if((($data==$ultdata) and ($ora==$ultora)) or $vismf)198 if($votiu or $votid) 199 # if(($data==$ultdata) and ($ora==$ultora)) 199 200 { 200 201 $tot[$data.$ora]="<table style=\"width:100%;border:none;\"><tr class=\"bggray2\"><td style=\"width:30%;text-align:center;border:none;max-width:50px;\"> … … 235 236 if (isset($tot[$data1.$ora1])){ 236 237 ## if ($ora_rif=="$data1.$ora1") 237 if (($perc_u[$data1.$ora1] or $perc_d[$data1.$ora1]) or $vismf){238 if (($perc_u[$data1.$ora1] or $perc_d[$data1.$ora1])){ 238 239 $ar['perc'][$data1.$ora1]="<table style=\"width:100%;border:none;\"><tr class=\"bggray2\"> 239 240 <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> … … 271 272 $ud=0; 272 273 while (list($data,$ora,$numsez,$uomini,$donne,$complessivi) = $resvoti->fetch(PDO::FETCH_NUM)) { 273 if(($uomini+$donne)>0 or $vismf)274 if(($uomini+$donne)>0) 274 275 $ar[$numsez][$data.$ora]="<table style=\"width:100%;border:none;\"><tr> 275 276 <td style=\"width:33%;text-align:center;border:none;max-width:50px;\">$uomini</td> … … 318 319 $style .= "<br/> "; 319 320 } 320 321 /*if($xls==1) { $cella=$html; 322 $cella=str_replace("<table>","\n",$cella); 323 $cella=str_replace("</table>","",$cella); 324 $cella=str_replace("<tr>","",$cella); 325 $cella=str_replace("</tr>","\n",$cella); 326 $cella=str_replace("<td>","",$cella); 327 $cella=str_replace('<td style="max-width:33%;text-align:center;border:none;"'>,"",$cella); 328 $cella=str_replace("</td>","\t",$cella); 329 $cella=str_replace("<b>","",$cella); 330 $cella=str_replace("</b>","",$cella); 331 $cella=str_replace("<br>","",$cella); 332 $cella=str_replace("<br />","",$cella); 333 $cella=str_replace("<br/>","",$cella); 334 $cella=str_replace("<span class=\"red\"><i>"," - ",$cella); 335 $cella=str_replace("<span class=\"red\" style=\"font-size:80%;\"><i>"," - ",$cella); 336 $cella=str_replace("</span>%</i>","%",$cella); 337 $cella=str_replace("</i></span>","",$cella); 338 $cella=str_replace("_CIRCOS","Circoscrizione ",$cella); 339 $cella=str_replace("_SEZIONI","Sezione ",$cella); 340 $cella=str_replace("_TOT","Totale",$cella); 341 $cella=str_replace("_COMPLESSIVO","Complessivo",$cella); 342 # $html=str_replace("<br/>","\n",$html); 343 # $html=strip_tags($html); 344 $html=$cella; 345 } */ 321 346 ?> -
trunk/client/temi/bootstrap/css/altricss.css
r431 r458 130 130 width: 100%; 131 131 } 132 .avatar.simbolo2 { 133 max-width: 60px !important; 134 height: auto; 135 width: 100%; 136 padding: 0; 137 } 132 138 .title-totali { 133 139 width: 100%; -
trunk/client/temi/bootstrap/pagine/grafici/affluenza.php
r457 r458 63 63 } 64 64 </style--> 65 <style> 66 #chartContainer { 67 width: 100%; 68 height: <?php echo min(300 + count($labels) * 30, 900); ?>px; /* L'altezza si adatta al numero di liste */ 69 margin: 0 auto; 70 } 71 </style> 65 72 <div class="container"> 66 73 <div class="row text-center"> -
trunk/client/temi/bootstrap/pagine/grafici/affluenza_referendum.php
r457 r458 70 70 } 71 71 </style> 72 <!-- Blocco select quesito referendum --> 73 <div class="container pb-2"> 74 <label for="defaultSelect">Seleziona Quesito</label> 75 <select id="defaultSelect" onchange="location = this.value;"> 76 <?php foreach ($quesiti as $val) : ?> 77 <option value="modules.php?op=51&id_comune=<?= $id_comune; ?>&file=index&id_cons_gen=<?= $id_cons_gen; ?>&num_gruppo=<?= $val['num_gruppo']; ?>" 78 <?= $num_gruppo == $val['num_gruppo'] ? 'selected' : ''; ?>> 79 Quesito <?= $val['num_gruppo']; ?> 80 </option> 81 <?php endforeach; ?> 82 </select> 83 </div> 84 72 85 <div class="container"> 73 86 <div class="row text-center"> -
trunk/client/versione.php
r457 r458 1 1 <?php 2 $versione = "3.0 rev 45 7";2 $versione = "3.0 rev 458"; 3 3 $version_number = $versione; 4 4 $datarel = "07 aprile 2025";
Note:
See TracChangeset
for help on using the changeset viewer.
