Changeset 358 for trunk/admin/modules/Elezioni/salva_aff.php
- Timestamp:
- Feb 22, 2022, 10:40:08 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/admin/modules/Elezioni/salva_aff.php
r344 r358 48 48 $res = $dbi->prepare("$query"); 49 49 $res->execute(); 50 $BASE=substr($_SERVER['PHP_SELF'], 0, strrpos($_SERVER['REQUEST_URI'], "/")-16); 51 list($id_cons)=$res->fetch(PDO::FETCH_NUM); 50 list($id_cons)=$res->fetch(PDO::FETCH_NUM); 52 51 $query="select id_parz from ".$prefix."_ele_voti_parziale where data='$data' and orario='$orario' and id_sez='$id_sez' and id_gruppo='$id_gruppo'"; 53 52 $res = $dbi->prepare("$query"); 54 53 $res->execute(); 55 54 $righe=$res->rowCount(); 56 list($id_parz)=$res->fetch(PDO::FETCH_NUM); 55 list($id_parz)=$res->fetch(PDO::FETCH_NUM); 57 56 if($righe){ #la riga Ú presente e viene aggiorata 58 57 $arr=$res->fetch(PDO::FETCH_BOTH); … … 88 87 controllo_aff($id_cons,$id_sez,$id_parz); 89 88 include("ele_colora_sez.php"); 89 $BASE=substr($_SERVER['PHP_SELF'], 0, strrpos($_SERVER['REQUEST_URI'], "/")-16); 90 90 91 91 Header("Location: ".$BASE."admin.php?op=voti&id_cons_gen=$id_cons_gen&id_circ=$id_circ&id_sede=$id_sede&id_sez=$id_sez&ops=1&do=spoglio");
Note:
See TracChangeset
for help on using the changeset viewer.