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

Last change on this file since 430 was 411, checked in by roby, 7 months ago
  • ADMIN

-- aggiornamento del campo num_cand nella tabella _ele_voti_candidati

  • CLIENT

-- modifica alla stampa del pdf per il riepilogo affluenze

File size: 1.5 KB
RevLine 
[400]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";
[411]36 if($vismf)
[400]37 $html2pdf = new Html2Pdf('L','A4', 'it');
[411]38 else
39 $html2pdf = new Html2Pdf('P','A4', 'it');
[400]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.