Changeset 455
- Timestamp:
- Apr 6, 2025, 8:01:55 PM (8 months ago)
- Location:
- trunk
- Files:
-
- 10 edited
-
admin/versione.php (modified) (1 diff)
-
client/modules/Elezioni/affluenze.php (modified) (1 diff)
-
client/modules/Elezioni/affluenzephp5.php (modified) (1 diff)
-
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/temi/bootstrap/index.php (modified) (1 diff)
-
client/temi/bootstrap/pagine/electionday.php (modified) (2 diffs)
-
client/temi/bootstrap/pagine/tab_link_opendata.php (modified) (6 diffs)
-
client/versione.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/admin/versione.php
r454 r455 1 1 <?php 2 2 3 $versione = "3.0 rev 45 4";3 $versione = "3.0 rev 455"; 4 4 $version_number = $versione; 5 $datarel = "0 5aprile 2025";5 $datarel = "06 aprile 2025"; 6 6 $version = "Eleonline $version_number (<i>Data Release: $datarel</i>)"; 7 7 -
trunk/client/modules/Elezioni/affluenze.php
r411 r455 23 23 echo "$datipdf $html $style"; 24 24 }elseif($xls=="1"){ 25 $nomefile="affluenze. xls";26 header ("Content-Type: application/vnd.ms-excel");25 $nomefile="affluenze.csv"; 26 header ("Content-Type: text/csv"); 27 27 header ("Content-Disposition: inline; filename=$nomefile"); 28 28 header("Pragma: no-cache"); -
trunk/client/modules/Elezioni/affluenzephp5.php
r376 r455 19 19 echo "$datipdf $html $style"; 20 20 }elseif($xls=="1"){ 21 $nomefile="affluenze. xls";22 header ("Content-Type: application/vnd.ms-excel");21 $nomefile="affluenze.csv"; 22 header ("Content-Type: text/csv"); 23 23 header ("Content-Disposition: inline; filename=$nomefile"); 24 24 header("Pragma: no-cache"); -
trunk/client/modules/Elezioni/crea_pagina.php
r371 r455 36 36 if ($xls==1) { 37 37 38 $nomefile=strip_tags(str_replace(array('"', "'", ' ', ','), "_", $datipdf).". xls");38 $nomefile=strip_tags(str_replace(array('"', "'", ' ', ','), "_", $datipdf).".csv"); 39 39 # $nomefile=$_SESSION['nomefile'].".xls"; 40 header ("Content-Type: application/vnd.ms-excel");40 header ("Content-Type: text/csv"); 41 41 header ("Content-Disposition: inline; filename=$nomefile"); 42 42 -
trunk/client/modules/Elezioni/crea_paginaphp5.php
r399 r455 29 29 $data=date("d-m-y G:i"); 30 30 if ($xls==1) { 31 $nomefile=strip_tags(str_replace(array('"', "'", ' ', ','), "_", $datipdf).". xls");32 header ("Content-Type: application/vnd.ms-excel");31 $nomefile=strip_tags(str_replace(array('"', "'", ' ', ','), "_", $datipdf).".csv"); 32 header ("Content-Type: text/csv"); 33 33 header ("Content-Disposition: inline; filename=$nomefile"); 34 34 $datipdf=str_replace("<br/>","\n",$datipdf); -
trunk/client/modules/Elezioni/crea_paginaphp7.php
r400 r455 32 32 $data=date("d-m-y G:i"); 33 33 if ($xls==1) { 34 $nomefile=strip_tags(str_replace(array('"', "'", ' ', ','), "_", $datipdf).". xls");35 header ("Content-Type: application/vnd.ms-excel");34 $nomefile=strip_tags(str_replace(array('"', "'", ' ', ','), "_", $datipdf).".csv"); 35 header ("Content-Type: text/csv"); 36 36 header ("Content-Disposition: inline; filename=$nomefile"); 37 37 $datipdf=str_replace("<br/>","\n",$datipdf); -
trunk/client/temi/bootstrap/index.php
r454 r455 13 13 $proiezione=$row[0][11]; 14 14 } 15 if( count(scrutinio_tot_cand_finale(0))<count(elenco_candidati_liste(0))) $proiezione=0;15 if(scrutinate('candidati')<sezioni_totali()) $proiezione=0; 16 16 $proiezioneattivo=$proiezione; 17 17 $row=tipo_consultazione(0); -
trunk/client/temi/bootstrap/pagine/electionday.php
r453 r455 8 8 $trascorsi=$interval->format('%a'); 9 9 #echo "<br>$giorniviselday : $trascorsi"; 10 if($giorniviselday>=$trascorsi) 11 $attivaelctionday =1; 12 else 13 $attivaelctionday = 0; 10 $attivaelctionday = 0; 11 12 if($giorniviselday>=$trascorsi) { 13 $row=elenco_cons(); 14 foreach($row as $val){ 15 $giornorif2=date_create($val[2]); 16 $interval = date_diff($giornorif2, $oggi); 17 $trascorsi=$interval->format('%a'); 18 if($giorniviselday>=$trascorsi) 19 $listacons[]=$val; 20 else 21 $break; 22 } 23 if(count($listacons)>1) 24 $attivaelctionday =1; 25 } 14 26 15 27 ?> … … 32 44 <div class="row py-4 divided"> 33 45 <?php 34 $row=elenco_cons();35 foreach($row as $val){36 $giornorif=date_create($val[2]);37 $interval = date_diff($giornorif, $oggi);38 $trascorsi=$interval->format('%a');39 if($giorniviselday>=$trascorsi)40 $listacons[]=$val;41 else42 $break;43 }44 46 foreach ($listacons as $val) { 45 47 ?> -
trunk/client/temi/bootstrap/pagine/tab_link_opendata.php
r453 r455 39 39 <div class="d-flex justify-content-end align-items-center"> 40 40 <div class="btn-group " role="group" aria-label="Pulsanti azione"> 41 < button type="button" class="btn-tab ">41 <!--button type="button" class="btn-tab "> 42 42 <a href="https://www.example.com/risultati" target="_blank"> 43 43 <span>Risultati</span> … … 49 49 <span>Grafici</span> 50 50 <svg class="icon icon-sm icon-primary ms-auto"><use href="<?php echo $curdir?>/svg/sprites.svg#it-chart-line"></use></svg> 51 </a >51 </a--> 52 52 </button> 53 53 <button type="button" class="btn-tab"> 54 <a href=" https://www.example.com/stampa" target="_blank">54 <a href="modules.php?op=come&info=affluenze_sez&csv=1&id_comune=$il_comune&id_cons_gen=$id_cons_gen" target="_blank"> 55 55 <span>Stampa</span> 56 56 <svg class="icon icon-sm icon-primary ms-auto"><use href="<?php echo $curdir?>/svg/sprites.svg#it-print"></use></svg> … … 64 64 </button> 65 65 <button type="button" class="btn-tab"> 66 <a href=" https://www.example.com/csv" target="_blank">66 <a href="modules.php?op=come&info=affluenze_sez&csv=1&id_comune=$il_comune&id_cons_gen=$id_cons_gen&xls=1" target="_blank"> 67 67 <span>Esporta in CSV</span> 68 68 <svg class="icon icon-sm icon-primary ms-auto"><use href="<?php echo $curdir?>/svg/sprites.svg#it-file-csv"></use></svg> … … 85 85 <button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Chiudi"></button> 86 86 </div> 87 <form> 88 <!--input name="minsez" type="hidden" value="1"> 89 <input name="offsetsez" type="hidden" value="<?php #echo $totsez;?>"--> 90 <input name="op" type="hidden" value="<?php echo $oplink;?>"> 91 <input name="info" type="hidden" value="<?php echo $infolink;?>"> 92 <input name="csv" type="hidden" value="1"> 93 <input name="id_comune" type="hidden" value="<?php echo $id_comune;?>"> 94 <input name="id_cons_gen" type="hidden" value="<?php echo $id_cons_gen;?>"> 87 95 <div class="modal-body"> 88 <form>89 96 <div class="row"> 90 97 <div class="col"> 98 <fieldset> 99 <legend>Stampa Sezioni</legend> 100 <div class="form-check"> 101 <label for="sezmin"><span class="opendata"> Da Sezione</span></label> 102 <input name="minsez" type="text" style="width: 80px;" id="sezmin" value="1"> 103 </div> 104 <div class="form-check"> 105 <label for="maxsez"><span class="opendata"> A Sezione</span></label> 106 <input name="offsetsez" type="text" style="width: 80px;" id="maxsez" value="18"> 107 </div> 108 </fieldset> 91 109 <fieldset> 92 110 <legend>Formato documento</legend> … … 117 135 <?php // foreach($arval as $val) echo "<input type=\"hidden\" name=\"".$val[0]."\" value=\"".$val[1]."\">"; ?> 118 136 <input type="hidden" name="pdf" value="1"> 119 </form>120 137 </div> 121 138 <div class="modal-footer"> … … 124 141 </div> 125 142 </div> 143 </form> 126 144 </div> 127 145 </div> -
trunk/client/versione.php
r454 r455 1 1 <?php 2 $versione = "3.0 rev 45 4";2 $versione = "3.0 rev 455"; 3 3 $version_number = $versione; 4 $datarel = "0 5aprile 2025";4 $datarel = "06 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.
