Ignore:
Timestamp:
Mar 24, 2010, 2:19:36 PM (14 years ago)
Author:
roby
Message:

aggiunti grafici di lista per le regionali per tutti i temi. Esclusa visualizzazione dei comuni senza consultazioni assegnate. Eliminati altri notice. Corretta la chiusura di uno span in 02_risultati.php

File:
1 edited

Legend:

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

    r2 r42  
    3434        if ($multicomune=='1')
    3535        {
    36               $sqlcomu="select t1.id_comune,t1.descrizione,count(0) from ".$prefix."_ele_comuni as t1, ".$prefix."_ele_cons_comune as t2 where t1.id_comune=t2.id_comune group by t1.id_comune,t1.descrizione order by t1.descrizione asc";
     36              $sqlcomu="select t1.id_comune,t1.descrizione,count(0) from ".$prefix."_ele_comuni as t1, ".$prefix."_ele_cons_comune as t2 where t1.id_comune=t2.id_comune and t2.chiusa<2 group by t1.id_comune,t1.descrizione order by t1.descrizione asc";
    3737              $rescomu= mysql_query("$sqlcomu",$dbi);
    3838              $esiste_multi=mysql_num_rows($rescomu);
     
    187187        echo "<td >";
    188188
    189                 $temp = array('affluenze_graf'=>'','graf_votanti'=>'','graf_gruppo'=>'','graf_candidato'=>'');
    190                 $temp[$op]='selected="selected"';
     189                $temp = array('affluenze_graf'=>'','graf_votanti'=>'','graf_gruppo'=>'','graf_lista'=>'','graf_candidato'=>'');
     190                if(!isset($visgralista))
     191                        $temp[$op]='selected="selected"';
     192                else $temp['graf_lista']='selected="selected"';
    191193                #       <div><label class=\"blu\" for=\"grafici\">"._GRAFICI."
    192194               
     
    204206#inutile                if($genere!=4 || $tipo_cons==8)
    205207                        echo "<option value=\"graf_gruppo\" ".$temp['graf_gruppo']." >"._GRUPPO."</option>";
     208                        if($genere==5)
     209                        echo "<option value=\"graf_gruppo&amp;visgralista=1\" ".$temp['graf_lista'].">"._LISTA."</option>";
    206210                if ($genere>3){
    207211                        if (!$circo && !$votog) 
Note: See TracChangeset for help on using the changeset viewer.