Changeset 352 for trunk/client/modules
- Timestamp:
- Jul 31, 2021, 1:41:30 PM (3 years ago)
- Location:
- trunk/client/modules/Elezioni
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/client/modules/Elezioni/affluenze.php
r350 r352 224 224 # if(($data==$ultdata) and ($ora==$ultora)) 225 225 { 226 $tot[$data.$ora]="<table class=\"td-89\" width=\"100%\"><tr class=\"bggray2\"><td class=\"td-30\">226 $tot[$data.$ora]="<table class=\"td-89\"><tr class=\"bggray2\"><td class=\"td-30\"> 227 227 <b>".number_format($votiu,0,',','.')."</b></td><td class=\"td-30\"> 228 228 <b>".number_format($votid,0,',','.')."</b></td><td> -
trunk/client/modules/Elezioni/blocchi/off_Votanti.php
r278 r352 84 84 85 85 86 87 echo "<table bgcolor=\"gray\" class=\"modulo\" width=\"100%\" cellspacing=\"1\">"; 86 echo "<table style=\"width=100%;border-collapse: collapse;background-gcolor:gray\" class=\"modulo\">"; 88 87 if ($genere==0) {echo "<br/>Referendum n. <b>[$num_gruppo]</b><br/>";} 89 88 echo " 90 <tr bgcolor=\"#ffffff\"><td ><b>"._AVENTI."</b></td><td>$tot_aventi</td><td><span class=\"red\">100%</span></td></tr>89 <tr bgcolor=\"#ffffff\"><td style=\"padding: 1px;\"><b>"._AVENTI."</b></td><td>$tot_aventi</td><td><span class=\"red\">100%</span></td></tr> 91 90 92 <tr bgcolor=\"#ffffff\"><td ><b>"._VOTANTI."</b></td><td>$tot_votanti</td><td><span class=\"red\">$perc_votanti%</span></td></tr>91 <tr bgcolor=\"#ffffff\"><td style=\"padding: 1px;\"><b>"._VOTANTI."</b></td><td>$tot_votanti</td><td><span class=\"red\">$perc_votanti%</span></td></tr> 93 92 94 <tr bgcolor=\"#ffffff\"><td >"._VALIDI."</td><td>$validi</td><td><span class=\"red\">$perc_validi%</span></td></tr>93 <tr bgcolor=\"#ffffff\"><td style=\"padding: 1px;\">"._VALIDI."</td><td>$validi</td><td><span class=\"red\">$perc_validi%</span></td></tr> 95 94 96 <tr bgcolor=\"#ffffff\"><td >"._NULLI."</td><td>$nulli</td><td><span class=\"red\">$perc_nulli%</span></td></tr>95 <tr bgcolor=\"#ffffff\"><td style=\"padding: 1px;\">"._NULLI."</td><td>$nulli</td><td><span class=\"red\">$perc_nulli%</span></td></tr> 97 96 98 <tr bgcolor=\"#ffffff\"><td >"._BIANCHI."</td><td>$bianchi</td><td><span class=\"red\">$perc_bianchi%</span></td></tr>97 <tr bgcolor=\"#ffffff\"><td style=\"padding: 1px;\">"._BIANCHI."</td><td>$bianchi</td><td><span class=\"red\">$perc_bianchi%</span></td></tr> 99 98 100 <tr bgcolor=\"#ffffff\"><td >"._CONTESTATI."</td><td>$contestati</td><td><span class=\"red\">$perc_conte%</span></td></tr>99 <tr bgcolor=\"#ffffff\"><td style=\"padding: 1px;\">"._CONTESTATI."</td><td>$contestati</td><td><span class=\"red\">$perc_conte%</span></td></tr> 101 100 102 101 </table>"; -
trunk/client/modules/Elezioni/confronti.php
r265 r352 183 183 if($grp3)echo "<input type=\"hidden\" name=\"grp3\" value=\"$grp3\"/>"; 184 184 echo "<br/>"; 185 echo "<table cellspacing=\"0\" cellpadding=\"2\" border=\"1\"><tr class=\"bggray\"><td bgcolor=\"$bgcolor1\" colspan=\"5\">"._CONSULTAZIONE.": <b>$descr</b><br/>"._SCELTA_LISTE."</td></tr><tr class=\"bggray\"><td bgcolor=\"$bgcolor1\" colspan=\"2\"></td>";186 if($grp1)echo "<td bgcolor=\"$bgcolor1\"><b>$grp1</b></td>";187 if($grp2)echo "<td bgcolor=\"$bgcolor1\"><b>$grp2</b></td>";188 echo "<td bgcolor=\"$bgcolor1\"><b>"._ALTROGRP."</b></td>";185 echo "<table style=\"border-collapse: collapse; border: 2px solid black;\"><tr class=\"bggray\"><td style=\"padding:5px;background-color:$bgcolor1;\">"._CONSULTAZIONE.": <b>$descr</b><br/>"._SCELTA_LISTE."</td></tr><tr class=\"bggray\"><td style=\"padding:2px;background-color:$bgcolor1;\"></td>"; 186 if($grp1)echo "<td style=\"background-color:$bgcolor1;\"><b>$grp1</b></td>"; 187 if($grp2)echo "<td style=\"background-color:$bgcolor1;\"><b>$grp2</b></td>"; 188 echo "<td style=\"background-color:$bgcolor1;\"><b>"._ALTROGRP."</b></td>"; 189 189 echo "</tr>"; 190 190 $z=1; -
trunk/client/modules/Elezioni/crea_paginaphp5.php
r348 r352 112 112 113 113 114 $html .= "<table class=\"table-docs\" cellspacing=\"0\" cellpadding=\"2\" border=\"1\" rules=\"all\">";114 $html .= "<table class=\"table-docs\" style=\"border-collapse: collapse;border:=1px solid black;\">"; 115 115 116 116 … … 246 246 247 247 248 $style .="<table style=\"margin: auto; \" cellspace=0 border=0 cellpadding=0><tr><td border=0>$immagine</td> ";248 $style .="<table style=\"margin: auto;border-collapse: collapse;\"><tr><td border=0>$immagine</td> "; 249 249 250 250 $style .= "<td border=0>$datipdf</td></tr></table><br/><br/>"; 251 251 $style .= "<table style=\"margin: auto;\"><tr><td>$html</td></tr></table>"; 252 $style .= "<table style=\"margin: auto; \" cellspace=0 border=0 cellpadding=0><tr><td border=0>";252 $style .= "<table style=\"margin: auto;border-collapse: collapse;\"><tr><td border=0>"; 253 253 254 254 $data=date("d-m-y G:i"); -
trunk/client/modules/Elezioni/crea_paginaphp7.php
r348 r352 115 115 116 116 117 $html .= "<table class=\"table-docs\" cellspacing=\"0\" cellpadding=\"2\" border=\"1\" rules=\"all\">";117 $html .= "<table class=\"table-docs\" style=\"border-collapse: collapse;border:=1px solid black;\">"; 118 118 119 119 … … 143 143 } 144 144 $html .= "$t $i>$cella $f"; 145 $i= '';145 $i="class=\"td-130b\""; 146 146 147 147 } … … 164 164 echo $html; 165 165 }else{ 166 167 # padding: 1px; 168 # border: solid #666666; 169 /* margin: 4px 4px 40px;*/ 166 170 167 171 $style =" … … 170 174 .table-docs { 171 175 font-size: 10px; 172 padding: 1px;173 176 color: #000000; 174 /* margin: 4px 4px 40px;*/175 border: solid #666666;176 177 text-align:center; 178 border: 1px solid black; 177 179 } 178 180 .bggray { … … 180 182 FONT-SIZE: 13px; 181 183 FONT-FAMILY: Helvetica; 182 border: 1px;183 184 } 184 185 … … 187 188 FONT-SIZE: 13px; 188 189 FONT-FAMILY: Helvetica; 189 border: 1px;190 190 } 191 191 … … 216 216 float: right; 217 217 text-align:left; 218 margin: 0px 0 01px;218 margin: 0px 0px 0px 1px; 219 219 width: 130px; 220 border: none; 221 padding: 0px; 220 border: 1px solid black; 222 221 } 223 222 224 223 td { 225 border: .2px;224 border: 2px solid black; 226 225 } 227 226 .red { … … 249 248 250 249 251 $style .="<table style=\"margin: auto; \" cellspace=0 border=0 cellpadding=0><tr><td border=0>$immagine</td> ";250 $style .="<table style=\"margin: auto;border-collapse: collapse;\"><tr><td border=0>$immagine</td> "; 252 251 253 252 $style .= "<td border=0>$datipdf</td></tr></table><br/><br/>"; 254 253 $style .= "<table style=\"margin: auto;\"><tr><td>$html</td></tr></table>"; 255 $style .= "<table style=\"margin: auto; \" cellspace=0 border=0 cellpadding=0><tr><td border=0>";254 $style .= "<table style=\"margin: auto;border-collapse: collapse;\"><tr><td border=0>"; 256 255 257 256 $data=date("d-m-y G:i"); -
trunk/client/modules/Elezioni/grafici.php
r350 r352 499 499 <tr> 500 500 <td><br /> 501 <table cellspacing=\"0\" cellpadding=\"2\" rules=\"cols\">";501 <table style=\"border-collapse: collapse;\" rules=\"cols\">"; 502 502 // inizio tabella dati 503 503 // variabili stampa flash … … 564 564 $bgcolor1= ($bgcolor1=="#cacaca") ? "#ffffff":"#cacaca"; 565 565 echo "<tr valign=\"top\"> 566 <td valign=\"top\"><b><img src=\"modules.php?name=Elezioni&file=foto&$cosa=$id\" class=\"stemmapic\" alt=\"descrizione\" /></b></td>566 <td style=\"vertical-align=:top;\"><b><img src=\"modules.php?name=Elezioni&file=foto&$cosa=$id\" class=\"stemmapic\" alt=\"descrizione\" /></b></td> 567 567 <td><b>$descrizione</b></td> 568 568 <td>"._VOTI."</td><td align=\"right\">$votiv</td><td align=\"right\"> <i>($prov%)</i></td> … … 601 601 global $tema; 602 602 if($tema!="tour") echo "</tr><tr>"; 603 echo "<td valign=\"top\"><br />";603 echo "<td style=\"vertical-align=:top;\"><br />"; 604 604 # grafico statico 605 605 echo "<img src='modules/Elezioni/grafici/barre.php?dati1=$dati1&dati2=$dati2&i=$i&cop=$copy&titolo=$titolo&descr=$descr_cons&l=$l&w=$w&logo=$logo' alt=\"Grafico\" />"; -
trunk/client/modules/Elezioni/gruppo.php
r351 r352 299 299 300 300 if ($circo) $condcirc="and t5.id_circ=$id_circ"; 301 if ($tab=="gruppo" or $genere==4 or ($genere==5 and $votog) )301 if ($tab=="gruppo" or $genere==4 or ($genere==5 and $votog) or defined('_NULLISTA')) 302 302 $votigl=" sum(t3.validi),sum(t3.nulli),sum(t3.bianchi),sum(t3.contestati),sum(t3.voti_nulli)"; 303 303 else 304 if ($votog) $votigl=" (t3.validi_lista),(t3.nulli),(t3.bianchi),(t3.contestati),(t3.voti_nulli )";304 if ($votog) $votigl=" (t3.validi_lista),(t3.nulli),(t3.bianchi),(t3.contestati),(t3.voti_nulli_lista+t3.voti_nulli)"; 305 305 else $votigl=" sum(t3.validi_lista),sum(t3.nulli),sum(t3.bianchi),sum(t3.contestati_lista),sum(t3.voti_nulli_lista+t3.voti_nulli)"; 306 306 $sqlvoti="select $tab2, $t.num_$tab15, $t.descrizione, sum(t2.voti), $votigl … … 576 576 $maxpos=max($pos); 577 577 //////////////////////////////////////////////////////////////////// 578 if ($tab=="gruppo" or $genere==4 or ($genere==5 and $votog) )578 if ($tab=="gruppo" or $genere==4 or ($genere==5 and $votog) or defined('_NULLISTA')) 579 579 $sqlvoti2="select $tab3, sum(t3.validi),sum(t3.nulli),sum(t3.bianchi),sum(t3.contestati),sum(t3.voti_nulli) from ".$prefix."_ele_circoscrizione as t5, ".$prefix."_ele_sezioni as t3, ".$prefix."_ele_sede as t4 where t5.id_cons=$id_cons and t5.id_circ=t4.id_circ and t3.id_sede=t4.id_sede group by $tab3"; 580 580 else 581 if (strstr( $op,'circo')) $sqlvoti2="select t1.num_circ, sum(t3.validi_lista),sum(t3.nulli),sum(t3.bianchi),sum(t3.contestati),sum(t3.voti_nulli ) from ".$prefix."_ele_circoscrizione as t1, ".$prefix."_ele_sezioni as t3, ".$prefix."_ele_sede as t4 where t1.id_cons=$id_cons and t1.id_circ=t4.id_circ and t3.id_sede=t4.id_sede group by t1.num_circ";581 if (strstr( $op,'circo')) $sqlvoti2="select t1.num_circ, sum(t3.validi_lista),sum(t3.nulli),sum(t3.bianchi),sum(t3.contestati),sum(t3.voti_nulli_lista+t3.voti_nulli) from ".$prefix."_ele_circoscrizione as t1, ".$prefix."_ele_sezioni as t3, ".$prefix."_ele_sede as t4 where t1.id_cons=$id_cons and t1.id_circ=t4.id_circ and t3.id_sede=t4.id_sede group by t1.num_circ"; 582 582 583 583 else $sqlvoti2="select t3.num_sez, (t3.validi_lista),(t3.nulli),(t3.bianchi),(t3.contestati_lista),(t3.voti_nulli_lista+t3.voti_nulli) from ".$prefix."_ele_sezioni as t3 where t3.id_cons=$id_cons "; … … 612 612 } 613 613 $piuvot=0; 614 if ($visvot!='cand') $piuvot=5;614 if ($visvot!='cand') if(!defined('_NULLISTA')) $piuvot=5; else $piuvot=4; 615 615 for ($y=$min;$y<=($offset+$piuvot);$y++) $ar[0][$y]=" "; 616 616 if (strstr( $op,'circo')) … … 678 678 $ar[0][$posvoti+3]='<b>Schede Bianche</b>'; 679 679 $ar[0][$posvoti+4]='<b>Voti Contestati</b>'; 680 $ar[0][$posvoti+5]='<b>Voti Nulli</b>';680 if(!defined('_NULLISTA')) $ar[0][$posvoti+5]='<b>Voti Nulli</b>'; 681 681 if (($maxpos)>=$num_circ and $minpos<=$num_circ){ 682 682 //$posvoti++; … … 685 685 $ar[($z)][$posvoti+3]="<b>$biasez[$z]</b>"; 686 686 $ar[($z)][$posvoti+4]="<b>$consez[$z]</b>"; 687 $ar[($z)][$posvoti+5]="<b>$vonsez[$z]</b>";687 if(!defined('_NULLISTA')) $ar[($z)][$posvoti+5]="<b>$vonsez[$z]</b>"; 688 688 } 689 689 } … … 695 695 if(isset($temp)) { 696 696 if (!isset($tab15) or !$tab15) $tab15="candidati"; 697 if($tab15=="gruppo" or $genere==4 ){697 if($tab15=="gruppo" or $genere==4 or defined('_NULLISTA')){ 698 698 if($votog) $tab15="lista"; 699 699 $votigl=" sum(validi),sum(nulli),sum(bianchi),sum(contestati),sum(voti_nulli)"; … … 702 702 }else{ 703 703 if($dettnulli) $votigl=" sum(validi_lista),sum(nulli),sum(bianchi),sum(contestati_lista),sum(voti_nulli_lista+voti_nulli)"; 704 else $votigl=" sum(validi_lista),sum(nulli),sum(bianchi),sum(contestati_lista),sum(voti_nulli )";704 else $votigl=" sum(validi_lista),sum(nulli),sum(bianchi),sum(contestati_lista),sum(voti_nulli_lista+voti_nulli)"; 705 705 } 706 706 if($circo) … … 729 729 if ($visvot!='cand') { 730 730 $key=$offset+1; 731 $tmp=array($sevaltot,$senultot,$sebiatot,$secontot,$sevnutot); 731 if(!defined('_NULLISTA')) $tmp=array($sevaltot,$senultot,$sebiatot,$secontot,$sevnutot); 732 else $tmp=array($sevaltot,$senultot,$sebiatot,$secontot); 732 733 if($perc) $temp3=arrayperc($tmp,$voticompl); 733 734 -
trunk/client/modules/Elezioni/language/lang-it.php
r340 r352 488 488 define("_DESCRCONS","CAMERA"); 489 489 define("_CONSI","Candidato"); 490 define("_NULLISTA",0); 490 491 break; 491 492 case 19: … … 501 502 define("_DESCRCONS","CAMERA"); 502 503 define("_CONSI","Candidato"); 504 define("_NULLISTA",0); 503 505 break; 504 506
Note:
See TracChangeset
for help on using the changeset viewer.