Changeset 201 for trunk/admin
- Timestamp:
- Apr 24, 2014, 3:44:20 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/admin/modules/Elezioni/ele_voti.php
r199 r201 519 519 $ele_lista=''; 520 520 if (($genere==4 or $genere==5) and !$votoc) { //liste a piu' candidati 521 if(($ fascia<=$limite) and !$id_lista) {521 if(($genere==5 and $fascia<=$limite) and !$id_lista) { //esclude il voto di lista per le comunali nei comuni sotto fascia limite 522 522 $result = mysql_query("SELECT id_lista from ".$prefix."_ele_lista where id_cons=$id_cons limit 0,1",$dbi); 523 523 list($id_lista)=mysql_fetch_row($result); … … 540 540 $result = mysql_query("SELECT sum(t1.voti) from ".$prefix."_ele_voti_candidati as t1 left join ".$prefix."_ele_candidati as t2 on (t1.id_cand=t2.id_cand) where t1.id_sez=$id_sez and t2.id_lista=$id_rif",$dbi); 541 541 list($votisezcand)=mysql_fetch_row($result); 542 if($fascia>$limite )542 if($fascia>$limite or $genere==4) 543 543 $result = mysql_query("SELECT sum(voti) from ".$prefix."_ele_voti_lista where id_sez='$id_sez' and id_lista='$id_rif'", $dbi); 544 544 else{
Note:
See TracChangeset
for help on using the changeset viewer.