Ignore:
Timestamp:
Feb 20, 2013, 5:15:10 PM (12 years ago)
Author:
roby
Message:

correzioni per numero sezioni scrutinate

File:
1 edited

Legend:

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

    r150 r177  
    218218        }else
    219219         */
    220         $res = mysql_query("select t1.*  from ".$prefix."_ele_voti_".$tab." as t1 left join ".$prefix."_ele_$tab as t2 on t1.id_gruppo=t2.id_gruppo where t1.id_cons='$id_cons' $circos group by t1.id_sez ",$dbi);
     220         if($genere==0)
     221                $res = mysql_query("select t1.*  from ".$prefix."_ele_voti_".$tab." as t1 left join ".$prefix."_ele_$tab as t2 on t1.id_gruppo=t2.id_gruppo where t1.id_cons='$id_cons' $circos group by t1.id_sez ",$dbi);
     222        else
     223                $res = mysql_query("select * from ".$prefix."_ele_sezioni where id_cons='$id_cons' and validi+nulli+bianchi+contestati>0", $dbi);
     224
    221225        if($res)
    222226                $numero=mysql_num_rows($res);
Note: See TracChangeset for help on using the changeset viewer.