Changeset 80 for trunk/admin/modules/Elezioni/ele_sede.php
- Timestamp:
- May 19, 2010, 8:16:43 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/admin/modules/Elezioni/ele_sede.php
r2 r80 59 59 global $bgcolor1, $bgcolor2, $prefix, $dbi, $offset, $min,$id_cons,$id_cons_gen,$do,$id_sede,$id_circ; 60 60 61 echo "<center><font class=\"title\"><br><b>"._SEDE."</b></font><br><br><table border=\"0\" width=\"100%\" >" 61 echo "<center><font class=\"title\"><br><b>"._SEDE."</b></font><br><br>"; 62 echo "<form name=\"sede2\" enctype=\"multipart/form-data\" action=\"admin.php\" method=\"post\">" 63 ."<input type=\"hidden\" name=\"op\" value=\"sede\">" 64 ."<input type=\"hidden\" name=\"id_cons_gen\" value=\"$id_cons_gen\">"; 65 echo "<table border=\"0\" width=\"100%\" ><tr>" 62 66 ."<td bgcolor=\"$bgcolor1\" align=\"center\"><b>"._CIRCO."</b></td>" 63 67 ."<td bgcolor=\"$bgcolor1\" align=\"center\"><b>"._INDIRIZZO."</b></td>" … … 68 72 ."<td bgcolor=\"$bgcolor1\" align=\"center\"><b>"._FUNZIONI."</b></td></tr>"; 69 73 70 echo "<form name=\"sede2\" enctype=\"multipart/form-data\" action=\"admin.php\" method=\"post\">"71 ."<input type=\"hidden\" name=\"op\" value=\"sede\">"72 ."<input type=\"hidden\" name=\"id_cons_gen\" value=\"$id_cons_gen\">";73 74 if ($id_sede){ 74 75 $res = mysql_query("SELECT * FROM ".$prefix."_ele_sede where id_sede='$id_sede'", $dbi); … … 78 79 $pro['responsabile']='';$pro['id_circ']=''; 79 80 } 80 echo "<tr><td align=\"right\"><select name=\"id_circ\">"; 81 echo "<tr>"; 82 echo "<td align=\"right\"><select name=\"id_circ\">"; 81 83 $res= mysql_query("SELECT id_circ,descrizione FROM ".$prefix."_ele_circoscrizione where id_cons='$id_cons' order by num_circ", $dbi); 82 84 while(list($id,$descr) = mysql_fetch_row($res)) { … … 90 92 echo "</select></td>"; 91 93 92 echo "<td><input type=\"text\" name=\"indir\" maxlength=\"40\"value=\"".$pro['indirizzo']."\"></td>"94 echo "<td><input type=\"text\" name=\"indir\" value=\"".$pro['indirizzo']."\"></td>" 93 95 ."<td><input type=\"file\" name=\"mappa\" size=\"12\" value=\"".$pro['filemappa']."\"></td>" 94 96 ."<td><input type=\"text\" name=\"tel1\" size=\"10\" value=\"".$pro['telefono1']."\"></td>" 95 97 ."<td><input type=\"text\" name=\"fax\" maxlength=\"12\" size=\"10\" value=\"".$pro['fax']."\"></td>" 96 98 97 ."<td><input type=\"text\" name=\"resp\" maxlength=\"60\" value=\"".$pro['responsabile']."\"></td>";99 ."<td><input type=\"text\" name=\"resp\" size=\"10\" value=\"".$pro['responsabile']."\"></td>"; 98 100 if ($do == "modify"){ 99 echo "< input type=\"hidden\" name=\"id_sede\" value=\"$id_sede\">"101 echo "<td align=\"center\"><input type=\"hidden\" name=\"id_sede\" value=\"$id_sede\">" 100 102 ."<input type=\"hidden\" name=\"do\" value=\"update\">"; 101 echo "< td align=\"center\"><input type=\"submit\" name=\"update\" value=\""._MODIFY."\"></td></tr>";103 echo "<input type=\"submit\" name=\"update\" value=\""._MODIFY."\"></td></tr>"; 102 104 } else { 103 echo "<input type=\"hidden\" name=\"do\" value=\"add\">"; 104 105 106 107 108 echo "<td align=\"center\"><input type=\"submit\" name=\"add\" value=\""._ADD."\"></td></tr>"; 105 echo "<td align=\"center\"><input type=\"hidden\" name=\"do\" value=\"add\"><input type=\"submit\" name=\"add\" value=\""._ADD."\"></td></tr>"; 109 106 } 110 echo "</form><tr></tr>";107 # echo "</table></form><table>"; 111 108 112 109 … … 131 128 ."</td><td align=\"center\" nowrap>[<a 132 129 href=\"admin.php?op=sede&do=modify&id_sede=$id_sede&id_circ=$id_circ&id_cons_gen=$id_cons_gen\"><img src=\"modules/Elezioni/images/edit.gif\" 133 border=\"0\" align=\" center\"> "._EDIT."</a>]";130 border=\"0\" align=\"middle\" alt=\"edit\"> "._EDIT."</a>]"; 134 131 if (!$numtemp) 135 echo "[<a href=\"admin.php?op=sede&do=delete&id_sede=$id_sede&id_circ=$id_circ&id_cons_gen=$id_cons_gen&indir=$indir\">"._DELETE." <img src=\"modules/Elezioni/images/delete.gif\" border=\"0\" align=\" center\"></a>]";132 echo "[<a href=\"admin.php?op=sede&do=delete&id_sede=$id_sede&id_circ=$id_circ&id_cons_gen=$id_cons_gen&indir=$indir\">"._DELETE." <img src=\"modules/Elezioni/images/delete.gif\" border=\"0\" align=\"middle\" alt=\"delete\"></a>]"; 136 133 else 137 echo "["._DELETE." <img src=\"modules/Elezioni/images/delete.gif\" border=\"0\" align=\" center\">]";134 echo "["._DELETE." <img src=\"modules/Elezioni/images/delete.gif\" border=\"0\" align=\"middle\" alt=\"delete\">]"; 138 135 echo "</td></tr>"; 139 136 } 140 echo "</table></ center>";137 echo "</table></form></center>"; 141 138 142 139 143 140 #'Pagina precedente' e 'Pagina Successiva' 141 if ($max>$offset){ 144 142 echo"<table align=\"center\" width=\"100%\" ><tr>"; 145 143 $prev=$min-$offset; … … 152 150 if ($next>=($offset-1)) { 153 151 if($next>=$max) $next = $max; 154 else {152 else { 155 153 156 154 echo "<td colspan=\"5\" align=\"center\" bgcolor=\"$bgcolor1\"><a href=\"admin.php?op=sede&id_sede=$id_sede&id_circ=$id_circ&id_cons_gen=$id_cons_gen&min=$next\">"; … … 159 157 } 160 158 echo "</tr></table><br>"; 161 159 } 162 160 } 163 161
Note:
See TracChangeset
for help on using the changeset viewer.