Changeset 347 for trunk/client
- Timestamp:
- May 14, 2021, 2:00:23 PM (4 years ago)
- Location:
- trunk/client
- Files:
-
- 640 added
- 2 deleted
- 18 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/client/header.php
r251 r347 25 25 function head(){ 26 26 global $csv,$tema,$tour,$sitename,$pagetitle,$simbolo,$siteurl,$siteistat; 27 echo ' 28 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> 29 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">'; 27 # echo ' 28 # <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> 29 # <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">'; 30 echo '<!DOCTYPE html><html lang="it">'; 30 31 echo "<head>\n"; 31 32 echo "<meta http-equiv=\"Content-Type\" content=\"text/html;charset=utf-8\" />"; … … 42 43 43 44 echo "<link rel=\"stylesheet\" href=\"temi/$tema/style.css\" type=\"text/css\" />\n\n\n"; 44 45 include("temi/$tema/head.php"); 45 46 46 47 -
trunk/client/inc/csrf-magic/csrf-magic.php
r253 r347 157 157 $buffer = preg_replace('#(<form[^>]*method\s*=\s*["\']post["\'][^>]*>)#i', '$1' . $input, $buffer); 158 158 if ($GLOBALS['csrf']['frame-breaker']) { 159 $buffer = str_ireplace('</head>', '<script type="text/javascript">if (top != self) {top.location.href = self.location.href;}</script></head>', $buffer);159 $buffer = str_ireplace('</head>', '<script>if (top != self) {top.location.href = self.location.href;}</script></head>', $buffer); 160 160 } 161 161 if ($js = $GLOBALS['csrf']['rewrite-js']) { 162 162 $buffer = str_ireplace( 163 163 '</head>', 164 '<script type="text/javascript">'.164 '<script">'. 165 165 'var csrfMagicToken = "'.$tokens.'";'. 166 166 'var csrfMagicName = "'.$name.'";</script>'. … … 168 168 $buffer 169 169 ); 170 $script = '<script type="text/javascript">CsrfMagic.end();</script>';170 $script = '<script>CsrfMagic.end();</script>'; 171 171 $buffer = str_ireplace('</body>', $script . '</body>', $buffer, $count); 172 172 if (!$count) { -
trunk/client/inc/javascript.php
r247 r347 42 42 # googlemaps per sezioni 43 43 # variabili nel config.php 44 # gkey= chiave google reperibileper il proprio sito qui45 # http ://code.google.com/intl/it/apis/maps/signup.html44 # gkey= chiave google informazioni su come reperirla per il proprio sito qui 45 # https://cloud.google.com/maps-platform/user-guide/account-changes/#no-plan 46 46 # googlemaps 1=attivo 2: disattivo 47 47 # funzione by eleonline.it … … 58 58 # recupera gli inidirizzi 59 59 $id_sede=$_GET['id_sede']; 60 $sql = mysql_query("SELECT descrizione FROM ".$prefix."_ele_comuni where id_comune='$id_comune' ", $dbi); 61 list($comune) = mysql_fetch_row($sql); 62 $sql = mysql_query("select indirizzo from ".$prefix."_ele_sede where id_sede='$id_sede'", $dbi); 63 list($indirizzo)=mysql_fetch_row($sql); 60 $sql="SELECT descrizione FROM ".$prefix."_ele_comuni where id_comune='$id_comune' "; 61 $res = $dbi->prepare("$sql"); 62 $res->execute(); 63 list($comune) = $res->fetch(PDO::FETCH_NUM); 64 $sql="SELECT indirizzo from ".$prefix."_ele_sede where id_sede='$id_sede' "; 65 $res = $dbi->prepare("$sql"); 66 $res->execute(); 67 list($indirizzo) = $res->fetch(PDO::FETCH_NUM); 68 64 69 $address=rawurlencode("$indirizzo,$comune,58047"); 65 70 66 71 $resultGeoCode=file_get_contents('http://maps.google.com/maps/api/geocode/json?address='.$address.'&sensor=false'); 67 68 72 $output= json_decode($resultGeoCode); 69 73 … … 72 76 $longitude = $output->results[0]->geometry->location->lng; // Returns Longitude 73 77 $location = $output->results[0]->formatted_address; 78 }else{ 79 $latitude=0; 80 $longitude=0; 81 $location=''; 74 82 } 75 83 … … 108 116 109 117 110 118 # type="text/javascript" 111 119 112 120 113 121 echo ' 114 <script type="text/javascript"src="http://maps.google.com/maps/api/js?sensor=true&language=it"></script>115 <script type="text/javascript">122 <script src="http://maps.google.com/maps/api/js?sensor=true&language=it"></script> 123 <script> 116 124 function maps() { 117 125 var latlng = new google.maps.LatLng('.$coords['lat'].','.$coords['long'].'); // centro della mappa -
trunk/client/modules/Elezioni/affluenze.php
r337 r347 11 11 } 12 12 13 13 require_once('inc/hpdf5/autoload.php'); 14 use Spipu\Html2Pdf\Html2Pdf; 15 use Spipu\Html2Pdf\Exception\Html2PdfException; 16 use Spipu\Html2Pdf\Exception\ExceptionFormatter; 14 17 15 18 if (isset($param['id_cons_gen'])) $id_cons_gen=intval($param['id_cons_gen']); else $id_cons_gen=''; … … 252 255 if (($perc_u[$data1.$ora1] or $perc_d[$data1.$ora1])) $html .= "<br /> 253 256 254 <table class=\"td-vuoto\" width=\"100%\"><tr class=\"bggray\">255 <th class=\"td-30\">"._UOMINI."</th>256 <th class=\"td-30\">"._DONNE."</th>257 <th >"._COMPLESSIVI."</th>257 <table style=\"width:180px;\"><tr class=\"bggray\"> 258 <th style=\"width:28%;text-align:center;\">"._UOMINI."</th> 259 <th style=\"width:28%;text-align:center;\">"._DONNE."</th> 260 <th style=\"width:28%;text-align:center;\">"._COMPLESSIVI."</th> 258 261 </tr></table>"; 259 262 … … 263 266 ## if ($ora_rif=="$data1.$ora1") 264 267 if (($perc_u[$data1.$ora1] or $perc_d[$data1.$ora1])) { 265 $ar['perc'][$data1.$ora1]="<table class=\"td-vuoto\" width=\"100%\"><tr class=\"bggray2\">266 <td class=\"td-30\"><b><i><span class=\"red\">".$perc_u[$data1.$ora1]."%</span></i></b></td>267 <td class=\"td-30\"><b><i><span class=\"red\">".$perc_d[$data1.$ora1]."%</span></i></b></td>268 <td ><span class=\"red\"><b><i>".$perc_c[$data1.$ora1]."%</i></b></span></td>268 $ar['perc'][$data1.$ora1]="<table style=\"width:180px;\"><tr class=\"bggray2\"> 269 <td style=\"width:33%;text-align:center;\"><b><i><span class=\"red\">".$perc_u[$data1.$ora1]."%</span></i></b></td> 270 <td style=\"width:33%;text-align:center;\"><b><i><span class=\"red\">".$perc_d[$data1.$ora1]."%</span></i></b></td> 271 <td style=\"width:33%;text-align:center;\" ><span class=\"red\"><b><i>".$perc_c[$data1.$ora1]."%</i></b></span></td> 269 272 </tr></table>"; 270 273 $ar[0][$data1.$ora1]=$tot[$data1.$ora1]; … … 300 303 # if ($ora_rif=="$data.$ora") 301 304 if(($uomini+$donne)>0) 302 $ar[$numsez][$data.$ora]="<table class=\"td-vuoto\" width=\"100%\"><tr class=\"bggray2\">303 <td class=\"td-30\" width=\"33%\">$uomini</td>304 <td class=\"td-30\" width=\"33%\">$donne</td>305 <td >$complessivi</td>305 $ar[$numsez][$data.$ora]="<table style=\"width:180px;\"><tr class=\"bggray2\"> 306 <td style=\"width:33%;text-align:center;\">$uomini</td> 307 <td style=\"width:33%;text-align:center;\">$donne</td> 308 <td style=\"width:33%;text-align:center;\">$complessivi</td> 306 309 </tr></table>"; 307 310 else … … 315 318 { 316 319 317 $html .= "<td class=\"bggray2\" >$valore</td>";320 $html .= "<td class=\"bggray2\" style=\"text-align:center;\">$valore</td>"; 318 321 } 319 322 $html .= "</tr>"; … … 348 351 $data=date("d-m-y G:i"); 349 352 $style .="\t\t\n<br/><br/><br/><div style=\"margin:0px auto;text-align:center;\"><i>Stampato: $data</i></div>"; 350 $style .="<br/><div style=\"text-align:center;\"><i>Eleonline by luciano apolito & roberto gigli - www.eleonline.it</i></div>";353 $style .="<br/><div style=\"text-align:center;\"><i>Eleonline by luciano apolito & roberto gigli - www.eleonline.it</i></div>"; 351 354 $style .= "<br/> "; 352 355 … … 370 373 $stampa ="$datipdf $html $style"; 371 374 372 require_once('inc/hpdf403/html2pdf.class.php'); 373 $html2pdf = new HTML2PDF('L','A4', 'it'); 375 $html2pdf = new Html2Pdf('P','A4', 'it'); 374 376 $html2pdf->WriteHTML($stampa, isset($_GET['vuehtml'])); 375 377 $html2pdf->Output($nomefile); -
trunk/client/modules/Elezioni/blocchi/02_risultati.php
r228 r347 21 21 echo "<table>"; 22 22 for($x=0;$x<count($gruppo);$x++){ 23 echo "<tr><td ><strong><big>·</big></strong></td><td>".$gruppo[$x]." </td><td align=\"right\"><b><span style=\"color:#ff0000;\">".$pro[$x] ."%</span></b></td></tr>\n";23 echo "<tr><td class=\"td-big\">·</td><td>".$gruppo[$x]." </td><td style=\"text-align:right\"><b><span style=\"color:#ff0000;\">".$pro[$x] ."%</span></b></td></tr>\n"; 24 24 } 25 25 echo "</table>"; -
trunk/client/modules/Elezioni/blocchi/04_sezioni.php
r265 r347 74 74 else $pos="gruppo_sezione"; 75 75 76 $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>";76 $html .="<td style=\"margin:0px auto; text-align:center; width:5%;background-color:$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>"; 77 77 78 78 if (($i%5) ==0) $html .="</tr>\n<tr>"; 79 79 } 80 80 while($i%5!=0) {$i++; $html.="<td></td>";} 81 81 $html .="</tr></table>\n"; 82 82 // stampa 83 83 if($e!='0'){ 84 84 echo "<div><h5>"._SEZSCRU."</h5></div>"; 85 echo "< center> <img alt=\"Grafico\" src=\"modules/Elezioni/grafici/ledex2.php?sez=$e&max=$max\" /></center>";85 echo "<img style=\"display:block;margin:0px auto;text-align:center;\" alt=\"Grafico\" src=\"modules/Elezioni/grafici/ledex2.php?sez=$e&max=$max\" />"; 86 86 87 87 echo $html; } -
trunk/client/modules/Elezioni/blocchi/bar_affluenze.php
r279 r347 82 82 83 83 84 echo "<center><img src=\"http://chart.apis.google.com/chart? 85 chs=160x160 86 &cht=bvs 87 &chd=t:0,$perc,0 88 &chxt=y 89 &chco= 90 &chl=|$perc% |\" 91 92 alt=\"Sample chart\" /> 93 94 <br/><a href=\"modules.php?id_cons_gen=$id_cons_gen&name=Elezioni&id_comune=$id_comune&file=index&op=affluenze_graf\">Tutte le affluenze</a> 95 </center>"; 84 echo "<img style=\"display:block;margin:0px auto;text-align:center;\" src=\"http://chart.apis.google.com/chart?chs=160x160&cht=bvs&chd=t:0,$perc,0&chxt=y&chco=&chl=|$perc% |\" alt=\"Sample chart\" /><br/><a href=\"modules.php?id_cons_gen=$id_cons_gen&name=Elezioni&id_comune=$id_comune&file=index&op=affluenze_graf\">Tutte le affluenze</a>"; 96 85 97 86 -
trunk/client/modules/Elezioni/blocchi/cerca_candidato.php
r344 r347 8 8 /* widget cerca candidato 9 9 by luciano apolito 2015 */ 10 11 10 # http://localhost/ele3/trunk/client/modules.php?cognome=vince&id_comune=58047&op=gruppo&name=Elezioni&file=index&id_cons_gen=66 11 # http://localhost/ele3/trunk/client/modules.php?op=gruppo&name=Elezioni&id_comune=58047&file=index&id_cons_gen=66 12 12 if (!defined('MODULE_FILE')) { 13 13 die ("You can't access this file dirrectly..."); 14 14 } 15 global $id_comune ;15 global $id_comune,$id_cons_gen,$op; 16 16 17 17 # validatore form 18 18 echo ' 19 <script type="text/javascript">19 <script> 20 20 function validateForm() 21 21 { … … 31 31 32 32 # form 33 echo ' 33 #$url=$_SERVER['REQUEST_URI']; // url della pagina per il reload 34 35 echo " 34 36 <div><h5>Cerca il candidato</h5> 35 <form method= "post" name="form_candi" action="" onsubmit="return validateForm()">37 <form method=\"get\" name=\"form_candi\" action=\"modules.php\" onsubmit='return validateForm()' > 36 38 Inserisci il cognome o/e il nome intero del candidato da cercare<br/> 37 <input type= "text" name="cognome" maxlength="30" size="10" value="">';38 echo "<input type=\"hidden\" name=\"id_comune\" value=\"$id_comune\"> ";39 echo '<input type="submit" value="Cerca">39 <input type=\"text\" name=\"cognome\" maxlength=\"30\" size=\"10\" value=\"\">"; 40 echo "<input type=\"hidden\" name=\"id_comune\" value=\"$id_comune\"><input type=\"hidden\" name=\"op\" value=\"$op\"><input type=\"hidden\" name=\"name\" value=\"Elezioni\"><input type=\"hidden\" name=\"file\" value=\"index\"><input type=\"hidden\" name=\"id_cons_gen\" value=\"$id_cons_gen\">"; 41 echo "<input type=\"submit\" value=\"Cerca\"> 40 42 </form> 41 43 </div> 42 '; 43 44 if(isset($_SESSION['cerca_cand'])) $cerca_cand=$_SESSION['cerca_cand']; else $cerca_cand=""; 45 echo $cerca_cand; 46 $_SESSION['cerca_cand']=''; 44 "; 47 45 48 46 49 $url=$_SERVER['REQUEST_URI']; // url della pagina per il reload 47 48 50 49 51 50 $param=strtolower($_SERVER['REQUEST_METHOD']) == 'get' ? $_GET : $_POST; 52 51 if (isset($param['cognome'])) $cognome=addslashes($param['cognome']); else $cognome=''; 53 52 $chiave="$cognome"; 54 global $id_comune;55 53 $cerca_cand=""; 54 $_SESSION['cerca_cand']=''; 56 55 57 56 if($cognome!=''){ … … 101 100 $sezioni=$res4->rowCount(); 102 101 $cerca_cand .= "<div style=\"text-align:left\"><hr/>"; 103 $cerca_cand .= "<img src=\"modules.php?name=Elezioni&file=foto&id_lista=$id_lista\" width=\"30\" heigth=\"30\" align=\"left\">";102 $cerca_cand .= "<img src=\"modules.php?name=Elezioni&file=foto&id_lista=$id_lista\" alt=\"foto\" style=\"width:30px; text-align:left;\">"; 104 103 105 104 if($tipo_consul!='4'){ // non Ú circoscrizione … … 117 116 118 117 $_SESSION['cerca_cand']=$cerca_cand; 119 header("location:$url");118 # header("location:$url"); 120 119 //$cognome=''; 121 120 } 122 121 if(isset($_SESSION['cerca_cand'])) $cerca_cand=$_SESSION['cerca_cand']; else $cerca_cand=""; 122 echo $cerca_cand; 123 $_SESSION['cerca_cand']=''; 123 124 124 125 -
trunk/client/modules/Elezioni/blocchi/social.php
r233 r347 17 17 18 18 <!-- Facebook --> 19 <a href=\"http://www.facebook.com/sharer.php?t=modules/Elezioni/images/$simbolo& u=$url\" target=\"_blank\"><img src=\"modules/Elezioni/images/facebook.png\" alt=\"Facebook\" /></a>19 <a href=\"http://www.facebook.com/sharer.php?t=modules/Elezioni/images/$simbolo&u=$url\" target=\"_blank\"><img src=\"modules/Elezioni/images/facebook.png\" alt=\"Facebook\" /></a> 20 20 21 21 … … 23 23 24 24 <!-- Twitter --> 25 <a href=\"http://twitter.com/share?url=$url& text=$descr_com $descr_cons&hashtags=Eleonline\" target=\"_blank\"><img src=\"modules/Elezioni/images/twitter.png\" alt=\"Twitter\" /></a>25 <a href=\"http://twitter.com/share?url=$url&text=$descr_com $descr_cons&hashtags=Eleonline\" target=\"_blank\"><img src=\"modules/Elezioni/images/twitter.png\" alt=\"Twitter\" /></a> 26 26 27 27 -
trunk/client/modules/Elezioni/crea_pagina.php
r265 r347 15 15 die ("You can't access this file directly..."); 16 16 } 17 18 require_once('inc/hpdf5/autoload.php'); 19 use Spipu\Html2Pdf\Html2Pdf; 20 use Spipu\Html2Pdf\Exception\Html2PdfException; 21 use Spipu\Html2Pdf\Exception\ExceptionFormatter; 22 17 23 global $name; 18 24 … … 259 265 //$nomefile="elezioni_tabelle.pdf"; 260 266 //$orienta="P"; 261 require_once('inc/hpdf403/html2pdf.class.php'); 262 $html2pdf = new HTML2PDF($orienta,$formato, 'it'); 267 $html2pdf = new Html2Pdf($orienta,$formato, 'it'); 263 268 $html2pdf->WriteHTML($style, isset($_GET['vuehtml'])); 264 269 $html2pdf->Output($nomefile); -
trunk/client/modules/Elezioni/gruppo.php
r346 r347 463 463 $datipdf="<b>"._COMUNE." $descr_comune</b> - "._RISULTATI.": $descr_cons<br/><b>$pagina</b><br/><br/> $list1 $list2 $list3 "; 464 464 # verificare la stampa sulle circoscrizioni 465 echo "<div style=\"text-align:right;width: 40%;margin-left:10px;margin-right:0px;font-size:12px; \">";466 echo "<table style=\"text-align:center;margin-right:0px;border-top : 1px solid Blue;width: 140px;\"><tr style=\" background:#eceff5;\"><td>"._ESPORTA."<br />";465 echo "<div style=\"text-align:right;width:65%;margin-left:10px;margin-right:0px;font-size:12px; \">"; 466 echo "<table style=\"text-align:center;margin-right:0px;border-top : 1px solid Blue;width: 280px;\"><tr style=\" background:#eceff5;\"><td>"._ESPORTA."<br />"; 467 467 if($circo){ echo "<a href=\"modules.php?name=Elezioni&op=$op&id_cons_gen=$id_cons_gen&id_comune=$id_comune&csv=1&orvert=$orvert&min=$min&offset=$offset&minsez=$minsez&offsetsez=$offsetsez&perc=$perc&id_lista=$id_lista&id_circ=$id_circ&datipdf=$datipdf\" ><img class=\"image\" src=\"modules/Elezioni/images/printer.gif\" alt=\"Stampa\" /></a>"; 468 468 }else{ … … 470 470 echo "<a href=\"modules.php?name=Elezioni&op=$op&id_cons_gen=$id_cons_gen&id_comune=$id_comune&csv=1&orvert=$orvert&min=$min&offset=$offset&minsez=$minsez&offsetsez=$offsetsez&perc=$perc&id_lista=$id_lista&xls=1&datipdf=$datipdf\" ><img class=\"image\" src=\"modules/Elezioni/images/csv.gif\" alt=\"Export Csv\" /></a>"; 471 471 echo "<img class=\"image\" src=\"modules/Elezioni/images/rss.png\" alt=\"Export rss\" />"; 472 echo " </td> </tr>";472 echo " </td>"; 473 473 # stampa pdf 474 echo "<td>"; 474 475 echo "<form id=\"pdf\" method=\"post\" action=\"modules.php\">"; 475 476 echo "<input type=\"hidden\" name=\"id_circ\" value=\"$id_circ\"></input>"; … … 489 490 # echo "<input type=\"hidden\" name=\"name\" value=\"$elezioni\"></input>"; 490 491 echo "<input type=\"hidden\" name=\"name\" value=\"Elezioni\"></input>"; 491 echo "<tr><td>";492 492 echo "<input type=\"image\" name=\"submit\" src=\"modules/Elezioni/images/pdf.gif\" align=\"left\">"; 493 493 echo " L <input type=\"radio\" name=\"orienta\" $land value=\"L\"></input>P <input … … 495 495 echo " A3<input type=\"radio\" name=\"formato\" $A3 value=\"A3\"></input>A4<input 496 496 type=\"radio\" name=\"formato\" $A4 value=\"A4\"></input>"; 497 echo " </ td></tr></table></form> ";497 echo " </form></td></tr></table> "; 498 498 } 499 499 echo "</div></br />"; … … 574 574 $maxpos=max($pos); 575 575 //////////////////////////////////////////////////////////////////// 576 if ($tab=="gruppo" or $genere==4 or ($genere==5 and $votog)) 577 $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"; 578 else 579 if ($votog) $sqlvoti2="select t1.num_circ, (t3.validi_lista),(t3.nulli),(t3.bianchi),(t3.contestati),(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"; 576 580 581 else $sqlvoti2="select t1.num_circ, sum(t3.validi_lista),sum(t3.nulli),sum(t3.bianchi),sum(t3.contestati_lista),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 583 $res_voti = $dbi->prepare("$sqlvoti2"); 584 $res_voti->execute(); 585 586 /////////////////////////// 577 587 if ($res_voti->rowCount()) 578 while (list($num_circ,$ desc_circ,$num_cand,$nome,$voti,$sevalidi,$senulli,$sebianchi,$secontestati,$sevonulli) = $res_voti->fetch(PDO::FETCH_NUM)){588 while (list($num_circ,$sevalidi,$senulli,$sebianchi,$secontestati,$sevonulli) = $res_voti->fetch(PDO::FETCH_NUM)){ 579 589 # if($genere==4) $sevalidi=$voti; 580 590 $z=array_search($num_circ, $pos); … … 587 597 if($sevonulli) $sevnutot+=$sevonulli; 588 598 } 589 $votitot[($z)]+=$voti;590 if(!isset($valsez[$z])) $valsez[$z]=0;599 # $votitot[($z)]+=$voti; 600 # if(!isset($valsez[$z])) $valsez[$z]=0; 591 601 $valsez[$z]=$sevalidi; 592 $voticompl+=$voti; 602 $nulsez[$z]=$senulli; 603 $biasez[$z]=$sebianchi; 604 $consez[$z]=$secontestati; 605 $vonsez[$z]=$sevonulli; 606 # $voticompl+=$voti; 593 607 } 594 608 if ($voticompl) { … … 667 681 //$posvoti++; 668 682 $ar[($z)][$posvoti+1]="<b>$valsez[$z]</b>"; 669 $ar[($z)][$posvoti+2]="<b>$ senulli</b>";670 $ar[($z)][$posvoti+3]="<b>$ sebianchi</b>";671 $ar[($z)][$posvoti+4]="<b>$ secontestati</b>";672 $ar[($z)][$posvoti+5]="<b>$ sevonulli</b>";683 $ar[($z)][$posvoti+2]="<b>$nulsez[$z]</b>"; 684 $ar[($z)][$posvoti+3]="<b>$biasez[$z]</b>"; 685 $ar[($z)][$posvoti+4]="<b>$consez[$z]</b>"; 686 $ar[($z)][$posvoti+5]="<b>$vonsez[$z]</b>"; 673 687 } 674 688 } -
trunk/client/modules/Elezioni/index.php
r344 r347 569 569 $femmine_t=$femmine_t+$femmine; 570 570 echo "<tr class=\"bggray2\"><td><b>$num_sez</b>" 571 ."</td><td><b><a href=\"modules.php?name=Elezioni&op=sezione&id_cons_gen=$id_cons_gen&id_comune=$id_comune&id_sede=$id_sed\"><img class=\"nobordo\" src=\"modules/Elezioni/images/mappa.gif\" align=\"left\">571 ."</td><td><b><a href=\"modules.php?name=Elezioni&op=sezione&id_cons_gen=$id_cons_gen&id_comune=$id_comune&id_sede=$id_sed\"><img class=\"nobordo\" src=\"modules/Elezioni/images/mappa.gif\" style=\"text-align:left;\" alt=\"mappa\"/> 572 572 $indir</a></b>" 573 573 ."</td><td>$maschi" … … 889 889 $i++; 890 890 echo "<td class=\"table-main\"><a href=\"modules.php?name=Elezioni&id_gruppo=$id_gruppo2&id_circ=$id_circ&id_cons_gen=$id_cons_gen&id_lista=$id_lista2&op=partiti&voti_lista=$voti_lista&perc_lista=$perc_lista&id_comune=$id_comune\"> 891 <img class=\"stemma\" src=\"modules.php?name=Elezioni&file=foto&id_lista=$id_lista2\" alt=\" \" /><br />N. $num_lista $descr_lista";891 <img class=\"stemma\" src=\"modules.php?name=Elezioni&file=foto&id_lista=$id_lista2\" alt=\"stemma\" /><br />N. $num_lista $descr_lista"; 892 892 if ($voti_lista) echo "<br />voti: $voti_lista "; 893 893 if ($perc_lista) echo "<span class=\"red\"> $perc_lista </span>%"; … … 1031 1031 1032 1032 1033 echo "<img src=\"modules.php?name=Elezioni&file=foto&id_lista=$id_lista\" width=\"50\" heigth=\"50\" align=\"middle\"><h2> $descr_lista</h2><br />";1033 echo "<img src=\"modules.php?name=Elezioni&file=foto&id_lista=$id_lista\" style=\"width:50; text-align:center;\"><h2> $descr_lista</h2><br />"; 1034 1034 if ($voti_lista OR $perc_lista){ echo "<h5>"; 1035 1035 echo _VOTI.": <font color=\"red\">$voti_lista</font> "._PERC.": <font color=\"red\">$perc_lista %</font><br /></h5>"; … … 1360 1360 global $circo; 1361 1361 if($genere!=0 && $id_circ==''){ // no referendum ne circoscrizioni 1362 echo "<div align=\"right\"><a href=\"modules.php?id_cons_gen=$id_cons_gen&name=Elezioni&id_comune=$id_comune&file=index&op=rss&rss=1\"><img class =\"nobordo\" width=\"60\" src=\"modules/Elezioni/images/valid-rss.png\" /></a></div>";1362 echo "<div align=\"right\"><a href=\"modules.php?id_cons_gen=$id_cons_gen&name=Elezioni&id_comune=$id_comune&file=index&op=rss&rss=1\"><img class =\"nobordo\" width=\"60\" src=\"modules/Elezioni/images/valid-rss.png\" alt=\"rss\"/></a></div>"; 1363 1363 } 1364 1364 -
trunk/client/modules/Elezioni/votanti.php
r344 r347 10 10 die ("Non puoi accedere al file direttamente..."); 11 11 } 12 13 require_once('inc/hpdf5/autoload.php'); 14 use Spipu\Html2Pdf\Html2Pdf; 15 use Spipu\Html2Pdf\Exception\Html2PdfException; 16 use Spipu\Html2Pdf\Exception\ExceptionFormatter; 17 12 18 $param=strtolower($_SERVER['REQUEST_METHOD']) == 'get' ? 13 19 $_GET : $_POST; 14 15 16 20 17 21 $id_comune= (isset($param['id_comune'])) ? $param['id_comune']:$siteistat; … … 521 525 $stampa ="<div style=\"margin:0 auto;text-align:center;\">$datipdf $html</div>"; 522 526 523 require_once('inc/hpdf403/html2pdf.class.php'); 524 $html2pdf = new HTML2PDF('L','A4', 'it'); 527 $html2pdf = new Html2Pdf('P','A4', 'it'); 525 528 $html2pdf->WriteHTML($stampa, isset($_GET['vuehtml'])); 526 529 $html2pdf->Output($nomefile); -
trunk/client/temi/facebook/index.php
r129 r347 30 30 31 31 if ($blocco=='1' && $check!=0){ 32 echo "<td valign=\"top\" class=\"sidebar\">";32 echo "<td style=\"vertical-align:text-top;\" class=\"sidebar\">"; 33 33 block("dx"); 34 echo "</td><td> </td><td valign=\"top\">";34 echo "</td><td> </td><td style=\"vertical-align:top;\">"; 35 35 36 36 }else { 37 echo "<td valign=\"top\">";37 echo "<td style=\"vertical-align:top;\">"; 38 38 } 39 39 -
trunk/client/temi/facebook/menu.php
r344 r347 36 36 37 37 list($fascia)=$rescomu->fetch(PDO::FETCH_NUM); 38 echo '<style type="text/css"> 39 html,body{margin:0;padding:0} 40 body{background:#FFF;color:#333} 41 div#contiene{width:999px;margin:0 auto;background: #3B5998;color:#fff} 42 </style> 43 <link rel="stylesheet" type="text/css" href="temi/facebook/menu/menu-dd.css"> 44 <script type="text/javascript" src="temi/facebook/menu/jquery-1.2.6.pack.js"></script> 45 <script type="text/javascript" src="temi/facebook/menu/jquery.hoverIntent.minified.js"></script> 46 <script type="text/javascript" src="temi/facebook/menu/jquery-ddi2.js"></script> 38 echo ' 47 39 <div id="contiene"> 48 40 … … 79 71 while (list($id,$descrizione,)=$rescomu->fetch(PDO::FETCH_NUM)){ 80 72 echo "<li><a href=\"modules.php?op=gruppo&name=Elezioni&id_comune=$id&file=index\"> 81 <img src=\"modules/Elezioni/images/logo.gif\" width=\"16\" height=\"16\" class=\"nobordo\" > $descrizione</a></li>";73 <img src=\"modules/Elezioni/images/logo.gif\" width=\"16\" height=\"16\" class=\"nobordo\" alt=\"$descrizione\" /> $descrizione</a></li>"; 82 74 } 83 75 echo "</ul></li>"; … … 243 235 </li>"; 244 236 245 echo "</ div>";237 echo "</ul></div>"; 246 238 247 239 -
trunk/client/temi/facebook/style.css
r85 r347 340 340 341 341 padding: 0px; 342 } 343 344 .td-big { 345 float: right; 346 text-align:center; 347 margin: 0px 0 0 1px; 348 border: none; 349 font-size: 2em; 350 line-height: .2em; 342 351 } 343 352 -
trunk/client/temi/realistic/menu.php
r344 r347 69 69 while (list($id,$descrizione,)=$rescomu->fetch(PDO::FETCH_NUM)){ 70 70 echo "<li><a href=\"modules.php?op=gruppo&name=Elezioni&id_comune=$id&file=index\"> 71 <img src=\"modules/Elezioni/images/logo.gif\" width=\"16\" height=\"16\" class=\"nobordo\" > $descrizione</a></li>";71 <img src=\"modules/Elezioni/images/logo.gif\" width=\"16\" height=\"16\" class=\"nobordo\" alt=\"$descrizione\"/> $descrizione</a></li>"; 72 72 } 73 73 echo "</ul></li>"; -
trunk/client/versione.php
r346 r347 1 1 <?php 2 2 3 $versione = "3.0 rev 34 6";3 $versione = "3.0 rev 347"; 4 4 $version_number = $versione; 5 $datarel = " 30 marzo 2021";5 $datarel = "14 maggio 2021"; 6 6 $version = "Eleonline $version_number (<i>Data Release: $datarel</i>)"; 7 7
Note:
See TracChangeset
for help on using the changeset viewer.