Changeset 113


Ignore:
Timestamp:
May 31, 2011, 10:44:52 PM (13 years ago)
Author:
eol
Message:

blocco sezioni: link ai risultati candidato sindaco, presidente o liste della singola sezione

Location:
trunk/client/modules/Elezioni
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/client/modules/Elezioni/blocchi/04_sezioni.php

    r86 r113  
    1313$sql = mysql_query("select chiusa  from ".$prefix."_ele_cons_comune where id_cons_gen='$id_cons_gen'",$dbi);
    1414                list($chiusa) = mysql_fetch_row($sql);
    15                 if($chiusa!='1') numeri_sezione();
    16                 //echo $chiusa;
     15               
     16                //if($chiusa!='1') numeri_sezione(); # se la consultazione non Ú chiusa
     17               
    1718
    1819
     20numeri_sezione(); //lancia la funzione
    1921
    2022function numeri_sezione() {
    21 global  $prefix, $dbi, $circo, $genere,$id_cons_gen,$id_cons,$id_circ,$tipo_cons,$votog;
     23global  $prefix, $dbi, $circo, $genere,$id_cons_gen,$id_cons,$id_circ,$tipo_cons,$votog,$id_comune;
    2224
    2325
     
    2729                if ($genere==0) $tab="ref";elseif($genere=='4' || $votog) $tab="lista";
    2830                 else $tab="gruppo";
    29                  
     31               
     32
     33
    3034                # numero sezioni
    3135                $res = mysql_query("select t1.id_sez,t1.num_sez  from ".$prefix."_ele_sezioni as t1 left join ".$prefix."_ele_sede as t2 on t1.id_sede=t2.id_sede where t1.id_cons='$id_cons' $circos order by t1.num_sez",$dbi);
     
    3842                        $i++;
    3943                        /****************************************************************/     
    40                         /* suddivisione in circoscrizione - attivare se Ú il caso
     44                        /* suddivisione in circoscrizione - attivare se Ú il caso 
    4145
    4246                         $result = mysql_query("SELECT id_circ FROM ".$prefix."_ele_sede where id_cons='$id_cons' and id_sede='$sede_id' ", $dbi);
     
    5862                       
    5963
     64                        if ($genere==0) $pos="gruppo_sezione";elseif($genere=='4' || $votog) $pos="lista_sezione";
     65                        else $pos="gruppo_sezione";
    6066                       
    61                        
    62                         $html .="<td style=\"margin:0px auto; text-align:center; width:5%;\" bgcolor=\"$bgsez\"><b>$sez_num</b></td>";
     67                        $html .="<td style=\"margin:0px auto; text-align:center; width:5%;\" bgcolor=\"$bgsez\"><a href=\"modules.php?id_cons_gen=$id_cons_gen&name=Elezioni&id_comune=$id_comune&perc=true&file=index&op=$pos&minsez=$sez_num&offsetsez=$sez_num\"><b>$sez_num</b></a></td>";
    6368
    6469                        if (($i%8) ==0) $html .="</tr>\n<tr>";
  • trunk/client/modules/Elezioni/gruppo.php

    r111 r113  
    429429                       
    430430                        $y=1;
    431                         $ar[0][0]=$tipo2;
    432                         $ra[0][0]=$tipo2;
     431                        $ar[0][0]=$tipo3;
     432                        $ra[0][0]=$tipo3;
    433433                        $num_sez++;
    434434                        $voticompl=0;
  • trunk/client/modules/Elezioni/language/lang-it.php

    r110 r113  
    3030define("_QUOZIENTI","Quozienti");
    3131define("_CIFRAELE","Cifra<br/>Elettorale");
    32 define("_PROIEZCONS","PROIEZIONE DELLA COMPOSIZIONE DEL CONSIGLIO COMUNALE<br>LA FUNZIONE DI CALCOLO E' SPERIMENTALE<BR>IL RISULTATO E' PURAMENTE INDICATIVO");
     32define("_PROIEZCONS","PROIEZIONE DELLA COMPOSIZIONE DEL CONSIGLIO COMUNALE<br />LA FUNZIONE DI CALCOLO E' SPERIMENTALE<br />IL RISULTATO E' PURAMENTE INDICATIVO");
    3333define("_SCELTASIN","Scegli quale candidato deve essere considerato Sindaco Eletto");
    3434define("_COLLEGAMENTI","Collegamenti per il turno di ballottaggio");
     
    253253define("_LISTE","Liste");
    254254define("_VOTI_RAGGR","Totale voti alle liste");
    255 define("_PROGRAM","Programma<br>elettorale");
     255define("_PROGRAM","Programma<br />elettorale");
    256256define("_RICARICA","Ricarica");
    257257
     
    265265                define("_GRUPPO","Candidato Presidente");
    266266                define("_GRUPPOLOGO","Logo del Presidente");
    267                 define("_SIMBOLO","Candidato<br>Presidente");
     267                define("_SIMBOLO","Candidato<br />Presidente");
    268268                define("_PRESI","Presidente");
    269269                define("_CONSI","Consigliere");
     
    287287                define("_GRUPPO","Candidato Sindaco");
    288288                define("_GRUPPOLOGO","Logo del Sindaco");
    289                 define("_SIMBOLO","Candidato<br> Sindaco");
     289                define("_SIMBOLO","Candidato<br /> Sindaco");
    290290                define("_PRESI","Sindaco");
    291291                define("_CONSI","Consigliere");
     
    297297                define("_SCELTA_CIR","Scegli la Circoscrizione");
    298298            define("_CONSULTAZIONE","Consultazione Elezioni Circoscrizione");
    299                 define("_SIMBOLO","Candidato<br>Presidente");
     299                define("_SIMBOLO","Candidato<br />Presidente");
    300300        define("_GRUPPI","Candidati Presidente");
    301301                define("_GRUPPO","Candidato Presidente");
     
    307307                define("_GRUPPI","Candidati Sindaco");
    308308                define("_GRUPPO","Candidato Sindaco");
    309                 define("_SIMBOLO","Candidato<br> Sindaco");
     309                define("_SIMBOLO","Candidato<br /> Sindaco");
    310310                define("_GRUPPOLOGO","Logo del Sindaco");
    311311                define("_PRESI","Presidente");
     
    340340                define("_SCELTA_CIR","Scegli la Circoscrizione");
    341341                define("_CONSULTAZIONE","Consultazione Regionale");
    342                 define("_SIMBOLO","Candidato<br>Presidente");
     342                define("_SIMBOLO","Candidato<br />Presidente");
    343343                define("_GRUPPI","Candidati Presidente");
    344344                define("_GRUPPO","Candidato Presidente");
     
    373373                 define("_SCELTA_CIR","Scegli il Collegio");
    374374                define("_CONSULTAZIONE","Consultazione Elezioni Provinciali");
    375                 define("_SIMBOLO","Candidato<br>Presidente");
     375                define("_SIMBOLO","Candidato<br />Presidente");
    376376                define("_GRUPPI","Candidati Presidenti");
    377377                define("_GRUPPO","Candidato Presidente");
     
    385385        case 13:
    386386                define("_CONSULTAZIONE","Sessione di Ballottaggio");
    387                 define("_SIMBOLO","Candidato<br>Presidente");
     387                define("_SIMBOLO","Candidato<br />Presidente");
    388388                define("_GRUPPI","Candidati Presidente");
    389389                define("_GRUPPO","Candidato Presidente");
     
    413413        case 17:
    414414                define("_CONSULTAZIONE","Consultazione Elezioni Regionali"); //genere 5
    415                 define("_SIMBOLO","Candidato<br>Presidente");
     415                define("_SIMBOLO","Candidato<br />Presidente");
    416416                define("_GRUPPO","Candidato Presidente");
    417417                define("_DESCRCONS","REGIONALI");
Note: See TracChangeset for help on using the changeset viewer.