Changeset 102 for trunk/client/modules/Elezioni
- Timestamp:
- May 26, 2011, 2:13:45 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/client/modules/Elezioni/gruppo.php
r85 r102 484 484 if ($res_voti) 485 485 { 486 if ($perc=='true'){ 487 while (list($num_circ,$desc_circ,$num_cand,$nome,$voti,$sevalidi,$senulli,$sebianchi,$secontestati,$sevonulli) = mysql_fetch_row($res_voti)) 488 if ($num_cand>=$min and $num_cand<=$offset){ 486 while (list($num_circ,$desc_circ,$num_cand,$nome,$voti,$sevalidi,$senulli,$sebianchi,$secontestati,$sevonulli) = mysql_fetch_row($res_voti)){ 489 487 $z=array_search($num_circ, $pos); 490 if($num_circ>=$minpos and $num_circ <=$maxpos){491 488 $valar[($z)][$num_cand]=$voti; 492 }493 489 } 494 490 foreach ($valar as $key=>$val){ … … 497 493 498 494 mysql_data_seek($res_voti,0); 499 }500 495 while (list($num_circ,$desc_circ,$num_cand,$nome,$voti,$sevalidi,$senulli,$sebianchi,$secontestati,$sevonulli) = mysql_fetch_row($res_voti)){ 501 496 if ($num_cand>=$min and $num_cand<=$offset){ … … 515 510 516 511 } 512 if (!isset($tempar[$num_cand])) $tempar[$num_cand]=0; 513 $tempar[$num_cand]+=$voti; 517 514 if ($visvot!='cand'){ 518 515 $posvoti=($offset); … … 551 548 $resvt = mysql_query("SELECT voti from ".$prefix."_ele_voti_$tab15 where id_cons='$id_cons'",$dbi); 552 549 list($votlt)=mysql_fetch_row($resvt); 553 $temp3=arrayperc($temp ,$sevaltot);550 $temp3=arrayperc($tempar,$sevaltot); 554 551 while (list($key,$voti)= each($temp)) { 555 552 if ($perc=='true' and $voticompl)
Note:
See TracChangeset
for help on using the changeset viewer.