Ignore:
Timestamp:
Jun 6, 2011, 11:29:13 PM (13 years ago)
Author:
eol
Message:

esporta risultati pdf : scelta formato A3/A4 e Landscape/Portrait

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/client/modules/Elezioni/crea_pagina.php

    r115 r118  
    2020
    2121
    22 global $prefix,$dbi,$pdf,$csv,$xls,$lang,$descr_cons,$prefix,$dbi,$id_comune,$descrizione,$siteistat,$min,$offset,$minsez,$offsetsez,$datipdf;
     22global $prefix,$dbi,$pdf,$csv,$xls,$lang,$descr_cons,$prefix,$dbi,$id_comune,$descrizione,$siteistat,$min,$offset,$minsez,$offsetsez,$datipdf,$orienta,$formato;
    2323$res = mysql_query("SELECT descrizione,simbolo,stemma FROM ".$prefix."_ele_comuni where id_comune='$id_comune' ", $dbi);
    2424        list($descr_com,$simbolo,$stemma) = mysql_fetch_row($res);
    25 
    26 
    27 
    2825
    2926
     
    256253                // conversion HTML => PDF
    257254                //$nomefile="elezioni_tabelle.pdf";
     255                //$orienta="P";
    258256                require_once('inc/hpdf403/html2pdf.class.php');
    259                 $html2pdf = new HTML2PDF('L','A4', 'it');
     257                $html2pdf = new HTML2PDF($orienta,$formato, 'it');
    260258                $html2pdf->WriteHTML($style, isset($_GET['vuehtml']));
    261259                $html2pdf->Output($nomefile);
Note: See TracChangeset for help on using the changeset viewer.