source: trunk/client/modules/Elezioni/affluenze.php@ 400

Last change on this file since 400 was 400, checked in by roby, 9 months ago
  • ADMIN

-- Migliorata la gestione di operatori e responsabili

  • CLIENT

-- Nuovo tema BSItalia realizzato dal CED di Capo d'Orlando
-- Sistemata la funzione del widget privacy
-- Varie modifiche di allineamento oggetti

File size: 1.5 KB
Line 
1<?php
2/************************************************************************/
3/* Eleonline - Raccolta e diffusione dei dati elettorali */
4/* by Luciano Apolito & Roberto Gigli */
5/* http://www.eleonline.it */
6/* info@eleonline.it rgigli@libero.it */
7/************************************************************************/
8
9if (!defined('MODULE_FILE')) {
10 die ("You can't access this file directly...");
11}
12
13
14require_once('inc/hpdf5/autoload.php');
15use Spipu\Html2Pdf\Html2Pdf;
16use Spipu\Html2Pdf\Exception\Html2PdfException;
17use Spipu\Html2Pdf\Exception\ExceptionFormatter;
18
19include('affluenze-inc.php');
20
21############### stampa
22if ($xls!='1' && $pdf!='1'){
23 echo "$datipdf $html $style";
24}elseif($xls=="1"){
25 $nomefile="affluenze.xls";
26 header ("Content-Type: application/vnd.ms-excel");
27 header ("Content-Disposition: inline; filename=$nomefile");
28 header("Pragma: no-cache");
29 header("Expires: 0");
30 $datipdf = mb_convert_encoding($datipdf , "HTML-ENTITIES", "UTF-8");
31 echo "$datipdf";
32 echo "$html \t\n $style";
33}elseif($pdf=='1'){
34 $nomefile="$descr_cons affluenze.pdf";
35 $stampa ="$datipdf $html $style";
36 if($vismf)
37 $html2pdf = new Html2Pdf('L','A4', 'it');
38 else
39 $html2pdf = new Html2Pdf('P','A4', 'it');
40 $html2pdf->WriteHTML($stampa, isset($_GET['vuehtml']));
41 $html2pdf->Output($nomefile);
42}
43if($csv!=1 ) include ("footer.php");
44
45?>
Note: See TracBrowser for help on using the repository browser.