Changeset 400 for trunk/client/modules/Elezioni/index.php
- Timestamp:
- Feb 25, 2024, 3:57:45 PM (9 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/client/modules/Elezioni/index.php
r394 r400 21 21 #if (isset($param['datipdf'])) $datipdf=addslashes($param['datipdf']); else $datipdf=''; 22 22 if(isset($param['visgralista'])) $visgralista=1; 23 24 #global $id_comune,$id_cons_gen; 23 25 if (isset($param['id_comune'])) $id_comune=intval($param['id_comune']); else $id_comune=$siteistat; 24 26 if (isset($param['id_cons_gen'])) $id_cons_gen=intval($param['id_cons_gen']); else … … 55 57 if (isset($param['descr_circ'])) $descr_circ=intval($param['descr_circ']); else $descr_circ=''; 56 58 59 if($info) $_SESSION['info']=$info; 57 60 58 61 # anti-xss nov. 2009 59 $id_comune=htmlentities($id_comune);60 62 $id_comune=intval($id_comune); 61 63 $perc=htmlentities($perc); … … 74 76 75 77 list($hondt) = $res->fetch(PDO::FETCH_NUM); 78 #$TEST1=": comune:$id_comune -- cons:$id_cons_gen<br>"; 79 #$TEST2=": "; 80 #if(isset($_SESSION['id_comune'])) $TEST2.=$_SESSION['id_comune']."<br>"; 76 81 77 82 $sql = "SELECT t3.genere,t1.tipo_cons,t1.descrizione,t2.id_cons_gen FROM ".$prefix."_ele_consultazione as t1, ".$prefix."_ele_cons_comune as t2, ".$prefix."_ele_tipo as t3 where t1.tipo_cons=t3.tipo_cons and t2.id_comune=$id_comune and t1.id_cons_gen=t2.id_cons_gen and t2.id_cons_gen='$id_cons_gen' and t2.chiusa!='2' "; … … 148 153 if($csv!=1){ 149 154 //include_once("modules/Elezioni/funzioni.php"); 150 echo "<table width=\"100%\"><tr><td >";155 echo "<table width=\"100%\"><tr><td style=\"text-align: center;\">"; 151 156 $siteistat=$id_comune; 152 157 if($simbolo!=''){ … … 1057 1062 1058 1063 $sql="SELECT t1.id_cand , t1.cognome, t1.nome, t1.num_cand, t2.id_cand, sum(t2.voti) as somma FROM ".$prefix."_ele_candidati as t1 , ".$prefix."_ele_voti_candidati as t2 1059 where t1.id_lista='$id_lista' and t1.id_cand=t2.id_cand group by t1.id_cand order by somma desc, t1.num_cand asc" ;1064 where t1.id_lista='$id_lista' and t1.id_cand=t2.id_cand group by t1.id_cand, t1.cognome, t1.nome, t1.num_cand, t2.id_cand order by somma desc, t1.num_cand asc" ; 1060 1065 $res_candi = $dbi->prepare("$sql"); 1061 1066 $res_candi->execute(); … … 1227 1232 $test=phpversion(); 1228 1233 if($test>=5.6) $phpver=1; else $phpver=0; 1234 # echo "TEST: comune:$id_comune -- cons:$id_cons_gen<br>$TEST1 $TEST2"; 1229 1235 switch ($op){ 1230 1236 … … 1372 1378 include("blocchi/privacy/privacy.php"); 1373 1379 break; 1380 default: 1381 include("blocchi/privacy/privacy.php"); 1374 1382 1375 1383 }
Note:
See TracChangeset
for help on using the changeset viewer.