Changeset 189 for trunk/admin/modules/Elezioni/ele_comuni.php
- Timestamp:
- Mar 2, 2014, 4:49:30 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/admin/modules/Elezioni/ele_comuni.php
r184 r189 56 56 function all() { 57 57 global $bgcolor1, $bgcolor2, $prefix, $dbi,$id_cons,$desc,$indirizzo,$centralino,$fax,$email,$fasciatmp,$prov,$id_comune2,$id_cons_gen,$cerca; 58 58 if( !isset($id_conf) ) $id_conf=1; 59 59 echo "<SCRIPT type=\"text/javascript\">\n\n<!--\n"; 60 60 echo "function controllo_id() {\n"; … … 96 96 echo "<tr><td bgcolor=\"$bgcolor1\"><b>"._FASCIA."</b></td><td><select name=\"fascia\">"; 97 97 $descr2="<"; 98 $resopt1 = mysql_query("select id_fascia, abitanti from ".$prefix."_ele_fasce where data_fine='0000-00-00'order by id_fascia", $dbi);98 $resopt1 = mysql_query("select id_fascia, abitanti from ".$prefix."_ele_fasce where id_conf=1 order by id_fascia", $dbi); 99 99 while(list($id,$descr)=mysql_fetch_row($resopt1)){ 100 100 $selid= ($id == $fasciatmp) ? "selected":""; … … 149 149 echo "<td><b>$fax</b></td>"; 150 150 echo "<td><b>".substr($email,0,15)."...</b></td>"; 151 $resopt1 = mysql_query("select abitanti from ".$prefix."_ele_fasce where id_fascia=$fasciatmp and data_fine='0000-00-00'", $dbi);151 $resopt1 = mysql_query("select abitanti from ".$prefix."_ele_fasce where id_fascia=$fasciatmp and id_conf=$id_conf", $dbi); 152 152 list($tmpfascia)=mysql_fetch_row($resopt1); 153 153 $fasciaref=$fasciatmp-1; 154 $resopt1 = mysql_query("select abitanti from ".$prefix."_ele_fasce where id_fascia=$fasciaref and data_fine='0000-00-00'", $dbi);154 $resopt1 = mysql_query("select abitanti from ".$prefix."_ele_fasce where id_fascia=$fasciaref and id_conf=$id_conf", $dbi); 155 155 if(mysql_num_rows($resopt1)==0) $valfascia="< $tmpfascia"; 156 156 else
Note:
See TracChangeset
for help on using the changeset viewer.