Changeset 82 for trunk/client/modules/Elezioni/affluenze.php
- Timestamp:
- Jun 4, 2010, 6:56:21 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/client/modules/Elezioni/affluenze.php
r71 r82 158 158 for ($i=$sez_da;$i<=$sez_a;$i++,$y++) { 159 159 # $ar[$i]['numsez']=$i; 160 161 $ar[$ i]['numsez']=$linka[$y]['num_sez'];162 $ar[$ i]['elettori']=number_format($linka[$y]['elettori'],0,',','.');160 $z=$linka[$y]['num_sez']; 161 $ar[$z]['numsez']=$linka[$y]['num_sez']; 162 $ar[$z]['elettori']=number_format($linka[$y]['elettori'],0,',','.'); 163 163 $tot_compl+=$linka[$y]['elettori']; 164 164 $tot_u+=$linka[$y]['maschi']; 165 165 $tot_d+=$linka[$y]['femmine']; 166 166 167 167 168 } 168 169 $ar[0][1]="<b>".number_format($tot_compl,0,',','.')."</b>"; … … 185 186 186 187 $ressomma = mysql_query("select t3.data,t3.orario,sum(t3.voti_complessivi),sum(t3.voti_uomini),sum(t3.voti_donne) from ".$prefix."_ele_voti_parziale as t3 left join ".$prefix."_ele_sezioni as t1 on t3.id_sez=t1.id_sez left join ".$prefix."_ele_sede as t2 on t1.id_sede=t2.id_sede where t3.id_cons='$id_cons' $circos group by t3.data,t3.orario,t3.id_gruppo order by t3.data,t3.orario",$dbi); 188 187 189 #die("select t3.data,t3.orario,sum(t3.voti_complessivi),sum(t3.voti_uomini),sum(t3.voti_donne) from ".$prefix."_ele_voti_parziale as t3 left join ".$prefix."_ele_sezioni as t1 on t3.id_sez=t1.id_sez left join ".$prefix."_ele_sede as t2 on t1.id_sede=t2.id_sede where t3.id_cons='$id_cons' $circos group by t3.data,t3.orario,t3.id_gruppo "); 188 190 $perc_u=array(); $perc_d=array(); $perc_c=array(); … … 250 252 if (intval(preg_match('/[1-9]/',$tot[$data1.$ora1]))>0) { 251 253 #foreach($ar[['num_sez'] as $i) 252 for ($i=$sez_da;$i<=$sez_a;$i++) 254 ########## 255 $resvoti = mysql_query("select t1.num_sez from ".$prefix."_ele_sezioni as t1 left join ".$prefix."_ele_sede as t2 on t1.id_sede=t2.id_sede where t2.id_cons='$id_cons' $circos $cond order by t1.num_sez ",$dbi); 256 257 ########### 258 # for ($i=$sez_da;$i<=$sez_a;$i++) 259 while (list($i)=mysql_fetch_row($resvoti)) 253 260 { 254 261 $ar[$i][$data1.$ora1]="<span style=\"color: rgb(255, 0, 0);\">non rilevata</span>"; … … 258 265 } 259 266 $resvoti = mysql_query("select t3.data,t3.orario,t1.num_sez,voti_uomini, voti_donne, voti_complessivi from ".$prefix."_ele_voti_parziale as t3 left join ".$prefix."_ele_sezioni as t1 on t3.id_sez=t1.id_sez left join ".$prefix."_ele_sede as t2 on t1.id_sede=t2.id_sede where t3.id_cons='$id_cons' $circos $cond order by data,orario,t1.num_sez ",$dbi); 267 268 260 269 # $resvoti = mysql_query("SELECT data,orario,t2.num_sez,voti_uomini, voti_donne, voti_complessivi from ".$prefix."_ele_voti_parziale as t1, ".$prefix."_ele_sezioni as t2 where t1.id_cons=$id_cons and t1.id_sez=t2.id_sez $cond order by data,orario,t2.num_sez", $dbi); 261 270 $ud=0;
Note:
See TracChangeset
for help on using the changeset viewer.