Changeset 208 for trunk/admin


Ignore:
Timestamp:
May 11, 2014, 12:49:20 AM (11 years ago)
Author:
roby
Message:

admin: altre modifiche per gestione fasce
tabella di riepilogo, voti di lista per comuni con sistema maggioritario
autorizzazione comuni, correzione legge in modifica

client: correzione in dati generali

Location:
trunk/admin
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/admin/modules/Elezioni/ele_associazioni.php

    r199 r208  
    188188                while(list($id,$descr_conf)=mysql_fetch_row($rescomu)){
    189189                        $sel='';
    190                         if ($idcomune and $id == $id_conf) $sel="selected"; elseif ($id==1) $sel="selected";
     190                        if ($idcomune and $id == $id_conf) $sel="selected";
    191191                        echo "<option value=\"$id\" $sel>$descr_conf";
    192192                }
  • trunk/admin/modules/Elezioni/ele_riepilogo.php

    r174 r208  
    4747        list($totm,$totf) = mysql_fetch_row($res);
    4848        $totel=$totm+$totf;
    49         $res = mysql_query("SELECT data,orario FROM `soraldo_ele_rilaff` where id_cons_gen=$id_cons_gen order by data desc, orario desc limit 0,1", $dbi);
     49        $res = mysql_query("SELECT data,orario FROM ".$prefix."_ele_rilaff where id_cons_gen=$id_cons_gen order by data desc, orario desc limit 0,1", $dbi);
    5050        list($giorno,$ora)=mysql_fetch_row($res);
    5151        $res = mysql_query("SELECT sum(voti_donne),sum(voti_uomini),sum(voti_complessivi) FROM ".$prefix."_ele_voti_parziale where id_cons='$id_cons' and data='$giorno' and orario='$ora'", $dbi);
     
    6666        if ($genere==5 and !$votog) {
    6767        $totnullil=$nullilista+$contestatilista;
     68        $id_conf=0;
     69        $res = mysql_query("SELECT t1.id_conf,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);
     70        if($res) list($id_conf,$fascia,$limite) = mysql_fetch_row($res);
     71        if ($id_conf and $fascia<=$limite) {
    6872        echo "<fieldset><legend>"._VOTI_LISTA."</legend>";
     73        echo "<table border=\"1\" width=\"100%\"><tr><th><b>"._VALIDI."</b></th><th>"._NULLI."</th><th>"._BIANCHI."</th><th>"._CONTESTATI."</th><th>"._VOTINULLI."</th><th>"._TOTNON."</th></TR>";
     74        ECHO "<TR><TH>".number_format($validi,0,',','.')."</TH><TH>".number_format($nulli,0,',','.')."</TH><TH>".number_format($bianchi,0,',','.')."</TH><TH>".number_format($contestati,0,',','.')."</TH><TH>".number_format($votinulli,0,',','.')."</TH><TH>".number_format($totnulli,0,',','.')."</TH></TR></table><br/>";
     75        ECHO "</fieldset><br/><br/><br/>";
     76        }else{
     77                echo "<fieldset><legend>"._VOTI_LISTA."</legend>";
    6978        echo "<table border=\"1\" width=\"100%\"><tr><th>"._VALIDI."</th><th>"._VOTINULLI."</th><th>"._CONTESTATI."</th>";
    7079        // if ($genere==5 and !$votog)
    7180                echo "<th>"._SOLO_GRUPPO."</th>";
    7281        echo "<th>"._TOTNON."</th></TR>";
    73         ECHO "<TR><TH>".number_format($validilista,0,',','.')."</TH><TH>".number_format($nullilista,0,',','.')."</TH><TH>".number_format($contestatilista,0,',','.')."</TH>";
     82
     83                ECHO "<TR><TH>".number_format($validilista,0,',','.')."</TH><TH>".number_format($nullilista,0,',','.')."</TH><TH>".number_format($contestatilista,0,',','.')."</TH>";
    7484        if($genere==5 and !$votog)
    7585                echo "<TH>".number_format($sg,0,',','.')."</TH>";
    7686        echo "<TH>".number_format($totnullil,0,',','.')."</TH></TR></table><br/>";
    7787        ECHO "</fieldset>";
     88        }
    7889        }
    7990        echo "</center>";
  • trunk/admin/modules/Elezioni/ele_voti.php

    r207 r208  
    806806
    807807        if(!$votog) {
    808            if ((($genere==3) OR ($genere==5)) and !$id_lista and ($fascia>$limite)) {
     808           if ((($genere==3) OR ($genere==5)) and !$id_lista and ($fascia>$limite or !$id_conf)) {
    809809                        $valista=$arg[$i++];
    810810                        $result = mysql_query("update ".$prefix."_ele_sezioni set solo_gruppo='".$arg[$i]."' where id_sez='$id_sez'",$dbi);
  • trunk/admin/versione.php

    r206 r208  
    11<?php
    2 $versione="2.0 rev 206";
     2$versione="2.0 rev 208";
    33?>
Note: See TracChangeset for help on using the changeset viewer.