Changeset 133


Ignore:
Timestamp:
Jun 12, 2011, 5:53:25 PM (13 years ago)
Author:
roby
Message:

client: sistemazione orario affluenze per il tema tour

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/client/modules/Elezioni/grafici.php

    r132 r133  
    8888    $r_size2 = getimagesize("modules/Elezioni/images/barre/rightbar2.gif");
    8989                                                                                                                           // totali
    90                                                                                  
    91 if($tema=='tour') $andcond='data desc,orario desc limit 0,1'; else $andcond='data,orario';   
     90
     91                                                                                                                                                                                                                                        if($tema=='tour') $andcond='data desc,orario desc limit 0,1'; else $andcond='data,orario';   
    9292   
    93     $res = mysql_query("select orario,data  from ".$prefix."_ele_rilaff where id_cons_gen='$id_cons_gen' order by $andcond", $dbi);
     93    $res = mysql_query("select orario,data  from ".$prefix."_ele_voti_parziale where id_cons='$id_cons' order by $andcond", $dbi);
    9494        while(list($orario,$data) = mysql_fetch_row($res)) {
    9595                list ($ore,$minuti,$secondi)=explode(':',$orario);
     
    127127                        $perc=number_format($voti_t*100/$tot,2);
    128128                                                                                                                                                echo "<table class=\"td-80\"><tr class=\"bggray\">";
    129                         if ($genere==0){echo "<td>N.</td>";}
     129                        if ($genere==0){echo "<td>Referendum N.</td>";}
    130130                        echo "<td><b>"._VOTANTI."</b></td><td><b>"._PERCE."</b></td>";
    131131                        echo "<td><b>"._SEZIONI."</b></td>";
    132132                        echo "</tr>";
    133133                        echo "<tr class=\"bggray2\">";
    134                         if ($genere==0){echo "<td>$num_gruppo</td>";}
     134                        if ($genere==0){echo "<td><h2>$num_gruppo</h2></td>";}
    135135                        echo "<td>$voti_t</td><td>$perc %</td><td>$numero</td>
    136136                        </tr></table>";
Note: See TracChangeset for help on using the changeset viewer.