Source for file mexcel.php
Documentation is available at mexcel.php
* Script generatore di tabella Excel dinamica.
* La generazione della tabella excel avviene mediante uso di una semplice tabella HTML
* e l'header XLS. Questo file è richiamato dal tasto "scarica la tabella in excel" creato
* a sua volta dalla funzione magic_excel.
* @see function magic_excel
* @author Mario Marcello Verona <marcelloverona@gmail.com>
* @copyright 2007 Mario Marcello Verona
* @license http://www.gnu.org/licenses/gpl.html GNU Public License
if(isset ($_POST['mexcel'])){
$filename= (isset ($_data['fn']) && $_data['fn']!= '') ? $_data['fn'] : "sheet.xls";
$titolo= (isset ($_data['tit']) && $_data['tit']!= '') ? $_data['tit'] : "Tabella";
header ("Content-Type: application/vnd.ms-excel");
header ("Content-Disposition: inline; filename=$filename");
<! DOCTYPE HTML PUBLIC "-// W3C// DTD HTML 4.01 Transitional// EN">
< title> $titolo</ title></ head>
body{ font- family: Arial, Sans; font- size:0.8 em; }
|