- Timestamp:
- Oct 11, 2025, 1:08:17 PM (2 months ago)
- Location:
- trunk
- Files:
-
- 9 edited
-
admin/modules/Elezioni/ele_spoglio.php (modified) (2 diffs)
-
admin/versione.php (modified) (1 diff)
-
client/temi/bootstrap/index.php (modified) (2 diffs)
-
client/temi/bootstrap/pagine/affluenza.php (modified) (5 diffs)
-
client/temi/bootstrap/pagine/datigenerali.php (modified) (2 diffs)
-
client/temi/bootstrap/pagine/datigeneralisezioni.php (modified) (5 diffs)
-
client/temi/bootstrap/pagine/votanti.php (modified) (7 diffs)
-
client/variabili.php (modified) (1 diff)
-
client/versione.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/admin/modules/Elezioni/ele_spoglio.php
r495 r496 789 789 790 790 function preferenze_gruppi($id_cons,$do,$id_circ,$id_sede,$id_sez,$ops){ 791 global $aid, $prefix, $dbi, $tipo_cons, $genere,$id_cons_gen,$sezi,$circo,$dettnulli,$scrtest,$votoscollegato ;791 global $aid, $prefix, $dbi, $tipo_cons, $genere,$id_cons_gen,$sezi,$circo,$dettnulli,$scrtest,$votoscollegato,$noGenere; 792 792 //////////////////////////////////////////// 793 793 // da qua va la sezione per le preferenze ai gruppi … … 823 823 824 824 list( $voti_u, $voti_d, $voti_t) = $result->fetch(PDO::FETCH_NUM); 825 echo "<table class=\"table-menu\" style=\"width: 50%; color: black;\">" 826 ."<tr><td></td><td align=\"center\"></td><td bgcolor=\"$bgcolor1\" align=\"center\">"._VOTIU."</td><td bgcolor=\"$bgcolor1\" align=\"center\">"._VOTID."</td><td bgcolor=\"$bgcolor1\" align=\"center\">"._VOTIT."</td></tr>" 827 ."<tr><td></td><td bgcolor=\"$bgcolor1\" align=\"center\">"._TOT_ULT."</td><td bgcolor=\"$bgcolor2\" align=\"center\">$voti_u</td><td align=\"center\" bgcolor=\"$bgcolor2\">$voti_d</td><td bgcolor=\"$bgcolor2\" align=\"center\">$voti_t</td></tr>"; 825 echo "<table class=\"table-menu\" style=\"width: 50%; color: black;\">"; 826 if($noGenere==0) 827 echo "<tr><td></td><td align=\"center\"></td><td bgcolor=\"$bgcolor1\" align=\"center\">"._VOTIU."</td><td bgcolor=\"$bgcolor1\" align=\"center\">"._VOTID."</td><td bgcolor=\"$bgcolor1\" align=\"center\">"._VOTIT."</td></tr>"; 828 echo "<tr><td></td><td bgcolor=\"$bgcolor1\" align=\"center\">"._TOT_ULT."</td>"; 829 if($noGenere==0) 830 echo "<td bgcolor=\"$bgcolor2\" align=\"center\">$voti_u</td><td align=\"center\" bgcolor=\"$bgcolor2\">$voti_d</td>"; 831 echo "<td bgcolor=\"$bgcolor2\" align=\"center\">$voti_t</td></tr>"; 828 832 echo "</table>"; 829 833 } -
trunk/admin/versione.php
r495 r496 1 1 <?php 2 2 3 $versione = "3.0 rev 49 5";3 $versione = "3.0 rev 496"; 4 4 $version_number = $versione; 5 5 $datarel = "11 Ottobre 2025"; -
trunk/client/temi/bootstrap/index.php
r462 r496 1 1 <?php 2 2 // dati per top header 3 global $dbi,$prefix,$id_comune,$id_cons_gen,$id_cons,$circo,$idcirc,$op ;3 global $dbi,$prefix,$id_comune,$id_cons_gen,$id_cons,$circo,$idcirc,$op,$inizioNoGenere,$noGenere; 4 4 include(dirname(__FILE__).'/query.php'); 5 5 if(isset($_GET["id_cons_gen"])) $idcurcons=$_GET["id_cons_gen"]; else $idcurcons=''; … … 52 52 $Consultazione=$row[0][1]; 53 53 $datainizio=$row[0][2]; 54 if(strtotime($datainizio)>$inizioNoGenere) $noGenere=1; else $noGenere=0; 54 55 $tipo_cons=$row[0][4]; 55 56 #$intro seleziona la pagina da caricare: 1) listaecandidati - 4) referendum -
trunk/client/temi/bootstrap/pagine/affluenza.php
r473 r496 159 159 <th class="primary-bg-c1" scope="col">Sezione</th> 160 160 <th class="primary-bg-c6" scope="col">Iscritti nella sezione</th> 161 <?php if($noGenere==0) { ?> 161 162 <th class="primary-bg-c6" scope="col">Uomini</th> 162 163 <th class="primary-bg-c6" scope="col">Donne</th> 163 <th class="primary-bg-c11" scope="col">Complessivi</th> 164 <?php } ?> 165 <th class="primary-bg-c6" scope="col">Voti Complessivi</th> 164 166 </tr> 165 167 </thead> … … 197 199 <th scope="row"><?php echo $val['num_sez'];?></th> 198 200 <td><?php echo $val['elettori'];?></td> 201 <?php if($noGenere==0) { ?> 199 202 <td><?php echo $aff[0]['voti_uomini'];?><br> 200 203 <span class="percentuale"><?php echo number_format($percentualeuomini, 2) . " %";?></span> … … 203 206 <span class="percentuale"><?php echo number_format($percentualedonne, 2) . " %";?></span> 204 207 </td> 208 <?php } ?> 205 209 <td><?php echo $aff[0]['voti_complessivi'];?><br> 206 210 <span class="percentuale"><?php echo number_format($percentualesez, 2) . " %";?></span> … … 215 219 <th scope="row">Totale</th> 216 220 <th><?php echo $totelettori;?></th> 221 <?php if($noGenere==0) { ?> 217 222 <th><?php echo $totuomini;?><br> 218 223 <span class="percentuale"><?php echo number_format($percentualetotuomini, 2) . " %";?></span> … … 221 226 <span class="percentuale"><?php echo number_format($percentualetotdonne, 2) . " %";?></span> 222 227 </th> 228 <?php } ?> 223 229 <th><?php echo $totcomplessivi;?><br> 224 230 <span class="percentuale"><?php echo number_format($percentualetot, 2) . " %";?></span> -
trunk/client/temi/bootstrap/pagine/datigenerali.php
r472 r496 17 17 <tr class="title-content"> 18 18 <th class="primary-bg-c11" scope="col">Aventi Diritto</th> 19 <?php if($noGenere==0) { ?> 19 20 <th class="primary-bg-c11" scope="col">Maschi</th> 20 21 <th class="primary-bg-c11" scope="col">Femmine</th> 22 <?php } ?> 21 23 <?php if($row[3]>1){?> 22 24 <th class="primary-bg-c11" scope="col">Circoscrizioni</th> … … 38 40 <tr class="text-end"> 39 41 <td><?php echo $row[0];?></td> 42 <?php if($noGenere==0) { ?> 40 43 <td><?php echo $row[1];?></td> 41 44 <td><?php echo $row[2];?></td> 45 <?php } ?> 42 46 <?php if($row[3]>1){?> 43 47 <td><?php echo $row[3];?></td> -
trunk/client/temi/bootstrap/pagine/datigeneralisezioni.php
r469 r496 24 24 <tr class="title-content"> 25 25 <th class="primary-bg-c11" scope="col">Aventi Diritto</th> 26 <?php if($noGenere==0) { ?> 26 27 <th class="primary-bg-c11" scope="col">Maschi</th> 27 28 <th class="primary-bg-c11" scope="col">Femmine</th> 29 <?php } ?> 28 30 <?php if($row[3]>1){?> 29 31 <th class="primary-bg-c11" scope="col">Circoscrizioni</th> … … 45 47 <tr class="text-end"> 46 48 <td><?php echo $row[0];?></td> 49 <?php if($noGenere==0) { ?> 47 50 <td><?php echo $row[1];?></td> 48 51 <td><?php echo $row[2];?></td> 52 <?php } ?> 49 53 <?php if($row[3]>1){?> 50 54 <td><?php echo $row[3];?></td> … … 140 144 <tr> 141 145 <th class="primary-bg-c6" scope="col">Sezione</th> 146 <?php if($noGenere==0) { ?> 142 147 <th class="primary-bg-c6" scope="col">Maschi</th> 143 148 <th class="primary-bg-c6" scope="col">Femmine</th> 149 <?php } ?> 144 150 <th class="primary-bg-c6" scope="col">Totali aventi Diritto</th> 145 151 </tr> … … 156 162 <tr class="text-end"> 157 163 <td><?php echo $val[3]; ?></td> 164 <?php if($noGenere==0) { ?> 158 165 <td><?php echo $val[4]; ?></td> 159 166 <td><?php echo $val[5]; ?></td> 167 <?php } ?> 160 168 <td><?php echo $val[4]+$val[5]; ?></td> 161 169 </tr> … … 166 174 <tr class="primary-bg-c4 white-color align-middle text-end"> 167 175 <th scope="row">Totale</th> 176 <?php if($noGenere==0) { ?> 168 177 <th scope="col"><?php echo $totm; ?></th> 169 178 <th scope="col"><?php echo $totf; ?></th> 179 <?php } ?> 170 180 <th scope="col"><?php echo $tott; ?></th> 171 181 </tr> -
trunk/client/temi/bootstrap/pagine/votanti.php
r472 r496 92 92 <tr> 93 93 <th scope="col">Sezione</th> 94 <?php if($noGenere==0) { ?> 94 95 <th scope="col">Voti Uomini</th> 95 96 <th scope="col">Voti Donne</th> 97 <?php } ?> 96 98 <th scope="col">Voti Espressi</th> 97 99 <th scope="col">Voti Validi</th> … … 146 148 $complessivi = $aff[0]['voti_complessivi']; 147 149 148 $percentualeuomini = ($uomini / $iscrittim[$keysez]) * 100;149 $percentualedonne = ($donne / $iscrittif[$keysez]) * 100;150 if($iscrittim[$keysez]) $percentualeuomini = ($uomini / $iscrittim[$keysez]) * 100; else $percentualeuomini=0; 151 if($iscrittif[$keysez]) $percentualedonne = ($donne / $iscrittif[$keysez]) * 100; else $percentualedonne=0; 150 152 $percentualenulli = ($nulli / $complessivi) * 100; 151 153 $percentualebianchi = ($bianchi / $complessivi) * 100; … … 154 156 $percentualeespressi = ($complessivi / ($iscrittim[$keysez]+$iscrittif[$keysez])) * 100; 155 157 156 $percentualetotuomini = ($totuomini / $totiscrittim) * 100;157 $percentualetotdonne = ($totdonne / $totiscrittif) * 100;158 if($totiscrittim) $percentualetotuomini = ($totuomini / $totiscrittim) * 100; else $percentualetotuomini=0; 159 if($totiscrittif) $percentualetotdonne = ($totdonne / $totiscrittif) * 100; else $percentualetotdonne=0; 158 160 $percentualetotnulli = ($totnulli / $totespressi) * 100; 159 161 $percentualetotbianchi = ($totbianchi / $totespressi) * 100; … … 164 166 <tr> 165 167 <th scope="row"><?php echo $keysez;?></th> 168 <?php if($noGenere==0) { ?> 166 169 <td> 167 170 <?php echo $uomini; ?><br> … … 172 175 <span class="percentuale"><?php echo number_format($percentualedonne, 2) . " %";?></span> 173 176 </td> 177 <?php } ?> 174 178 <td><?php echo $aff[0]['voti_complessivi'];?><br> 175 179 <span class="percentuale"><?php echo number_format($percentualeespressi, 2) . " %";?></span> … … 195 199 <tr class="primary-bg-c4 white-color align-middle text-end"> 196 200 <th scope="row">Totale</th> 201 <?php if($noGenere==0) { ?> 197 202 <th><?php echo $totuomini ?><br> 198 203 <span class="percentuale"><?php echo number_format($percentualetotuomini, 2) . " %";?></span> … … 201 206 <span class="percentuale"><?php echo number_format($percentualetotdonne, 2) . " %";?></span> 202 207 </th> 208 <?php } ?> 203 209 <th><?php echo $totespressi ?><br> 204 210 <span class="percentuale"><?php echo number_format($percentualetot, 2) . " %";?></span> -
trunk/client/variabili.php
r453 r496 12 12 $giorniviselday=29; # Massimo numero di giorni in cui viene visualizzata la sezione Election day 13 13 # (visualizza i pulsanti di accesso diretto alle singole consultazioni) 14 $inizioNoGenere=strtotime('2025/06/30'); # data di entrata in vigore della legge 72/2025 - abolizione liste di genere, formato 'YYYY/MM/DD' 15 14 16 15 17 #La variabile $arcon stabilisce l'ordine di visualizzazione delle consultazioni nel menu bootstrap -
trunk/client/versione.php
r495 r496 1 1 <?php 2 2 3 $versione = "3.0 rev 49 5";3 $versione = "3.0 rev 496"; 4 4 $version_number = $versione; 5 5 $datarel = "11 Ottobre 2025";
Note:
See TracChangeset
for help on using the changeset viewer.
