Changeset 458


Ignore:
Timestamp:
Apr 7, 2025, 7:21:24 PM (8 months ago)
Author:
roby
Message:
 
Location:
trunk
Files:
7 edited

Legend:

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

    r454 r458  
    239239                        elseif(($tipo_cons>5 and $tipo_cons<20) and $tipo_cons!=9 and $tipo_cons!=12 and $tipo_cons!=13 and $tipo_cons!=17 )
    240240                                echo "<a href=\"admin.php?op=importadait&amp;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&amp;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&amp;id_cons_gen=$id_cons_gen\">$bullet Assegna Seggi</a><br>";
     264                                }
     265                        }
    243266                        echo "<a href=\"admin.php?op=operatori&amp;id_cons_gen=$id_cons_gen\">$bullet"._OPERATORI."</a> <br><a href=\"admin.php?op=permessi&amp;id_cons_gen=$id_cons_gen\">$bullet"._PERMESSI."</a> <br>";
    244267                }
  • trunk/admin/versione.php

    r457 r458  
    11<?php
    22
    3 $versione = "3.0 rev 457";
     3$versione = "3.0 rev 458";
    44$version_number = $versione;
    55$datarel = "07 aprile 2025";
  • trunk/client/modules/Elezioni/affluenze-inc.php

    r425 r458  
    3737        list($descr_com) = $res->fetch(PDO::FETCH_NUM);
    3838        $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;\">";
    4040        $siteistat=$id_comune;
    4141        # salva sull'hardisk lo stemma del comune
     
    4949        $datipdf .= "$descr_cons<br />"._DISCLAIMER."
    5050        <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\">
    5555        <!--
    5656
     
    101101        -->
    102102        </style>";
     103}
    103104}
    104105        // referendum
     
    195196                $perc_d[$data.$ora]=0;
    196197                $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))
    199200                {
    200201                        $tot[$data.$ora]="<table style=\"width:100%;border:none;\"><tr class=\"bggray2\"><td style=\"width:30%;text-align:center;border:none;max-width:50px;\">
     
    235236                if (isset($tot[$data1.$ora1])){
    236237        ##              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])){
    238239                                $ar['perc'][$data1.$ora1]="<table style=\"width:100%;border:none;\"><tr class=\"bggray2\">
    239240                                <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>
     
    271272        $ud=0;
    272273        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)
    274275                        $ar[$numsez][$data.$ora]="<table style=\"width:100%;border:none;\"><tr>
    275276                        <td style=\"width:33%;text-align:center;border:none;max-width:50px;\">$uomini</td>
     
    318319        $style .= "<br/>  ";         
    319320}       
    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} */
    321346?>
  • trunk/client/temi/bootstrap/css/altricss.css

    r431 r458  
    130130  width: 100%;
    131131}
     132.avatar.simbolo2 {
     133  max-width: 60px !important;
     134  height: auto;
     135  width: 100%;
     136  padding: 0;
     137}
    132138.title-totali {
    133139  width: 100%;
  • trunk/client/temi/bootstrap/pagine/grafici/affluenza.php

    r457 r458  
    6363    }
    6464</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>
    6572<div class="container">
    6673    <div class="row text-center">
  • trunk/client/temi/bootstrap/pagine/grafici/affluenza_referendum.php

    r457 r458  
    7070    }
    7171</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
    7285<div class="container">
    7386    <div class="row text-center">
  • trunk/client/versione.php

    r457 r458  
    11<?php
    2 $versione = "3.0 rev 457";
     2$versione = "3.0 rev 458";
    33$version_number = $versione;
    44$datarel = "07 aprile 2025";
Note: See TracChangeset for help on using the changeset viewer.