Ignore:
Timestamp:
May 2, 2011, 7:57:24 PM (13 years ago)
Author:
roby
Message:
  • Rielaborata la funzione di cancellazione dei dati dello spoglio (in Autorizza comuni) e dell'intera consultazione (se completamente vuota) in Consultazioni (menu superuser).
  • ritocchi vari
File:
1 edited

Legend:

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

    r79 r87  
    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>Abilita la cancellazione</legend><label id=\"prov\">"._SPUNTAELIMINA." <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\" name=\"pwd3\" value=\"\" onchange=\"del_cons()\"></label></fieldset></td>";
    136136                else echo "<td></td>";
    137137                echo "<td><input type=\"submit\" name=\"update\" value=\""._MODIFY."\">"
     
    222222if ($perms>=128) {
    223223                if ($do == "delete") {
     224                                $result = mysql_query("delete from ".$prefix."_ele_rilaff where id_cons_gen='$id_cons_gen'", $dbi);
     225                                if (!$result) return;
    224226                                $result = mysql_query("delete from ".$prefix."_ele_consultazione where id_cons_gen='$id_cons_gen'", $dbi);
    225227                                if (!$result) return;
     
    284286
    285287?>
    286 
Note: See TracChangeset for help on using the changeset viewer.