Changeset 411 for trunk/client/modules


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/client/modules/Elezioni
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • 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);
Note: See TracChangeset for help on using the changeset viewer.