Ignore:
Timestamp:
Feb 2, 2013, 7:00:04 PM (12 years ago)
Author:
roby
Message:

controlli di congruenza

File:
1 edited

Legend:

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

    r139 r163  
    4343//**************************************************************************
    4444 
    45     global $prefix, $dbi,$fascia,$limite;
     45    global $prefix, $dbi,$fascia,$limite,$genere,$votog;
    4646        $res = mysql_query("SELECT sum(maschi),sum(femmine) FROM ".$prefix."_ele_sezioni where id_cons='$id_cons'", $dbi);
    4747        list($totm,$totf) = mysql_fetch_row($res);
     
    6565        $totnullil=$nullilista+$contestatilista;
    6666        echo "<fieldset><legend>"._VOTI_LISTA."</legend>";
    67         echo "<table border=\"1\" width=\"100%\"><tr><th>"._VALIDI."</th><th>"._VOTINULLI."</th><th>"._CONTESTATI."</th><th>"._SOLO_GRUPPO."</th><th>"._TOTNON."</th></TR>";
    68         ECHO "<TR><TH>".number_format($validilista,0,',','.')."</TH><TH>".number_format($nullilista,0,',','.')."</TH><TH>".number_format($contestatilista,0,',','.')."</TH><TH>".number_format($sg,0,',','.')."</TH><TH>".number_format($totnullil,0,',','.')."</TH></TR></table><br/>";
     67        echo "<table border=\"1\" width=\"100%\"><tr><th>"._VALIDI."</th><th>"._VOTINULLI."</th><th>"._CONTESTATI."</th>";
     68        if ($genere==5 and !$votog)
     69                echo "<th>"._SOLO_GRUPPO."</th>";
     70        echo "<th>"._TOTNON."</th></TR>";
     71        ECHO "<TR><TH>".number_format($validilista,0,',','.')."</TH><TH>".number_format($nullilista,0,',','.')."</TH><TH>".number_format($contestatilista,0,',','.')."</TH>";
     72        if($genere==5 and !$votog)
     73                echo "<TH>".number_format($sg,0,',','.')."</TH>";
     74        echo "<TH>".number_format($totnullil,0,',','.')."</TH></TR></table><br/>";
    6975        ECHO "</fieldset>";
    7076        echo "</center>";
Note: See TracChangeset for help on using the changeset viewer.