Changeset 188 for trunk/admin/modules/Elezioni
- Timestamp:
- Jun 11, 2013, 10:04:26 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/admin/modules/Elezioni/funzionidata.php
r139 r188 93 93 function isdisgiunto() 94 94 { 95 global $prefix,$dbi,$id_cons,$limite,$fascia,$ops; 95 global $prefix,$dbi,$id_cons,$limite,$id_comune,$ops; 96 $sqlcomu="select fascia from ".$prefix."_ele_comuni where id_comune='$id_comune'"; 97 $res = mysql_query($sqlcomu); 98 list($fascia)=mysql_fetch_row($res); 96 99 #voti di lista e di gruppo completamente disgiunti 97 100 $result = mysql_query("select infdisgiunto, supdisgiunto from ".$prefix."_ele_conf as t2 left join ".$prefix."_ele_cons_comune as t1 on t1.id_conf=t2.id_conf where id_cons = '$id_cons' ", $dbi); … … 99 102 if ($result) { 100 103 list($infdis,$supdis)=mysql_fetch_row($result); 101 if((($fascia>$limite and $supdis) or ($fascia< $limite and $infdis)))104 if((($fascia>$limite and $supdis) or ($fascia<=$limite and $infdis))) 102 105 $glsep='_lista'; 103 106 }
Note:
See TracChangeset
for help on using the changeset viewer.