Changeset 91 for trunk/admin
- Timestamp:
- May 8, 2011, 6:21:06 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/admin/modules/Elezioni/ele_consultazioni.php
r87 r91 75 75 ."//-->\n"; 76 76 echo "function del_cons() {\n"; 77 echo "if (document.consultazione.pwd3.checked==false) {\n"; 78 echo "document.consultazione.update.value=\""._MODIFY."\" \n"; 79 echo "document.consultazione.do.value=\"update\" \n"; 77 echo "if (document.getElementById('pwd3').checked==false) {\n"; 78 echo "document.getElementById('update').value=\""._MODIFY."\" \n"; 79 echo "document.getElementById('do').value=\"update\" \n"; 80 80 echo "}else{\n"; 81 echo "document.consultazione.update.value=\""._DELETE."\" \n"; 82 echo "document.consultazione.do.value=\"delete\" \n"; 81 echo "document.getElementById('update').value=\""._DELETE." "._CONSULTA."\" \n"; 82 echo "document.getElementById('do').value=\"delete\" \n"; 83 83 echo "} \n"; 84 84 echo "} \n"; … … 97 97 echo "<form name=\"consultazione\" method=\"post\" action=\"admin.php\" >" 98 98 ."<input type=\"hidden\" name=\"op\" value=\"consultazione\">" 99 ."<input type=\"hidden\" name=\"do\" value=\"update\">"99 ."<input type=\"hidden\" id=\"do\" name=\"do\" value=\"update\">" 100 100 ."<input type=\"hidden\" name=\"id_cons_gen\" value=\"".$pro['id_cons_gen']."\">" 101 101 ."<table width=\"100%\"><tr><td>"._MODIFY." ".$pro['descrizione']." <br><br>"; … … 133 133 $resdel = mysql_query("SELECT * FROM ".$prefix."_ele_cons_comune where id_cons_gen='$id_cons_gen'", $dbi); 134 134 if(mysql_num_rows($resdel)==0) 135 echo "<td><fieldset><legend>"._SPUNTALABEL1."</legend><label id=\"prov\">"._VIASPUNTAELIMINA." <input type=\"checkbox\" name=\"pwd3\" value=\"\" onchange=\"del_cons()\"></label></fieldset></td>";135 echo "<td><fieldset><legend>"._SPUNTALABEL1."</legend><label id=\"prov\">"._VIASPUNTAELIMINA." <input type=\"checkbox\" id=\"pwd3\"name=\"pwd3\" value=\"\" onclick=\"del_cons()\"></label></fieldset></td>"; 136 136 else echo "<td></td>"; 137 echo "<td><input type=\"submit\" name=\"update\" value=\""._MODIFY."\">"137 echo "<td><input type=\"submit\" id=\"update\" name=\"update\" value=\""._MODIFY."\">" 138 138 ."</td></tr></table></form>"; 139 139 } else {
Note:
See TracChangeset
for help on using the changeset viewer.