Changeset 282 for trunk/admin
- Timestamp:
- Apr 21, 2019, 9:46:30 PM (6 years ago)
- Location:
- trunk/admin/modules/Elezioni
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/admin/modules/Elezioni/ele_associazioni.php
r258 r282 18 18 $prefix=$_SESSION['prefix']; 19 19 $id_comune=$_SESSION['id_comune']; 20 $sql = $dbi->prepare("SELECT * FROM ".$prefix."_config"); 21 $sql->execute(); 22 $riga = $sql->fetchAll(PDO::FETCH_ASSOC); 23 $row=$riga[0]; 24 $language = $row['language']; 20 25 $id_cons_gen=intval($_GET['id_cons_gen']); 21 26 $perms=ChiSei(0); … … 37 42 if (isset($_GET['do'])) get_magic_quotes_gpc() ? $do=$param['do']:$do=addslashes($param['do']); else $do=''; 38 43 if (isset($_GET['ok'])) $ok=intval($_GET['ok']); else $ok=''; 39 if (isset($_GET['id_cons_comu'])) $id_cons_comu=intval($_GET['id_cons_comu']); else $id_cons_comu=' ';40 if (isset($_GET['id_collegio'])) $id_collegio=intval($_GET['id_collegio']); else $id_collegio=' ';44 if (isset($_GET['id_cons_comu'])) $id_cons_comu=intval($_GET['id_cons_comu']); else $id_cons_comu='0'; 45 if (isset($_GET['id_collegio'])) $id_collegio=intval($_GET['id_collegio']); else $id_collegio='0'; 41 46 if (isset($_GET['idcomune'])) $idcomune=intval($_GET['idcomune']); else $idcomune=''; 42 if (isset($_GET['idcomunenew'])) $idcomunenew=intval($_GET['idcomunenew']); else $idcomunenew=' ';43 if (isset($_GET['chiusa'])) $chiusa=intval($_GET['chiusa']); else $chiusa=' ';47 if (isset($_GET['idcomunenew'])) $idcomunenew=intval($_GET['idcomunenew']); else $idcomunenew='0'; 48 if (isset($_GET['chiusa'])) $chiusa=intval($_GET['chiusa']); else $chiusa='0'; 44 49 if (isset($_GET['id_conf'])) $id_conf=intval($_GET['id_conf']); else $id_conf=0; 45 50 if (isset($_GET['idfascia'])) $idfascia=intval($_GET['idfascia']); else $idfascia=0; 46 51 if (isset($_GET['min'])) $min=intval($_GET['min']); else $min=0; 47 if (isset($_GET['help'])) $help=intval($_GET['help']); 48 if (isset($_GET['pwd4'])) $pwd4=intval($_GET['pwd4']); 52 if (isset($_GET['help'])) $help=intval($_GET['help']); else $help=''; 53 if (isset($_GET['pwd4'])) $pwd4=intval($_GET['pwd4']); else $pwd4=''; 49 54 if (isset($_GET['preferenze'])) $preferenze=intval($_GET['preferenze']); else $preferenze=1; 50 55 if (isset($_GET['vismf'])) $vismf=intval($_GET['vismf']); else $vismf=0; … … 117 122 118 123 ######################### 119 if ( isset($help)) include("language/$language/ele_associazioni.html");124 if ($help) include("language/$language/ele_associazioni.html"); 120 125 OpenTable(); 121 126 echo "<tr><td><hr><br>"; … … 214 219 } 215 220 unset($sel); 216 $sql = "SELECT vismf, vismf,solo_gruppo,disgiunto from ".$prefix."_ele_cons_comune where id_cons='$id_cons_comu'";221 $sql = "SELECT vismf,solo_gruppo,disgiunto from ".$prefix."_ele_cons_comune where id_cons='$id_cons_comu'"; 217 222 $rescomu = $dbi->prepare("$sql"); 218 223 $rescomu->execute(); -
trunk/admin/modules/Elezioni/query.sql
r257 r282 87 87 $sth->execute(); 88 88 if ($sth->rowCount()){ 89 $row2 = $sth->fetchAll(); 90 $limite=$row2[0]; 91 } 89 $limite = $sth->fetch(PDO::FETCH_NUM); 90 } else $limite=0; 92 91 return($row); 93 92 }
Note:
See TracChangeset
for help on using the changeset viewer.