Changeset 411 for trunk


Ignore:
Timestamp:
Apr 6, 2024, 12:09:37 PM (7 months ago)
Author:
roby
Message:
  • ADMIN

-- aggiornamento del campo num_cand nella tabella _ele_voti_candidati

  • CLIENT

-- modifica alla stampa del pdf per il riepilogo affluenze

Location:
trunk
Files:
5 edited

Legend:

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

    r409 r411  
    349349echo "<br><br>".++$num.") Aggiornamento della tabella _ele_conf per la nuova gestione della L.R. Sicilia";
    350350$sql="UPDATE `".$prefix."_ele_conf` SET `inffisso` = '1' WHERE `id_conf` = 4;";
     351$ret=aggiorna($sql,$dbi,'',$num);
     352
     353echo "<br><br>".++$num.") Aggiornamento del campo numero candidato della tabella _ele_voti_candidati per le consultazioni precedenti all'aggiunta del campo stesso";
     354$sql="update `".$prefix."_ele_voti_candidati` as t1 left join `".$prefix."_ele_candidati` as t2 on t1.id_cand=t2.id_cand set t1.num_cand=t2.num_cand where t1.num_cand=0 and t2.num_cand>0;";
    351355$ret=aggiorna($sql,$dbi,'',$num);
    352356
  • trunk/admin/versione.php

    r410 r411  
    11<?php
    22
    3 $versione = "3.0 rev 410";
     3$versione = "3.0 rev 411";
    44$version_number = $versione;
    5 $datarel = "06 marzo 2024";
     5$datarel = "06 aprile 2024";
    66$version = "Eleonline $version_number (<i>Data Release: $datarel</i>)";
    77
  • trunk/client/modules/Elezioni/affluenze-inc.php

    r407 r411  
    4848        "._RISULTA." "._CONSULTA."<br/ >";
    4949        $datipdf .= "$descr_cons<br />"._DISCLAIMER."
    50         <br /><b>"._DETTAGLIO."  "._AFFLUENZE."</b>";
     50        <br /><hr/><b>"._DETTAGLIO."  "._AFFLUENZE."</b>";
    5151        if($xls!=1) $datipdf .=  "</td></tr></table>";
    5252        $datipdf .="</div>";
     
    179179        $num_ril= $resril->rowCount();  //numero delle rilevazioni previste
    180180    if(!isset($html)) $html='';
    181         if($csv && $pdf) $tabpdf="style=\"width:45%; margin:0px auto;text-align:center;\"";
     181        if($csv && $pdf) $tabpdf="<col width=\"50\">";
    182182        else $tabpdf='';
    183         $html .= "<table class=\"td-100\" $tabpdf>";
     183        $html .= "<table class=\"td-100\"> $tabpdf";
    184184        $html .= "<tr class=\"bggray\"><td>"._SEZIONI."</td><td>"._ISCR_SEZ."</td>";
    185185        $sql="SELECT orario,data FROM ".$prefix."_ele_rilaff where id_cons_gen=$id_cons_gen order by data desc,orario desc limit 0,1";
     
    198198#               if(($data==$ultdata) and ($ora==$ultora))
    199199                {
    200                         $tot[$data.$ora]="<table style=\"width:100%;border:none;\"><tr class=\"bggray2\"><td style=\"width:33%;text-align:center;border:none;max-width:50px;\">
    201                         <b>".number_format($votiu,0,',','.')."</b></td><td style=\"width:33%;text-align:center;border:none;max-width:50px;\">
    202                         <b>".number_format($votid,0,',','.')."</b></td><td style=\"width:33%;text-align:center;border:none;max-width:50px;\">
     200                        $tot[$data.$ora]="<table style=\"width:100%;border:none;\"><tr class=\"bggray2\"><td style=\"width:30%;text-align:center;border:none;max-width:50px;\">
     201                        <b>".number_format($votiu,0,',','.')."</b></td><td style=\"width:30%;text-align:center;border:none;max-width:50px;\">
     202                        <b>".number_format($votid,0,',','.')."</b></td><td style=\"width:40%;text-align:center;border:none;max-width:80px;\">
    203203                        <b>".number_format($somma,0,',','.')."</b></td>
    204204                        </tr></table>";
     
    229229                $html .= "<br /><table style=\"width:100%;border:none;\"><tr class=\"bggray\">";
    230230                if ((isset($perc_u[$data1.$ora1]) or isset($perc_d[$data1.$ora1])) and ($perc_u[$data1.$ora1]+$perc_d[$data1.$ora1])>0)
    231                         $html .= "<th style=\"width:33%;max-width:100px;text-align:center;border:none;\">"._UOMINI."</th><th style=\"width:33%;max-width:50px;text-align:center;border:none;\">"._DONNE."</th><th style=\"width:33%;max-width:150px;text-align:center;border:none;\">"._COMPLESSIVI."</th></tr></table></td>";
     231                        $html .= "<th style=\"width:28%;max-width:100px;text-align:center;border:none;\">"._UOMINI."</th><th style=\"width:28%;max-width:50px;text-align:center;border:none;\">"._DONNE."</th><th style=\"width:44%;max-width:150px;text-align:center;border:none;\">"._COMPLESSIVI."</th></tr></table></td>";
    232232
    233233                else $html .= "<th style=\"width:150px;text-align:center;border:none;\">"._COMPLESSIVI."</th></tr></table></td>";
  • trunk/client/modules/Elezioni/affluenze.php

    r407 r411  
    3434        $nomefile="$descr_cons affluenze.pdf"; 
    3535        $stampa ="$datipdf $html $style";
    36 #       if($vismf)             
     36        if($vismf)             
    3737                $html2pdf = new Html2Pdf('L','A4', 'it');
    38 #       else
    39 #               $html2pdf = new Html2Pdf('P','A4', 'it');
     38        else
     39                $html2pdf = new Html2Pdf('P','A4', 'it');
    4040        $html2pdf->WriteHTML($stampa, isset($_GET['vuehtml']));
    4141        $html2pdf->Output($nomefile);
  • trunk/client/versione.php

    r410 r411  
    11<?php
    22
    3 $versione = "3.0 rev 410";
     3$versione = "3.0 rev 411";
    44$version_number = $versione;
    5 $datarel = "06 marzo 2024";
     5$datarel = "06 aprile 2024";
    66$version = "Eleonline $version_number (<i>Data Release: $datarel</i>)";
    77
Note: See TracChangeset for help on using the changeset viewer.