Changeset 254 for trunk/admin


Ignore:
Timestamp:
Mar 13, 2018, 9:26:23 PM (6 years ago)
Author:
roby
Message:

adeguata la funzione di installazione al php7

Location:
trunk/admin
Files:
1 added
14 edited

Legend:

Unmodified
Added
Removed
  • trunk/admin/admin.php

    r253 r254  
    153153       
    154154        $row = $sth->fetch(PDO::FETCH_ASSOC);   
    155 #               $res_config = mysql_query("select * from ".$prefix."_config ",$dbi);
    156 #               list ($sitename,$siteurl,$site_logo,$slogan,$startdate,$adminmail,$tema,$foot,$language,$blocco,$testata,$logo,$fileout,$copyright,$versione,$patch,$id_comune,$multicomune,$flash,$displayerrors,$editor,$tema_on,$ed_user) = ($res_config->fetch());
    157                 $siteistat=$row['siteistat'];
     155        $siteistat=$row['siteistat'];
    158156if (!isset($_SESSION['id_comune'])){
    159157        $_SESSION['sitename']=$row['sitename'];
     
    182180        $_SESSION['tema_on']=$tema_on;
    183181        $_SESSION['ed_user']=$ed_user;
    184 }
     182} 
    185183//fine
    186184if (isset($param['aid'])) {
     
    198196                // se superUserAdmin
    199197########
    200                 $res_comune = mysql_query("select adminsuper from ".$prefix."_authors where aid='$aid' and pwd='$mpwd'",$dbi);
    201                 list ($adminsuper) = mysql_fetch_row($res_comune);
    202                 if ($adminsuper==1) $id_comune='0';
     198        $sth = $dbi->prepare("select adminsuper from ".$prefix."_authors where aid='$aid' and pwd='$mpwd'");
     199        $sth->execute();       
     200        $row = $sth->fetch(PDO::FETCH_ASSOC);   
     201                $adminsuper=$row['adminsuper'];
     202                if ($adminsuper==1) $id_comune='0';
    203203                elseif (is_numeric($param['id_comune']) and intval($param['id_comune'])>0) $id_comune=intval($param['id_comune']);
    204                 $res= mysql_query("select counter,admlanguage from ".$prefix."_authors where aid='$aid' and pwd='$mpwd' and id_comune='$id_comune'", $dbi);
    205 
    206                 if ($res){
    207                         $esiste=mysql_num_rows($res);
    208 
    209 
    210                         list ($counter,$tmplang) = mysql_fetch_row($res);
     204        $sth = $dbi->prepare("select counter,admlanguage from ".$prefix."_authors where aid='$aid' and pwd='$mpwd' and id_comune='$id_comune'");
     205        $sth->execute();       
     206        $row = $sth->fetch(PDO::FETCH_ASSOC);   
     207
     208                if ($sth){
     209                        $esiste=$sth->rowCount();
     210                        $counter=$row['counter'];
     211                        $tmplang=$row['admlanguage'];
    211212                        $counter+=1;
    212213                        if(strlen($tmplang)==2) $language=$tmplang;
    213                         $resup=mysql_query("update ".$prefix."_authors set counter=$counter where aid='$aid' and pwd='$mpwd' and id_comune='$id_comune'", $dbi);
     214                        $sth = $dbi->prepare("update ".$prefix."_authors set counter=$counter where aid='$aid' and pwd='$mpwd' and id_comune='$id_comune'");
     215                        $sth->execute();       
     216                        $row = $sth->fetch(PDO::FETCH_ASSOC);   
     217                       
    214218                        if ($esiste==1) {
    215219                                $_SESSION['dbi']=$dbi;
     
    221225                                $_SESSION['remote']=$_SERVER['REMOTE_ADDR'];
    222226                                $_SESSION['bgcolor1']='#ffffff';
    223                                 $_SESSION['bgcolor2']='#c5c5c5';
     227                                $_SESSION['bgcolor2']='#c5c5c5'; if (!$op) $op='consultazione';
    224228                                session_regenerate_id();
    225229                        }
     
    232236if (! isset($_SESSION['lang'])) $_SESSION['lang']=$language;
    233237$currentlang=strlen($_SESSION['lang'])==2 ? $_SESSION['lang']: $language;
    234 #if (isset($_SESSION['lang'])) $currentlang=$_SESSION['lang']; else $currentlang='it';
    235238if (isset($_SESSION['aid']))
    236239{
     
    239242$dbi=$_SESSION['dbi'];
    240243$prefix=$_SESSION['prefix'];
    241 $id_comune=$_SESSION['id_comune'];die("qui");
     244$id_comune=$_SESSION['id_comune'];
    242245if (isset($_GET['id_cons_gen'])) $id_cons_gen=intval($_GET['id_cons_gen']);
    243246else {
    244 //10/05/2009 gestione consultazione predefinita
    245         $result = mysql_query("select id_cons_gen  from ".$prefix."_ele_cons_comune where preferita='1' and (id_comune='$id_comune' or id_comune=0)", $dbi);
    246 list($id_cons_gen) = mysql_fetch_row($result);
    247 //---fine       $id_cons_gen='';
     247                        $sth = $dbi->prepare("select id_cons_gen  from ".$prefix."_ele_cons_comune where preferita='1' and (id_comune='$id_comune' or id_comune=0)");
     248                        $sth->execute();       
     249                        $row = $sth->fetch(PDO::FETCH_ASSOC);   
     250$id_cons_gen=$row[1];
    248251}
    249252$currentlang=$_SESSION['lang'];
     
    262265function ChiSei($id_cons_gen){
    263266
    264 //$server=$_SERVER['REMOTE_ADDR'];
    265 //$session=$_SESSION['remote'];
    266 //if ($session!=$server) { die ("Problema di sessione"); };
     267
    267268$aid=$_SESSION['aid'];
    268269$dbi=$_SESSION['dbi'];
     
    273274
    274275$perms=0;
    275 $result = mysql_query("select adminsuper, admincomune, adminop  from ".$prefix."_authors where aid='$aid' and pwd='$pwd' and (id_comune='$id_comune' or id_comune=0)", $dbi);
    276 list($adminsuper,$admincomune,$adminop) = mysql_fetch_row($result);
    277 //exit;
     276                        $sth = $dbi->prepare("select adminsuper, admincomune, adminop  from ".$prefix."_authors where aid='$aid' and pwd='$pwd' and (id_comune='$id_comune' or id_comune=0)");
     277                        $sth->execute();       
     278                        $row = $sth->fetch(PDO::FETCH_BOTH);   
     279
     280$adminsuper=$row[0];
     281$admincomune=$row[1];
     282$adminop=$row[2];
     283
    278284if (($adminsuper==1 || $admincomune==1 || $adminop==1)) {
    279285        if ($adminsuper==1)
    280286                return 256;
    281 //              $ressup = mysql_query("select permessi from ".$prefix."_ele_operatori where id_cons='0' and aid='$aid' and id_comune='0'",$dbi);
    282         elseif ($adminop==1)
    283                 $ressup = mysql_query("select permessi from ".$prefix."_ele_operatori where id_cons='0' and aid='$aid' and id_comune='$id_comune'",$dbi);
    284         elseif ($admincomune==1) {
    285                 $res=mysql_query("select id_cons from ".$prefix."_ele_cons_comune where id_comune='$id_comune' and id_cons_gen='$id_cons_gen'",$dbi);
    286                 list ($id_cons)=mysql_fetch_row($res);
    287                 $ressup = mysql_query("select permessi from ".$prefix."_ele_operatori where id_cons='$id_cons' and aid='$aid' and id_comune='$id_comune'",$dbi);
     287        elseif ($adminop==1){
     288                $sth = $dbi->prepare("select permessi from ".$prefix."_ele_operatori where id_cons='0' and aid='$aid' and id_comune='$id_comune'");
     289        }elseif ($admincomune==1) {
     290                $sth = $dbi->prepare("select id_cons from ".$prefix."_ele_cons_comune where id_comune='$id_comune' and id_cons_gen='$id_cons_gen'");
     291                        $sth->execute();       
     292                        $row = $sth->fetch(PDO::FETCH_BOTH);   
     293
     294                        $id_cons=$row[0];
     295                $sth = $dbi->prepare("select permessi from ".$prefix."_ele_operatori where id_cons='$id_cons' and aid='$aid' and id_comune='$id_comune'");
    288296        }
    289         if (mysql_num_rows($ressup)==1) list($perms)=mysql_fetch_row($ressup); else $perms=0;
     297                               
     298                        $sth->execute();       
     299                        $row = $sth->fetch(PDO::FETCH_BOTH);   
     300
     301        if ($sth->rowCount()==1) $perms=$row[0]; else $perms=0;
    290302        return $perms;
    291303} else return 0;
     
    540552    include("modules/Elezioni/ele_riepilogo.php");
    541553    break;
     554case "riepilogovoti":
     555    include("modules/Elezioni/ele_riepilogovoti.php");
     556    break;
    542557case "logout":
    543558        logout();
  • trunk/admin/modules/Elezioni/controllo_voti.php

    r163 r254  
    2626$perms=ChiSei($id_cons_gen);
    2727if ($perms<16 or !$id_cons_gen) die("$perms Non hai i permessi per inserire dati, o non hai scelto la consultazione!");
    28 $res = mysql_query("SELECT t1.tipo_cons,t2.id_cons FROM ".$prefix."_ele_consultazione as t1, ".$prefix."_ele_cons_comune as t2 where t1.id_cons_gen=t2.id_cons_gen and t2.id_cons_gen='$id_cons_gen' and t2.id_comune='$id_comune'" , $dbi);
    29 list($tipo_cons,$id_cons) = mysql_fetch_row($res);
     28$res = mysql_query("SELECT t1.tipo_cons,t2.id_cons,t2.solo_gruppo,t2.disgiunto FROM ".$prefix."_ele_consultazione as t1, ".$prefix."_ele_cons_comune as t2 where t1.id_cons_gen=t2.id_cons_gen and t2.id_cons_gen='$id_cons_gen' and t2.id_comune='$id_comune'" , $dbi);
     29list($tipo_cons,$id_cons,$dettnulli,$disgiunto) = mysql_fetch_row($res);
    3030$res = mysql_query("SELECT genere,voto_g,voto_l FROM ".$prefix."_ele_tipo where tipo_cons='$tipo_cons' " , $dbi);
    3131        list($genere,$votog,$votol) = mysql_fetch_row($res);
     
    120120                $scrutinate++;
    121121        // fine inserimento     
    122                 if (($genere==2 or $genere==3 or $genere==5) and !$votog) {
     122                if (($genere==2 or $genere==3 or $genere==5) and !$votog and !$dettnulli) {
    123123                        $respref = mysql_query("select sum(voti) from ".$prefix."_ele_voti_gruppo where id_sez='$id'", $dbi);
    124124                        list ($gruppref) = mysql_fetch_row($respref);
     
    151151                $righe .= "<td>".number_format($validi,0,',','.')."</td><td>$nulli</td><td>$bianchi</td><td>$contestati</td>";
    152152                $g_err=0;
    153                 if (($genere==2 or $genere==3 or $genere==5) and $pag==1 and !$votog) {
     153                if (($genere==2 or $genere==3 or $genere==5) and $pag==1 and !$votog and !$dettnulli) {
    154154                        if ($gruppref!=$validi) {
    155155                                $g_err=1;
     
    157157                        }
    158158                }
    159                 $controllo1=$validi+$nulli+$bianchi+$contestati+$voti_nulli+$solol; #prova
    160                 $controllo2=$si+$no;
     159                $controllo1=$validi+$nulli+$bianchi+$contestati+$voti_nulli; #prova
     160                if($pag==0) $controllo2=$si+$no; else $controllo2=$si+$no+$vot_nul_lis+$cont_lis;
    161161                if($genere==5 and !$votog) #$validi+$nulli+$bianchi+$vcont+$vn
    162                         if($pag==0 and !$votog or $fascia<=$limite) {$controllo1=$validi+$nulli+$bianchi+$contestati+$voti_nulli+$solol;} else { $controllo1=$val_lista+$nulli+$bianchi+$contestati+$voti_nulli+$cont_lis+$vot_nul_lis+$solog;$controllo2=$si+$no-$solol+$cont_lis+$vot_nul_lis;}
    163                 if ($voti==$controllo1 and $validi==$controllo2 and !$g_err){
     162                        if($pag==0 and !$votog or $fascia<=$limite) {$controllo1=$validi+$nulli+$bianchi+$contestati+$voti_nulli;} else { $controllo1=$val_lista+$nulli+$bianchi+$contestati+$voti_nulli+$cont_lis+$vot_nul_lis+$solog;$controllo2=$si+$no-$solol+$cont_lis+$vot_nul_lis;}
     163                $cerr=mysql_query("select stato_lis from ".$prefix."_ele_controllosez where id_cons='$id_cons' and id_sez='$id'", $dbi);
     164                list($crlis)=mysql_fetch_row($cerr);
     165                if ($voti==$controllo1 and $validi==$controllo2 and !$g_err and $crlis!=-1){
    164166                        $righe .= "<td>"._OK."</td></tr>\n";
    165167                }else{
     
    224226            echo "<b>"._NEXT_MATCH."</b></a></td>";
    225227        }
    226     }elseif(($genere==5 and $fascia>=$limite) or ($genere==3) or ($genere==2) or $genere==1){ //se vi sono raggruppamenti
     228    }elseif(($genere==5 and ($fascia>=$limite or $dettnulli)) or ($genere==3) or ($genere==2) or $genere==1){ //se vi sono raggruppamenti
    227229                $pag=($pag==0 ? 1:0);
    228230                echo "<td colspan=\"5\" align=\"center\" bgcolor=\"$bgcolor1\"><a href=\"admin.php?op=controllo_voti&amp;id_cons_gen=$id_cons_gen&amp;pag=$pag\"><b>";
  • trunk/admin/modules/Elezioni/ele.php

    r246 r254  
    281281                }
    282282                echo "<a href=\"admin.php?op=riepilogo&amp;id_cons_gen=$id_cons_gen\">$bullet "._RIEPILOGO."</a><br>";
     283                if($tipo_cons==18 or $tipo_cons==19)
     284                        echo "<a href=\"admin.php?op=riepilogovoti&amp;id_cons_gen=$id_cons_gen\">$bullet Tabella dei Totali </a><br>";
    283285        }
    284286
  • trunk/admin/modules/Elezioni/ele_associazioni.php

    r235 r254  
    4646if (isset($_GET['vismf'])) $vismf=intval($_GET['vismf']); else $vismf=0;
    4747if (isset($_GET['sg'])) $sg=intval($_GET['sg']); else $sg=0;
     48if (isset($_GET['disgiunto'])) $disgiunto=intval($_GET['disgiunto']); else $disgiunto=0;
    4849
    4950$offset=15;
     
    5657        //
    5758        function all() {
    58         global $user, $admin, $bgcolor1, $bgcolor2, $prefix,$descr_cons, $dbi,$id_cons,$desc,$indirizzo,$centralino,$fax,$id_cons_gen,$id_collegio,$idcomune,$chiusa,$id_conf,$tipo_cons,$language,$help,$preferenze,$idfascia,$vismf,$sg;
     59        global $user, $admin, $bgcolor1, $bgcolor2, $prefix,$descr_cons, $dbi,$id_cons,$desc,$indirizzo,$centralino,$fax,$id_cons_gen,$id_collegio,$idcomune,$chiusa,$id_conf,$tipo_cons,$language,$help,$preferenze,$idfascia,$vismf,$sg,$disgiunto,$id_cons_comu;
    5960$aid=$_SESSION['aid'];
    6061$dbi=$_SESSION['dbi'];
     
    133134        echo "<td bgcolor=\"$bgcolor1\" align=\"center\"><b>"._VISAFFMF."</b></td>";
    134135        echo "<td bgcolor=\"$bgcolor1\" align=\"center\"><b>"._ASOLO_GRUPPO."</b></td>";
     136        echo "<td bgcolor=\"$bgcolor1\" align=\"center\"><b>"._DISGIUNTO."</b></td>";
    135137#       echo "<input type=\"hidden\" name=\"pag_cons\" value=\"admin.php?op=associazioni&amp;id_cons_gen=\">";
    136138        echo "</tr>";
     
    211213        }
    212214        unset($sel);
    213         $rescomu = mysql_query("SELECT vismf,solo_gruppo from ".$prefix."_ele_cons_comune where id_cons='$id_cons'", $dbi);
    214         list($vismf,$sg)=mysql_fetch_row($rescomu);
     215        $rescomu = mysql_query("SELECT vismf,solo_gruppo,disgiunto from ".$prefix."_ele_cons_comune where id_cons='$id_cons_comu'", $dbi);
     216        list($vismf,$sg,$disgiunto)=mysql_fetch_row($rescomu);
    215217        echo "<td><select name=\"vismf\">";
    216218        if ($vismf==0) $sel="selected"; else $sel="";
     
    225227        echo "<option value=\"1\" $sel>Si";
    226228        echo "</select></td>";
    227 
     229        echo "<td><select name=\"disgiunto\">";
     230        if ($disgiunto==0) $sel="selected"; else $sel="";
     231        echo "<option value=\"0\" $sel>No";
     232        if ($disgiunto==1) $sel="selected"; else $sel="";
     233        echo "<option value=\"1\" $sel>Si";
     234        echo "</select></td>";
     235       
    228236        echo "<td><input type=\"hidden\" name=\"ok\" value=0>";
    229237        echo "<input type=\"hidden\" name=\"id_cons_gen\" value=\"$id_cons_gen\">";
     
    243251############
    244252        echo "<hr><br><table width=\"100%\" border=\"3\">";
    245         echo "<tr align=\"center\"><td width=\"15%\" bgcolor=\"$bgcolor1\"><b>"._CONSULTA."</b></td>";
     253        echo "<tr align=\"center\"><td width=\"15%\" bgcolor=\"$bgcolor1\"><b>"._CONSULTA."TEST:$id_cons_comu</b></td>";
    246254#       echo "<td bgcolor=\"$bgcolor1\"><b>"._COLLEGI."</b></td>";
    247255        echo "<td width=\"20%\" bgcolor=\"$bgcolor1\"><b>"._DEFCOMUNE."</b></td>";
     
    253261                }
    254262        echo "<td width=\"10%\" bgcolor=\"$bgcolor1\" align=\"center\"><b>"._VISAFFMF."</b></td>";
     263        echo "<td width=\"10%\" bgcolor=\"$bgcolor1\" align=\"center\"><b>"._ASOLO_GRUPPO."</b></td>";
     264        echo "<td width=\"10%\" bgcolor=\"$bgcolor1\" align=\"center\"><b>"._DISGIUNTO."</b></td>";
    255265#       echo "<td width=\"10%\" bgcolor=\"$bgcolor1\" align=\"center\"><b>"._SG."</b></td>";
    256266        echo "<td width=\"10\" bgcolor=\"$bgcolor1\"><b>&nbsp;"._FUNZIONI."</td></tr>";
     
    260270#       $resmod = mysql_query("SELECT t1.id_collegio,t1.id_comune,t2.descrizione as descr,t1.id_cons, t3.descrizione, t4.chiusa,t4.id_conf FROM ".$prefix."_ele_comu_collegi as t1, ".$prefix."_ele_collegi as t2, ".$prefix."_ele_comuni as t3, ".$prefix."_ele_cons_comune as t4 where t1.id_cons_gen='$id_cons_gen' and t1.id_collegio=t2.id_collegio and t1.id_comune=t3.id_comune and t1.id_comune=t4.id_comune and t2.id_cons_gen=t4.id_cons_gen order by t2.descrizione, t3.descrizione", $dbi);
    261271#       else
    262         $resmod = mysql_query("SELECT '',t1.id_comune,'',t1.id_cons, t2.descrizione, t1.chiusa, t1.id_conf, preferenze,t1.id_fascia,t1.vismf,t1.solo_gruppo FROM ".$prefix."_ele_cons_comune as t1, ".$prefix."_ele_comuni as t2 where t1.id_cons_gen='$id_cons_gen' and t1.id_comune=t2.id_comune order by t2.descrizione", $dbi);
    263         while (list($id_collegio,$id_comune2,$descr_coll,$id_cons_comu,$descr_comu, $chiusa,$id_conf,$preferenze2,$fasciacom,$vismf) = mysql_fetch_row($resmod)){ //elenco dei modelli inseriti
     272        $resmod = mysql_query("SELECT '',t1.id_comune,'',t1.id_cons, t2.descrizione, t1.chiusa, t1.id_conf, preferenze,t1.id_fascia,t1.vismf,t1.solo_gruppo,t1.disgiunto FROM ".$prefix."_ele_cons_comune as t1, ".$prefix."_ele_comuni as t2 where t1.id_cons_gen='$id_cons_gen' and t1.id_comune=t2.id_comune order by t2.descrizione", $dbi);
     273        while (list($id_collegio,$id_comune2,$descr_coll,$id_cons_comu,$descr_comu, $chiusa,$id_conf,$preferenze2,$fasciacom,$vismf2,$sg2,$disgiunto2) = mysql_fetch_row($resmod)){ //elenco dei modelli inseriti
    264274                $resconf = mysql_query("SELECT descrizione FROM ".$prefix."_ele_conf where id_conf='$id_conf'", $dbi);
    265275                list($descr_conf) = mysql_fetch_row($resconf);
    266276                $i++;
    267277                $bgcolor1=($bgcolor1==$_SESSION['bgcolor1'])?$_SESSION['bgcolor2']:$_SESSION['bgcolor1'];
    268                 if($tipo_cons==3) echo "<tr><td colspan=\"8\">"; else echo "<tr><td colspan=\"6\">";
     278                if($tipo_cons==3) echo "<tr><td colspan=\"8\">"; else echo "<tr><td colspan=\"8\">";
    269279                echo "<form name=\"modello$i\" action=\"admin.php\">"
    270280                        ."<input type=\"hidden\" name=\"op\" value=\"associazioni\">";
     
    297307
    298308                }
    299                 if ($vismf==0) $sel=_NO; else $sel=_SI;
     309                if ($vismf2==0) $sel=_NO; else $sel=_SI;
     310                echo "<td width=\"10%\">$sel</td>";
     311                if ($sg2==0) $sel=_NO; else $sel=_SI;
     312                echo "<td width=\"10%\">$sel</td>";
     313                if ($disgiunto2==0) $sel=_NO; else $sel=_SI;
    300314                echo "<td width=\"10%\">$sel</td>";
    301315#               if ($sg==0) $sel=_NO; else $sel=_SI;
     
    311325
    312326function associazioni($ok, $do,$descr_comu,$id_cons_comu,$id_collegio,$id_comune,$chiusa,$id_conf,$preferenze) {
    313         global $admin, $bgcolor1, $bgcolor2, $prefix, $dbi, $descr_cons,$genere,$id_cons_gen,$idcomunenew,$pwd4,$idfascia,$vismf,$sg;
     327        global $admin, $bgcolor1, $bgcolor2, $prefix, $dbi, $descr_cons,$genere,$id_cons_gen,$idcomunenew,$pwd4,$idfascia,$vismf,$sg,$disgiunto;
    314328        $delcons=0;
    315329        if ($do !="" and $id_cons_gen>0 and $idcomunenew>0) {
     
    318332                        list($delcons)=mysql_fetch_row($rescomu);
    319333                        if (!$max){                     //se no la inserisce
    320                         $result = mysql_query("insert into ".$prefix."_ele_cons_comune (chiusa,id_comune,id_cons_gen,id_conf,preferenze,id_fascia,vismf,solo_gruppo) values ('0','$idcomunenew','$id_cons_gen','$id_conf','$preferenze','$idfascia','$vismf','$sg')", $dbi) || die("<br><br>Errore di inserimento: ".mysql_error());
     334                        $result = mysql_query("insert into ".$prefix."_ele_cons_comune (chiusa,id_comune,id_cons_gen,id_conf,preferenze,id_fascia,vismf,solo_gruppo,disgiunto) values ('0','$idcomunenew','$id_cons_gen','$id_conf','$preferenze','$idfascia','$vismf','$sg','$disgiunto')", $dbi) || die("<br><br>Errore di inserimento: ".mysql_error());
    321335                        $rescomu = mysql_query("SELECT id_cons from ".$prefix."_ele_cons_comune where id_cons_gen='$id_cons_gen' and id_comune='$idcomunenew'", $dbi);
    322336                list($id_cons_comu)=mysql_fetch_row($rescomu);
     
    332346                        $result = mysql_query("update ".$prefix."_ele_comu_collegi set id_collegio= '$id_collegio' $newid where id_comune='$id_comune' and id_cons_gen='$id_cons_gen'", $dbi) || die(mysql_error());
    333347                        if (!$result) return;
    334                         $result = mysql_query("update ".$prefix."_ele_cons_comune set id_conf='$id_conf', chiusa= '$chiusa', preferenze='$preferenze',id_fascia='$idfascia',vismf='$vismf',solo_gruppo='$sg' where id_comune='$id_comune' and id_cons_gen='$id_cons_gen'", $dbi)|| die(mysql_error());
     348                        $result = mysql_query("update ".$prefix."_ele_cons_comune set id_conf='$id_conf', chiusa= '$chiusa', preferenze='$preferenze',id_fascia='$idfascia',vismf='$vismf',solo_gruppo='$sg',disgiunto='$disgiunto' where id_comune='$id_comune' and id_cons_gen='$id_cons_gen'", $dbi)|| die(mysql_error());
    335349                        Header("Location: admin.php?op=associazioni&id_cons_gen=$id_cons_gen");
    336350                }elseif ($do == "add") {
  • trunk/admin/modules/Elezioni/ele_confcons.php

    r193 r254  
    4848if (isset($param['supminpremio'])) get_magic_quotes_gpc() ? $supminpremio=$param['supminpremio']:$supminpremio=addslashes($param['supminpremio']); else $supminpremio='';
    4949if (isset($param['listsupconta'])) get_magic_quotes_gpc() ? $listsupconta=$param['listsupconta']:$listsupconta=addslashes($param['listsupconta']); else $listsupconta='';
    50 if (isset($param['infdisgiunto'])) get_magic_quotes_gpc() ? $infdisgiunto=$param['infdisgiunto']:$infdisgiunto=addslashes($param['infdisgiunto']); else $infdisgiunto='';
    51 if (isset($param['supdisgiunto'])) get_magic_quotes_gpc() ? $supdisgiunto=$param['supdisgiunto']:$supdisgiunto=addslashes($param['supdisgiunto']); else $supdisgiunto='';
     50#if (isset($param['infdisgiunto'])) get_magic_quotes_gpc() ? $infdisgiunto=$param['infdisgiunto']:$infdisgiunto=addslashes($param['infdisgiunto']); else $infdisgiunto='';
     51#if (isset($param['supdisgiunto'])) get_magic_quotes_gpc() ? $supdisgiunto=$param['supdisgiunto']:$supdisgiunto=addslashes($param['supdisgiunto']); else $supdisgiunto='';
    5252if (isset($param['help'])) $help=intval($param['help']);
    5353
     
    7777        echo "<input type=\"hidden\" name=\"do\" value=\"update\">";
    7878        }else{
    79         $gru['id_conf']=$nuovo_gruppo;$gru['descrizione']='';$gru['limite']='';$gru['consin']='';$gru['infpremio']='';$gru['listinfsbar']='';$gru['listinfconta']='';$gru['supminpremio']='';$gru['infminpremio']='';$gru['suppremio']='';$gru['supsbarramento']='';$gru['listsupconta']='';$gru['infdisgiunto']='';$gru['supdisgiunto']='';
     79        $gru['id_conf']=$nuovo_gruppo;$gru['descrizione']='';$gru['limite']='';$gru['consin']='';$gru['infpremio']='';$gru['listinfsbar']='';$gru['listinfconta']='';$gru['supminpremio']='';$gru['infminpremio']='';$gru['suppremio']='';$gru['supsbarramento']='';$gru['listsupconta']='';
    8080        echo "<input type=\"hidden\" name=\"do\" value=\"add\">";
    8181        }
     
    9494        echo "<td align=\"center\"><b>"._CONSIN."</b></td><td><select name=\"consin\"><option value=\"0\">No<option value=\"1\" $sel>Si</select></td></tr>"
    9595        ."<tr><td align=\"center\" colspan=\"4\" bgcolor=\"$bgcolor2\"><b>"._SISTEMA_MAGGIORITARIO."</b></td></tr>";
    96         $sel= ($gru['infdisgiunto']==1) ? "selected":"";
    97         echo "<tr><td align=\"center\"><b>"._DISGIUNTO."</b></td><td><select name=\"infdisgiunto\"><option value=\"0\">No<option value=\"1\" $sel>Si</select></td></tr>"
    98         ."<tr><td align=\"center\"><b>"._INFPREMIO."</b></td><td><input type=\"text\" name=\"infpremio\" value=\"".$gru['infpremio']."\"></td>"
     96        echo "<tr><td align=\"center\"><b>"._INFPREMIO."</b></td><td><input type=\"text\" name=\"infpremio\" value=\"".$gru['infpremio']."\"></td>"
    9997        ."<td align=\"center\"><b>"._LISTINFSBAR."</b></td><td><input type=\"text\" name=\"listinfsbar\" value=\"".$gru['listinfsbar']."\"></td></tr>"
    10098        ."<tr><td align=\"center\"><b>"._INFMINPREMIO."</b></td><td><input type=\"text\" name=\"infminpremio\" value=\"".$gru['infminpremio']."\"></td>";
     
    102100        echo"<td align=\"center\"><b>"._LISTINFCONTA."</b></td><td><select name=\"listinfconta\"><option value=\"0\">No<option value=\"1\" $sel>Si</select></td></tr>"
    103101        ."<tr><td align=\"center\" colspan=\"4\" bgcolor=\"$bgcolor2\"><b>"._SISTEMA_PROPORZIONALE."</b></td></tr>";
    104         $sel= ($gru['supdisgiunto']==1) ? "selected":"";
    105         echo "<tr><td align=\"center\"><b>"._DISGIUNTO."</b></td><td><select name=\"supdisgiunto\"><option value=\"0\">No<option value=\"1\" $sel>Si</select></td></tr>"
    106         ."<tr><td align=\"center\"><b>"._SUPPREMIO."</b></td><td><input type=\"text\" name=\"suppremio\" value=\"".$gru['suppremio']."\"></td>"
     102        echo "<tr><td align=\"center\"><b>"._SUPPREMIO."</b></td><td><input type=\"text\" name=\"suppremio\" value=\"".$gru['suppremio']."\"></td>"
    107103        ."<td align=\"center\"><b>"._SUPSBAR."</b></td><td><input type=\"text\" name=\"supsbarramento\" value=\"".$gru['supsbarramento']."\"></td></tr>"
    108104        ."<tr><td align=\"center\"><b>"._SUPMINPREMIO."</b></td><td><input type=\"text\" name=\"supminpremio\" value=\"".$gru['supminpremio']."\"></td>";
     
    123119        $max = mysql_num_rows($res);
    124120        $result = mysql_query("select * from ".$prefix."_ele_conf ORDER BY id_conf  LIMIT $min,$offset", $dbi);
    125         while(list($id_conf,$descrizione,$limite, $consin,$infpremio, $supsbarramento, $suppremio, $listinfsbar, $listinfconta, $listsupconta, $infdisgiunto, $supdisgiunto) = mysql_fetch_row($result)) {
     121        while(list($id_conf,$descrizione,$limite, $consin,$infpremio, $supsbarramento, $suppremio, $listinfsbar, $listinfconta, $listsupconta) = mysql_fetch_row($result)) {
    126122                $bgcolor1=($bgcolor1==$_SESSION['bgcolor1'])?$_SESSION['bgcolor2']:$_SESSION['bgcolor1'];
    127123                echo "<tr bgcolor=\"$bgcolor1\"><td align=\"center\"><b>$id_conf</b></td>"
     
    173169
    174170function confcons($ok, $do) {
    175         global $prefix, $dbi, $id_cons,$simbolo2,$genere,$id_cons_gen,$id_comune,$min,$id_conf,$descrizione, $limite,$consin,$infpremio,$listinfsbar,$infminpremio,$listinfconta,$supsbarramento,$suppremio,$supminpremio,$listsupconta,$infdisgiunto,$supdisgiunto;
     171        global $prefix, $dbi, $id_cons,$simbolo2,$genere,$id_cons_gen,$id_comune,$min,$id_conf,$descrizione, $limite,$consin,$infpremio,$listinfsbar,$infminpremio,$listinfconta,$supsbarramento,$suppremio,$supminpremio,$listsupconta;
    176172        $aid=$_SESSION['aid'];
    177173        $perms=ChiSei($id_cons_gen);
     
    190186                        if ($descrizione) {
    191187                                $sqlset='';
    192                                 $result = mysql_query("insert into ".$prefix."_ele_conf(id_conf,descrizione, limite,consin,infpremio,supsbarramento,suppremio,listinfsbar,listinfconta,listsupconta,infminpremio,supminpremio,infdisgiunto,supdisgiunto) values ('$id_conf','$descrizione','$limite','$consin','$infpremio','$supsbarramento','$suppremio','$listinfsbar','$listinfconta','$listsupconta','$infminpremio','$supminpremio','$infdisgiunto','$supdisgiunto')", $dbi) || die("Errore di aggiornamento dei dati!".mysql_error());
     188                                $result = mysql_query("insert into ".$prefix."_ele_conf(id_conf,descrizione, limite,consin,infpremio,supsbarramento,suppremio,listinfsbar,listinfconta,listsupconta,infminpremio,supminpremio) values ('$id_conf','$descrizione','$limite','$consin','$infpremio','$supsbarramento','$suppremio','$listinfsbar','$listinfconta','$listsupconta','$infminpremio','$supminpremio')", $dbi) || die("Errore di aggiornamento dei dati!".mysql_error());
    193189                                if (!$result) return;
    194190                                Header("Location: admin.php?op=confconsiglio&id_cons_gen=$id_cons_gen&min=$min");
     
    201197                        }
    202198                } elseif ($do == "update") {
    203                         $result = mysql_query("update  ".$prefix."_ele_conf set descrizione='$descrizione', limite='$limite', consin='$consin', infpremio='$infpremio', supsbarramento='$supsbarramento', suppremio='$suppremio', listinfsbar='$listinfsbar', listinfconta='$listinfconta', listsupconta='$listsupconta', infminpremio='$infminpremio', supminpremio='$supminpremio',infdisgiunto='$infdisgiunto',supdisgiunto='$supdisgiunto' where id_conf='$id_conf' ", $dbi) || die("Errore di aggiornamento dei dati!".mysql_error());
     199                        $result = mysql_query("update  ".$prefix."_ele_conf set descrizione='$descrizione', limite='$limite', consin='$consin', infpremio='$infpremio', supsbarramento='$supsbarramento', suppremio='$suppremio', listinfsbar='$listinfsbar', listinfconta='$listinfconta', listsupconta='$listsupconta', infminpremio='$infminpremio', supminpremio='$supminpremio' where id_conf='$id_conf' ", $dbi) || die("Errore di aggiornamento dei dati!".mysql_error());
    204200                        Header("Location: admin.php?op=confconsiglio&id_cons_gen=$id_cons_gen&min=$min");
    205201                }
  • trunk/admin/modules/Elezioni/ele_configurazione.php

    r247 r254  
    224224                   if($files!=''){
    225225                        $sql = mysql_query("SELECT id FROM ".$prefix."_ele_temi where tema='$files'", $dbi);
    226                         list($idwid) = mysql_fetch_row($sql);
    227                         $id = intval($idwid);
     226                                if($sql){
     227                                        list($idwid) = mysql_fetch_row($sql);
     228                                        $id = intval($idwid);
     229                                }
    228230                        if (empty($id)) { // inserisce widget db se non esiste
    229231                        $result = mysql_query("insert into ".$prefix."_ele_temi (id,tema) values ( NULL,'$files')", $dbi);
  • trunk/admin/modules/Elezioni/ele_consultazionitipi.php

    r195 r254  
    108108                        case "5" : {
    109109                                if (!$pro_t['voto_g'] and !$pro_t['voto_c']) $gencons=_GENCONS5;
     110                                elseif (!$pro_t['voto_g'] and $pro_t['voto_c']) $gencons=_GENCONS3;
    110111                                else $gencons=_GENCONS6;       
    111112                                break;
  • trunk/admin/modules/Elezioni/ele_riepilogo.php

    r250 r254  
    2626$perms=ChiSei($id_cons_gen);
    2727if ($perms<16 or !$id_cons_gen) die("$perms Non hai i permessi per inserire dati, o non hai scelto la consultazione!");
    28 $res = mysql_query("SELECT t1.tipo_cons,t2.id_cons FROM ".$prefix."_ele_consultazione as t1, ".$prefix."_ele_cons_comune as t2 where t1.id_cons_gen=t2.id_cons_gen and t2.id_cons_gen='$id_cons_gen' and t2.id_comune='$id_comune'" , $dbi);
    29 list($tipo_cons,$id_cons) = mysql_fetch_row($res);
     28$res = mysql_query("SELECT t1.tipo_cons,t2.id_cons,t2.solo_gruppo,t2.disgiunto FROM ".$prefix."_ele_consultazione as t1, ".$prefix."_ele_cons_comune as t2 where t1.id_cons_gen=t2.id_cons_gen and t2.id_cons_gen='$id_cons_gen' and t2.id_comune='$id_comune'" , $dbi);
     29list($tipo_cons,$id_cons,$dettnulli,$disgiunto) = mysql_fetch_row($res);
    3030$res = mysql_query("SELECT genere,voto_g,voto_l FROM ".$prefix."_ele_tipo where tipo_cons='$tipo_cons' " , $dbi);
    3131        list($genere,$votog,$votol) = mysql_fetch_row($res);
     
    102102       
    103103        }else{
    104         if ($dettnulli){
     104        if ($dettnulli or $disgiunto){
    105105                        $res = mysql_query("SELECT id_gruppo,num_gruppo,descrizione from ".$prefix."_ele_gruppo where id_cons='$id_cons' order by num_gruppo", $dbi);
    106106
    107107        echo "<fieldset><legend>"._GRUPPO."</legend>";
    108         echo "<table border=\"1\" width=\"100%\"><tr><th colspan=\"2\" rowspan=\"2\" ALIGN=\"CENTER\"><b>Candidato</b></th><th rowspan=\"2\" ALIGN=\"CENTER\">"._VALIDI."</th><th colspan=\"2\" ALIGN=\"CENTER\">"._SOLO_GRUPPO."</th></tr><tr><th ALIGN=\"CENTER\">Senza indicazione di lista</th><th>"._VOTINULLI." di Lista</th></TR>";
     108        echo "<table border=\"1\" width=\"100%\"><tr><th colspan=\"2\" rowspan=\"2\" ALIGN=\"CENTER\"><b>Candidato</b></th><th rowspan=\"2\" ALIGN=\"CENTER\">"._VALIDI."</th><th colspan=\"2\" ALIGN=\"CENTER\">"._SOLO_GRUPPO."</th></tr><tr><th ALIGN=\"CENTER\">Senza indicazione di lista</th>";
     109        if ($disgiunto) echo "<th>"._SOLOLIS."</th>"; else echo "<th>"._VOTINULLI." di Lista</th>";
     110        echo "</TR>";
     111        $t_voti=0;$t_solo_gruppo=0;$t_nulli_lista=0;
    109112        while(list($id_gruppo,$num_gruppo,$desc) = mysql_fetch_row($res)){
    110113                $resv = mysql_query("SELECT sum(voti),sum(solo_gruppo) from ".$prefix."_ele_voti_gruppo where id_gruppo='$id_gruppo'", $dbi);
    111114                list($voti,$solo_gruppo)=mysql_fetch_row($resv);
    112                 $resv = mysql_query("SELECT sum(t1.nulli_lista) from ".$prefix."_ele_voti_lista as t1 left join ".$prefix."_ele_lista as t2 on t1.id_lista=t2.id_lista where t2.id_gruppo='$id_gruppo'", $dbi);
    113                 list($nulli_lista)=mysql_fetch_row($resv);
    114                        
    115                 ECHO "<TR><TD>".$num_gruppo."</TD><TD>".$desc."</TD><TD ALIGN=\"RIGHT\">".number_format($voti,0,',','.')."</TD><TD ALIGN=\"RIGHT\">".number_format($solo_gruppo,0,',','.')."</TD><TD ALIGN=\"RIGHT\">".number_format($nulli_lista,0,',','.')."</TD></TD></TR>";
     115                if($disgiunto){
     116                        $resv = mysql_query("SELECT sum(t1.solo_lista) from ".$prefix."_ele_voti_lista as t1 left join ".$prefix."_ele_lista as t2 on t1.id_lista=t2.id_lista where t2.id_gruppo='$id_gruppo'", $dbi);         
     117                }else{
     118                        $resv = mysql_query("SELECT sum(t1.nulli_lista) from ".$prefix."_ele_voti_lista as t1 left join ".$prefix."_ele_lista as t2 on t1.id_lista=t2.id_lista where t2.id_gruppo='$id_gruppo'", $dbi);
     119                }
     120                list($perlista)=mysql_fetch_row($resv);
     121                $t_voti+=$voti;$t_solo_gruppo+=$solo_gruppo;$t_perlista+=$perlista;     
     122                ECHO "<TR><TD>".$num_gruppo."</TD><TD>".$desc."</TD><TD ALIGN=\"RIGHT\">".number_format($voti,0,',','.')."</TD><TD ALIGN=\"RIGHT\">".number_format($solo_gruppo,0,',','.')."</TD><TD ALIGN=\"RIGHT\">".number_format($perlista,0,',','.')."</TD></TD></TR>";
    116123        }
     124        echo "<tr><th colspan=\"2\" rowspan=\"2\" ALIGN=\"CENTER\"><b>Totale</b></th><th rowspan=\"2\"  ALIGN=\"RIGHT\">$t_voti</th><th ALIGN=\"RIGHT\">$t_solo_gruppo</th><th ALIGN=\"RIGHT\">$t_perlista</th></tr>";
    117125        ECHO "</table><br/></fieldset><br/><br/><br/>";
    118126
  • trunk/admin/modules/Elezioni/ele_sezione.php

    r197 r254  
    5252        ."<td bgcolor=\"$bgcolor1\" align=\"center\" ><b>"._MASCHI."</b></td>"
    5353        ."<td bgcolor=\"$bgcolor1\" align=\"center\" ><b>"._FEMMINE."</b></td>"
    54         ."<td bgcolor=\"$bgcolor1\" align=\"center\" ><b>"._TOTS." "._VOTANTI."</b></td>"
     54        ."<td bgcolor=\"$bgcolor1\" align=\"center\" ><b>"._TOTS." "._ISCRITTI."</b></td>"
    5555        ."<td bgcolor=\"$bgcolor1\" align=\"center\"><b>"._FUNZIONI."</b></td></tr>";
    5656    $res = mysql_query("SELECT * FROM ".$prefix."_ele_sezioni where id_cons='$id_cons'  ", $dbi);
  • trunk/admin/modules/Elezioni/ele_voti.php

    r253 r254  
    4343include("modules/Elezioni/funzionidata.php");
    4444include("modules/Elezioni/ele.php");
    45 global $votolista, $limite, $dettnulli;
     45global $votolista, $limite, $dettnulli,$disgiunto;
    4646if(!isset($votolista)) $votolista=0;
    4747$res = mysql_query("SELECT tipo_cons FROM ".$prefix."_ele_consultazione where id_cons_gen='$id_cons_gen'" , $dbi);
     
    5050$res = mysql_query("SELECT count(id_circ) FROM ".$prefix."_ele_circoscrizione where id_cons='$id_cons' ", $dbi);
    5151list($num_circ)=mysql_fetch_row($res);
    52 $res = mysql_query("SELECT solo_gruppo FROM ".$prefix."_ele_cons_comune where id_cons='$id_cons' ", $dbi);
    53 list($dettnulli)=mysql_fetch_row($res);
     52$res = mysql_query("SELECT solo_gruppo,disgiunto FROM ".$prefix."_ele_cons_comune where id_cons='$id_cons' ", $dbi);
     53list($dettnulli,$disgiunto)=mysql_fetch_row($res);
    5454if ($conscirc){  // or $num_circ==1
    5555        if (!$id_circ){
     
    8080
    8181function stato_rilevazione($id_sez,$solosede){
    82 global $id_cons, $prefix, $dbi, $id_cons_gen,$status,$genere,$votol, $votog, $votoc,$idrefgruppo,$num_ril,$circo;
     82global $id_cons, $prefix, $dbi, $id_cons_gen,$status,$genere,$votol, $votog, $votoc,$idrefgruppo,$num_ril,$circo,$dettnulli,$tipo_cons;
    8383
    8484if($idrefgruppo and $genere==0) $perref= "and id_gruppo='$idrefgruppo'";
     
    142142                #controllo congruenza voti espressi
    143143                        #per referendum
     144                $resref = mysql_query("SELECT id_gruppo FROM ".$prefix."_ele_gruppo where id_cons='$id_cons'", $dbi);
    144145                if($genere==0){
    145                         $resref = mysql_query("SELECT id_gruppo FROM ".$prefix."_ele_gruppo where id_cons='$id_cons'", $dbi);
    146146                        $numscru=mysql_num_rows($resref); $rifscru=0;
    147147                        while(list($idrefgruppo)=mysql_fetch_row($resref)) {
     
    178178                #controllo congruenza voti di gruppo
    179179                if($genere!=4){
    180                 $res3= mysql_query("SELECT sum(voti) FROM ".$prefix."_ele_voti_gruppo where id_sez='$id_sez' and id_cons='$id_cons'", $dbi);
     180                $res3= mysql_query("SELECT sum(voti),sum(solo_gruppo) FROM ".$prefix."_ele_voti_gruppo where id_sez='$id_sez' and id_cons='$id_cons'", $dbi);
    181181                if($res3 and !$votog){#$status=0;$ops=-4;
    182                         list($votigs) = mysql_fetch_row($res3);
     182                        list($votigs,$votisolog) = mysql_fetch_row($res3);
    183183                        if($votigs  and $genere!=2) { 
    184184                                #       $status=0;
     
    186186#                                       $res4 = mysql_query("$query", $dbi);
    187187#                                       list($votigs)=mysql_fetch_row($res4);
    188                                         if($votigs>0) {
    189                                                 if (($votigs+$sololista)==$validi)
     188                                        if($votigs>0||$sololista==$validi) {
     189                                                if (($votigs+$sololista)==$validi && (!$sologruppo || $votisolog==($sologruppo*$dettnulli) || ($sologruppo<$validi and $validilista+$contestatilista+$votinullilista==0)))
    190190                                                        {$status=3;$ops=-3;$gru=1;}
    191191                                                else {$gru=-1; $stret=4;}
     
    195195                }#else {$gru=1;echo "--$votigs -- $votog";}
    196196                if(($genere>1 and !$votol)){#$status=0;
    197                 $res4= mysql_query("SELECT t1.preferenze,t1.id_fascia,t2.limite FROM ".$prefix."_ele_cons_comune as t1 left join ".$prefix."_ele_conf as t2 on t1.id_conf=t2.id_conf where t1.id_cons='$id_cons'", $dbi);
    198                 if($res4) list($testpref,$fascia,$limite)=mysql_fetch_row($res4); else {$testpref=0;$fascia=0;$limite=0;}
     197                $res4= mysql_query("SELECT t1.preferenze,t1.id_fascia,t2.limite,t1.disgiunto FROM ".$prefix."_ele_cons_comune as t1 left join ".$prefix."_ele_conf as t2 on t1.id_conf=t2.id_conf where t1.id_cons='$id_cons'", $dbi);
     198                if($res4) list($testpref,$fascia,$limite,$disgiunto)=mysql_fetch_row($res4); else {$testpref=0;$fascia=0;$limite=0;}
    199199
    200200                #controllo congruenza voti di lista
    201201#               $res3= mysql_query("SELECT sum(voti) FROM ".$prefix."_ele_voti_lista where id_cons='$id_cons'", $dbi);
    202202#                       list($votil) = mysql_fetch_row($res3);
    203                                         $tablg=$fascia<=$limite ? "gruppo":"lista";
    204                                         $query="SELECT sum(voti) FROM ".$prefix."_ele_voti_$tablg where id_sez='$id_sez' and  id_cons='$id_cons'";     
     203                                        $tablg=($fascia<=$limite && !$disgiunto) ? "gruppo":"lista";
     204                                        $query="SELECT sum(voti),sum(solo_".$tablg.") FROM ".$prefix."_ele_voti_$tablg where id_sez='$id_sez' and  id_cons='$id_cons'";
    205205                                        $res4 = mysql_query($query, $dbi);
    206                                         list($votils)=mysql_fetch_row($res4);
     206                                        list($votils,$votisolols)=mysql_fetch_row($res4);
    207207                                        $query="SELECT voti FROM ".$prefix."_ele_voti_$tablg where id_sez='$id_sez' and  id_cons='$id_cons'";   
    208208                                        $res4 = mysql_query($query, $dbi);
    209209                                        $sezscru=mysql_num_rows($res4);
    210210                        if($sezscru) {
    211                                         if($genere==4 or $votog) $contrlis= ($validilista+$sologruppo==$validi) ? 1:0;
    212                                         else $contrlis=($sologruppo+$validilista+$contestatilista+$votinullilista-$sololista)==$validi ? 1:0;
     211                                        if($genere==4 or $votog) {$contrlis= ($votisolols==$sololista || $votisolols==0) ? 1:0; }
     212#################                                       
     213                                    else {
     214                                        $contrlis=($sologruppo+$validilista+$contestatilista+$votinullilista)==$validi  ? 1:0;
     215                                        if($contrlis and $disgiunto and ($sologruppo+$validilista+$contestatilista+$votinullilista)==0)
     216                                                $contrlis=($votisolols==$sololista  || $votisolols==0) ? 1:0;
     217                                                if($contrlis  and $tipo_cons==18 or $tipo_cons==19)
     218                                                        while ( list($id_gruppo)=mysql_fetch_row($resref))
     219                                                                {
     220                                                                $res3= mysql_query("SELECT sum(voti-solo_gruppo) FROM ".$prefix."_ele_voti_gruppo where id_sez='$id_sez' and id_gruppo='$id_gruppo'", $dbi);
     221                                                                $res4= mysql_query("SELECT sum(voti+nulli_lista) FROM ".$prefix."_ele_voti_lista where id_sez='$id_sez' and  id_lista in (select id_lista from ".$prefix."_ele_lista where id_gruppo='$id_gruppo')", $dbi);
     222                                                                list($vgruppo)=mysql_fetch_row($res3);
     223                                                                list($vliste)=mysql_fetch_row($res4);
     224                                                                if($vliste>$vgruppo) {$contrlis=0 ;}
     225                                                                if($vliste<$vgruppo) {$contrlis=0 ;}
     226                                                }
     227                                        }
     228#################       
     229                                       
    213230                                        if((($contrlis) and $validilista==$votils) or ($fascia<=$limite and $fascia)) {$status=4;$lis=1;$ops=-4;}
    214231                                        elseif($sezscru) {$stret=3;$lis=-1;}
     
    226243                                                        if($res4) list($testpref)=mysql_fetch_row($res4); else $testpref=0;
    227244                                                        while(list($testlista)=mysql_fetch_row($res3)){
    228                                                                 if($fascia<=$limite)
     245                                                                if($fascia<=$limite and !$disgiunto and !$dettnulli)
    229246                                                                {
    230247                                                                        $res4= mysql_query("SELECT id_gruppo FROM ".$prefix."_ele_lista where id_cons='$id_cons' and id_lista='$testlista'", $dbi);
     
    535552function preferenze($id_cons,$do,$id_circ,$id_sede,$id_sez,$ops){
    536553        global $aid, $prefix, $dbi, $id_lista,$genere,$id_cons_gen,$id_gruppo,$sezi,$circo,$votog,$votol,$votoc,$conscirc;
    537 global $tipo_cons,$limite,$dettnulli;
     554global $tipo_cons,$limite,$dettnulli,$disgiunto;
    538555
    539556$bgcolor1="#7777ff";
    540557$bgcolor2=$_SESSION['bgcolor2'];
    541558    //controlla se sono stati inseriti i votanti
    542 $result = mysql_query("SELECT preferenze, id_fascia, id_conf from ".$prefix."_ele_cons_comune where id_cons='$id_cons'",$dbi);
    543 list($numprefs,$fascia,$id_conf)=mysql_fetch_row($result);
     559$result = mysql_query("SELECT preferenze, id_fascia, id_conf,solo_gruppo, disgiunto from ".$prefix."_ele_cons_comune where id_cons='$id_cons'",$dbi);
     560list($numprefs,$fascia,$id_conf,$flagsg,$disgiunto)=mysql_fetch_row($result);
     561
    544562####### 06-11-2014 - circoscrizionali - nello spostamento ad altra sezione resta sullo stesso numero di lista anche se sono sezioni di diverse circoscrizioni
    545563if ($circo and $id_lista){
     
    560578                $ele_lista='';
    561579                if (($genere==4 or $genere==5) and !$votoc) { //liste a piu' candidati
    562                         if(($genere==5 and $id_conf and $fascia<=$limite and !isdisgiunto()) and !$id_lista) { //esclude il voto di lista per le comunali nei comuni sotto fascia limite
     580                        if(($genere==5 and $id_conf and $fascia<=$limite and !$disgiunto) and !$id_lista) { //esclude il voto di lista per le comunali nei comuni sotto fascia limite
    563581                                $result = mysql_query("SELECT id_lista from ".$prefix."_ele_lista where id_cons=$id_cons limit 0,1",$dbi);
    564582                                list($id_lista)=mysql_fetch_row($result);
     
    583601                        $result = mysql_query("SELECT sum(t1.voti),0,0 from ".$prefix."_ele_voti_candidati as t1 left join ".$prefix."_ele_candidati as t2 on (t1.id_cand=t2.id_cand) where t1.id_sez=$id_sez and t2.id_lista=$id_rif",$dbi);
    584602                        list($votisezcand)=mysql_fetch_row($result);
    585                         if((($fascia>$limite or isdisgiunto()) or !$id_conf) or $genere==4)
    586                 $result = mysql_query("SELECT voti,nulli_lista from ".$prefix."_ele_voti_lista where id_sez='$id_sez' and id_lista='$id_rif'", $dbi);
     603                        if((($fascia>$limite or $disgiunto) or !$id_conf) or $genere==4)
     604                $result = mysql_query("SELECT voti,solo_lista from ".$prefix."_ele_voti_lista where id_sez='$id_sez' and id_lista='$id_rif'", $dbi);
    587605            else{
    588606
    589607                                $result = mysql_query("SELECT id_gruppo from ".$prefix."_ele_lista where id_lista='$id_rif'", $dbi);
    590608                                list($id_gruppo)=mysql_fetch_row($result);
    591                                 $result = mysql_query("SELECT sum(voti),0,0 from ".$prefix."_ele_voti_gruppo where id_sez='$id_sez' and id_gruppo='$id_gruppo'", $dbi);
     609                                $result = mysql_query("SELECT sum(voti),0 from ".$prefix."_ele_voti_gruppo where id_sez='$id_sez' and id_gruppo='$id_gruppo'", $dbi);
    592610            }
    593                         list($votisezlis,$sgpl,$vnpl)=mysql_fetch_row($result);
     611                        list($votisezlis,$sgpl)=mysql_fetch_row($result);
    594612                        if($votisezcand>($votisezlis*$numprefs))
    595613                                {$segna="style=\"background-color: #dd0000;\"";}
     
    614632                if ((!$id_lista)){$tab="_ele_voti_lista";} else {$tab="_ele_voti_candidati";}
    615633if(($genere==4 or ($genere==5 and $votog)) and !$id_lista)     
    616                 $result = mysql_query("SELECT sum(t1.voti),t2.validi, t2.solo_gruppo,t2.contestati_lista,t2.voti_nulli,t2.bianchi,t2.nulli,0,0,0,0 from ".$prefix."_ele_sezioni as t2 left join ".$prefix.$tab." as t1 on (t1.id_sez=t2.id_sez) where t2.id_sez=$id_sez group by t1.id_sez",$dbi);
     634                $result = mysql_query("SELECT sum(t1.voti),t2.validi, t2.solo_gruppo,t2.contestati_lista,t2.voti_nulli,t2.bianchi,t2.nulli,0,0,0 from ".$prefix."_ele_sezioni as t2 left join ".$prefix.$tab." as t1 on (t1.id_sez=t2.id_sez) where t2.id_sez=$id_sez group by t1.id_sez",$dbi);
    617635else
    618         if($tab=="_ele_voti_lista")
    619                 $result = mysql_query("SELECT sum(t1.voti),t2.validi_lista, t2.solo_gruppo,t2.contestati_lista,t2.voti_nulli_lista,t2.bianchi,t2.nulli,t2.contestati,t2.voti_nulli,0,t1.nulli_lista from ".$prefix."_ele_sezioni as t2 left join ".$prefix.$tab." as t1 on (t1.id_sez=t2.id_sez) where t2.id_sez='$id_sez' group by t1.id_sez",$dbi);
    620         else
    621                 $result = mysql_query("SELECT sum(t1.voti),t2.validi_lista, t2.solo_gruppo,t2.contestati_lista,t2.voti_nulli_lista,t2.bianchi,t2.nulli,t2.contestati,t2.voti_nulli,solo_lista,0 from ".$prefix."_ele_sezioni as t2 left join ".$prefix.$tab." as t1 on (t1.id_sez=t2.id_sez) where t2.id_sez='$id_sez' group by t1.id_sez",$dbi);
    622 
    623 // aggiunte le variabili $sgpl e $vnpl per la gestione dei voti 1) al solo presidente per singola lista - 2) al solo presidente per singola lista perché nullo o contestato quello di lista             
    624                 list( $voti_sez, $validi2, $sg,$cont2,$vnulli2,$bia2,$nul2,$con2,$vnul2,$sgpl,$vnpl) = mysql_fetch_row($result);
     636                $result = mysql_query("SELECT sum(t1.voti),t2.validi_lista, t2.solo_gruppo,t2.contestati_lista,t2.voti_nulli_lista,t2.bianchi,t2.nulli,t2.contestati,t2.voti_nulli,t2.solo_gruppo from ".$prefix."_ele_sezioni as t2 left join ".$prefix.$tab." as t1 on (t1.id_sez=t2.id_sez) where t2.id_sez='$id_sez' group by t1.id_sez",$dbi);
     637// aggiunte le variabili $sgpl e $vnulli2 per la gestione dei voti 1) al solo presidente per singola lista - 2) al solo presidente per singola lista perché nullo o contestato quello di lista         
     638                $isscr= mysql_num_rows($result);
     639                list( $voti_sez, $validi2, $sg,$cont2,$vnulli2,$bia2,$nul2,$con2,$vnul2,$sgpl) = mysql_fetch_row($result);
     640                if(($genere==5 and !$disgiunto and $voti_sez and $flagsg and ($tipo_cons==18 or $tipo_cons==19))){
     641                        $resg = mysql_query("SELECT sum(solo_gruppo) from ".$prefix."_ele_voti_gruppo where id_cons=$id_cons and id_sez=$id_sez",$dbi);
     642                        list($sgpl)=mysql_fetch_row($resg);
     643                        if ($sg != $sgpl) echo "<table class=\"table-menu\" style=\"width: 50%;\"><tr><td style=\"background-color: rgb(255, 0, 0); color: black; text-align: center\"><img src=\"modules/Elezioni/images/alert.gif\" align=\"middle\" alt=\"\"><br><b> "._ATT_UNI." ".$sgpl." "._ATT_TOT_UNI." ".$sg."</b><br></td></table>";
     644                }
    625645                $valista=$validi2;
    626646                if(!$id_lista or $genere==3){   //controllo di congruenza
     
    637657                        $result = mysql_query("SELECT sum(t1.voti) from ".$prefix."_ele_voti_candidati as t1 left join ".$prefix."_ele_candidati as t2 on (t1.id_cand=t2.id_cand) where t1.id_sez=$id_sez and t2.id_lista=$id_lista",$dbi);
    638658                        list($votisezcand)=mysql_fetch_row($result);
    639                         if(($fascia>$limite or isdisgiunto()) or !$id_conf)
     659                        if(($fascia>$limite or $disgiunto) or !$id_conf)
    640660                 $result = mysql_query("SELECT sum(voti) from ".$prefix."_ele_voti_lista where id_sez='$id_sez' and id_lista='$id_lista'", $dbi);
    641661            else{
     
    647667                        list($votisezlis)=mysql_fetch_row($result);
    648668                        if($votisezcand>($votisezlis*$numprefs))
     669                                {
    649670                                echo "<table class=\"table-menu\" style=\"width: 50%;\"><tr><td style=\"background-color: rgb(255, 0, 0); color: black; text-align: center\"><img src=\"modules/Elezioni/images/alert.gif\" align=\"middle\" alt=\"\"><br/><b> ATTENZIONE!<BR/>I voti di preferenza $votisezcand <br/>superano i voti di lista $votisezlis</b><br></td></tr></table>";
    650                        
     671                                }
     672                }
     673#controllo voti a liste collegate <= voto di gruppo per voto non disgiunto
     674        $errgrulis=array();
     675        if($genere==5 and !$disgiunto  and ($tipo_cons==18 or $tipo_cons==19)){
     676                $resref = mysql_query("SELECT id_gruppo FROM ".$prefix."_ele_gruppo where id_cons='$id_cons'", $dbi);
     677                $res4= mysql_query("SELECT count(0) FROM ".$prefix."_ele_voti_lista where id_sez='$id_sez'", $dbi);
     678                list($sezscrl)=mysql_fetch_row($res4);
     679                if ($sezscrl)
     680                               
     681                while ( list($id_gruppo)=mysql_fetch_row($resref))
     682                    {
     683                    $res3= mysql_query("SELECT sum(voti-solo_gruppo) FROM ".$prefix."_ele_voti_gruppo where id_sez='$id_sez' and id_gruppo='$id_gruppo'", $dbi);
     684                    $res4= mysql_query("SELECT sum(voti+nulli_lista) FROM ".$prefix."_ele_voti_lista where id_sez='$id_sez' and  id_lista in (select id_lista from ".$prefix."_ele_lista where id_gruppo='$id_gruppo')", $dbi);
     685                    list($vgruppo)=mysql_fetch_row($res3);
     686                    list($vliste)=mysql_fetch_row($res4);
     687                    if($vliste>$vgruppo)
     688                        {
     689                         $result = mysql_query("SELECT descrizione FROM ".$prefix."_ele_gruppo where id_gruppo='$id_gruppo'", $dbi);
     690                         list($dgruppo)=mysql_fetch_row($result);
     691                        echo "<table class=\"table-menu\" style=\"width: 50%;\"><tr><td style=\"background-color: rgb(255, 0, 0); color: black; text-align: center\"><img src=\"modules/Elezioni/images/alert.gif\" align=\"middle\" alt=\"\"><br/><b> ATTENZIONE!<BR/>I voti delle liste collegate<br/> superano i voti assegnati al gruppo $dgruppo </b><br></td></tr></table>";
     692                        $errgrulis[$id_gruppo]=1;
     693                        }
     694                    elseif($vliste<$vgruppo)
     695                        {
     696                         $result = mysql_query("SELECT descrizione FROM ".$prefix."_ele_gruppo where id_gruppo='$id_gruppo'", $dbi);
     697                         list($dgruppo)=mysql_fetch_row($result);
     698                        echo "<table class=\"table-menu\" style=\"width: 50%;\"><tr><td style=\"background-color: rgb(255, 0, 0); color: black; text-align: center\"><img src=\"modules/Elezioni/images/alert.gif\" align=\"middle\" alt=\"\"><br/><b> ATTENZIONE!<BR/>I voti assegnati al gruppo $dgruppo<br/> superano i voti delle liste collegate </b><br></td></tr></table>";
     699                        $errgrulis[$id_gruppo]=1;
     700                        }
     701                    }
    651702                }
    652703
     
    674725                        echo "<td bgcolor=\"$bgcolor1\" align=\"left\"><b>"._DESCR."</b></td>"
    675726                        ."<td bgcolor=\"$bgcolor1\" align=\"center\"><b>"._VOTI."</b></td>";
    676                         if($dettnulli){
     727                        if($dettnulli && !$disgiunto  && $tipo_cons!=18 && $tipo_cons!=19)
    677728                        echo "<td bgcolor=\"$bgcolor1\" align=\"center\"><b>"._NULLI_LISTE."</b></td>";
     729                        if($disgiunto){
     730                        echo "<td bgcolor=\"$bgcolor1\" align=\"center\"><b>"._SOLOLIS."</b></td>";
    678731                        }
    679732                }
     
    714767                        }
    715768                }else {
    716                         $result1 = mysql_query("select t2.voti,t1.id_lista, descrizione,simbolo,num_lista,t2.nulli_lista
     769                        $result1 = mysql_query("select t2.voti,t1.id_lista, descrizione,simbolo,num_lista,t2.nulli_lista,t2.solo_lista,t1.id_gruppo
    717770                        from ".$prefix."_ele_lista as t1, ".$prefix."_ele_voti_lista as t2
    718771                        where t1.id_cons='$id_cons'
     
    722775                        $num_lista=mysql_num_rows($result1);
    723776                        if (!$num_lista){
    724                                 $result1 = mysql_query("select '',t1.id_lista, descrizione,simbolo,num_lista
    725                                 from ".$prefix."_ele_lista as t1 where t1.id_cons='$id_cons' $circo
    726                                 order by t1.num_lista", $dbi);
    727                         }
    728                         while (list($pro['voti'],$id_lista3,$descr_lista,$simb_lista,$num_lista,$vnpl)=mysql_fetch_row($result1)){
     777                                $result1 = mysql_query("select '',id_lista, descrizione,simbolo,num_lista,'','',id_gruppo
     778                                from ".$prefix."_ele_lista where id_cons='$id_cons' $circo
     779                                order by num_lista", $dbi);
     780                        }
     781                        while (list($pro['voti'],$id_lista3,$descr_lista,$simb_lista,$num_lista,$vnpl,$slpl,$rifgruppo)=mysql_fetch_row($result1)){
    729782                                echo "<tr bgcolor=\"$bgcolor2\">";
    730783//                              if ($genere<4 or $votoc){
    731784//                              }
    732 
     785                                $errcolor='';
     786                                if(isset($errgrulis[$rifgruppo])) $errcolor="style=\"background-color: rgb(255, 0, 0);\"";
    733787                                echo "<td align=\"center\"><b> $num_lista </b></td>"
    734788                                ."<td align=\"left\"><b> $descr_lista</b></td>";
    735789                                $cond_sele="and id_lista=$id_lista3";
    736                                 echo "<td align=\"right\"><input  name=\"voti$i\" value=\"".$pro['voti']."\" size=\"7\"  style=\"text-align:right\">";
    737 
    738                                 if($dettnulli) echo "</td><td align=\"right\"><input  name=\"vnpl$i\" value=\"".$vnpl."\" size=\"7\"  style=\"text-align:right\"><input type=\"hidden\" name=\"id_lista$i\" value=\"$id_lista3\"></td>";
    739                                 else echo "<input type=\"hidden\" name=\"id_lista$i\" value=\"$id_lista3\"></td>";
     790                                echo "<td align=\"right\" $errcolor><input  name=\"voti$i\" value=\"".$pro['voti']."\" size=\"7\"  style=\"text-align:right\">";
     791                                if($dettnulli && !$disgiunto  && $tipo_cons!=18 && $tipo_cons!=19) echo "</td><td align=\"right\"><input  name=\"vnpl$i\" value=\"".$vnpl."\" size=\"7\"  style=\"text-align:right\">";
     792                                if($disgiunto) echo "</td><td align=\"right\"><input  name=\"slpl$i\" value=\"".$slpl."\" size=\"7\"  style=\"text-align:right\">";
     793                                echo "<input type=\"hidden\" name=\"id_lista$i\" value=\"$id_lista3\"></td>";
    740794//                              echo "<td align=\"right\">$sgpl";
    741795                                echo "</tr>\n";
     
    748802                // toglie ai candidati la visual... del solo_gruppo
    749803                if(!$votog) {
    750                    if (($genere==3 OR $genere==5) and (!$id_lista) and ((isdisgiunto() or $fascia>$limite) or !$id_conf)) { //gruppo e liste
     804                   if (($genere==3 OR $genere==5) and (!$id_lista) and (($disgiunto or $fascia>$limite) or !$id_conf)) { //gruppo e liste
    751805                        echo "<tr bgcolor=\"$bgcolor2\"><td></td><td><b>"._VALIDI_LISTA."</b></td><td align=\"center\"><input type=\"hidden\" name=\"id_sez\" value=\"$id_sez\"><input name=\"valista\" value=\"$valista\" size=\"5\" style=\"text-align:right\"></td></tr>";
    752806                        echo "<tr bgcolor=\"$bgcolor2\"><td></td><td><b>"._SOLO_GRUPPO."</b></td><td align=\"center\"><input name=\"sg\" value=\"$sg\" size=\"5\" style=\"text-align:right\"></td></tr>";
     
    754808        ."</td></tr><tr bgcolor=\"$bgcolor2\"><td></td><td><b>"._CONTESTATI_LISTE."</b></td><td align=\"center\"><input  name=\"contestati\" value=\"$contestati\" size=\"5\" style=\"text-align:right\"></td></tr>";
    755809                       
    756                    }elseif (($genere==3 OR $genere==5) and !$votoc and ((isdisgiunto() or $fascia>$limite) or !$id_conf)){ //}elseif ($tipo_cons!=10 and $tipo_cons!=11){
     810                   }elseif (($genere==3 OR $genere==5) and !$votoc and (($disgiunto or $fascia>$limite) or !$id_conf)){ //}elseif ($tipo_cons!=10 and $tipo_cons!=11){
    757811                        echo "<tr bgcolor=\"$bgcolor1\"><td></td><td><b>"._SOLO_GRUPPO."</b></td><td align=\"center\">$sg</td></tr>";
    758812                   }
     
    795849
    796850function rec_voti() {
    797         global $prefix, $dbi,$aid,$id_cons,$ops,$genere,$votog,$fileout,$id_comune,$limite,$update,$dettnulli;
     851        global $prefix, $dbi,$aid,$id_cons,$ops,$genere,$votog,$fileout,$id_comune,$limite,$update,$dettnulli,$disgiunto,$tipo_cons;
    798852       
    799853        $sqlcomu="select id_fascia,id_conf from ".$prefix."_ele_cons_comune where id_cons='$id_cons'";
     
    819873                $condizione="id_cand";
    820874        }else{
    821                 $condizione="id_lista";
    822         }
    823         if ((($genere==3) OR ($genere==5)) and !$id_lista and !$votog and ((isdisgiunto() or $fascia>$limite) or !$id_conf)) $y = (count($arg)-4);
     875                $condizione="id_lista"; 
     876        }
     877        if ((($genere==3) OR ($genere==5)) and !$id_lista and !$votog and (($disgiunto or $fascia>$limite) or !$id_conf)) $y = (count($arg)-4);
    824878        else $y=count($arg);#die ("delete from ".$prefix."_ele_controllosez where id_cons='$id_cons' and id_sez='$id_sez'");
    825879        mysql_query("delete from ".$prefix."_ele_controllosez where id_cons='$id_cons' and id_sez='$id_sez'", $dbi);
     
    833887        for($i=8,$y--;$i< $y;$i++) {           
    834888                $voti = intval($arg[$i++]);
    835                 if($dettnulli and $condizione!="id_cand") {$vnpl = intval($arg[$i++]); $vnriga=",nulli_lista='$vnpl'"; $vnrigains=",'".$vnpl."'";} else {$vnriga=''; if ($condizione=="id_lista") $vnrigains=",''"; else $vnrigains="";}
     889                $vnrigains=",'0'";
     890                $vnriga='';
     891                if($dettnulli && !$disgiunto && $tipo_cons!=18 && $tipo_cons!=19 and $condizione!="id_cand") {$vnpl = intval($arg[$i++]); $vnriga=",nulli_lista='$vnpl'"; $vnrigains=",'".$vnpl."'";} else {if (!($condizione=="id_lista")) $vnrigains="";}
     892                if($disgiunto and $condizione!="id_cand") {$slpl = intval($arg[$i++]); $vnriga.=",solo_lista='$slpl'"; $vnrigains.=",'".$slpl."'";} else {$vnriga.=''; if ($condizione=="id_lista") $vnrigains.=",'0'"; else $vnrigains="";}
    836893                $id_cand = intval($arg[$i]);
    837894                $result = mysql_query("select * from ".$prefix."$tab where id_cons='$id_cons' and id_sez='$id_sez' and $condizione='$id_cand'", $dbi);
     
    839896
    840897                if ($ar){
    841                         if ($ar['voti']!=$voti or (isset($vnpl) and $ar['nulli_lista']!=$vnpl)) {
     898#die("T1:$dettnulli -- T2:$disgiunto -- update  ".$prefix."$tab set voti='$voti'$vnriga where id_cons='$id_cons' and id_sez='$id_sez' and $condizione='$id_cand'");
     899                        if ($ar['voti']!=$voti or (isset($vnpl) and $ar['nulli_lista']!=$vnpl) or (isset($slpl) and $ar['solo_lista']!=$slpl)) {
    842900                                mysql_query("update  ".$prefix."$tab set voti='$voti'$vnriga where id_cons='$id_cons' and id_sez='$id_sez' and $condizione='$id_cand'", $dbi);
    843901                                if ($fileout) fwrite($fp,"update  ".$prefix."$tab set voti='$voti' where id_cons='$id_cons' and id_sez='$id_sez' and $condizione='$id_cand';\n");
     
    855913
    856914        if(!$votog) {
    857            if ((($genere==3) OR ($genere==5)) and !$id_lista and ((isdisgiunto() or $fascia>$limite) or !$id_conf)) {
     915           if ((($genere==3) OR ($genere==5)) and !$id_lista and (($disgiunto or $fascia>$limite) or !$id_conf)) {
    858916                        $valista=$arg[$i++];
    859917                        $result = mysql_query("update ".$prefix."_ele_sezioni set solo_gruppo='".$arg[$i]."' where id_sez='$id_sez'",$dbi);
     
    11761234   $tot_voti=$validi+$nulli+$bianchi+$contestati+$votinulli;
    11771235$sololista=$voti_t-$tot_voti;
     1236        $result= mysql_query("select solo_gruppo,disgiunto from ".$prefix."_ele_cons_comune where id_cons='$id_cons' ", $dbi);
     1237        list($flagsg,$disgiunto)=mysql_fetch_row($result);
    11781238        $result= mysql_query("select * from ".$prefix."_ele_sezioni where id_cons='$id_cons' and id_sez='$id_sez' ", $dbi);
    11791239        $ar=mysql_fetch_array($result);
    11801240        $validilista=$validi-$ar['solo_gruppo'];
    1181         if ($ar['solo_lista'] or !isdisgiunto()) $rigasl=''; else $rigasl=", solo_lista='$sololista'";
     1241        if ($ar['solo_lista'] or !$disgiunto) $rigasl=''; else $rigasl=", solo_lista='$sololista'";
    11821242#die("qui: if($ops==3 and ($genere==3 or $genere==4 or $genere==5) and $votog){");
    11831243        if($ops==3 and ($genere==3 or $genere==4 or $genere==5) and ($votog or $genere==4)){
     
    12351295        ."</script>\n";
    12361296// tabella votanti
     1297        echo "<center>";
    12371298    if ($genere!=0){
    12381299        $result = mysql_query("SELECT voti_uomini,voti_donne, voti_complessivi FROM ".$prefix."_ele_voti_parziale where id_sez='$id_sez' and id_cons='$id_cons' order by data desc,orario desc limit 0,1", $dbi);
     
    12431304        echo "</table>";
    12441305    }
    1245         echo "<table  class=\"table-menu\" style=\"width: 50%; color: black\"><tr>";
     1306        echo "<table  class=\"table-menu\" style=\"width: 50%; color: black\">";
    12461307    if ($genere==0){
    12471308        $res = mysql_query("SELECT id_gruppo,si+no,validi,nulli,bianchi,contestati FROM ".$prefix."_ele_voti_ref where id_cons='$id_cons' and id_sez='$id_sez'  ", $dbi);
     
    12501311                                $res2 = mysql_query("SELECT num_gruppo FROM ".$prefix."_ele_gruppo where id_cons='$id_cons' and id_gruppo='$id_gruppo'  ", $dbi);
    12511312                                list($num_gruppo) = mysql_fetch_row($res2);
    1252                                 echo "<td style=\"background-color: rgb(255, 0, 0); text-align:center\"><img src=\"modules/Elezioni/images/alert.gif\" align=\"middle\" alt=\"\"><br><b> "._ATT_VOTI_REF." $num_gruppo: ".$voti_parz." "._NO_VAL_VOTI.": ".$validi."</b><br></td>";
     1313                                echo "<tr><td style=\"background-color: rgb(255, 0, 0); text-align:center\"><img src=\"modules/Elezioni/images/alert.gif\" align=\"middle\" alt=\"\"><br><b> "._ATT_VOTI_REF." $num_gruppo: ".$voti_parz." "._NO_VAL_VOTI.": ".$validi."</b><br></td></tr>";
    12531314                        }
    12541315                        $res2 = mysql_query("SELECT max(voti_complessivi) FROM ".$prefix."_ele_voti_parziale where id_cons='$id_cons' and id_sez='$id_sez' and id_gruppo='$id_gruppo' ", $dbi);
     
    12571318                                $res2 = mysql_query("SELECT num_gruppo FROM ".$prefix."_ele_gruppo where id_cons='$id_cons' and id_gruppo='$id_gruppo'", $dbi);
    12581319                                list($num_gruppo) = mysql_fetch_row($res2);
    1259                                 echo "<td style=\"background-color: rgb(255, 0, 0); text-align:center\"><img src=\"modules/Elezioni/images/alert.gif\" align=\"middle\" alt=\"\"><br><b> "._ATT_VOTANTI_REF." $num_gruppo: ".$tot." "._NO_SOMMA." ".($validi+$nulli+$bianchi+$contestati)."</b><br></td>";
     1320                                echo "<tr><td style=\"background-color: rgb(255, 0, 0); text-align:center\"><img src=\"modules/Elezioni/images/alert.gif\" align=\"middle\" alt=\"\"><br><b> "._ATT_VOTANTI_REF." $num_gruppo: ".$tot." "._NO_SOMMA." ".($validi+$nulli+$bianchi+$contestati)."</b><br></td></tr>";
    12601321                        }
    12611322                }
    12621323    }else{
     1324        $result= mysql_query("select solo_gruppo,disgiunto from ".$prefix."_ele_cons_comune where id_cons='$id_cons' ", $dbi);
     1325        list($flagsg,$disgiunto)=mysql_fetch_row($result);
    12631326        $res = mysql_query("SELECT sum(voti) FROM ".$prefix."_ele_voti_gruppo where id_cons='$id_cons' and id_sez='$id_sez'", $dbi);
    12641327        list($voti_parz) = mysql_fetch_row($res);
     
    12661329        list($validi,$nulli,$bianchi,$contestati,$solo_lista,$votinulli) = mysql_fetch_row($res);
    12671330                if ($voti_parz!=($validi-$solo_lista) and $voti_parz>0){
    1268                         echo "<td style=\"background-color: rgb(255, 0, 0); text-align:center\"><img src=\"modules/Elezioni/images/alert.gif\" align=\"middle\" alt=\"\"><br><b> "._ATT_VOTI." ".$voti_parz." "._NO_VAL_VOTI." ".($validi-$solo_lista)."</b><br></td>";
     1331                        echo "<tr><td style=\"background-color: rgb(255, 0, 0); text-align:center\"><img src=\"modules/Elezioni/images/alert.gif\" align=\"middle\" alt=\"\"><br><b> "._ATT_VOTI." ".$voti_parz." "._NO_VAL_VOTI." ".($validi-$solo_lista)."</b><br></td><tr>";
    12691332        }
    12701333                $res2 = mysql_query("SELECT max(voti_complessivi) FROM ".$prefix."_ele_voti_parziale where id_cons='$id_cons' and id_sez='$id_sez'", $dbi);
    12711334                list($tot) = mysql_fetch_row($res2);
    12721335                if ($validi+$nulli+$bianchi+$contestati+$votinulli!=$tot and $validi+$nulli+$bianchi+$contestati+$votinulli>0){
    1273                         echo "<td style=\"background-color: rgb(255, 0, 0); text-align:center\"><img src=\"modules/Elezioni/images/alert.gif\" align=\"middle\" alt=\"\"><br><b> "._ATT_VOTANTI." ".$tot." "._NO_TOT_VOTI." ".($validi+$nulli+$bianchi+$contestati+$votinulli)."</b><br></td>";
     1336                        echo "<tr><td style=\"background-color: rgb(255, 0, 0); text-align:center\"><img src=\"modules/Elezioni/images/alert.gif\" align=\"middle\" alt=\"\"><br><b> "._ATT_VOTANTI." ".$tot." "._NO_TOT_VOTI." ".($validi+$nulli+$bianchi+$contestati+$votinulli)."</b><br></td></tr>";
    12741337        }
     1338                $resg=mysql_query("SELECT sum(voti) from ".$prefix."_ele_voti_lista where id_cons=$id_cons and id_sez=$id_sez",$dbi);
     1339                list($voti_sez)=mysql_fetch_row($resg);
     1340                if(($genere==5 and !$disgiunto and $voti_sez and $flagsg and ($tipo_cons==18 or $tipo_cons==19))){
     1341
     1342                        $resg = mysql_query("SELECT sum(solo_gruppo) from ".$prefix."_ele_voti_gruppo where id_cons=$id_cons and id_sez=$id_sez",$dbi);
     1343                        list($sgpl)=mysql_fetch_row($resg);
     1344                        $resg = mysql_query("SELECT solo_gruppo from ".$prefix."_ele_sezioni where id_cons=$id_cons and id_sez=$id_sez",$dbi);
     1345                        list($sg)=mysql_fetch_row($resg);
     1346                        if ($sg != $sgpl) echo "<tr><td style=\"background-color: rgb(255, 0, 0); color: black; text-align: center\"><img src=\"modules/Elezioni/images/alert.gif\" align=\"middle\" alt=\"\"><br><b> "._ATT_UNI." ".$sgpl." "._ATT_TOT_UNI." ".$sg."</b><br></td></tr>";
     1347                }
     1348#controllo voti a liste collegate <= voto di gruppo per voto non disgiunto
     1349if($genere==5 and !$disgiunto and $flagsg  and ($tipo_cons==18 or $tipo_cons==19)){
     1350                $resref = mysql_query("SELECT id_gruppo FROM ".$prefix."_ele_gruppo where id_cons='$id_cons'", $dbi);
     1351                  $errgrulis=array();
     1352                $res4= mysql_query("SELECT count(0) FROM ".$prefix."_ele_voti_lista where id_sez='$id_sez'", $dbi);
     1353                list($sezscrl)=mysql_fetch_row($res4);
     1354                if ($sezscrl)
     1355                while ( list($id_gruppo)=mysql_fetch_row($resref))
     1356                    {
     1357                    $res3= mysql_query("SELECT sum(voti-solo_gruppo) FROM ".$prefix."_ele_voti_gruppo where id_sez='$id_sez' and id_gruppo='$id_gruppo'", $dbi);
     1358                    $res4= mysql_query("SELECT sum(voti+nulli_lista) FROM ".$prefix."_ele_voti_lista where id_sez='$id_sez' and  id_lista in (select id_lista from ".$prefix."_ele_lista where id_gruppo='$id_gruppo')", $dbi);
     1359                    list($vgruppo)=mysql_fetch_row($res3);
     1360                    list($vliste)=mysql_fetch_row($res4);
     1361                    if($vliste>$vgruppo  and ($tipo_cons=18 or $tipo_cons=19))
     1362                        {
     1363                            $errgrulis[$id_gruppo]=1;
     1364                         $result = mysql_query("SELECT descrizione FROM ".$prefix."_ele_gruppo where id_gruppo='$id_gruppo'", $dbi);
     1365                         list($dgruppo)=mysql_fetch_row($result);
     1366                        echo "<tr><td style=\"background-color: rgb(255, 0, 0); color: black; text-align: center\"><img src=\"modules/Elezioni/images/alert.gif\" align=\"middle\" alt=\"\"><br/><b> ATTENZIONE!<BR/>I voti delle liste collegate<br/> superano i voti assegnati al gruppo $dgruppo </b><br></td></tr>";
     1367                        }
     1368                    elseif($vliste<$vgruppo  and ($tipo_cons=18 or $tipo_cons=19))
     1369                        {
     1370                            $errgrulis[$id_gruppo]=1;
     1371                         $result = mysql_query("SELECT descrizione FROM ".$prefix."_ele_gruppo where id_gruppo='$id_gruppo'", $dbi);
     1372                         list($dgruppo)=mysql_fetch_row($result);
     1373                        echo "<tr><td style=\"background-color: rgb(255, 0, 0); color: black; text-align: center\"><img src=\"modules/Elezioni/images/alert.gif\" align=\"middle\" alt=\"\"><br/><b> ATTENZIONE!<BR/>I voti assegnati al gruppo $dgruppo <br/> superano i voti delle liste collegate</b><br></td></tr>";
     1374                        }
     1375                    }
     1376}
     1377
    12751378    }
    12761379    if(!isset($votinulli)) $votinulli=0;
    1277         echo "<td></td></tr></table>";
     1380        echo "<tr><td></td></tr></table>";
    12781381        if ($validi+$nulli+$bianchi+$contestati+$votinulli>0 or $genere==0) {
    1279     echo "<table class=\"table-menu\" style=\"width: 60%; color: black\"><tr><td colspan=\"3\"><form name=\"sezioni\" action=\"admin.php\">";
     1382    echo "<table class=\"table-menu\" style=\" width: 60%; color: black\"><tr><td colspan=\"3\"><form name=\"sezioni\" action=\"admin.php\">";
    12801383        echo "<input type=\"hidden\" name=\"op\" value=\"rec_voti_gruppi\">"
    12811384    ."<input type=\"hidden\" name=\"id_cons_gen\" value=\"$id_cons_gen\">"
     
    13081411    $i=1;
    13091412        $tot_pref=0;
    1310        
     1413       $totsg=0;
    13111414    while(list($id_cons2,$id_gruppo,$num_gruppo, $descr_gruppo, $simbolo) = mysql_fetch_row($result)){
    13121415 
     
    13511454                $res = mysql_query("SELECT * FROM ".$prefix."_ele_voti_gruppo where id_cons='$id_cons' and id_sez='$id_sez' and id_gruppo='$id_gruppo' ", $dbi);
    13521455                $pro= mysql_fetch_array($res, 3);
    1353                 echo "</td><td align=\"right\"><input  name=\"voti$i\" value=\"".$pro['voti']."\" size=\"7\"  style=\"text-align:right\"></td>";
    1354                 if($dettnulli) echo "</td><td align=\"right\"><input  name=\"solog$i\" value=\"".$pro['solo_gruppo']."\" size=\"7\"  style=\"text-align:right\"></td>";
     1456                $errcolor='';
     1457                if(isset($errgrulis[$id_gruppo])) $errcolor="style=\"background-color: rgb(255, 0, 0);\"";
     1458                echo "</td><td align=\"right\" $errcolor><input  name=\"voti$i\" value=\"".$pro['voti']."\" size=\"7\"  style=\"text-align:right\"></td>";
     1459#               $lisgrures = mysql_query("SELECT count(id_lista) FROM ".$prefix."_ele_lista where id_cons='$id_cons' and id_gruppo='$id_gruppo'", $dbi);
     1460#               list($totlis) = mysql_fetch_row($lisgrures);
     1461#               if($totlis>1) $insinp=""; else $insinp= "type =\"hidden\" ";           
     1462                if($dettnulli) {echo "<td align=\"right\"><input name=\"solog$i\" value=\"".$pro['solo_gruppo']."\" size=\"7\"  style=\"text-align:right\"></td>"; $totsg+=$pro['solo_gruppo'];}
    13551463                $tot_pref += $pro['voti'];
     1464                echo "</tr>";
    13561465        }
    13571466       
     
    13611470   }
    13621471        if ($genere!=0) {
     1472                $res = mysql_query("SELECT disgiunto FROM ".$prefix."_ele_cons_comune where id_cons='$id_cons' ", $dbi);
     1473                list($disgiunto)=mysql_fetch_row($res);
    13631474                $res = mysql_query("SELECT solo_lista FROM ".$prefix."_ele_sezioni where id_sez='$id_sez' ", $dbi);
    13641475                list($sololis)=mysql_fetch_row($res);
    1365                 echo "<tr style=\"background-color: $bgcolor1; text-align:center\"><td></td><td>"._TOTPREF."</td><td>$tot_pref</td></tr>";
    1366                 if(isdisgiunto())
     1476                echo "<tr style=\"background-color: $bgcolor1; text-align:center\"><td></td><td>"._TOTPREF."</td><td>$tot_pref</td>";
     1477                if($dettnulli) echo "<td>$totsg</td>";
     1478                echo "</tr>";
     1479                if($disgiunto)
    13671480                        echo "<tr style=\"background-color: $bgcolor1; text-align:center\"><td></td><td>"._SOLOLIS."</td><td><input  name=\"sololista\" value=\"".$sololis."\" size=\"7\"  style=\"text-align:right\"></td></tr>";
    13681481        }
     
    13751488                }
    13761489
    1377         echo "</td></tr></table>";
     1490        echo "</td></tr></table></center>";
    13781491        }
    13791492    if ($genere!=0){
     
    14211534        $tab="_ele_voti_gruppo";
    14221535        $y--;
    1423         if(isdisgiunto())
     1536        $res = mysql_query("SELECT disgiunto FROM ".$prefix."_ele_cons_comune where id_cons='$id_cons' ", $dbi);
     1537        list($disgiunto)=mysql_fetch_row($res);
     1538        if($disgiunto)
    14241539                $res=mysql_query("update  ".$prefix."_ele_sezioni set solo_lista='".$arg[$y--]."' where id_sez='$id_sez'", $dbi);
    14251540
     
    15151630  }
    15161631echo"</td></tr></table>";
     1632        include_once("modules/Elezioni/language/lang-$currentlang.php");
    15171633   include ("footer.php");
    15181634?>
  • trunk/admin/modules/Elezioni/foto.php

    r32 r254  
    5353$sql = "select stemma from ".$prefix."_ele_conf where id_com='0'";
    5454$res = mysql_query($sql,$dbi);
    55 $dati = mysql_fetch_array($res);
    56 $stemma = $dati['stemma'];
     55if($res)
     56        {
     57        $dati = mysql_fetch_array($res);
     58        $stemma = $dati['stemma'];
     59        }
    5760}
    5861echo $stemma;
  • trunk/admin/modules/Elezioni/funzionidata.php

    r192 r254  
    4242}
    4343
    44 function ore($min,$max)
     44function ore()
    4545{
    4646$ora='';
  • trunk/admin/modules/Elezioni/language/lang-en.php

    r189 r254  
    107107                define("_CONSULTAZIONE","Regional Parliament Election");
    108108                define("_GRUPPO","Candidate for President");
     109                break;
     110        case 18:
     111                define("_CONSULTAZIONE","Camera Election");
     112                define("_GRUPPO","Group Candidate");
     113                define("_SOLO_GRUPPO","Ballots for Group Candidate only");
     114                define("_LISTA","Linked List");
     115                define("_CANDIDATO","Blocked List");
     116
     117                define("_DESCRCONS","CAMERA");
     118                break;
     119        case 19:
     120                define("_CONSULTAZIONE","Senato Election");
     121                define("_GRUPPO","Group Candidate");
     122                define("_SOLO_GRUPPO","Ballots for Group Candidate only");
     123                define("_LISTA","Linked List");
     124                define("_CANDIDATO","Blocked List");
     125
     126                define("_DESCRCONS","SENATO");
    109127                break;
    110128
     
    188206define("_LINGUA","Language");
    189207define("_FASCIA","Citizens");
    190 define("_TUTTESEDI","All electoral centers");
     208define("_TUTTESEDI","All polling stations");
    191209define("_ATT_VOTI","Warning! ballots");
    192210define("_ATT_VOTANTI","Warning! voters");
     
    270288define("_COMUNE","City");
    271289define("_VIS_PERC","Show percentages");
    272 define("_SEZIONE","Section");
    273 define("_SEZIONI","Sections");
     290define("_SEZIONE","Polling station");
     291define("_SEZIONI","Polling Stations");
    274292define("_UOMINI","Men");
    275293define("_DONNE","Women");
    276294define("_COMPLESSIVI","in total");
    277295define("_VOTIE","Express ballots");
    278 define("_SEZNOS","Sections to be Counted");
    279 define("_SEZSCR","Counted Sections");
     296define("_SEZNOS","Polling Stations to be Counted");
     297define("_SEZSCR","Counted Polling Stations");
    280298define("_LISTA","List");
    281299define("_PREFLISTA","Ballots to the list");
  • trunk/admin/modules/Elezioni/language/lang-it.php

    r240 r254  
    88/************************************************************************/
    99global $tipo_cons;
     10
    1011switch ($tipo_cons){
    1112        case '':
     
    1819                define("_GRUPPOLOGO","Logo del Presidente");
    1920                define("_PRESI","Presidente");
     21                define("_LISTA","Lista");
     22                define("_CANDIDATO","Candidato");
    2023                define("_CONSI","Consigliere");
    2124                define("_DESCRCONS","PROVINCIALI");
     
    3437                define("_PRESI","Sindaco");
    3538                define("_CONSI","Consigliere");
     39                define("_LISTA","Lista");
     40                define("_CANDIDATO","Candidato");
    3641                define("_SOLO_GRUPPO","Voti al solo candidato Sindaco");
    3742                define("_DESCRCONS","COMUNALI");
     
    4146                define("_SOLO_GRUPPO","Voti al solo candidato Presidente");
    4247                define("_DESCRCONS","CIRCOSCRIZIONALI");
     48                define("_CANDIDATO","Candidato");
     49                define("_LISTA","Lista");
    4350                break;
    4451        case 5:
     
    4754                define("_GRUPPOLOGO","Logo del Sindaco");
    4855                define("_PRESI","Sindaco");
     56                define("_LISTA","Lista");
     57                define("_CANDIDATO","Candidato");
    4958                define("_DESCRCONS","BALLOTTAGGIO");
    5059                break;
     
    5261                define("_CONSULTAZIONE","Consultazione Camera"); //genere 2
    5362                define("_GRUPPO","Lista");
     63                define("_CANDIDATO","Candidato");
    5464                define("_GRUPPOLOGO","Logo della Lista");
    5565                define("_DESCRCONS","CAMERA SENZA GRUPPI");
     
    5868                define("_CONSULTAZIONE","Consultazione Senato"); //genere 2
    5969                define("_GRUPPO","Lista");
     70                define("_CANDIDATO","Candidato");
    6071                define("_GRUPPOLOGO","Logo della Lista");
    6172                define("_DESCRCONS","SENATO SENZA GRUPPI");
     
    6475                define("_CONSULTAZIONE","Consultazione Parlamentare Europea"); //genere 4
    6576                define("_GRUPPO","Lista");
     77                define("_CANDIDATO","Candidato");
    6678                define("_GRUPPOLOGO","Logo della Lista");
    6779                define("_CONSI","Candidato Lista");
     
    7284                define("_GRUPPO","Candidato Presidente");
    7385                define("_CONSI","Candidato Lista");
     86                define("_LISTA","Lista");
     87                define("_CANDIDATO","Candidato");
    7488                define("_SOLO_GRUPPO","Voti al solo candidato Presidente");
    7589                define("_DESCRCONS","REGIONALI");
     
    7892                define("_CONSULTAZIONE","Consultazione Senato"); //genere 2
    7993                define("_GRUPPO","Coalizione");
     94                define("_LISTA","Lista");
     95                define("_CANDIDATO","Candidato");
    8096                define("_DESCRCONS","SENATO CON GRUPPI");
    8197                break;
     
    8399                define("_CONSULTAZIONE","Consultazione Camera"); //genere 2
    84100                define("_GRUPPO","Coalizione");
     101                define("_LISTA","Lista");
     102                define("_CANDIDATO","Candidato");
    85103                define("_DESCRCONS","CAMERA CON GRUPPI");
    86104                break;
     
    91109                define("_GRUPPOLOGO","Logo del Presidente");
    92110                define("_PRESI","Presidente");
     111                define("_LISTA","Lista");
     112                define("_CANDIDATO","Candidato");
    93113                define("_CONSI","Consigliere");
    94114                define("_DESCRCONS","PROVINCIALI");
     
    99119                define("_GRUPPOLOGO","Logo del Presidente");
    100120                define("_PRESI","Presidente");
     121                define("_LISTA","Lista");
     122                define("_CANDIDATO","Candidato");
    101123                define("_DESCRCONS","BALLOTTAGGIO");
    102124                break;
     
    106128                define("_GRUPPOLOGO","Logo della Lista");
    107129                define("_CONSI","Candidato Lista");
     130                define("_LISTA","Lista");
     131                define("_CANDIDATO","Candidato");
    108132                define("_DESCRCONS","EUROPEE");
    109133                break;
     
    111135                define("_CONSULTAZIONE","Consultazione Camera"); //genere 2
    112136                define("_GRUPPO","Coalizione");
     137                define("_LISTA","Lista");
     138                define("_CANDIDATO","Candidato");
    113139                define("_DESCRCONS","CAMERA CON GRUPPI");
    114140                break;
     
    116142                define("_CONSULTAZIONE","Consultazione Senato"); //genere 2
    117143                define("_GRUPPO","Coalizione");
     144                define("_LISTA","Lista");
     145                define("_CANDIDATO","Candidato");
    118146                define("_DESCRCONS","SENATO CON GRUPPI");
    119147                break;
     
    121149                define("_CONSULTAZIONE","Consultazione Elezioni Regionali"); //genere 5
    122150                define("_GRUPPO","Candidato Presidente");
     151                define("_LISTA","Lista");
     152                define("_CANDIDATO","Candidato");
    123153                define("_DESCRCONS","REGIONALI");
    124154                break;
    125         case 28:
    126                  define("_CONSULTAZIONE","Consultazione Sindacale"); //genere 2
    127                  define("_GRUPPO","Sigla");
    128                  define("_DESCRCONS","Rappresentanza Sindacale Unitaria");
    129                  define("_CONSI","Candidato Lista");
    130                  break;
     155        case 18:
     156                define("_CONSULTAZIONE","Consultazione Camera dei deputati"); //genere 5
     157                define("_GRUPPO","Candidato Uninominale");
     158                define("_SOLO_GRUPPO","Voti al solo Candidato Uninominale");
     159                define("_LISTA","Lista collegata");
     160                define("_CANDIDATO","Listino bloccato");
     161                define("_ATT_UNI","Attenzione! Il dettaglio dei voti");
     162                define("_ATT_TOT_UNI","non corrisponde al totale per il solo candidato uninominale");
     163                define("_DESCRCONS","CAMERA");
     164                break;
     165        case 19:
     166                define("_CONSULTAZIONE","Consultazione Senato della Repubblica"); //genere 5
     167                define("_GRUPPO","Candidato Uninominale");
     168                define("_SOLO_GRUPPO","Voti al solo Candidato Uninominale");
     169                define("_LISTA","Lista collegata");
     170                define("_CANDIDATO","Listino bloccato");
     171                define("_ATT_UNI","Attenzione! Il dettaglio dei voti");
     172                define("_ATT_TOT_UNI","non corrisponde al totale per il solo candidato uninominale");
     173                define("_DESCRCONS","CAMERA");
     174                break;
    131175
    132176
     
    182226define("_TESTATA","Immagine per la testata");
    183227define("_BLOCCO","Visualizzare il blocco laterale?");
     228
    184229define("_MULTICOMUNE","Gestione multicomune?");
    185230define("_MOBILE","Usare il tema per il cellulare?");
     
    315360define("_SEZNOS","Sezioni non scrutinate");
    316361define("_SEZSCR","Sezioni scrutinate");
    317 define("_LISTA","Lista");
    318362define("_PREFLISTA","Preferenze di Lista");
    319 define("_CANDIDATO","Candidato");
    320363define("_GESAMMIN","Gestione Amministrativa ");
    321364define("_DESCR","Denominazione");
     
    468511define("_CONFIGWIDGET","Configurazione dei box laterali");
    469512define("_SEGNALA","Segnala l'installazione a Eleonline");
     513
     514
    470515?>
Note: See TracChangeset for help on using the changeset viewer.