Changeset 384 for trunk/client/modules/Elezioni/funzioni.php
- Timestamp:
- Jan 24, 2023, 6:25:59 PM (22 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/client/modules/Elezioni/funzioni.php
r376 r384 250 250 global $admin, $bgcolor1, $bgcolor5, $prefix, $dbi, $offset, $min,$descr_cons,$genere,$votog,$votol,$votoc,$circo, $id_cons,$id_cons_gen,$id_comune,$id_circ,$tipo_cons,$w,$l,$op,$siteistat,$flash,$circondt1 ; 251 251 252 253 254 if($genere=='4' || $votog) $tab="ele_voti_lista"; 255 else $tab="ele_voti_gruppo"; 256 if($circo and !$circondt1) $circondt1="and t1.id_circ=$id_circ"; 252 if($circo and !$id_circ) $id_circ=$_SESSION['id_circ']; 253 if($genere=='4' || $votog) $tab="ele_voti_lista"; 254 else $tab="ele_voti_gruppo"; 255 if($circo and !$circondt1) $circondt1="and t1.id_circ=$id_circ"; 257 256 258 257 … … 261 260 $res->execute(); 262 261 263 264 262 $numero=$res->rowCount(); 265 263 $sql="select t2.* from ".$prefix."_ele_sezioni as t2, ".$prefix."_ele_sede as t1 where t2.id_cons='$id_cons' and t1.id_sede=t2.id_sede $circondt1"; … … 268 266 269 267 if ($res) $sezioni=$res->rowCount();else $sezioni=0; 268 $pro=array(); $gruppo=array(); 270 269 if ($numero>0){ 271 270 if ($genere!=0){ 272 271 $sql="select sum(voti) from ".$prefix."_$tab where id_cons='$id_cons' "; 273 $restotv = $dbi->prepare("$sql");274 $restotv->execute();272 $restotv = $dbi->prepare("$sql"); 273 $restotv->execute(); 275 274 276 275 list($tot) = $restotv->fetch(PDO::FETCH_NUM);
Note:
See TracChangeset
for help on using the changeset viewer.