Ignore:
Timestamp:
Jan 24, 2023, 6:25:59 PM (15 months ago)
Author:
roby
Message:
  • ADMIN
  • Continua lo sviluppo della funzione di aggiornamento.
  • Modifiche alla gestione di consultazioni circoscrizionali
  • CLIENT
  • Modifica alla funzione di proiezione dell'assegnazione dei seggi per gestire il caso della legge regionale siciliana relativamente a comuni sotto i 15.000 abitanti (da completare, non tutti i casi sono ancora gestiti).
  • Modifiche alla gestione di consultazioni circoscrizionali
  • Modifiche ai link dei menu per il cambio di tema
File:
1 edited

Legend:

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

    r376 r384  
    250250global $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 ;
    251251
    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";
    257256     
    258257 
     
    261260        $res->execute();
    262261
    263        
    264262        $numero=$res->rowCount();
    265263        $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";
     
    268266
    269267        if ($res) $sezioni=$res->rowCount();else $sezioni=0;
     268        $pro=array(); $gruppo=array();
    270269        if ($numero>0){
    271270                if ($genere!=0){
    272271                        $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();
    275274 
    276275                        list($tot)  = $restotv->fetch(PDO::FETCH_NUM);
Note: See TracChangeset for help on using the changeset viewer.