Changeset 397 for trunk/admin/modules
- Timestamp:
- Sep 29, 2023, 3:28:03 PM (14 months ago)
- Location:
- trunk/admin/modules/Elezioni
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/admin/modules/Elezioni/aggiornamento.php
r392 r397 19 19 $id_comune=$_SESSION['id_comune']; 20 20 $param=strtolower($_SERVER['REQUEST_METHOD']) == 'get' ? $_GET : $_POST; 21 $id_cons_gen=intval($param['id_cons_gen']); 21 if(isset($param['id_cons_gen'])) $id_cons_gen=intval($param['id_cons_gen']); else $id_cons_gen=0; 22 22 $perms=ChiSei(0); 23 23 include("modules/Elezioni/ele.php"); … … 52 52 #$newrev=$_SESSION['remoterev']; 53 53 $myrev=$_SESSION['localrev']; 54 if (isset($_SESSION['forzadb'])) $myrev=378; 54 55 if($newrev==$myrev) { 55 56 $errmex="Non sono disponibili nuovi aggiornamenti"; … … 112 113 if(!$procedi){ 113 114 ele(); 114 echo "<hr><br><h2 style=\"text-align:center;\">Revisione installata: $myrev<br>Revisione disponibile: $newrev</h2><br><hr>"; 115 if (isset($_SESSION['forzadb'])) 116 echo "<hr><br><h2 style=\"text-align:center;\">E' necessario riallineare il DB, confermare l'aggiornamento."; 117 else 118 echo "<hr><br><h2 style=\"text-align:center;\">Revisione installata: $myrev"; 119 echo "<br>Revisione disponibile: $newrev</h2><br><hr>"; 120 121 unset($_SESSION['forzadb']); 122 115 123 ##### 116 124 -
trunk/admin/modules/Elezioni/ele.php
r380 r397 67 67 68 68 global $espandi, $aid, $bgcolor1, $bgcolor2,$bgcolor5, $prefix, $dbi, $offset, $min,$descr_cons, $id_cons_gen,$tipo_cons,$genere,$op,$id_comune,$perms,$id_cons,$votog,$votol,$votoc,$votocirc,$tema,$fascia,$limite; 69 69 70 70 include ("header.php"); 71 71 # include("modules/Elezioni/testa.php"); … … 301 301 302 302 } 303 303 if(!isset($op)) $op=''; 304 304 switch ($op){ 305 305 case "ele": -
trunk/admin/modules/Elezioni/ele_colora_sez.php
r394 r397 20 20 $res->execute(); 21 21 }else{ #candidati 22 $sql="SELECT t1.num_cand FROM ".$prefix."_ele_voti_candidati as t1 left join ".$prefix."_ele_candidati as t2 on t1.id_cand=t2.id_cand where t1.id_cons='$id_cons' and t1.id_sez='$id_sez' group by t2.id_lista";22 $sql="SELECT t1.num_cand FROM ".$prefix."_ele_voti_candidati as t1 left join ".$prefix."_ele_candidati as t2 on t1.id_cand=t2.id_cand where t1.id_cons='$id_cons' and t1.id_sez='$id_sez'"; 23 23 $res = $dbi->prepare("$sql"); 24 24 $res->execute();
Note:
See TracChangeset
for help on using the changeset viewer.