Ignore:
Timestamp:
Feb 25, 2024, 3:57:45 PM (3 months ago)
Author:
roby
Message:
  • ADMIN

-- Migliorata la gestione di operatori e responsabili

  • CLIENT

-- Nuovo tema BSItalia realizzato dal CED di Capo d'Orlando
-- Sistemata la funzione del widget privacy
-- Varie modifiche di allineamento oggetti

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/client/modules/Elezioni/index.php

    r394 r400  
    2121#if (isset($param['datipdf'])) $datipdf=addslashes($param['datipdf']); else $datipdf='';
    2222if(isset($param['visgralista'])) $visgralista=1;
     23
     24#global $id_comune,$id_cons_gen;
    2325if (isset($param['id_comune'])) $id_comune=intval($param['id_comune']); else $id_comune=$siteistat;
    2426if (isset($param['id_cons_gen'])) $id_cons_gen=intval($param['id_cons_gen']); else
     
    5557if (isset($param['descr_circ'])) $descr_circ=intval($param['descr_circ']); else $descr_circ='';
    5658
     59if($info) $_SESSION['info']=$info;
    5760
    5861# anti-xss nov. 2009
    59 $id_comune=htmlentities($id_comune);
    6062$id_comune=intval($id_comune);
    6163$perc=htmlentities($perc);
     
    7476
    7577list($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>";
    7681
    7782$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' ";
     
    148153        if($csv!=1){
    149154          //include_once("modules/Elezioni/funzioni.php");
    150         echo "<table width=\"100%\"><tr><td>";
     155        echo "<table width=\"100%\"><tr><td style=\"text-align: center;\">";
    151156        $siteistat=$id_comune;
    152157        if($simbolo!=''){
     
    10571062               
    10581063                $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" ;
    10601065                $res_candi = $dbi->prepare("$sql");
    10611066                $res_candi->execute();
     
    12271232$test=phpversion();
    12281233if($test>=5.6) $phpver=1; else $phpver=0;
     1234# echo "TEST: comune:$id_comune -- cons:$id_cons_gen<br>$TEST1 $TEST2";
    12291235switch ($op){
    12301236
     
    13721378        include("blocchi/privacy/privacy.php");
    13731379   break;       
     1380   default:
     1381        include("blocchi/privacy/privacy.php");
    13741382
    13751383}
Note: See TracChangeset for help on using the changeset viewer.