Changeset 80 for trunk/admin/modules/Elezioni/ele_circo.php
- Timestamp:
- May 19, 2010, 8:16:43 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/admin/modules/Elezioni/ele_circo.php
r2 r80 46 46 global $admin, $bgcolor1, $bgcolor2, $prefix, $dbi, $offset, $min, $id_cons,$id_cons_gen,$do,$id_circ; 47 47 echo "<center><font class=\"title\"><br><b>"._CIRCO."</b></font><br><br>"; 48 echo "<form name=\"circo\" action=\"admin.php\">" 49 ."<input type=\"hidden\" name=\"op\" value=\"circo\">" 50 ."<input type=\"hidden\" name=\"id_cons_gen\" value=\"$id_cons_gen\">"; 48 51 echo "<table border=\"0\" width=\"100%\"><tr>"; 49 52 echo "<td bgcolor=\"$bgcolor1\" align=\"center\" width=\"5%\"><b>"._NUM."</b></td>" … … 51 54 ."<td bgcolor=\"$bgcolor1\" align=\"center\"><b>"._FUNZIONI."</b></td></tr>"; 52 55 53 echo "<form name=\"circo\" action=\"admin.php\">"54 ."<input type=\"hidden\" name=\"op\" value=\"circo\">"55 ."<input type=\"hidden\" name=\"id_cons_gen\" value=\"$id_cons_gen\">";56 56 if ($do == "modify"){ 57 57 $res = mysql_query("SELECT * FROM ".$prefix."_ele_circoscrizione where id_circ='$id_circ'", $dbi); … … 66 66 $numc=mysql_num_rows($result); 67 67 $numc++; 68 echo "<input type=\"hidden\" name=\"do\" value=\"add\">"; 69 echo "<tr><td align=\"right\"><input type=\"text\" name=\"num_circ\" maxlength=\"3\" size=\"3\" value=\"$numc\"></td>" 68 echo "<tr><td align=\"right\"><input type=\"hidden\" name=\"do\" value=\"add\"><input type=\"text\" name=\"num_circ\" maxlength=\"3\" size=\"3\" value=\"$numc\"></td>" 70 69 ."<td><input type=\"text\" name=\"descr_circ\" maxlength=\"100\" size=\"40\"></td>"; 71 70 echo "<td align=\"center\"><input type=\"submit\" name=\"add\" value=\""._ADD."\"></td></tr>"; 72 71 } 73 echo "</form><tr></tr>";74 72 $res = mysql_query("SELECT * FROM ".$prefix."_ele_circoscrizione where id_cons='$id_cons' ", $dbi); 75 73 $max = mysql_num_rows($res); … … 83 81 ."</td><td align=\"center\" nowrap>[<a 84 82 href=\"admin.php?op=circo&do=modify&id_circ=$id_circ&id_cons=$id_cons&id_cons_gen=$id_cons_gen\"><img src=\"modules/Elezioni/images/edit.gif\" 85 border=\"0\" align=\" center\"> "._EDIT."</a>]";83 border=\"0\" align=\"middle\" alt=\"edit\"> "._EDIT."</a>]"; 86 84 if (!$numtemp) 87 echo "[<a href=\"admin.php?op=circo&do=delete&id_circ=$id_circ&descr_circ=$descr_circ&id_cons=$id_cons&id_cons_gen=$id_cons_gen\">"._DELETE." <img src=\"modules/Elezioni/images/delete.gif\" border=\"0\" align=\"center\" ></a>]";85 echo "[<a href=\"admin.php?op=circo&do=delete&id_circ=$id_circ&descr_circ=$descr_circ&id_cons=$id_cons&id_cons_gen=$id_cons_gen\">"._DELETE." <img src=\"modules/Elezioni/images/delete.gif\" border=\"0\" align=\"center\" alt=\"delete\"></a>]"; 88 86 else 89 echo "["._DELETE." <img src=\"modules/Elezioni/images/delete.gif\" border=\"0\" align=\" center\">]";87 echo "["._DELETE." <img src=\"modules/Elezioni/images/delete.gif\" border=\"0\" align=\"middle\" alt=\"delete\">]"; 90 88 echo "</td></tr>"; 91 89 } 92 echo "</table></ center>";90 echo "</table></form></center>"; 93 91 #'Pagina precedente' e 'Pagina Successiva' 92 if ($max>$offset){ 94 93 echo"<table align=\"center\" width=\"100%\" ><tr>"; 95 94 $prev=$min-$offset; … … 108 107 } 109 108 echo "</tr></table><br>"; 109 } 110 110 111 111 }
Note:
See TracChangeset
for help on using the changeset viewer.