Changeset 101 for trunk/admin
- Timestamp:
- May 26, 2011, 9:42:24 AM (13 years ago)
- Location:
- trunk/admin/modules/Elezioni
- Files:
-
- 2 deleted
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/admin/modules/Elezioni/ele_gruppo.php
r87 r101 171 171 echo "[ <a href=\"admin.php?op=gruppo&id_cons_gen=$id_cons_gen&id_circ=$id_circ\">"._NO."</a> ] - [<a href=\"admin.php?op=gruppo&do=delete&id_gruppo=$id_gruppo&id_cons_gen=$id_cons_gen&id_comune=$id_comune&min=$min&ok=1\">"._YES."</a> ]";exit; 172 172 }else{ 173 $reslis = mysql_query("select id_lista from ".$prefix."_ele_lista where id_gruppo='$id_gruppo'", $dbi); 174 while (list($idlst)=mysql_fetch_row($reslis)){ 175 $rescan = mysql_query("select id_cand from ".$prefix."_ele_candidato where id_lista='$idlst'", $dbi); 176 while (list($idcnd)=mysql_fetch_row($rescan)){ 177 mysql_query("delete from ".$prefix."_ele_voti_candidati where id_cand='$idcnd'"); 178 mysql_query("delete from ".$prefix."_ele_candidati where id_cand='$idcnd'"); 179 } 180 mysql_query("delete from ".$prefix."_ele_voti_lista where id_lista='$idlst'"); 181 mysql_query("delete from ".$prefix."_ele_lista where id_lista='$idlst'"); 182 } 183 $result = mysql_query("delete from ".$prefix."_ele_voti_gruppo where id_gruppo='$id_gruppo'", $dbi); 173 184 $result = mysql_query("delete from ".$prefix."_ele_gruppo where id_gruppo='$id_gruppo'", $dbi); 174 185 if (!$result) return;
Note:
See TracChangeset
for help on using the changeset viewer.