Changeset 368 for trunk/admin/modules/Elezioni/ele_permessi.php
- Timestamp:
- May 17, 2022, 10:59:01 AM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/admin/modules/Elezioni/ele_permessi.php
r367 r368 205 205 $res->execute(); 206 206 list ($num_sez)=$res->fetch(PDO::FETCH_NUM); 207 }elseif($id_sede) { 208 $sql="select indirizzo from ".$prefix."_ele_sede where id_sede='$id_sede'"; 209 $res = $dbi->prepare("$sql"); 210 $res->execute(); 211 list ($indsede)=$res->fetch(PDO::FETCH_NUM); 207 212 } 208 213 $sql="select data_inizio from ".$prefix."_ele_consultazione where id_cons_gen='$id_cons_gen'"; … … 220 225 if(!$res->rowCount()) continue; 221 226 list ($id_sez,$id_sede)=$res->fetch(PDO::FETCH_NUM); 227 }elseif($id_sede) { 228 $sql="select id_sede from ".$prefix."_ele_sede where id_cons='$id_cons' and indirizzo='$indsede'"; 229 $res = $dbi->prepare("$sql"); 230 $res->execute(); 231 if(!$res->rowCount()) continue; 232 list ($id_sede)=$res->fetch(PDO::FETCH_NUM); 222 233 } 223 234 $sql="select aid from ".$prefix."_ele_operatori where id_cons='$id_cons' and aid='$aid2'";
Note:
See TracChangeset
for help on using the changeset viewer.