Changeset 65 for trunk/client/modules/Elezioni/gruppo.php
- Timestamp:
- Mar 30, 2010, 5:25:30 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/client/modules/Elezioni/gruppo.php
r64 r65 508 508 $resvt = mysql_query("SELECT voti from ".$prefix."_ele_voti_$tab15 where id_cons='$id_cons'",$dbi); 509 509 list($votlt)=mysql_fetch_row($resvt); 510 $temp3=arrayperc($temp,$sevaltot); 510 511 while (list($key,$voti)= each($temp)) { 511 512 $percento="<b>$voti</b>"; 512 513 if ($perc=='true' and $voticompl) 513 514 { 514 $percento="<b>$voti<br /><span class=\"red\"><i>".number_format($voti*100/$sevaltot,2)." %</i></span></b>"; 515 # $valperc2=round($valperc,2); 516 $percento="<b>$voti<br /><span class=\"red\"><i>".$temp3[$key]." %</i></span></b>"; 515 517 } 516 518 $ar[2+$offsetsez-$minsez][$key]=$percento; … … 520 522 $key=$offset+1; 521 523 $tmp=array($sevaltot,$senultot,$sebiatot,$secontot,$sevnutot); 522 while(list($k,$voti)= each($tmp)) { 523 $percento="<b>$voti</b>"; 524 if ($perc=='true' and $voticompl) 525 { 526 $percento="<b>$voti<br /><span class=\"red\"><i>".number_format($voti*100/$voticompl,2)." %</i></span></b>"; 527 } 528 $ar[2+$offsetsez-$minsez][++$key]=$percento; 524 $temp3=arrayperc($tmp,$voticompl); 525 #foreach($temp3 as $key=>$val) echo "$key: $val<br>"; 526 while(list($k,$voti)= each($tmp)) { 527 528 if ($perc=='true' and $voticompl) 529 { 530 $valperc=number_format($voti*100/$voticompl,3); 531 $valperc=number_format($valperc,2); 532 $percento="<b>$voti<br /><span class=\"red\"><i>".$temp3[$k]." %</i></span></b>"; 533 } else $percento="<b>$voti</b>"; 534 $ar[2+$offsetsez-$minsez][++$key]=$percento; 529 535 530 536 }
Note:
See TracChangeset
for help on using the changeset viewer.