Changeset 91 for trunk/admin/modules


Ignore:
Timestamp:
May 8, 2011, 6:21:06 PM (14 years ago)
Author:
roby
Message:
  • Sistemata la cancellazione della consultazione generale in ele_consultazione
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/admin/modules/Elezioni/ele_consultazioni.php

    r87 r91  
    7575        ."//-->\n";
    7676        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";
    8080        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";
    8383        echo "} \n";   
    8484        echo "} \n";
     
    9797                echo "<form name=\"consultazione\" method=\"post\" action=\"admin.php\" >"
    9898                ."<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\">"
    100100                ."<input type=\"hidden\" name=\"id_cons_gen\" value=\"".$pro['id_cons_gen']."\">"
    101101                ."<table  width=\"100%\"><tr><td>"._MODIFY." ".$pro['descrizione']." <br><br>";
     
    133133                $resdel = mysql_query("SELECT * FROM ".$prefix."_ele_cons_comune where id_cons_gen='$id_cons_gen'", $dbi);
    134134                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>";
    136136                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."\">"
    138138                ."</td></tr></table></form>";
    139139        } else {
Note: See TracChangeset for help on using the changeset viewer.