Ignore:
Timestamp:
Apr 6, 2010, 12:10:53 AM (14 years ago)
Author:
roby
Message:

admin - barra delle sezioni, tolta la riga con combo di scelta sezione, ritoccata funzione percentuali

File:
1 edited

Legend:

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

    r75 r76  
    428428                                        $temp2tot=0;$temp2=array();$temp3=array();
    429429                                        while (list($key,$voti)= each($temp)) {
    430                                                 if($voti)
     430                                                if($sevaltot>0){
    431431                                                        $temp2[$key]=(ceil($voti*10000/$sevaltot)-($voti*10000/$sevaltot));
    432                         $valperc=number_format($voti*100/$sevaltot,2);
    433                                                 $temp3[$key]=$valperc;
    434                                                 $temp2tot+=$valperc;
     432                                $valperc=number_format($voti*100/$sevaltot,2);
     433                                                        $temp3[$key]=$valperc;
     434                                                        $temp2tot+=$valperc;
     435                                                }
    435436                                        }
    436437                                        if($temp2tot>100)
Note: See TracChangeset for help on using the changeset viewer.