Changeset 102 for trunk


Ignore:
Timestamp:
May 26, 2011, 2:13:45 PM (13 years ago)
Author:
roby
Message:
  • client: corretta la creazione della tabella dei voti quando la visualizzazione è parziale
File:
1 edited

Legend:

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

    r85 r102  
    484484                        if ($res_voti)
    485485                        {
    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)){
    489487                                                $z=array_search($num_circ, $pos);
    490                                                 if($num_circ>=$minpos and $num_circ <=$maxpos){
    491488                                                                $valar[($z)][$num_cand]=$voti;
    492                                                 }
    493489                                        }
    494490                                        foreach ($valar as $key=>$val){
     
    497493
    498494                                         mysql_data_seek($res_voti,0);                 
    499                                 }
    500495                        while (list($num_circ,$desc_circ,$num_cand,$nome,$voti,$sevalidi,$senulli,$sebianchi,$secontestati,$sevonulli) = mysql_fetch_row($res_voti)){
    501496                                if ($num_cand>=$min and $num_cand<=$offset){
     
    515510                                       
    516511                                }
     512                                if (!isset($tempar[$num_cand])) $tempar[$num_cand]=0;
     513                                $tempar[$num_cand]+=$voti;
    517514                                if ($visvot!='cand'){
    518515                                $posvoti=($offset);
     
    551548                                        $resvt = mysql_query("SELECT voti from ".$prefix."_ele_voti_$tab15 where id_cons='$id_cons'",$dbi);
    552549                                        list($votlt)=mysql_fetch_row($resvt);
    553                                         $temp3=arrayperc($temp,$sevaltot);
     550                                        $temp3=arrayperc($tempar,$sevaltot);
    554551                                        while (list($key,$voti)= each($temp)) {
    555552                                                if ($perc=='true' and $voticompl)
Note: See TracChangeset for help on using the changeset viewer.