Changeset 80 for trunk/admin/modules/Elezioni/ele_sezione.php
- Timestamp:
- May 19, 2010, 8:16:43 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/admin/modules/Elezioni/ele_sezione.php
r2 r80 45 45 function all() { 46 46 global $admin, $bgcolor1, $bgcolor2, $prefix, $dbi, $offset, $min, $id_cons,$id_cons_gen; 47 OpenTable();47 # OpenTable(); 48 48 $y=0; 49 echo "<center><font class=\"title\"><a NAME=riga><b>"._SEZIONE."</b></a></font><br><br><table border=\"0\" width=\"95%\"> "49 echo "<center><font class=\"title\"><a NAME=riga><b>"._SEZIONE."</b></a></font><br><br><table border=\"0\" width=\"95%\"><tr>" 50 50 ."<td bgcolor=\"$bgcolor1\" align=\"center\"><b>"._NUM."</b></td>" 51 51 ."<td bgcolor=\"$bgcolor1\" align=\"center\"><b>"._INDIRIZZO."</b></td>" … … 56 56 $res = mysql_query("SELECT * FROM ".$prefix."_ele_sezioni where id_cons='$id_cons' ", $dbi); 57 57 $max = mysql_num_rows($res); 58 echo "<tr align=\"center\"><form name=\"sezi\" action=\"admin.php\">" 59 ."<input type=\"hidden\" name=\"op\" value=\"sezione\">" 60 ."<input type=\"hidden\" name=\"do\" value=\"add\">"; 58 61 59 62 $nuova= $max+1; 60 63 $res = mysql_query("SELECT id_sede FROM ".$prefix."_ele_sezioni where id_cons='$id_cons' and num_sez='$max' ", $dbi); 61 64 list($id_sede_old) = mysql_fetch_row($res); 62 echo "<form name=\"sezi\" action=\"admin.php\">" 63 ."<input type=\"hidden\" name=\"op\" value=\"sezione\">" 64 ."<input type=\"hidden\" name=\"do\" value=\"add\">"; 65 66 echo "<tr align=\"center\"><td><input type=\"text\" name=\"num_sez\" value=\"$nuova\" size=\"5\"></td>"; 65 66 echo "<td><input type=\"text\" name=\"num_sez\" value=\"$nuova\" size=\"5\"></td>"; 67 67 68 68 echo "<td><select name=\"id_sede\">"; … … 84 84 echo "<td><input type=\"text\" name=\"femmine\" size=\"4\"></td>"; 85 85 86 echo "< input type=\"hidden\" name=\"id_cons_gen\" value=\"$id_cons_gen\">";86 echo "<td><input type=\"hidden\" name=\"id_cons_gen\" value=\"$id_cons_gen\">"; 87 87 echo "<input type=\"hidden\" name=\"min\" value=\"$min\">" 88 ."< td></td><td><input type=\"submit\" name=\"add\" value=\""._ADD."\"></td></tr>"88 ."</td><td><input type=\"submit\" name=\"add\" value=\""._ADD."\"></td></tr>" 89 89 ."</form>"; 90 90 … … 109 109 ."<input type=\"hidden\" name=\"num_sez\" value=\"$num_sez\">"; 110 110 111 echo "<tr bgcolor=\"$bgcolor1\"><td align=\"right\" ><b>$num_sez</b></td>";112 echo "<td align=\"right\" ><select name=\"id_sede\">";111 echo "<tr bgcolor=\"$bgcolor1\"><td align=\"right\" size=\"90\"><b>$num_sez</b></td>"; 112 echo "<td align=\"right\" size=\"120\"><select name=\"id_sede\">"; 113 113 $res= mysql_query("SELECT id_sede,indirizzo FROM ".$prefix."_ele_sede where id_cons='$id_cons' order by indirizzo", $dbi); 114 114 while(list($id,$indir) = mysql_fetch_row($res)) { … … 159 159 } 160 160 echo "</tr></table><br>"; 161 CloseTable();162 include("footer.php");161 #CloseTable(); 162 #include("footer.php"); 163 163 } 164 164 … … 210 210 ele(); 211 211 all(); 212 echo"</td></tr></table>"; 212 213 include ("footer.php"); 213 214
Note:
See TracChangeset
for help on using the changeset viewer.