[2] | 1 | <?php
|
---|
| 2 |
|
---|
| 3 | /************************************************************************/
|
---|
| 4 | /* Eleonline - Raccolta e diffusione dei dati elettorali */
|
---|
| 5 | /* by Roberto Gigli & Luciano Apolito */
|
---|
| 6 | /* http://www.eleonline.it */
|
---|
| 7 | /* info@eleonline.it luciano@aniene.net rgigli@libero.it */
|
---|
| 8 | /************************************************************************/
|
---|
| 9 | /* Modulo Autorizzazione Comuni */
|
---|
| 10 | /* Amministrazione */
|
---|
| 11 | /************************************************************************/
|
---|
| 12 | # e' l'unico file in cui Ú presente un controllo su tipo_cons, per ora va bene così. Per toglierlo va inserito un campo-flag in ele_tipo per indicare se per il tipo di consultazione si dovra' procedere al calcolo dell'assegnazione dei seggi
|
---|
| 13 | if (!defined('ADMIN_FILE')) {
|
---|
| 14 | die ("You can't access this file directly...");
|
---|
| 15 | }
|
---|
| 16 |
|
---|
| 17 | $aid=$_SESSION['aid'];
|
---|
| 18 | $dbi=$_SESSION['dbi'];
|
---|
| 19 | $prefix=$_SESSION['prefix'];
|
---|
| 20 | $id_comune=$_SESSION['id_comune'];
|
---|
| 21 | $id_cons_gen=intval($_GET['id_cons_gen']);
|
---|
| 22 | $perms=ChiSei(0);
|
---|
| 23 | if ($perms<128 or !$id_cons_gen) die("$perms Non hai i permessi per inserire dati, o non hai scelto la consultazione!");
|
---|
| 24 | $res = mysql_query("SELECT t1.tipo_cons,t1.descrizione,t2.id_cons,t2.id_conf FROM ".$prefix."_ele_consultazione as t1, ".$prefix."_ele_cons_comune as t2 where t1.id_cons_gen=t2.id_cons_gen and t2.id_comune='$id_comune' " , $dbi);
|
---|
| 25 | list($tipo_cons,$descr_cons,$id_cons,$id_conf) = mysql_fetch_row($res);
|
---|
| 26 |
|
---|
| 27 | $res = mysql_query("SELECT genere FROM ".$prefix."_ele_tipo where tipo_cons='$tipo_cons' " , $dbi);
|
---|
| 28 | list($genere) = mysql_fetch_row($res);
|
---|
| 29 |
|
---|
| 30 | include("modules/Elezioni/funzionidata.php");
|
---|
| 31 | include("modules/Elezioni/ele.php");
|
---|
| 32 | if (isset($_GET['descr_comu'])) get_magic_quotes_gpc() ? $descr_comu=$param['descr_comu']:$descr_comu=addslashes($param['descr_comu']); else $descr_comu='';
|
---|
| 33 | if (isset($_GET['do'])) get_magic_quotes_gpc() ? $do=$param['do']:$do=addslashes($param['do']); else $do='';
|
---|
| 34 | if (isset($_GET['ok'])) $ok=intval($_GET['ok']); else $ok='';
|
---|
| 35 | if (isset($_GET['id_cons_comu'])) $id_cons_comu=intval($_GET['id_cons_comu']); else $id_cons_comu='';
|
---|
| 36 | if (isset($_GET['id_collegio'])) $id_collegio=intval($_GET['id_collegio']); else $id_collegio='';
|
---|
| 37 | if (isset($_GET['idcomune'])) $idcomune=intval($_GET['idcomune']); else $idcomune='';
|
---|
| 38 | if (isset($_GET['idcomunenew'])) $idcomunenew=intval($_GET['idcomunenew']); else $idcomunenew='';
|
---|
| 39 | if (isset($_GET['chiusa'])) $chiusa=intval($_GET['chiusa']); else $chiusa='';
|
---|
| 40 | if (isset($_GET['id_conf'])) $id_conf=intval($_GET['id_conf']); else $id_conf=0;
|
---|
| 41 | if (isset($_GET['min'])) $min=intval($_GET['min']); else $min=0;
|
---|
[86] | 42 | if (isset($_GET['help'])) $help=intval($_GET['help']);
|
---|
| 43 | if (isset($_GET['pwd4'])) $pwd4=intval($_GET['pwd4']);
|
---|
[2] | 44 |
|
---|
| 45 | $offset=15;
|
---|
| 46 | $hiddenInfo = "<input type=\"hidden\" name=\"min\" value=\"$min\">";
|
---|
| 47 |
|
---|
| 48 |
|
---|
| 49 | /******************************************************/
|
---|
| 50 | /*Funzione di visualizzazione globale */
|
---|
| 51 | /*****************************************************/
|
---|
[77] | 52 | //
|
---|
[2] | 53 | function all() {
|
---|
[45] | 54 | global $user, $admin, $bgcolor1, $bgcolor2, $prefix,$descr_cons, $dbi,$id_cons,$desc,$indirizzo,$centralino,$fax,$id_cons_gen,$id_collegio,$idcomune,$chiusa,$id_conf,$tipo_cons,$language,$help;
|
---|
[2] | 55 | $aid=$_SESSION['aid'];
|
---|
| 56 | $dbi=$_SESSION['dbi'];
|
---|
[86] | 57 | $prefix=$_SESSION['prefix'];
|
---|
| 58 | ############# Controllo flag per cancellazione consultazione
|
---|
| 59 | echo "<SCRIPT type=\"text/javascript\">\n\n<!--\n"
|
---|
| 60 | ."//-->\n";
|
---|
| 61 | echo "function del_cons() {\n";
|
---|
| 62 | echo "if (document.model.pwd3.checked==false) {\n";
|
---|
| 63 | echo "document.model.chiusa.options[3].selected=false \n";
|
---|
| 64 | echo "document.model.pwd4.checked=false \n";
|
---|
| 65 | echo "document.getElementById('trspunta').style.visibility='hidden' \n";
|
---|
| 66 | echo "} \n";
|
---|
| 67 | echo "else document.getElementById('trspunta').style.visibility='visible' \n";
|
---|
| 68 | echo "if (document.model.chiusa.options[3].selected==false) {
|
---|
| 69 | \n";
|
---|
| 70 | echo "document.model.add.value=\""._MODIFY."\" \n";
|
---|
| 71 | echo "document.model.do.value=\"update\" \n";
|
---|
| 72 | echo "}else{\n";
|
---|
| 73 | echo "if (document.model.pwd4.checked==false) \n";
|
---|
| 74 | echo "document.model.add.value=\""._DELETE." "._DATI."\" \n";
|
---|
| 75 | echo "else document.model.add.value=\""._DELETE." "._CONSULTA."\" \n";
|
---|
| 76 | echo "document.model.do.value=\"delete\" \n";
|
---|
| 77 | echo "} \n";
|
---|
| 78 | echo "} \n";
|
---|
| 79 | echo "</script>\n";
|
---|
[77] | 80 | #########################
|
---|
[86] | 81 | if (isset($help)) include("language/$language/ele_associazioni.html");
|
---|
| 82 | OpenTable();
|
---|
[77] | 83 | echo "<tr><td><hr><br>";
|
---|
[2] | 84 | $res = mysql_query("SELECT descrizione FROM ".$prefix."_ele_consultazione where id_cons_gen='$id_cons_gen'" , $dbi);
|
---|
| 85 | list ($descr_cons) = mysql_fetch_row($res);
|
---|
| 86 | //inserire avviso su mancanza dei permessi
|
---|
| 87 | echo "<form name=\"model\" action=\"admin.php\">";
|
---|
[77] | 88 | echo "<table width=\"100%\" border=\"3\">";
|
---|
[2] | 89 | echo "<tr align=\"center\"><td bgcolor=\"$bgcolor1\"><b>"._CONSULTA."</b></td>";
|
---|
| 90 | # echo "<td bgcolor=\"$bgcolor1\"><b>"._COLLEGI."</b></td>";
|
---|
| 91 | echo "<td bgcolor=\"$bgcolor1\"><b>"._DEFCOMUNE."</b></td>";
|
---|
[77] | 92 | echo "<td bgcolor=\"$bgcolor1\"><b>"._STATO."</b></td><td bgcolor=\"$bgcolor1\">";
|
---|
[2] | 93 | if($tipo_cons==3)
|
---|
[77] | 94 | echo "<b>"._CONF."</b>";
|
---|
[2] | 95 | echo "<input type=\"hidden\" name=\"op\" value=\"associazioni\">";
|
---|
[77] | 96 | # echo "<input type=\"hidden\" name=\"pag_cons\" value=\"admin.php?op=associazioni&id_cons_gen=\">";
|
---|
| 97 | echo "</td></tr>";
|
---|
| 98 | echo "<tr align=\"center\"><td>";
|
---|
| 99 | echo "<input type=\"hidden\" name=\"id_cons_gen\" value=\"$id_cons_gen\">$descr_cons</td>";
|
---|
[2] | 100 | # $ressede = mysql_query("SELECT id_collegio, descrizione from ".$prefix."_ele_collegi where id_cons_gen='$id_cons_gen' order by descrizione desc", $dbi);
|
---|
| 101 | # if ($num_coll=mysql_num_rows($ressede)){
|
---|
| 102 | # echo "<td><select name=\"id_collegio\">";
|
---|
| 103 | # while(list($id,$descr_coll)=mysql_fetch_row($ressede)){
|
---|
| 104 | # $sel= ($id == $id_collegio) ? "selected":"";
|
---|
| 105 | # echo "<option value=\"$id\" $sel>$descr_coll";
|
---|
| 106 | # }
|
---|
| 107 | # echo "</select></td>";
|
---|
| 108 | # } else echo "<td></td>";
|
---|
[86] | 109 | $rescomu = mysql_query("SELECT id_comune, descrizione from ".$prefix."_ele_comuni order by descrizione asc", $dbi);
|
---|
| 110 | echo "<td>";
|
---|
| 111 | if($idcomune) {
|
---|
| 112 | while ($listele=mysql_fetch_array($rescomu))
|
---|
| 113 | if($listele['id_comune']==$idcomune) {
|
---|
| 114 | echo $listele['descrizione'];
|
---|
| 115 | echo "<input type=\"hidden\" name=\"idcomunenew\" value=\"$idcomune\">";
|
---|
| 116 | }
|
---|
| 117 |
|
---|
| 118 | }else{
|
---|
[77] | 119 | echo "<select name=\"idcomunenew\">";
|
---|
[2] | 120 | echo "<option value=\"0\"> ";
|
---|
| 121 | while(list($id,$descr_comu)=mysql_fetch_row($rescomu)){
|
---|
| 122 | $sel= ($id == $idcomune) ? "selected":"";
|
---|
| 123 | echo "<option value=\"$id\" $sel>$descr_comu";
|
---|
| 124 | }
|
---|
[86] | 125 | echo "</select>";
|
---|
| 126 | }
|
---|
[77] | 127 | echo "</td>";
|
---|
[2] | 128 | $selez['0']='';
|
---|
| 129 | $selez['1']='';
|
---|
[86] | 130 | $selez['2']='';
|
---|
[77] | 131 | $selez['3']='';
|
---|
[2] | 132 | $selez[$chiusa]="selected";
|
---|
[77] | 133 | echo "<td><select name=\"chiusa\" onChange=\"del_cons()\">";
|
---|
[2] | 134 | echo "<option value=\"0\" ".$selez[0].">"._ATTIVA;
|
---|
| 135 | echo "<option value=\"1\" ".$selez[1].">"._CHIUSA;
|
---|
| 136 | echo "<option value=\"2\" ".$selez[2].">"._NULLA;
|
---|
[86] | 137 |
|
---|
[77] | 138 | if($idcomune) echo "<option value=\"3\" ".$selez[3].">"._ELIMINA;
|
---|
[2] | 139 | echo "</select></td>";
|
---|
| 140 | if($tipo_cons==3){
|
---|
| 141 | $rescomu = mysql_query("SELECT id_conf, descrizione from ".$prefix."_ele_conf order by descrizione asc", $dbi);
|
---|
| 142 | echo "<td><select name=\"id_conf\">";
|
---|
| 143 | echo "<option value=\"0\"> ";
|
---|
| 144 | while(list($id,$descr_conf)=mysql_fetch_row($rescomu)){
|
---|
| 145 | $sel='';
|
---|
| 146 | if ($idcomune and $id == $id_conf) $sel="selected"; elseif ($id==1) $sel="selected";
|
---|
| 147 | echo "<option value=\"$id\" $sel>$descr_conf";
|
---|
| 148 | }
|
---|
| 149 | echo "</select></td>";
|
---|
| 150 | }
|
---|
| 151 | unset($sel);
|
---|
[77] | 152 | echo "<td><input type=\"hidden\" name=\"ok\" value=0>";
|
---|
[2] | 153 | echo "<input type=\"hidden\" name=\"id_cons_gen\" value=\"$id_cons_gen\">";
|
---|
| 154 | if ($idcomune) {
|
---|
| 155 | echo "<input type=\"hidden\" name=\"do\" value=\"update\">";
|
---|
| 156 | echo "<input type=\"hidden\" name=\"idcomune\" value=\"$idcomune\">";
|
---|
[86] | 157 | echo "<input type=\"submit\" name=\"add\" value=\""._MODIFY."\" ></td></tr>";
|
---|
| 158 | echo "<tr><td colspan=\"4\"><fieldset><legend>"._SPUNTALABEL1."</legend><label id=\"prov1\">"._SPUNTAELIMINA." <input type=\"checkbox\" name=\"pwd3\" value=\"\" onchange=\"del_cons()\"></label></fieldset></td></tr>";
|
---|
| 159 | echo "<tr id=\"trspunta\" style=\"visibility:hidden\"><td colspan=\"4\"><fieldset><legend>"._SPUNTALABEL2."</legend><label id=\"prov\">"._VIASPUNTAELIMINA." <input type=\"checkbox\" name=\"pwd4\" value=\"1\" onchange=\"del_cons()\"></label></fieldset>";
|
---|
[2] | 160 | }else{
|
---|
| 161 | echo "<input type=\"hidden\" name=\"do\" value=\"add\">";
|
---|
[77] | 162 | echo "<input type=\"submit\" name=\"add\" value=\""._ADD."\">";
|
---|
[2] | 163 | }
|
---|
[86] | 164 | $i=0;
|
---|
[77] | 165 | echo "</td></tr></table></form>";
|
---|
[86] | 166 | ############
|
---|
[77] | 167 | echo "<hr><br><table width=\"100%\" border=\"3\">";
|
---|
| 168 | echo "<tr align=\"center\"><td width=\"25%\" bgcolor=\"$bgcolor1\"><b>"._CONSULTA."</b></td>";
|
---|
| 169 | # echo "<td bgcolor=\"$bgcolor1\"><b>"._COLLEGI."</b></td>";
|
---|
| 170 | echo "<td width=\"25%\" bgcolor=\"$bgcolor1\"><b>"._DEFCOMUNE."</b></td>";
|
---|
| 171 | echo "<td width=\"15%\" bgcolor=\"$bgcolor1\"><b>"._STATO."</b></td>";
|
---|
| 172 | if($tipo_cons==3)
|
---|
[86] | 173 | echo "<td bgcolor=\"$bgcolor1\"><b>"._CONF."</b></td>";
|
---|
[77] | 174 | echo "<td></td></tr>";
|
---|
[86] | 175 | ###############
|
---|
| 176 |
|
---|
[2] | 177 | # if ($num_coll>0)
|
---|
| 178 | # $resmod = mysql_query("SELECT t1.id_collegio,t1.id_comune,t2.descrizione as descr,t1.id_cons, t3.descrizione, t4.chiusa,t4.id_conf FROM ".$prefix."_ele_comu_collegi as t1, ".$prefix."_ele_collegi as t2, ".$prefix."_ele_comuni as t3, ".$prefix."_ele_cons_comune as t4 where t1.id_cons_gen='$id_cons_gen' and t1.id_collegio=t2.id_collegio and t1.id_comune=t3.id_comune and t1.id_comune=t4.id_comune and t2.id_cons_gen=t4.id_cons_gen order by t2.descrizione, t3.descrizione", $dbi);
|
---|
| 179 | # else
|
---|
| 180 | $resmod = mysql_query("SELECT '',t1.id_comune,'',t1.id_cons, t2.descrizione, t1.chiusa, t1.id_conf FROM ".$prefix."_ele_cons_comune as t1, ".$prefix."_ele_comuni as t2 where t1.id_cons_gen='$id_cons_gen' and t1.id_comune=t2.id_comune order by t2.descrizione", $dbi);
|
---|
| 181 | while (list($id_collegio,$id_comune2,$descr_coll,$id_cons_comu,$descr_comu, $chiusa,$id_conf) = mysql_fetch_row($resmod)){ //elenco dei modelli inseriti
|
---|
| 182 | $resconf = mysql_query("SELECT descrizione FROM ".$prefix."_ele_conf where id_conf='$id_conf'", $dbi);
|
---|
| 183 | list($descr_conf) = mysql_fetch_row($resconf);
|
---|
| 184 | $i++;
|
---|
[86] | 185 | $bgcolor1=($bgcolor1==$_SESSION['bgcolor1'])?$_SESSION['bgcolor2']:$_SESSION['bgcolor1'];
|
---|
[77] | 186 | echo "<tr><td colspan=\"5\">";
|
---|
[2] | 187 | echo "<form name=\"modello$i\" action=\"admin.php\">"
|
---|
| 188 | ."<input type=\"hidden\" name=\"op\" value=\"associazioni\">";
|
---|
| 189 | // echo "<input type=\"hidden\" name=\"do\" value=\"update\">";
|
---|
[77] | 190 | # echo "<input type=\"hidden\" name=\"id_collegio\" value=\"$id_collegio\">";
|
---|
[2] | 191 | echo "<input type=\"hidden\" name=\"idcomune\" value=\"$id_comune2\">";
|
---|
| 192 | echo "<input type=\"hidden\" name=\"id_cons_comu\" value=\"$id_cons_comu\">";
|
---|
| 193 | echo "<input type=\"hidden\" name=\"id_cons_gen\" value=\"$id_cons_gen\">";
|
---|
| 194 | echo "<input type=\"hidden\" name=\"desc\" value=\"$descr_cons\">";
|
---|
| 195 | echo "<input type=\"hidden\" name=\"chiusa\" value=\"$chiusa\">";
|
---|
[77] | 196 | echo "<table width=\"100%\"><tr align=\"center\" bgcolor=\"$bgcolor1\">";
|
---|
| 197 | echo "<td width=\"25%\"><b>$descr_coll</b></td>";
|
---|
| 198 | echo "<td width=\"25%\"><b>$descr_comu</b></td>";
|
---|
[2] | 199 | $stato['0']=_ATTIVA;
|
---|
| 200 | $stato['1']=_CHIUSA;
|
---|
| 201 | $stato['2']=_NULLA;
|
---|
[77] | 202 | echo "<td width=\"15%\"><b>".$stato[$chiusa]."</b></td>";
|
---|
[2] | 203 | if($tipo_cons==3)
|
---|
[77] | 204 | echo "<td width=\"25%\"><input type=\"hidden\" name=\"id_conf\" value=\"$id_conf\"><b>".$descr_conf."</b></td>";
|
---|
| 205 | echo "<td width=\"10\"><input type=\"hidden\" name=\"ok\" value=0><input type=\"submit\" name=\"edit$i\" value=\""._EDIT."\">"
|
---|
| 206 | ."</td></tr></table></form></td></tr>\n";
|
---|
[2] | 207 | }
|
---|
[77] | 208 | echo "</table></td></tr>";
|
---|
| 209 | echo "</table></td></tr>";
|
---|
[86] | 210 | CloseTable();
|
---|
[77] | 211 | echo "</div>";
|
---|
[2] | 212 | }
|
---|
| 213 |
|
---|
| 214 | function associazioni($ok, $do,$descr_comu,$id_cons_comu,$id_collegio,$id_comune,$chiusa,$id_conf) {
|
---|
[86] | 215 | global $admin, $bgcolor1, $bgcolor2, $prefix, $dbi, $descr_cons,$genere,$id_cons_gen,$idcomunenew,$pwd4;
|
---|
| 216 | $delcons=0;
|
---|
[2] | 217 | if ($do !="" and $id_cons_gen>0 and $idcomunenew>0) {
|
---|
[77] | 218 | $rescomu = mysql_query("SELECT id_cons from ".$prefix."_ele_cons_comune where id_cons_gen='$id_cons_gen' and id_comune='$idcomunenew'", $dbi);
|
---|
[2] | 219 | $max = mysql_num_rows($rescomu); //esiste autorizzazione?
|
---|
[86] | 220 | list($delcons)=mysql_fetch_row($rescomu);
|
---|
[77] | 221 | if (!$max){ //se no la inserisce
|
---|
[2] | 222 | $result = mysql_query("insert into ".$prefix."_ele_cons_comune (chiusa,id_comune,id_cons_gen,id_conf) values ('0','$idcomunenew','$id_cons_gen','$id_conf')", $dbi) || die("<br><br>Errore di inserimento: ".mysql_error());
|
---|
| 223 | $rescomu = mysql_query("SELECT id_cons from ".$prefix."_ele_cons_comune where id_cons_gen='$id_cons_gen' and id_comune='$idcomunenew'", $dbi);
|
---|
| 224 | }
|
---|
| 225 | list($id_cons_comu)=mysql_fetch_row($rescomu);
|
---|
| 226 | if ($do == "update") {
|
---|
| 227 | if ($idcomunenew>0) $newid=", id_comune = $idcomunenew ";
|
---|
| 228 | else $newid='';
|
---|
| 229 | $result = mysql_query("update ".$prefix."_ele_comu_collegi set id_collegio= '$id_collegio' $newid where id_comune='$id_comune' and id_cons_gen='$id_cons_gen'", $dbi) || die(mysql_error());
|
---|
| 230 | if (!$result) return;
|
---|
| 231 | $result = mysql_query("update ".$prefix."_ele_cons_comune set id_conf='$id_conf', chiusa= '$chiusa' where id_comune='$id_comune' and id_cons_gen='$id_cons_gen'", $dbi)|| die(mysql_error());
|
---|
| 232 | Header("Location: admin.php?op=associazioni&id_cons_gen=$id_cons_gen");
|
---|
| 233 | }elseif ($do == "add") {
|
---|
| 234 | if ($id_collegio)
|
---|
| 235 | $result = mysql_query("insert into ".$prefix."_ele_comu_collegi (id_collegio,id_cons,id_comune,id_cons_gen) values ('$id_collegio','$id_cons_comu','$idcomunenew','$id_cons_gen')", $dbi) || die("<br><br>Errore di inserimento: ".mysql_error());
|
---|
| 236 | Header("Location: admin.php?op=associazioni&id_cons_gen=$id_cons_gen");
|
---|
[86] | 237 | }elseif ($do == "delete" and $delcons>0) {
|
---|
[77] | 238 | $idcns=$delcons;
|
---|
| 239 | $res_del = mysql_query("delete from ".$prefix."_ele_voti_ref where id_cons=$idcns" ,$dbi);
|
---|
| 240 | $res_del = mysql_query("delete from ".$prefix."_ele_voti_candidati where id_cons=$idcns" ,$dbi);
|
---|
| 241 | $res_del = mysql_query("delete from ".$prefix."_ele_voti_lista where id_cons=$idcns" ,$dbi);
|
---|
| 242 | $res_del = mysql_query("delete from ".$prefix."_ele_voti_gruppo where id_cons=$idcns" ,$dbi);
|
---|
| 243 | $res_del = mysql_query("delete from ".$prefix."_ele_voti_parziale where id_cons=$idcns" ,$dbi);
|
---|
[86] | 244 | if ($pwd4==1){
|
---|
[77] | 245 | $res_del = mysql_query("delete from ".$prefix."_ele_candidati where id_cons=$idcns" ,$dbi);
|
---|
| 246 | $res_del = mysql_query("delete from ".$prefix."_ele_lista where id_cons=$idcns" ,$dbi);
|
---|
[86] | 247 | $res_del = mysql_query("delete from ".$prefix."_ele_gruppo where id_cons=$idcns" ,$dbi);
|
---|
[77] | 248 | $res_del = mysql_query("delete from ".$prefix."_ele_sezioni where id_cons=$idcns" ,$dbi);
|
---|
| 249 | $res_del = mysql_query("delete from ".$prefix."_ele_cons_comune where id_cons=$idcns" ,$dbi);
|
---|
[86] | 250 | }else{
|
---|
| 251 | $res_del = mysql_query("update ".$prefix."_ele_sezioni set validi='0', nulli='0', bianchi='0', contestati='0', solo_gruppo='0', autorizzati_m='0', autorizzati_f='0', voti_nulli='0', validi_lista='0', contestati_lista='0', voti_nulli_lista='0' where id_cons=$idcns" ,$dbi);
|
---|
[77] | 252 |
|
---|
[86] | 253 | }
|
---|
[77] | 254 | Header("Location: admin.php?op=associazioni&id_cons_gen=$id_cons_gen");
|
---|
[2] | 255 | }
|
---|
| 256 | }
|
---|
| 257 | }
|
---|
| 258 |
|
---|
[86] | 259 |
|
---|
| 260 |
|
---|
| 261 |
|
---|
[77] | 262 | # die ("do:$do - id_cons:$id_cons_comu - idcomune:$id_comune - new: $idcomunenew");
|
---|
[2] | 263 |
|
---|
| 264 | //****************************
|
---|
| 265 | // switch
|
---|
| 266 | //****************************
|
---|
| 267 | if ($op=="associazioni"){
|
---|
| 268 | associazioni($ok, $do,$descr_comu,$id_cons_comu,$id_collegio,$idcomune,$chiusa,$id_conf);
|
---|
| 269 | }
|
---|
| 270 | ele();
|
---|
| 271 | if (isset($_GET['id_cons_gen'])) $id_cons_gen=intval($_GET['id_cons_gen']); else $id_cons_gen='0';
|
---|
| 272 | all();
|
---|
| 273 | include("footer.php");
|
---|
| 274 |
|
---|
| 275 | ?>
|
---|
| 276 |
|
---|