Changeset 460
- Timestamp:
- Apr 29, 2025, 8:39:18 PM (7 months ago)
- Location:
- trunk
- Files:
-
- 14 edited
-
admin/versione.php (modified) (1 diff)
-
client/modules/Elezioni/affluenze-inc.php (modified) (6 diffs)
-
client/modules/Elezioni/crea_pagina.php (modified) (1 diff)
-
client/modules/Elezioni/crea_paginaphp5.php (modified) (1 diff)
-
client/modules/Elezioni/crea_paginaphp7.php (modified) (1 diff)
-
client/modules/Elezioni/votanti-inc.php (modified) (5 diffs)
-
client/modules/Elezioni/votanti.php (modified) (1 diff)
-
client/temi/bootstrap/pagine/affluenza.php (modified) (2 diffs)
-
client/temi/bootstrap/pagine/candidatilistapercirco.php (modified) (2 diffs)
-
client/temi/bootstrap/pagine/candidatilistapersezioni.php (modified) (1 diff)
-
client/temi/bootstrap/pagine/tab_link_opendata.php (modified) (7 diffs)
-
client/temi/bootstrap/pagine/votanti.php (modified) (1 diff)
-
client/temi/bootstrap/query.php (modified) (3 diffs)
-
client/versione.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/admin/versione.php
r459 r460 1 1 <?php 2 2 3 $versione = "3.0 rev 4 59";3 $versione = "3.0 rev 460"; 4 4 $version_number = $versione; 5 $datarel = " 08aprile 2025";5 $datarel = "29 aprile 2025"; 6 6 $version = "Eleonline $version_number (<i>Data Release: $datarel</i>)"; 7 7 -
trunk/client/modules/Elezioni/affluenze-inc.php
r458 r460 29 29 include_once("modules/Elezioni/language/lang-$lang.php"); 30 30 $datipdf=''; 31 #echo "<center>"; 31 32 if($csv==1){ 32 33 include_once("modules/Elezioni/funzioni.php"); … … 37 38 list($descr_com) = $res->fetch(PDO::FETCH_NUM); 38 39 $descr_com =stripslashes($descr_com); 39 if($xls!=1) $datipdf .= "<div style=\" margin:0px auto;text-align:center;\">";40 if($xls!=1) $datipdf .= "<div style=\"width:40%; margin:0px auto;text-align:center;\">"; 40 41 $siteistat=$id_comune; 41 42 # salva sull'hardisk lo stemma del comune 42 43 $logo=verificasimbolo(); 43 44 $immagine= "<img src=\"modules/Elezioni/images/$logo\" alt=\"logo\" align=\"left\"/>"; 44 45 45 if($xls!=1) $datipdf .= "<table><tr><td>$immagine</td><td>"; 46 46 47 $datipdf .= ""._COMUNE." $descr_com <br />47 $datipdf .= ""._COMUNE." $descr_com<br /> 48 48 "._RISULTA." "._CONSULTA."<br/ >"; 49 49 $datipdf .= "$descr_cons<br />"._DISCLAIMER." … … 52 52 $datipdf .=""; 53 53 54 if($xls!=1) {$html = "<style type=\"text/css\"> 54 if($xls!=1) { 55 $html="<div style=\"width:40%; margin:0px auto;text-align:center;\">"; 56 $html .= "<style type=\"text/css\"> 55 57 <!-- 56 58 … … 182 184 if($csv && $pdf) $tabpdf="<col width=\"50\">"; 183 185 else $tabpdf=''; 184 $html .= "<table class=\"td-100\"> $tabpdf";186 $html .= "<table style=\"width:50%; margin:0px auto;text-align:center;\"> $tabpdf"; 185 187 $html .= "<tr class=\"bggray\"><td>"._SEZIONI."</td><td>"._ISCR_SEZ."</td>"; 186 188 $sql="SELECT orario,data FROM ".$prefix."_ele_rilaff where id_cons_gen=$id_cons_gen order by data desc,orario desc limit 0,1"; … … 199 201 # if(($data==$ultdata) and ($ora==$ultora)) 200 202 { 201 $tot[$data.$ora]="<table style=\"width: 100%;border:none;\"><tr class=\"bggray2\"><td style=\"width:30%;text-align:center;border:none;max-width:50px;\">203 $tot[$data.$ora]="<table style=\"width:50%; margin:0px auto;border:none;\"><tr class=\"bggray2\"><td style=\"width:30%;text-align:center;border:none;max-width:50px;\"> 202 204 <b>".number_format($votiu,0,',','.')."</b></td><td style=\"width:30%;text-align:center;border:none;max-width:50px;\"> 203 205 <b>".number_format($votid,0,',','.')."</b></td><td style=\"width:40%;text-align:center;border:none;max-width:80px;\"> … … 318 320 $style .="<br/><div style=\"text-align:center;\"><i>Eleonline by luciano apolito e roberto gigli - www.eleonline.it</i></div></td></tr></table>"; 319 321 $style .= "<br/> "; 320 } 322 } 323 if($csv==1 and $xls!=1) $html.="</div>"; 324 #echo "</center>"; 321 325 /*if($xls==1) { $cella=$html; 322 326 $cella=str_replace("<table>","\n",$cella); -
trunk/client/modules/Elezioni/crea_pagina.php
r457 r460 150 150 $html .="<br/><span class=\"copy\"><i>Stampato: $data</i></span>"; 151 151 $html .="<br/><span class=\"copy\"><i>Eleonline by luciano apolito & roberto gigli - www.eleonline.it</i></span>"; 152 $html .="</center><br />";153 }152 } 153 $html .="</center><br />"; 154 154 155 155 # inizio stampa a video o pdf -
trunk/client/modules/Elezioni/crea_paginaphp5.php
r457 r460 30 30 if ($xls==1) { 31 31 $nomefile=strip_tags(str_replace(array('"', "'", ' ', ','), "_", $datipdf).".xls"); 32 if(!$nomefile) $nomefile="$descr_cons.xls"; 32 33 header ("Content-Type: application/vnd.ms-excel"); 33 34 header ("Content-Disposition: inline; filename=$nomefile"); -
trunk/client/modules/Elezioni/crea_paginaphp7.php
r457 r460 33 33 if ($xls==1) { 34 34 $nomefile=strip_tags(str_replace(array('"', "'", ' ', ','), "_", $datipdf).".xls"); 35 if(!$nomefile) $nomefile="$descr_cons.xls"; 35 36 header ("Content-Type: application/vnd.ms-excel"); 36 37 header ("Content-Disposition: inline; filename=$nomefile"); -
trunk/client/modules/Elezioni/votanti-inc.php
r389 r460 90 90 $logo=verificasimbolo(); 91 91 $immagine= "<img src=\"modules/Elezioni/images/$logo\" alt=\"logo\" align=\"left\"/>"; 92 if($xls!=1) $datipdf .= "<table ><tr><td>$immagine</td><td>";93 $datipdf .= ""._COMUNE." $descr_com <br />94 "._RISULTA." "._CONSULTA."<br />";95 $datipdf .= "$descr_cons <br />"._DISCLAIMER."";92 if($xls!=1) $datipdf .= "<table style=\"width:50%;margin:0px auto; text-align:center;\"><tr><td>$immagine</td><td>"; 93 $datipdf .= ""._COMUNE." $descr_com <br> 94 "._RISULTA." "._CONSULTA."<br>"; 95 $datipdf .= "$descr_cons <br>"._DISCLAIMER.""; 96 96 if($xls!=1) $datipdf .= "</td></tr></table>"; 97 97 $datipdf .="</div>"; … … 225 225 left join ".$prefix."_ele_gruppo as t3 on (t1.id_gruppo=t3.id_gruppo) left join ".$prefix."_ele_sede as t4 on (t2.id_sede=t4.id_sede) 226 226 where t1.id_cons='$id_cons' and t1.id_gruppo='$idg' $circos4 order by t2.num_sez "; 227 $riga1 = "<div style=\" margin:0px auto;text-align:center;\">";228 $riga1 .="<h2>"._DETTAGLIO." "._VOTIE."</h2> </div>";227 $riga1 = "<div style=\"width:80%;margin:0px auto;text-align:center;\">"; 228 $riga1 .="<h2>"._DETTAGLIO." "._VOTIE."</h2>"; 229 229 $sql="select descrizione from ".$prefix."_ele_gruppo where id_gruppo='$idg'"; 230 230 $des = $dbi->prepare("$sql"); 231 231 $des->execute(); 232 232 list($descrizione)=$des->fetch(PDO::FETCH_BOTH); 233 $riga1 .="<h4>$descrizione</h4> ";233 $riga1 .="<h4>$descrizione</h4></div>"; 234 234 } 235 235 $sql="$tab "; … … 238 238 $num_scr = $res->rowCount(); 239 239 //$riga2= "<div>"._SEZSCR." $num_scr su $num_sez</div>";//sezioni scrutinate 240 $riga2 = "<table style=\" border:1px solid #6A6A6A;\" summary=\"Tabella dei voti espressi\">";240 $riga2 = "<table style=\"width:80%;margin:0px auto; border:1px solid #6A6A6A;\" summary=\"Tabella dei voti espressi\">"; 241 241 $riga3 = "<tr class=\"bggray2\"> 242 242 <td>"._SEZIONI."</td> … … 370 370 $righe .= "</table>"; 371 371 if(!isset($html)) $html=''; 372 $html .= "$riga1";373 $html .= $riga2 ."";372 $html .= $riga1."<div style=\"width:80%;margin:0px auto; text-align:center;\">"; 373 $html .= $riga2; 374 374 $html .= $righet; 375 375 $html .= $riga3; 376 376 $html .= $righe; 377 $html .="<div>";377 #$html .="<div>"; 378 378 if($genere==0){ //se e' referendum 379 379 if ($xls!='1' && $pdf!='1' && $csv!='1'){ … … 404 404 } 405 405 } 406 $html .= "</div>"; 406 407 if($csv==1){ 407 408 $data=date("d-m-y G:i"); 408 $html .="<br/><div style=\" margin:0 auto;text-align:center;\"><i>Stampato: $data</i>";409 $html .="<br/><div style=\"width:80%;margin:0 auto;text-align:center;\"><i>Stampato: $data</i>"; 409 410 $html .="<br/><i>Eleonline by l. apolito & r. gigli - www.eleonline.it</i></div>"; 410 } 411 $html .= "</div>"; 411 } #die($html); 412 412 ?> -
trunk/client/modules/Elezioni/votanti.php
r376 r460 31 31 }elseif($pdf=='1'){ 32 32 $nomefile="$descr_cons votanti.pdf"; 33 $stampa ="$datipdf $html"; 33 $stampa ="$datipdf $html"; 34 34 $html2pdf = new Html2Pdf('P','A4', 'it'); 35 35 $html2pdf->WriteHTML($stampa, isset($_GET['vuehtml'])); -
trunk/client/temi/bootstrap/pagine/affluenza.php
r459 r460 44 44 #if($genere>0) 45 45 $row=elenco_orari(); 46 $aff2=affluenze_sezione(0,$data,$orario,$id_gruppo);$scrutinate=count($aff2); 46 $aff2=affluenze_sezione(0,$data,$orario,$id_gruppo); 47 $scrutinate=count($aff2); 47 48 $sezionitotali=sezioni_totali(); 48 49 $getref=''; … … 161 162 if(isset($data)) 162 163 foreach($row as $campo=>$val) { 163 foreach($aff2 as $affkey=>$affval) { if($affval['id_sez']==$val['id_sez'] and $affval['id_gruppo']==$id_gruppo) {$aff[0]['voti_uomini']=$affval['voti_uomini'];$aff[0]['voti_donne']=$affval['voti_donne'];$aff[0]['voti_complessivi']=$affval['voti_complessivi']; break;}}164 foreach($aff2 as $affkey=>$affval) { if($affval['id_sez']==$val['id_sez'] and ($affval['id_gruppo']==$id_gruppo or $id_gruppo==0)) {$aff[0]['voti_uomini']=$affval['voti_uomini'];$aff[0]['voti_donne']=$affval['voti_donne'];$aff[0]['voti_complessivi']=$affval['voti_complessivi']; break;}} 164 165 if(!isset($aff[0]['voti_uomini'])) {$aff[0]['voti_uomini']='-';$aff[0]['voti_donne']='-';$aff[0]['voti_complessivi']='-';} 165 166 # $aff=affluenze_sezione($val['id_sez'],date_format(date_create($data) ,'Y-m-d'),$orario,$id_gruppo); -
trunk/client/temi/bootstrap/pagine/candidatilistapercirco.php
r459 r460 16 16 foreach($elencoliste as $campo=>$val) { 17 17 if($num_lista==$val[2]) $sel='selected'; else $sel='';?> 18 <option <?php echo $sel; ?> value="modules.php?op=1 5&name=Elezioni&id_comune=<?php echo $id_comune.$cirpar;?>&id_cons_gen=<?php echo $id_cons_gen;?>&file=index&num_lista=<?php echo $val[2];?>"><?php echo $val[2].") ".$val[3];?></option>18 <option <?php echo $sel; ?> value="modules.php?op=18&name=Elezioni&id_comune=<?php echo $id_comune.$cirpar;?>&id_cons_gen=<?php echo $id_cons_gen;?>&file=index&num_lista=<?php echo $val[2];?>"><?php echo $val[2].") ".$val[3];?></option> 19 19 <?php } ?> 20 20 </select> … … 78 78 } 79 79 $totvoti=array_column($ar,$controllo); 80 array_multisort($totvoti, SORT_DESC,$ar); ?> 80 if(count($totvoti)==count($ar)) 81 array_multisort($totvoti, SORT_DESC,$ar); ?> 81 82 <tbody> 82 83 <?php -
trunk/client/temi/bootstrap/pagine/candidatilistapersezioni.php
r459 r460 80 80 } 81 81 $totvoti=array_column($ar,$controllo); 82 array_multisort($totvoti, SORT_DESC,$ar); ?> 82 if(count($totvoti)==count($ar)) 83 array_multisort($totvoti, SORT_DESC,$ar); ?> 83 84 <tbody> 84 85 <?php -
trunk/client/temi/bootstrap/pagine/tab_link_opendata.php
r459 r460 4 4 $linkgrafici=''; 5 5 $linkrislutati=''; 6 if(!isset($nosez)) $nosez=0; 7 $arval = array(); 6 8 if ($op==51 or $op==52 or $op==53 or $op==54 or $op==41 or $op==42 or $op==43 or $op==44) { 7 9 $attivaopendata=0; … … 10 12 if(isset($linkopendatapdf)) 11 13 $linktmp=substr($linkopendatapdf,strrpos($linkopendata,'?')+1); 12 # $nosez=0;13 14 else 14 15 $linktmp=substr($linkopendata,strrpos($linkopendata,'?')+1); 15 # $nosez=1;16 #}17 16 $parametri=explode('&',$linktmp); 18 17 foreach($parametri as $key=>$val) { … … 104 103 <div class="modal-dialog"> 105 104 <div class="modal-content"> 106 <form action="modules.php" method="get"> <!-- Imposta il tuoendpoint -->105 <form id="pdfForm" action="modules.php" method="get" target="_blank"> <!-- endpoint --> 107 106 <div class="modal-header"> 108 107 <h5 class="modal-title" id="pdfModalLabel">Opzioni PDF</h5> 109 108 <button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Chiudi"></button> 110 109 </div> 111 112 110 <div class="modal-body"> 113 111 <div class="row"> 112 <?php if(!$nosez and sezioni_totali()>13) { ?> 113 <div class="row"> 114 <fieldset> 115 <legend>Stampa Sezioni</legend> 116 <div class="mb-2"> 117 <label for="sezmin" class="form-label">Da Sezione</label> 118 <input name="minsez" type="number" class="form-control" id="sezmin" value="1"> 119 </div> 120 <div class="mb-2"> 121 <label for="maxsez" class="form-label">A Sezione</label> 122 <input name="offsetsez" type="number" class="form-control" id="maxsez" value="14"> 123 </div> 124 </fieldset> 125 </div> 126 <?php } ?> 114 127 <div class="col"> 115 <?php if(!$nosez) { ?> 116 <fieldset> 117 <legend>Stampa Sezioni</legend> 118 <div class="mb-2"> 119 <label for="sezmin" class="form-label">Da Sezione</label> 120 <input name="minsez" type="number" class="form-control" id="sezmin" value="1"> 121 </div> 122 <div class="mb-2"> 123 <label for="maxsez" class="form-label">A Sezione</label> 124 <input name="offsetsez" type="number" class="form-control" id="maxsez" value="18"> 125 </div> 126 </fieldset> 127 <?php } ?> 128 <fieldset class="mt-3"> 128 <fieldset> 129 129 <legend>Formato documento</legend> 130 130 <div class="form-check"> … … 138 138 </fieldset> 139 139 </div> 140 141 140 <div class="col"> 142 141 <fieldset> … … 155 154 156 155 <!-- Altri input hidden --> 157 <?php foreach($arval as $val) echo "<input type=\"hidden\" name=\"".$val[0]."\" value=\"".$val[1]."\">"; ?>156 <?php foreach($arval as $val) echo "<input type=\"hidden\" name=\"".$val[0]."\" value=\"".$val[1]."\">"; ?> 158 157 <input name="pdf" type="hidden" value="1"> 159 158 </div> … … 161 160 <div class="modal-footer"> 162 161 <button type="button" class="btn btn-secondary" data-bs-dismiss="modal">Annulla</button> 163 <button type="submit" class="btn btn-primary">Crea PDF</button>162 <button type="submit" class="btn btn-primary">Crea PDF</button> 164 163 </div> 165 164 </form> … … 168 167 </div> 169 168 170 169 <!-- Script per chiudere il modal dopo submit --> 170 <script> 171 document.getElementById('pdfForm').addEventListener('submit', function () { 172 const modal = bootstrap.Modal.getInstance(document.getElementById('pdfModal')); 173 if (modal) { 174 modal.hide(); 175 } 176 }); 177 </script> 178 <!-- Script per fullscreen --> 171 179 <script> 172 180 const fullscreenBtn = document.getElementById('fullscreen-btn'); -
trunk/client/temi/bootstrap/pagine/votanti.php
r459 r460 105 105 $totuomini=0;$totdonne=0;$totespressi=0;$totvalidi=0;$totnulli=0;$totbianchi=0;$totcontestati=0; 106 106 $seztemp=elenco_sezioni(0); 107 $sezioni= array(); 107 108 foreach($seztemp as $sez) $sezioni[$sez['num_sez']]=$sez['id_sez']; 108 109 if($genere==0) -
trunk/client/temi/bootstrap/query.php
r457 r460 199 199 if($id_cons_pred) 200 200 { 201 $sql="SELECT id_cons_gen,id_cons,proiezione FROM ".$prefix."_ele_cons_comune where id_cons='$id_cons_pred' ";201 $sql="SELECT id_cons_gen,id_cons,proiezione FROM ".$prefix."_ele_cons_comune where id_cons='$id_cons_pred' and chiusa<'2'"; 202 202 $sth = $dbi->prepare("$sql"); 203 203 $sth->execute(); … … 206 206 return($row); 207 207 } 208 $sql="SELECT id_cons_gen,id_cons,proiezione FROM ".$prefix."_ele_cons_comune where id_comune='$id_comune' order by id_cons desc limit 0,1";208 $sql="SELECT id_cons_gen,id_cons,proiezione FROM ".$prefix."_ele_cons_comune where id_comune='$id_comune' and chiusa<'2' order by id_cons desc limit 0,1"; 209 209 $sth = $dbi->prepare("$sql"); 210 210 $sth->execute(); … … 344 344 foreach($row1 as $val) $tmp[]=$val[1]; 345 345 $elencoid=implode(',',$tmp); 346 $sql="SELECT t1.descrizione, t1.id_cons_gen, t1.data_inizio,t2.id_cons,t1.tipo_cons,t1.link_trasparenza FROM ".$prefix."_ele_consultazione as t1,".$prefix."_ele_cons_comune as t2 where t1.id_cons_gen=t2.id_cons_gen and t2.id_comune=$id_comune and t2.chiusa<'2' and t1.id_cons_gen not in ($elencoid) order by t1.data_inizio desc"; 346 if($sth->rowCount()) $cond="and t1.id_cons_gen not in ($elencoid)"; else $cond=''; 347 $sql="SELECT t1.descrizione, t1.id_cons_gen, t1.data_inizio,t2.id_cons,t1.tipo_cons,t1.link_trasparenza FROM ".$prefix."_ele_consultazione as t1,".$prefix."_ele_cons_comune as t2 where t1.id_cons_gen=t2.id_cons_gen and t2.id_comune=$id_comune and t2.chiusa<'2' $cond order by t1.data_inizio desc"; 347 348 $sth = $dbi->prepare("$sql"); 348 349 $sth->execute(); -
trunk/client/versione.php
r459 r460 1 1 <?php 2 $versione = "3.0 rev 4 59";2 $versione = "3.0 rev 460"; 3 3 $version_number = $versione; 4 $datarel = " 08aprile 2025";4 $datarel = "29 aprile 2025"; 5 5 $version = "Eleonline $version_number (<i>Data Release: $datarel</i>)"; 6 6
Note:
See TracChangeset
for help on using the changeset viewer.
