Ignore:
Timestamp:
May 10, 2012, 11:38:07 AM (12 years ago)
Author:
roby
Message:

client: correzione percentuali di schede scrutinate per lista

File:
1 edited

Legend:

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

    r135 r149  
    374374        if ($circo){
    375375                $res = mysql_query("select t1.*  from ".$prefix."_ele_voti_gruppo as t1, ".$prefix."_ele_gruppo as t2 where t1.id_gruppo=t2.id_gruppo and t1.id_cons='$id_cons' and t2.id_circ=$id_circ group by t1.id_sez ",$dbi);
     376                $ressez = mysql_query("select t1.*  from ".$prefix."_ele_voti_lista as t1, ".$prefix."_ele_lista as t2 where t1.id_lista=t2.id_lista and t1.id_cons='$id_cons' and t2.id_circ=$id_circ group by t1.id_sez ",$dbi);
    376377                $restotv = mysql_query("select sum(t1.voti)  from ".$prefix."_ele_voti_gruppo as t1, ".$prefix."_ele_gruppo as t2 where t1.id_gruppo=t2.id_gruppo and t1.id_cons='$id_cons' and t2.id_circ=$id_circ",$dbi);
    377378                $circond="and id_circ=$id_circ";$circondt1="and t1.id_circ=$id_circ";
     
    399400        if ($numero>0){
    400401                echo "<center><h2>";
    401                 echo "<b>"._PREFERENZE." "._GRUPPO." $descr_cons </b>";
    402                 echo "<i>- "._SEZSCRU." $numero "._SU." $sezioni </i>";
     402                if ($genere!=4 and !$visgralista){
     403                        echo "<b>"._PREFERENZE." "._GRUPPO." $descr_cons </b>";
     404                        echo "<i>- "._SEZSCRU." $numero "._SU." $sezioni </i>";
     405                }else{
     406                        if ($ressez) $numero=mysql_num_rows($ressez);else $numero=0;
     407                        echo "<b>"._PREFERENZE." "._LISTA." $descr_cons </b>";
     408                        echo "<i>- "._SEZSCRU." $numero "._SU." $sezioni </i>";
     409                }
    403410                echo "</h2></center>";
    404411
Note: See TracChangeset for help on using the changeset viewer.