Changeset 184 for trunk/admin/modules/Elezioni
- Timestamp:
- May 19, 2013, 8:00:31 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/admin/modules/Elezioni/ele_comuni.php
r125 r184 94 94 echo "<tr><td bgcolor=\"$bgcolor1\"><b>"._INDIRIZZO."</b></td><td><input name=\"indirizzo\" value=\"".stripslashes($indirizzo)."\"></td>"; 95 95 echo "<td bgcolor=\"$bgcolor1\"><b>"._CENTRALINO."</b></td><td><input name=\"centralino\" value=\"$centralino\" size=\"6\"></td></tr>"; 96 echo "<tr><td bgcolor=\"$bgcolor1\"><b>"._FASCIA."</b></td><td><select name=\"fascia\">" 97 ."<option value=\"1\"".$sel[1].">0-3.000"98 ."<option value=\"2\"".$sel[2].">3.001-10.000"99 ."<option value=\"3\"".$sel[3].">10.001-15.000"100 ."<option value=\"4\"".$sel[4].">15.001-30.000"101 ."<option value=\"5\"".$sel[5].">30.001-100.000"102 ."<option value=\"6\"".$sel[6].">100.001-250.000"103 ."<option value=\"7\"".$sel[7].">250.001-500.000"104 ."<option value=\"8\"".$sel[8].">500.001-1.000.000"105 ."<option value=\"9\"".$sel[9]."> >1.000.000";106 echo "</select></td>"; 96 echo "<tr><td bgcolor=\"$bgcolor1\"><b>"._FASCIA."</b></td><td><select name=\"fascia\">"; 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); 99 while(list($id,$descr)=mysql_fetch_row($resopt1)){ 100 $selid= ($id == $fasciatmp) ? "selected":""; 101 102 echo "<option value=\"$id\" $selid>$descr2 $descr"; 103 $descr2="$descr -"; 104 } 105 echo "</select></td>"; 106 107 107 echo "<td bgcolor=\"$bgcolor1\"><b>"._FAX."</b></td><td><input name=\"fax\" value=\"$fax\" size=\"6\"></td></tr>"; 108 108 echo "<tr><td bgcolor=\"$bgcolor1\"><b>"._EMAIL."</b></td><td><input name=\"email\" value=\"$email\"></td>"; … … 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); 152 list($tmpfascia)=mysql_fetch_row($resopt1); 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); 155 if(mysql_num_rows($resopt1)==0) $valfascia="< $tmpfascia"; 156 else 157 { 158 list($tmp2fascia)=mysql_fetch_row($resopt1); 159 $valfascia="$tmp2fascia - $tmpfascia"; 160 } 161 162 /* 151 163 switch ($fasciatmp) { 152 164 case '0': $valfascia="-"; break; … … 160 172 case '8':$valfascia="500.001-1000.000"; break; 161 173 case '9': $valfascia=" >1.000.000"; break; 162 } 174 } */ 163 175 echo "<td><b>$valfascia</b></td>"; 164 176 echo "<input type=\"hidden\" name=\"ok\" value=0>";
Note:
See TracChangeset
for help on using the changeset viewer.