Changeset 499
- Timestamp:
- Oct 12, 2025, 6:41:46 PM (8 weeks ago)
- Location:
- trunk
- Files:
-
- 3 edited
-
admin/versione.php (modified) (1 diff)
-
client/modules/Elezioni/index.php (modified) (9 diffs)
-
client/versione.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/admin/versione.php
r498 r499 1 1 <?php 2 2 3 $versione = "3.0 rev 49 8";3 $versione = "3.0 rev 499"; 4 4 $version_number = $versione; 5 5 $datarel = "12 Ottobre 2025"; -
trunk/client/modules/Elezioni/index.php
r472 r499 71 71 $ordine=htmlentities($ordine); 72 72 $cap=''; 73 global $limite ;73 global $limite,$noGenere; 74 74 $sql="SELECT id_conf FROM ".$prefix."_ele_cons_comune where id_cons_gen='$id_cons_gen' and id_comune='$id_comune'" ; 75 75 $res = $dbi->prepare("$sql"); … … 104 104 list($id_cons) = $res->fetch(PDO::FETCH_NUM); 105 105 106 $sql="SELECT t1.descrizione, t1.tipo_cons, t2.genere, t2.voto_g, t2.voto_l, t2.voto_c, t2.circo FROM ".$prefix."_ele_consultazione as t1,".$prefix."_ele_tipo as t2 where t1.tipo_cons=t2.tipo_cons and t1.id_cons_gen='$id_cons_gen' ";106 $sql="SELECT t1.descrizione, t1.tipo_cons, t2.genere, t2.voto_g, t2.voto_l, t2.voto_c, t2.circo,t1.data_inizio FROM ".$prefix."_ele_consultazione as t1,".$prefix."_ele_tipo as t2 where t1.tipo_cons=t2.tipo_cons and t1.id_cons_gen='$id_cons_gen' "; 107 107 $res = $dbi->prepare("$sql"); 108 108 $res->execute(); 109 109 110 list($descr_cons,$tipo_cons,$genere,$votog,$votol,$votoc,$circo ) = $res->fetch(PDO::FETCH_NUM);111 110 list($descr_cons,$tipo_cons,$genere,$votog,$votol,$votoc,$circo,$dataInizio) = $res->fetch(PDO::FETCH_NUM); 111 if(strtotime($dataInizio)>$inizioNoGenere) $noGenere=1; else $noGenere=0; 112 112 // esiste consultazione e toglie blocco nel caso non esista 113 113 $sql="SELECT t1.id_cons_gen,t1.descrizione FROM ".$prefix."_ele_consultazione as t1, ".$prefix."_ele_cons_comune as t2 where t1.id_cons_gen=t2.id_cons_gen and t2.id_comune='$id_comune' and t2.chiusa!='2' order by t1.data_fine desc" ; … … 274 274 function dati() { 275 275 /*Funzione di visualizzazione dati generali */ 276 global $admin, $prefix, $dbi, $offset, $votog, $votol, $votoc, $min,$id_cons,$tipo_cons,$descr_cons,$id_cons_gen,$id_comune,$genere,$id_circ ;276 global $admin, $prefix, $dbi, $offset, $votog, $votol, $votoc, $min,$id_cons,$tipo_cons,$descr_cons,$id_cons_gen,$id_comune,$genere,$id_circ,$noGenere; 277 277 278 278 $sql="select * from ".$prefix."_ele_circoscrizione where id_cons='$id_cons' "; … … 294 294 echo "<div><b>"._DATIG."</b></div> "; 295 295 echo "<table class=\"table-80\"><tr class=\"bggray\">"; 296 echo "<td ><b>"._AVENTI."</b></td>" 297 ."<td ><b>"._MASCHI."</b></td>"298 ."<td ><b>"._FEMMINE."</b></td>";296 echo "<td ><b>"._AVENTI."</b></td>"; 297 if($noGenere==0) 298 echo "<td ><b>"._MASCHI."</b></td><td ><b>"._FEMMINE."</b></td>"; 299 299 if ($circo>1) 300 300 echo "<td ><b><a href=\"modules.php?name=Elezioni&op=circo&id_cons_gen=$id_cons_gen&id_comune=$id_comune\">"._CIRCS."</a></b></td>"; … … 349 349 echo "</tr><tr class=\"bggray2\">" 350 350 351 ."<td><b>$tot</b>" 352 ."</td><td><b>$maschi</b>"353 ."</td><td><b>$femmine</b>"354 ."</td><td><b>$circo</b>"351 ."<td><b>$tot</b>"; 352 if($noGenere==0) 353 echo "</td><td><b>$maschi</b></td><td><b>$femmine</b>"; 354 echo "</td><td><b>$circo</b>" 355 355 ."</td><td><b>$sez</b>" 356 356 ."</td><td><b>$gruppo</b>"; … … 447 447 function sezione() { 448 448 global $admin, $prefix, $dbi, $offset, $min,$votog,$circo, $id_cons_gen,$id_circ,$descr_circ,$id_cons,$file,$prev,$next,$id_comune,$googlemaps; 449 global $descr_com,$cap ;449 global $descr_com,$cap,$noGenere; 450 450 if(!isset($_GET['id_circ'])) unset($id_circ); 451 451 dati(); … … 491 491 ."<table class=\"table-80\"><tr class=\"bggray\">" 492 492 ."<td class=\"td-5\"><b>"._NUM."</b></td>" 493 ."<td ><b>"._INDIRIZZO."</b></td>" 494 ."<td class=\"td-5\"><b>"._MASCHI."</b></td>"495 ."<td class=\"td-5\"><b>"._FEMMINE."</b></td>"496 ."<td><b>"._TOTS." "._AVENTI."</b></td></tr>";493 ."<td ><b>"._INDIRIZZO."</b></td>"; 494 if($noGenere==0) 495 echo "<td class=\"td-5\"><b>"._MASCHI."</b></td><td class=\"td-5\"><b>"._FEMMINE."</b></td>"; 496 echo "<td><b>"._TOTS." "._AVENTI."</b></td></tr>"; 497 497 // link alle sedi 498 498 … … 526 526 $femmine_t=$femmine_t+$femmine; 527 527 echo "<tr><td><b>$num_sez</b>" 528 ."</td><td><b><a href=\"modules.php?name=Elezioni&op=sezione&id_cons_gen=$id_cons_gen&id_comune=$id_comune&id_sede=$id_sede\">$indir</a></b> "529 ."</td><td >$maschi"530 ."</td><td >$femmine"531 ."</td><td ><b>$totali</b></td></tr>";528 ."</td><td><b><a href=\"modules.php?name=Elezioni&op=sezione&id_cons_gen=$id_cons_gen&id_comune=$id_comune&id_sede=$id_sede\">$indir</a></b></td>"; 529 if($noGenere==0) 530 echo "<td >$maschi</td><td >$femmine</td>"; 531 echo "<td ><b>$totali</b></td></tr>"; 532 532 } 533 533 534 534 } 535 535 echo "<tr class=\"bggray2\" ><td>"._SEZIONI."<br>n. $i</td> 536 <td><b>"._TOT."<br>$descr_circ</b> 537 </td><td ><b>"._MASCHI."<br><span class=\"red\">$maschi_t</span></b>538 </td><td ><b>"._FEMMINE."<br><span class=\"red\">$femmine_t</span></b></td>539 <td ><b>"._TOTS."<br><span class=\"red\">$totali_t</span></b></td></tr>";536 <td><b>"._TOT."<br>$descr_circ</b></td>"; 537 if($noGenere==0) 538 echo "<td ><b>"._MASCHI."<br><span class=\"red\">$maschi_t</span></b></td><td ><b>"._FEMMINE."<br><span class=\"red\">$femmine_t</span></b></td>"; 539 echo "<td ><b>"._TOTS."<br><span class=\"red\">$totali_t</span></b></td></tr>"; 540 540 echo "</table></center>"; 541 541 }else{ … … 561 561 echo "<tr class=\"bggray2\"><td><b>$num_sez</b>" 562 562 ."</td><td><b><a href=\"modules.php?name=Elezioni&op=sezione&id_cons_gen=$id_cons_gen&id_comune=$id_comune&id_sede=$id_sed\"><img class=\"nobordo\" src=\"modules/Elezioni/images/mappa.gif\" style=\"text-align:left;\" alt=\"mappa\"> 563 $indir</a></b> "564 ."</td><td>$maschi"565 ."</td><td>$femmine"566 ."</td><td><b>$totali</b></td></tr>";563 $indir</a></b></td>"; 564 if($noGenere==0) 565 echo "<td>$maschi</td><td>$femmine</td>"; 566 echo "<td><b>$totali</b></td></tr>"; 567 567 } 568 568 if($id_sede)echo "<tr class=\"bggray\"><td><br><br></td> 569 <td><b>"._TOTS."<br>$indir</b> 570 </td><td ><b>"._MASCHI."<br><span class=\"red\">$maschi_t</span></b>571 </td><td ><b>"._FEMMINE."<br><span class=\"red\">$femmine_t</span></b></td>572 <td ><b>"._TOTS."<br><span class=\"red\">$totali_t</span></b></td></tr>";569 <td><b>"._TOTS."<br>$indir</b></td>"; 570 if($noGenere==0) 571 echo "<td ><b>"._MASCHI."<br><span class=\"red\">$maschi_t</span></b></td><td ><b>"._FEMMINE."<br><span class=\"red\">$femmine_t</span></b></td>"; 572 echo "<td ><b>"._TOTS."<br><span class=\"red\">$totali_t</span></b></td></tr>"; 573 573 echo "</table>"; 574 574 } -
trunk/client/versione.php
r498 r499 1 1 <?php 2 2 3 $versione = "3.0 rev 49 8";3 $versione = "3.0 rev 499"; 4 4 $version_number = $versione; 5 5 $datarel = "12 Ottobre 2025";
Note:
See TracChangeset
for help on using the changeset viewer.
