Changeset 104 for trunk


Ignore:
Timestamp:
May 29, 2011, 1:20:58 AM (13 years ago)
Author:
eol
Message:

Sistemazione elementi grafici e di esportaione dati

Location:
trunk/client
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • trunk/client

    • Property svn:ignore set to
      config.php
  • trunk/client/modules/Elezioni/crea_pagina.php

    r74 r104  
    1515    die ("You can't access this file directly...");
    1616}
    17 
     17global $name;
    1818
    1919function crea_tabella($ar) {
    2020
    2121
    22 global $prefix,$dbi,$pdf,$csv,$xls,$lang,$descr_cons,$prefix,$dbi,$id_comune,$descrizione,$siteistat,$pagina,$min,$offset,$minsez,$offsetsez,$datipdf;
     22global $prefix,$dbi,$pdf,$csv,$xls,$lang,$descr_cons,$prefix,$dbi,$id_comune,$descrizione,$siteistat,$min,$offset,$minsez,$offsetsez,$datipdf;
    2323$res = mysql_query("SELECT descrizione FROM ".$prefix."_ele_comuni where id_comune='$id_comune' ", $dbi);
    2424        list($descr_com) = mysql_fetch_row($res);
    2525
     26
     27
     28
     29
     30
    2631$datipdf=stripslashes($datipdf);
     32
    2733$data=date("d-m-y G:i");
    2834
    2935if ($xls==1) {
    30        
    31         $nomefile="export.xls";
     36        $nomefile=strip_tags(str_replace(" ", "_", $datipdf).".xls");
     37
    3238        header ("Content-Type: application/vnd.ms-excel");
    3339        header ("Content-Disposition: inline; filename=$nomefile");
     
    3844                        $cella=str_replace("</b>"," ",$cella);
    3945                        $cella=str_replace("<br />"," ",$cella);
     46                       
    4047
    4148echo "$datipdf";
     
    5663                        $cella=str_replace("<b>"," ",$cella);
    5764                        $cella=str_replace("</b>"," ",$cella);
     65                        $cella=str_replace("<br>"," ",$cella);
    5866                        $cella=str_replace("<br />"," ",$cella);
    5967                        $cella=str_replace("<span class=\"red\"><i>"," - ",$cella);
    6068                        $cella=str_replace("</span>%</i>","%",$cella);
     69                        $cella=str_replace("</i></span>","",$cella);
    6170                        $cella=str_replace("_CIRCOS","Circoscrizione ",$cella);
    6271                        $cella=str_replace("_SEZIONI","Sezione ",$cella);
     
    7382
    7483            echo"\n\n\nPowered by Eleonline http://www.eleonline.it \t \n";     
    75             echo"by l.apolito & r.gigli - stampato: $data \t \n";
     84            echo"by luciano apolito & roberto gigli - stampato: $data \t \n";
    7685            die();
    7786
     
    137146                if ($pdf!="1" && $csv=="1"){
    138147                      $html .="<br/><span class=\"copy\"><i>Stampato: $data</i></span>";
    139                       $html .="<br/><span class=\"copy\"><i>Eleonline by l. apolito & r. gigli - www.eleonline.it</i></span>";
     148                      $html .="<br/><span class=\"copy\"><i>Eleonline by luciano apolito & roberto gigli - www.eleonline.it</i></span>";
    140149                      $html .="</td></tr></table>";
    141150                }
     
    148157                }else{
    149158
    150               #pdf
    151               /*
    152               require('inc/pdf/html2fpdf.php');
    153               //Istanzio la classe
    154               $fpdf=new HTML2FPDF('L','mm','A4');
    155 
    156               //Creo la pagina
    157               $fpdf->AddPage();
    158 
    159               //Per leggere il file html usare fread
    160               $content = "<b>Testo in neretto</b>";
    161               $fpdf->Image('modules/Elezioni/images/logo.jpg',10,10,10,0,'','http://www.eleonline.it');
    162               //Scrivo l'html nel file pdf
    163               $fpdf->WriteHTML($html);
    164               //Scrivo il file sample.pdf
    165               $fpdf->Output();
    166 
    167               //include("modules/Elezioni/printpdf.php");
    168               //PrintPage($html);
    169               */
    170 $style ="     
    171 <style type=\"text/css\">
    172 <!--
    173 .table-docs {
    174         font-size: 10px;
    175         padding: 1px;
    176         color: #000000;
    177         /* margin: 4px 4px 40px;*/
    178         border: solid  #666666;
    179         text-align:center;
    180 }
    181 .bggray         {
    182         background: #d2d2d2;
    183         FONT-SIZE: 13px;
    184         FONT-FAMILY: Helvetica;
    185         border: 1px;
    186 }
    187 
    188 .bggray2        {
    189         background: #EFEFEF;
    190         FONT-SIZE: 13px;
    191         FONT-FAMILY: Helvetica;
    192         border: 1px;
    193         }
    194 
    195 bggray3         {
    196         background: #EFEFEF;
    197         FONT-SIZE: 10px;
    198         FONT-FAMILY:  Helvetica;
    199         text-align: left
    200         }
    201 
    202 .bgw    {
    203         background: #ffffff;
    204         FONT-SIZE: 13px;
    205         FONT-FAMILY: Helvetica;
    206         border: 1px;
    207        
    208 }
    209 .td-130 {
    210         float: right;
    211         margin: 0px 0 0 1px;
    212         width: 130px;   
    213         border: none;
    214         background-color: #d2d2d2;
    215         padding: 0px;
    216        
    217 }
    218 .td-130c {
    219         float: right;
    220         text-align:left;
    221         margin: 0px 0 0 1px;
    222         width: 130px;   
    223         border: none;
    224         padding: 0px;
    225 }               
    226 
    227 td {
    228     border: .2px;
    229 }
    230 .red    {
    231         BACKGROUND: none;
    232         COLOR: #ff0000;
    233         FONT-SIZE: 12px;
    234         FONT-FAMILY:  Helvetica
    235 }
    236 .copy   {
    237         background: #d2d2d2;
    238         FONT-SIZE: 8px;
    239         FONT-FAMILY: Helvetica;
    240         border: 1px;
    241 }
    242 .cen {
    243 margin: 10px auto 0 auto;
    244 }
    245 -->
    246 </style>";
    247 
    248 
    249 
    250 
    251 
    252 
    253 
    254         $style .="<table style=\"margin: auto;\" cellspace=0 border=0 cellpadding=0><tr><td border=0><img src=\"modules/Elezioni/images/logo.gif\" align=\"left\" /></td> ";   
    255        
    256         $style .= "<td border=0>$datipdf</td></tr></table><br/><br/>";
    257         $style .=$html;
    258         $style .= "<table style=\"margin: auto;\" cellspace=0 border=0 cellpadding=0><tr><td border=0>";
    259 
    260         $data=date("d-m-y G:i");
    261         $style .="<br/><span class=\"copy\"><i>Stampato il $data</i></span>";
    262         $style .="<br/><span class=\"copy\"><i>Eleonline by lucianoapolito & roberto gigli - www.eleonline.it</i></span>";
    263         $style .="</td></tr></table>";
    264         // conversion HTML => PDF
    265         require_once('inc/hpdf/html2pdf.class.php');
    266         $html2pdf = new HTML2PDF('L','A4', 'it');
    267         $html2pdf->WriteHTML($style, isset($_GET['vuehtml']));
    268         $html2pdf->Output();
     159                $style ="     
     160                <style type=\"text/css\">
     161                <!--
     162                .table-docs {
     163                        font-size: 10px;
     164                        padding: 1px;
     165                        color: #000000;
     166                        /* margin: 4px 4px 40px;*/
     167                        border: solid  #666666;
     168                        text-align:center;
     169                }
     170                .bggray         {
     171                        background: #d2d2d2;
     172                        FONT-SIZE: 13px;
     173                        FONT-FAMILY: Helvetica;
     174                        border: 1px;
     175                }
     176
     177                .bggray2        {
     178                        background: #EFEFEF;
     179                        FONT-SIZE: 13px;
     180                        FONT-FAMILY: Helvetica;
     181                        border: 1px;
     182                        }
     183
     184                bggray3         {
     185                        background: #EFEFEF;
     186                        FONT-SIZE: 10px;
     187                        FONT-FAMILY:  Helvetica;
     188                        text-align: left
     189                        }
     190
     191                .bgw    {
     192                        background: #ffffff;
     193                        FONT-SIZE: 13px;
     194                        FONT-FAMILY: Helvetica;
     195                        border: 1px;
     196       
     197                }
     198                .td-130 {
     199                        float: right;
     200                        margin: 0px 0 0 1px;
     201                        width: 130px;   
     202                        border: none;
     203                        background-color: #d2d2d2;
     204                        padding: 0px;
     205       
     206                }
     207                .td-130c {
     208                        float: right;
     209                        text-align:left;
     210                        margin: 0px 0 0 1px;
     211                        width: 130px;   
     212                        border: none;
     213                        padding: 0px;
     214                }               
     215
     216                td {
     217                    border: .2px;
     218                }
     219                .red    {
     220                        BACKGROUND: none;
     221                        COLOR: #ff0000;
     222                        FONT-SIZE: 12px;
     223                        FONT-FAMILY:  Helvetica
     224                }
     225                .copy   {
     226                        background: #d2d2d2;
     227                        FONT-SIZE: 8px;
     228                        FONT-FAMILY: Helvetica;
     229                        border: 1px;
     230                }
     231                .cen {
     232                margin: 10px auto 0 auto;
     233                }
     234                -->
     235                </style>";
     236
     237
     238
     239
     240
     241
     242
     243                $style .="<table style=\"margin: auto;\" cellspace=0 border=0 cellpadding=0><tr><td border=0><img src=\"modules/Elezioni/images/logo.gif\" align=\"left\" /></td> ";   
     244       
     245                $style .= "<td border=0>$datipdf</td></tr></table><br/><br/>";
     246                $style .= "<table style=\"margin: auto;\"><tr><td>$html</td></tr></table>";
     247                $style .= "<table style=\"margin: auto;\" cellspace=0 border=0 cellpadding=0><tr><td border=0>";
     248
     249                $data=date("d-m-y G:i");
     250                $style .="<br/><span class=\"copy\"><i>Stampato il $data</i></span>";
     251                $style .="<br/><span class=\"copy\"><i>Eleonline by luciano apolito & roberto gigli - www.eleonline.it</i></span>";
     252                $style .="</td></tr></table>";
     253                $nomefile=strip_tags($datipdf).".pdf";
     254                $nomefile=str_replace(" ", "_",$nomefile);
     255                // conversion HTML => PDF
     256
     257                require_once('inc/hpdf/html2pdf.class.php');
     258                $html2pdf = new HTML2PDF('L','A4', 'it');
     259                $html2pdf->WriteHTML($style, isset($_GET['vuehtml']));
     260                $html2pdf->Output($nomefile);
    269261
    270262
  • trunk/client/modules/Elezioni/gruppo.php

    r103 r104  
    179179*/
    180180                        $visvot='';
     181
     182                        if (!$csv) echo "<div><h5>$pagina</h5></div>";
     183                        if (!$csv) echo "<div style=\"text-align:left; margin-left:20px;\">";
     184
    181185                        if(strstr( $op,'candidato')){
    182186//                      $numliste=mysql_num_rows($res_lis);
    183187                                $visvot="cand";
    184188                                if (!$csv){
     189                                       
     190
    185191                                        $res_lis = mysql_query("SELECT id_lista, descrizione,num_lista from ".$prefix."_ele_lista where id_cons=$id_cons $condcirc order by num_lista",$dbi);
    186192                                        //elenco delle liste per la scelta
    187                                         echo "<p>Scegli la lista:
     193                                        echo "<p>"._SCEGLI_LISTA.":
    188194                                        <select name=\"id_lista\" class=\"modulo\" onChange=\"top.location.href=this.form.pag.value+this.form.id_lista.options[this.form.id_lista.selectedIndex].value;return false\">";
    189195                                        while(list($id_rif,$descrizione,$num_lis) = mysql_fetch_row($res_lis)) {
     
    279285                        if (!(0<$offset and $offset<=$num_cand)) $offset=$num_cand;
    280286                        if (!$csv) {           
    281                                 echo "<br /><table>
    282                                   <tr><td><h5>$pagina</h5></td></tr>";
    283                                 echo "<tr><td>"._DA.":&nbsp;  <select name=\"min\" class=\"modulo\">";
     287                                if(strstr( $op,'lista')){$scelta=_SCEGLI_LISTA;}else{$scelta=_SCEGLI_CANDI;}
     288                                echo "<p>$scelta "._DA.":&nbsp;  <select name=\"min\" class=\"modulo\">";
    284289                                while(list($id_rif,$descrizione,$num_lis) = mysql_fetch_row($res_cand)) {
    285290                                        if (!$min) $min=$num_lis;
     
    290295                                       
    291296                                }
    292                                 echo "</select></td></tr>";
    293                                 echo "<tr><td>&nbsp;&nbsp;"._A.":&nbsp; <select name=\"offset\" class=\"modulo\">";
     297                                echo "</select>";
     298                                echo "&nbsp;&nbsp;"._A.":&nbsp; <select name=\"offset\" class=\"modulo\">";
    294299                                mysql_data_seek($res_cand,0);
    295300                                while(list($id_rif,$descrizione,$num_lis) = mysql_fetch_row($res_cand)) {
     
    301306                                       
    302307                                }
    303                                 echo "</select></td></tr></table>";
    304                                 echo "<table><tr><td>";
     308                                echo "</select></p>";
     309                                //echo "<div style=\"text-align:left; margin-left:20px;\">";
     310                                if(!$circo){
     311                                echo "<p>"._SCEGLI." $tipo1 n. <input  name=\"minsez\" value=\"$minsez\" size=\"4\" ></input>";
     312                                echo _A." n. <input  name=\"offsetsez\" value=\"$offsetsez\" size=\"4\" ></input> (max. $num_sez)";
     313                                }
     314                                # pagine
     315                                $diff=($offsetsez-$minsez);
     316                                if ($minsez>1){
     317                                        $minsez_p= ($minsez-$diff)>1 ? $minsez-$diff-1:1;
     318                                         
     319                                        $offsetsez_p=$offsetsez-$diff-1;
     320                                                                echo "<div style=\"float: right; width:200px;margin-left:10px;margin-right:400px;font-size:12px \"><a href=\"modules.php?name=Elezioni&amp;file=index&amp;id_cons_gen=$id_cons_gen&amp;id_comune=$id_comune&amp;op=$op&amp;min=$min&amp;offset=$offset&amp;minsez=$minsez_p&amp;offsetsez=$offsetsez_p&amp;perc=$perc&amp;id_lista=$id_lista\"> <- $tipo2 Precedenti</a></div>";
     321                                }else{echo "";}
     322
     323                                if ($offsetsez<$num_sez){
     324                                        $minsez_s=$minsez+$diff+1;
     325                                        $offsetsez_s= ($offsetsez+$diff)>$num_sez ? $num_sez: $offsetsez+$diff+1;
     326
     327                                                                echo "<div style=\"float: left; width:200px; margin-left:10px;\"><a href=\"modules.php?name=Elezioni&amp;file=index&amp;op=$op&amp;id_cons_gen=$id_cons_gen&amp;id_comune=$id_comune&amp;orvert=$orvert&amp;min=$min&amp;offset=$offset&amp;minsez=$minsez_s&amp;offsetsez=$offsetsez_s&amp;perc=$perc&amp;id_lista=$id_lista\"> $tipo2 Successive -></a></div>";
     328                                }else{echo "";}
     329
     330
     331
     332
     333
    305334                                if(!$circo)
    306                                 echo "$tipo1 n. <input  name=\"minsez\" value=\"$minsez\" size=\"4\" ></input>";
    307                                 echo "</td>";
    308                                 echo "<td>";
    309                                 if(!$circo)
    310                                 echo _A." n. <input  name=\"offsetsez\" value=\"$offsetsez\" size=\"4\" ></input> (max. $num_sez)";
    311                                 echo "</td>
    312                                 <td align=\"right\">"._MOSTRA." $tipo2 <br/>"._PERCOL."<input type=\"radio\" name=\"orvert\" $righe value=\"0\"></input><br/>"._PERRIGHE." <input
     335                               
     336                                echo "<div style=\"margin-left:10px;\"><br/>"._MOSTRA." $tipo2 "._PERCOL."<input type=\"radio\" name=\"orvert\" $righe value=\"0\"></input>"._PERRIGHE." <input
    313337                                type=\"radio\" name=\"orvert\" $colonne value=\"1\"></input>";
    314338                                echo "<input type=\"hidden\" name=\"name\" value=\"Elezioni\"></input>
    315                                 </td></tr>";
    316 $diff=($offsetsez-$minsez);
    317 if ($minsez>1){
    318         $minsez_p= ($minsez-$diff)>1 ? $minsez-$diff-1:1;
    319          
    320         $offsetsez_p=$offsetsez-$diff-1;
    321                                 echo "<tr><td valign=\"middle\"><div align=\"right\"><a href=\"modules.php?name=Elezioni&amp;file=index&amp;id_cons_gen=$id_cons_gen&amp;id_comune=$id_comune&amp;op=$op&amp;min=$min&amp;offset=$offset&amp;minsez=$minsez_p&amp;offsetsez=$offsetsez_p&amp;perc=$perc&amp;id_lista=$id_lista\"> <- Precedenti</a></div></td>";
    322 }else{echo "<tr><td></td>";}
    323 if ($offsetsez<$num_sez){
    324         $minsez_s=$minsez+$diff+1;
    325         $offsetsez_s= ($offsetsez+$diff)>$num_sez ? $num_sez: $offsetsez+$diff+1;
    326 
    327                                 echo "<td><div><a href=\"modules.php?name=Elezioni&amp;file=index&amp;op=$op&amp;id_cons_gen=$id_cons_gen&amp;id_comune=$id_comune&amp;orvert=$orvert&amp;min=$min&amp;offset=$offset&amp;minsez=$minsez_s&amp;offsetsez=$offsetsez_s&amp;perc=$perc&amp;id_lista=$id_lista\"> Successive -></a></div></td><td></td></tr>";
    328 }else{echo "<td></td><td></td></tr>";} 
    329 
    330                                
    331                                
    332                                 echo "<tr>";
     339                                </div>";
     340
     341                               
     342                               
     343                                echo "<p>";
    333344                                if (!strstr( $op,'candidato')) {
    334                                         echo "<td>"._VIS_PERC.": <input type=\"checkbox\" name=\"perc\" value=\"true\"";
     345                                        echo ""._VIS_PERC.": <input type=\"checkbox\" name=\"perc\" value=\"true\"";
    335346                                        if($perc=='true') echo " checked=\"true\"";
    336                                         echo "></input></td>";
    337                                 }
    338                                 echo "<td>";
     347                                        echo "></input><br/>";
     348                                }
     349                                echo "";
    339350                        if($circo)
    340351                                echo "<input type=\"hidden\" name=\"id_circ\" value=\"$id_circ\"></input>";     
     
    345356                                echo "<input type=\"hidden\" name=\"pag2\" value=\"modules.php?name=Elezioni&amp;op=$op&amp;id_cons_gen=$id_cons_gen&amp;id_comune=$id_comune&amp;csv=1&amp;orvert=$orvert&amp;min=$min&amp;offset=$offset&amp;minsez=$minsez&amp;offsetsez=$offsetsez&amp;perc=$perc&amp;id_lista=\"></input>";       
    346357
    347                                  echo "<input type=\"submit\" name=\"update\" value=\""._OK."\"></input>";
     358                                 echo " <input type=\"submit\" name=\"update\" value=\""._RICARICA."\"></input></p></div>";
    348359
    349360
     
    385396                             
    386397                                $datipdf="<b>"._COMUNE." $descr_comune</b> - "._RISULTATI.": $descr_cons<br/><b>$pagina</b><br/><br/> $list1 $list2 $list3 ";
     398                       
     399                               
     400                               
     401                               
     402
     403
     404                               
     405                                  # verificare la stampa sulle circoscrizioni
     406                                echo "<div style=\"text-align:right;width:900px;margin-left:10px;margin-right:20px;font-size:12px \">"._ESPORTA."<br />";
     407                                 if($circo) echo "<a href=\"".$_SERVER['PHP_SELF']."?name=Elezioni&amp;op=$op&amp;id_cons_gen=$id_cons_gen&amp;id_comune=$id_comune&amp;csv=1&amp;orvert=$orvert&amp;min=$min&amp;offset=$offset&amp;minsez=$minsez&amp;offsetsez=$offsetsez&amp;perc=$perc&amp;id_lista=$id_lista&amp;id_circ=$id_circ&amp;datipdf=$datipdf\" ><img class=\"image\"  src=\"modules/Elezioni/images/printer.gif\" alt=\"Stampa\" /></a>";
     408                                else{
     409                                  echo "<a href=\"".$_SERVER['PHP_SELF']."?name=Elezioni&amp;op=$op&amp;id_cons_gen=$id_cons_gen&amp;id_comune=$id_comune&amp;csv=1&amp;orvert=$orvert&amp;min=$min&amp;offset=$offset&amp;minsez=$minsez&amp;offsetsez=$offsetsez&amp;perc=$perc&amp;id_lista=$id_lista&amp;datipdf=$datipdf\" ><img class=\"image\"  src=\"modules/Elezioni/images/printer.gif\" alt=\"Stampa\" /></a>";
     410                                  echo "<a href=\"".$_SERVER['PHP_SELF']."?name=Elezioni&amp;op=$op&amp;id_cons_gen=$id_cons_gen&amp;id_comune=$id_comune&amp;csv=1&amp;orvert=$orvert&amp;min=$min&amp;offset=$offset&amp;minsez=$minsez&amp;offsetsez=$offsetsez&amp;perc=$perc&amp;id_lista=$id_lista&amp;xls=1&amp;datipdf=$datipdf\" ><img class=\"image\"  src=\"modules/Elezioni/images/csv.gif\" alt=\"Export Csv\" /></a>";
     411                                  echo "<a href=\"".$_SERVER['PHP_SELF']."?name=Elezioni&amp;op=$op&amp;id_cons_gen=$id_cons_gen&amp;id_comune=$id_comune&amp;csv=1&amp;orvert=$orvert&amp;min=$min&amp;offset=$offset&amp;minsez=$minsez&amp;offsetsez=$offsetsez&amp;perc=$perc&amp;id_lista=$id_lista&amp;pdf=1&amp;datipdf=$datipdf\" ><img class=\"image\"  src=\"modules/Elezioni/images/pdf.gif\" alt=\"Export Pdf\" /></a>";
     412                                }
     413                                echo "</div></form>";
     414                                /*
    387415                                if (!$circo)
    388416                                echo "dalla $tipo3 n. <b>$minsez</b> alla $tipo3 n. <b>$offsetsez</b> di <b>$num_sez</b> $tipo2<br/><br/>";
    389417                                else echo "<br/><br/>";
    390418                               
    391                                
    392 
    393 
    394                                
    395                                   # verificare la stampa sulle circoscrizioni
    396                                  if($circo) echo "</td><td><a href=\"".$_SERVER['PHP_SELF']."?name=Elezioni&amp;op=$op&amp;id_cons_gen=$id_cons_gen&amp;id_comune=$id_comune&amp;csv=1&amp;orvert=$orvert&amp;min=$min&amp;offset=$offset&amp;minsez=$minsez&amp;offsetsez=$offsetsez&amp;perc=$perc&amp;id_lista=$id_lista&amp;id_circ=$id_circ&amp;datipdf=$datipdf\" ><img class=\"image\"  src=\"modules/Elezioni/images/printer.gif\" alt=\"Stampa\" /></a>";
    397                                 else{
    398                                   echo "</td><td><a href=\"".$_SERVER['PHP_SELF']."?name=Elezioni&amp;op=$op&amp;id_cons_gen=$id_cons_gen&amp;id_comune=$id_comune&amp;csv=1&amp;orvert=$orvert&amp;min=$min&amp;offset=$offset&amp;minsez=$minsez&amp;offsetsez=$offsetsez&amp;perc=$perc&amp;id_lista=$id_lista&amp;datipdf=$datipdf\" ><img class=\"image\"  src=\"modules/Elezioni/images/printer.gif\" alt=\"Stampa\" /></a>";
    399                                   echo "<a href=\"".$_SERVER['PHP_SELF']."?name=Elezioni&amp;op=$op&amp;id_cons_gen=$id_cons_gen&amp;id_comune=$id_comune&amp;csv=1&amp;orvert=$orvert&amp;min=$min&amp;offset=$offset&amp;minsez=$minsez&amp;offsetsez=$offsetsez&amp;perc=$perc&amp;id_lista=$id_lista&amp;xls=1&amp;datipdf=$datipdf\" ><img class=\"image\"  src=\"modules/Elezioni/images/csv.gif\" alt=\"Export Csv\" /></a>";
    400                                   echo "<a href=\"".$_SERVER['PHP_SELF']."?name=Elezioni&amp;op=$op&amp;id_cons_gen=$id_cons_gen&amp;id_comune=$id_comune&amp;csv=1&amp;orvert=$orvert&amp;min=$min&amp;offset=$offset&amp;minsez=$minsez&amp;offsetsez=$offsetsez&amp;perc=$perc&amp;id_lista=$id_lista&amp;pdf=1&amp;datipdf=$datipdf\" ><img class=\"image\"  src=\"modules/Elezioni/images/pdf.gif\" alt=\"Export Pdf\" /></a>";
    401                                 }
    402                                 echo "</td></tr></table></div></form>";
    403                                
    404419                                if (strstr( $op,'candidato')) echo $list2;     
    405                                
     420                                */
    406421                               
    407422                        }
    408423                        if (!$csv){
    409                                 //echo "<table border=\"0\" width=\"100%\"><tr><td align=\"center\"><h5> Sezioni scrutinate";
    410                                 //if ($tipo_cons!=4) echo ": $tot_scr su $tot_sez";
    411                                 //echo "</h5></td></tr></table>";
     424                                echo "<div style=\"text-align:right;width:900px;margin-left:10px;margin-right:2px;font-size:12px \"><h5> Sezioni scrutinate";
     425                                if ($tipo_cons!=4) echo ": $tot_scr su $tot_sez &nbsp;&nbsp;&nbsp;  ";
     426                                echo "</h5>&nbsp; </div>";
    412427                        }
    413428                        $y=1;
     
    448463
    449464###################                     <span class=\"red\"><i>".$temp3[$key]." %</i></span>           
    450                                         $ar[$z][0]=$res[0]; if($grpercscru) {$ar[$z][0].="<br><span class=\"red\"><i>$grpercscru%</i></span>";if(!strstr($ar[0][0],'scrutinio')) $ar[0][0].="<br><span class=\"red\"><i>% scrutinio</i></span>"; }
     465                                        $ar[$z][0]=$res[0]; if($grpercscru) {$ar[$z][0].="<br /><span class=\"red\"><i>$grpercscru%</i></span>";if(!strstr($ar[0][0],'scrutinio')) $ar[0][0].="<br /><span class=\"red\"><i>% scrutinio</i></span>"; }
    451466                                        $pos[$z]=$res[0];
    452467                                        #$valar[$z]=array();
  • trunk/client/modules/Elezioni/language/lang-en.php

    r86 r104  
    441441define("_ELEZIONI","Elections");
    442442define("_TEMA","Template");
     443define("_SCEGLI_LISTA","Select List");
     444define("_SCEGLI_CANDI","Select Candidate");
     445define("_SCEGLI_SEZ","Select  Section");
     446define("_SCEGLI_DELEG","Choose District");
     447define("_ESPORTA","Export Results");
     448
     449
     450
     451
    443452
    444453?>
  • trunk/client/modules/Elezioni/language/lang-it.php

    r86 r104  
    202202define("_CNFR_CONS","RAFFRONTO TRA CONSULTAZIONI<br/>".htmlentities("si può impostare su liste singole o su raggruppamenti"));
    203203define("_SCELTA_CONS","<b>Scegli le consultazioni da mettere a confronto</b>");
    204 
     204define("_SCEGLI_LISTA","Scegli la Lista");
     205define("_SCEGLI_CANDI","Scegli il Candidato");
     206define("_SCEGLI_SEZ","Scegli la Sezione");
     207define("_SCEGLI_DELEG","Scegli la Circoscrizione");
     208define("_ESPORTA","Esporta i Risultati");
    205209
    206210if($tipo_cons==12 or $tipo_cons==14 or $tipo_cons==15 or $tipo_cons==16 or $tipo_cons==17){
     
    251255define("_VOTI_RAGGR","Totale voti alle liste");
    252256define("_PROGRAM","Programma<br>elettorale");
     257define("_RICARICA","Ricarica");
    253258
    254259
  • trunk/client/temi/stylized/style.css

    r2 r104  
    286286        text-transform: lowercase;
    287287        font-size: 12px;
    288         color: #FFFFFF;
     288        color: #ffffff;
     289        text-align:center;
    289290/*
    290291        font-size: 14px;
  • trunk/client/temi/yellowblu/style.css

    r2 r104  
    226226        text-transform: lowercase;
    227227        font-size: 12px;
    228         color: #FFFFFF;
     228        color: #ffffff;
     229       
    229230}
    230231
     
    344345        font-size: 12px;
    345346        color: #FFFFFF;
     347        text-align:center;
    346348/*
    347349        font-size: 14px;
Note: See TracChangeset for help on using the changeset viewer.