Changeset 64 for trunk/admin


Ignore:
Timestamp:
Mar 30, 2010, 11:47:58 AM (15 years ago)
Author:
roby
Message:

icorretto calcolo percentuali in visualizzazione riepilogo voti (da completare con arrotondamento percentuali) + vari aggiustamenti

File:
1 edited

Legend:

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

    r62 r64  
    8585        $ar['perc'][1]=" ";
    8686//      $ar['riga2'][1]="<hr>";
     87                $resuo = mysql_query("SELECT orario,data FROM ".$prefix."_ele_rilaff where id_cons_gen=$id_cons_gen order by data desc,orario desc limit 0,1", $dbi);
     88                list($ultora,$ultdata)=mysql_fetch_row($resuo);
     89
    8790        $resril = mysql_query("SELECT data,orario FROM ".$prefix."_ele_rilaff where id_cons_gen='$id_cons_gen' order by data,orario", $dbi);
    8891        $num_ril= mysql_num_rows($resril);  //numero delle rilevazioni previste
     
    9295        while (list($data,$ora,$somma,$votiu,$votid) = mysql_fetch_row($ressomma)) {
    9396                $perc_u='';$perc_d='';$perc_c='';
    94                 if($votiu or $votid)
     97#               if($votiu or $votid)
     98                if(($data==$ultdata) and ($ora==$ultora))
    9599                {
    96100                        $tot[$data.$ora]="\n<table width=\"100%\"><tr align=\"center\"><td width=\"30%\"><b>".number_format($votiu,0,',','.')."</b></td><td width=\"30%\"><b>".number_format($votid,0,',','.')."</b></td><td><b>".number_format($somma,0,',','.')."</b></td></tr></table>\n";
Note: See TracChangeset for help on using the changeset viewer.