Changeset 496 for trunk


Ignore:
Timestamp:
Oct 11, 2025, 1:08:17 PM (2 months ago)
Author:
roby
Message:
  • ADMIN

-- Correzione nella schedo di spoglio -> gruppi per adeguamento a legge 72/2025

  • CLIENT

-- Adeguamento del client - tema bootstrap alla legge 72/2025

Location:
trunk
Files:
9 edited

Legend:

Unmodified
Added
Removed
  • trunk/admin/modules/Elezioni/ele_spoglio.php

    r495 r496  
    789789
    790790function 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;
    792792////////////////////////////////////////////
    793793// da qua va la sezione per le preferenze ai gruppi
     
    823823
    824824    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>";
    828832        echo "</table>";
    829833    }
  • trunk/admin/versione.php

    r495 r496  
    11<?php
    22
    3 $versione = "3.0 rev 495";
     3$versione = "3.0 rev 496";
    44$version_number = $versione;
    55$datarel = "11 Ottobre 2025";
  • trunk/client/temi/bootstrap/index.php

    r462 r496  
    11<?php
    22// dati per top header
    3 global $dbi,$prefix,$id_comune,$id_cons_gen,$id_cons,$circo,$idcirc,$op;
     3global $dbi,$prefix,$id_comune,$id_cons_gen,$id_cons,$circo,$idcirc,$op,$inizioNoGenere,$noGenere;
    44include(dirname(__FILE__).'/query.php');
    55if(isset($_GET["id_cons_gen"])) $idcurcons=$_GET["id_cons_gen"]; else $idcurcons='';
     
    5252$Consultazione=$row[0][1];
    5353$datainizio=$row[0][2];
     54if(strtotime($datainizio)>$inizioNoGenere) $noGenere=1; else $noGenere=0;
    5455$tipo_cons=$row[0][4];
    5556#$intro seleziona la pagina da caricare: 1) listaecandidati - 4) referendum
  • trunk/client/temi/bootstrap/pagine/affluenza.php

    r473 r496  
    159159                                <th class="primary-bg-c1" scope="col">Sezione</th>
    160160                                <th class="primary-bg-c6" scope="col">Iscritti nella sezione</th>
     161                                <?php if($noGenere==0) { ?>
    161162                                <th class="primary-bg-c6" scope="col">Uomini</th>
    162163                                <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>
    164166                        </tr>
    165167                </thead>
     
    197199                        <th scope="row"><?php echo $val['num_sez'];?></th>
    198200                        <td><?php echo $val['elettori'];?></td>
     201                <?php if($noGenere==0) { ?>
    199202                        <td><?php echo $aff[0]['voti_uomini'];?><br>
    200203                                                <span class="percentuale"><?php echo number_format($percentualeuomini, 2) . " %";?></span>
     
    203206                                                <span class="percentuale"><?php echo number_format($percentualedonne, 2) . " %";?></span>
    204207                        </td>
     208                <?php } ?>     
    205209                        <td><?php echo $aff[0]['voti_complessivi'];?><br>
    206210                                                <span class="percentuale"><?php echo number_format($percentualesez, 2) . " %";?></span>
     
    215219        <th scope="row">Totale</th>
    216220                <th><?php echo $totelettori;?></th>
     221        <?php if($noGenere==0) { ?>
    217222        <th><?php echo $totuomini;?><br>
    218223                                                <span class="percentuale"><?php echo number_format($percentualetotuomini, 2) . " %";?></span>
     
    221226                                                <span class="percentuale"><?php echo number_format($percentualetotdonne, 2) . " %";?></span>
    222227                </th>
     228        <?php } ?>     
    223229        <th><?php echo $totcomplessivi;?><br>
    224230                                                <span class="percentuale"><?php echo number_format($percentualetot, 2) . " %";?></span>
  • trunk/client/temi/bootstrap/pagine/datigenerali.php

    r472 r496  
    1717                                <tr class="title-content">
    1818                                        <th class="primary-bg-c11" scope="col">Aventi Diritto</th>
     19                                <?php if($noGenere==0) { ?>
    1920                                        <th class="primary-bg-c11" scope="col">Maschi</th>
    2021                                        <th class="primary-bg-c11" scope="col">Femmine</th>
     22                                <?php } ?>
    2123                                        <?php if($row[3]>1){?>
    2224                                                <th class="primary-bg-c11" scope="col">Circoscrizioni</th>
     
    3840                                <tr class="text-end">
    3941                                        <td><?php echo $row[0];?></td>
     42                                <?php if($noGenere==0) { ?>
    4043                                        <td><?php echo $row[1];?></td>
    4144                                        <td><?php echo $row[2];?></td>
     45                                <?php } ?>
    4246                                        <?php if($row[3]>1){?>
    4347                                                <td><?php echo $row[3];?></td>
  • trunk/client/temi/bootstrap/pagine/datigeneralisezioni.php

    r469 r496  
    2424                        <tr class="title-content">
    2525                                <th class="primary-bg-c11" scope="col">Aventi Diritto</th>
     26                        <?php if($noGenere==0) { ?>
    2627                                <th class="primary-bg-c11" scope="col">Maschi</th>
    2728                                <th class="primary-bg-c11" scope="col">Femmine</th>
     29                        <?php } ?>     
    2830                                <?php if($row[3]>1){?>
    2931                                        <th class="primary-bg-c11" scope="col">Circoscrizioni</th>
     
    4547                        <tr class="text-end">
    4648                                <td><?php echo $row[0];?></td>
     49                        <?php if($noGenere==0) { ?>
    4750                                <td><?php echo $row[1];?></td>
    4851                                <td><?php echo $row[2];?></td>
     52                        <?php } ?>
    4953                                <?php if($row[3]>1){?>
    5054                                        <td><?php echo $row[3];?></td>
     
    140144                                 <tr>
    141145                                        <th class="primary-bg-c6" scope="col">Sezione</th>
     146                                <?php if($noGenere==0) { ?>
    142147                                        <th class="primary-bg-c6" scope="col">Maschi</th>
    143148                                        <th class="primary-bg-c6" scope="col">Femmine</th>
     149                                <?php } ?>     
    144150                                        <th class="primary-bg-c6" scope="col">Totali aventi Diritto</th>
    145151                                 </tr>
     
    156162                                        <tr class="text-end">
    157163                                                <td><?php echo $val[3]; ?></td>
     164                                        <?php if($noGenere==0) { ?>
    158165                                                <td><?php echo $val[4]; ?></td>
    159166                                                <td><?php echo $val[5]; ?></td>
     167                                        <?php } ?>
    160168                                                <td><?php echo $val[4]+$val[5]; ?></td>
    161169                                        </tr>
     
    166174                                        <tr class="primary-bg-c4 white-color align-middle text-end">
    167175                                                <th scope="row">Totale</th>
     176                                        <?php if($noGenere==0) { ?>
    168177                                                <th scope="col"><?php echo $totm; ?></th>
    169178                                                <th scope="col"><?php echo $totf; ?></th>
     179                                        <?php } ?>
    170180                                                <th scope="col"><?php echo $tott; ?></th>
    171181                                        </tr>
  • trunk/client/temi/bootstrap/pagine/votanti.php

    r472 r496  
    9292                        <tr>
    9393                                <th scope="col">Sezione</th>
     94                                <?php if($noGenere==0) { ?>
    9495                                <th scope="col">Voti Uomini</th>
    9596                                <th scope="col">Voti Donne</th>
     97                                <?php } ?>
    9698                                <th scope="col">Voti Espressi</th>
    9799                                <th scope="col">Voti Validi</th>
     
    146148                                $complessivi = $aff[0]['voti_complessivi'];
    147149                               
    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;     
    150152                                $percentualenulli = ($nulli / $complessivi) * 100;
    151153                                $percentualebianchi = ($bianchi / $complessivi) * 100;
     
    154156                                $percentualeespressi = ($complessivi / ($iscrittim[$keysez]+$iscrittif[$keysez])) * 100;
    155157                               
    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;
    158160                                $percentualetotnulli = ($totnulli / $totespressi) * 100;
    159161                                $percentualetotbianchi = ($totbianchi / $totespressi) * 100;
     
    164166                                <tr>
    165167                                        <th scope="row"><?php echo $keysez;?></th>
     168                                <?php if($noGenere==0) { ?>
    166169                                        <td>
    167170                                                <?php echo $uomini; ?><br>
     
    172175                                                <span class="percentuale"><?php echo number_format($percentualedonne, 2) . " %";?></span>
    173176                                        </td>
     177                                <?php } ?>     
    174178                                        <td><?php echo $aff[0]['voti_complessivi'];?><br>
    175179                                                <span class="percentuale"><?php echo number_format($percentualeespressi, 2) . " %";?></span>
     
    195199                        <tr class="primary-bg-c4 white-color align-middle text-end">
    196200                                <th scope="row">Totale</th>
     201                        <?php if($noGenere==0) { ?>
    197202                                <th><?php echo $totuomini ?><br>
    198203                                                <span class="percentuale"><?php echo number_format($percentualetotuomini, 2) . " %";?></span>
     
    201206                                                <span class="percentuale"><?php echo number_format($percentualetotdonne, 2) . " %";?></span>
    202207                                </th>
     208                        <?php } ?>     
    203209                                <th><?php echo $totespressi ?><br>
    204210                                                <span class="percentuale"><?php echo number_format($percentualetot, 2) . " %";?></span>
  • trunk/client/variabili.php

    r453 r496  
    1212$giorniviselday=29;                     # Massimo numero di giorni in cui viene visualizzata la sezione Election day
    1313                                                        # (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
    1416
    1517#La variabile $arcon stabilisce l'ordine di visualizzazione delle consultazioni nel menu bootstrap
  • trunk/client/versione.php

    r495 r496  
    11<?php
    22
    3 $versione = "3.0 rev 495";
     3$versione = "3.0 rev 496";
    44$version_number = $versione;
    55$datarel = "11 Ottobre 2025";
Note: See TracChangeset for help on using the changeset viewer.