Changeset 76 for trunk/client/modules/Elezioni
- Timestamp:
- Apr 6, 2010, 12:10:53 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/client/modules/Elezioni/funzioni.php
r75 r76 428 428 $temp2tot=0;$temp2=array();$temp3=array(); 429 429 while (list($key,$voti)= each($temp)) { 430 if($ voti)430 if($sevaltot>0){ 431 431 $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 } 435 436 } 436 437 if($temp2tot>100)
Note:
See TracChangeset
for help on using the changeset viewer.