Changeset 348 for trunk/client/modules
- Timestamp:
- May 15, 2021, 8:07:27 PM (4 years ago)
- Location:
- trunk/client/modules/Elezioni
- Files:
-
- 4 added
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/client/modules/Elezioni/crea_pagina.php
r347 r348 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 18 global $name; -
trunk/client/modules/Elezioni/gruppo.php
r347 r348 54 54 55 55 56 57 58 include("crea_pagina.php"); 56 $test=phpversion(); 57 if($test>=5.6) 58 include("crea_paginaphp7.php"); 59 else 60 include("crea_paginaphp5.php"); 59 61 60 62 $sql="SELECT descrizione from ".$prefix."_ele_comuni where id_comune='$id_comune'" ; -
trunk/client/modules/Elezioni/index.php
r347 r348 1213 1213 1214 1214 } 1215 1215 $test=phpversion(); 1216 if($test>=5.6) $phpver=1; else $phpver=0; 1216 1217 switch ($op){ 1217 1218 … … 1253 1254 1254 1255 case "affluenze_sez": 1255 include("affluenze.php"); 1256 if($phpver) 1257 include("affluenze.php"); 1258 else 1259 include("affluenzephp5.php"); 1256 1260 break; 1257 1261 case "votanti": 1258 include("votanti.php"); 1262 if($phpver) 1263 include("votanti.php"); 1264 else 1265 include("votantiphp5.php"); 1259 1266 break; 1260 1267 default: -
trunk/client/modules/Elezioni/votanti.php
r347 r348 10 10 die ("Non puoi accedere al file direttamente..."); 11 11 } 12 13 12 require_once('inc/hpdf5/autoload.php'); 14 13 use Spipu\Html2Pdf\Html2Pdf; … … 45 44 $perc=floatval($perc); 46 45 $perc_lista=floatval($perc_lista); 47 $datipdf= htmlentities($datipdf);46 #$datipdf= htmlentities($datipdf); 48 47 $op= htmlentities($op); 49 48 $info= htmlentities($info); … … 100 99 $datipdf .= "<div style=\"margin:0px auto; text-align:center;\">"; 101 100 $siteistat=$id_comune; 102 # salva sull'hardisk lo stemma del comune 101 # salva sull'hardisk lo stemma del comune style=\"vertical-align: text-bottom;\" 103 102 $logo=verificasimbolo(); 104 103 $immagine= "<img src=\"modules/Elezioni/images/$logo\" alt=\"logo\" align=\"left\"/>"; … … 523 522 524 523 525 $stampa ="<div style=\"margin:0 auto;text-align:center;\">$datipdf $html</div>"; 524 # $stampa ="<div style=\"margin:0 auto;text-align:center;\">$datipdf $html</div>"; 525 $stampa ="$datipdf $html"; 526 526 527 527 $html2pdf = new Html2Pdf('P','A4', 'it');
Note:
See TracChangeset
for help on using the changeset viewer.