[ Index ] |
|
Code source de vtiger CRM 5.0.2 |
1 <?PHP 2 require_once "Excel/class.writeexcel_workbook.inc.php"; 3 require_once "Excel/class.writeexcel_worksheet.inc.php"; 4 require_once "Excel/functions.writeexcel_utility.inc.php"; 5 6 class Excel_Workbook extends writeexcel_workbook { 7 /** 8 * The constructor. It just creates a Workbook 9 * 10 * @param string $filename The optional filename for the Workbook. 11 * @return Spreadsheet_Excel_Writer_Workbook The Workbook created 12 */ 13 14 function Excel_Workbook($filename = '') { 15 $this->_filename = $filename; 16 $this->writeexcel_workbook($filename); 17 } 18 19 /** 20 * Send HTTP headers for the Excel file. 21 * 22 * @param string $filename The filename to use for HTTP headers 23 * @access public 24 */ 25 function send($filename) { // attachment 26 global $pref_lang; 27 $this->_tmpfilename = $filename; 28 /* if ($pref_lang == "ru") { 29 header ('<meta http-equiv="Content-Type" content="text/html; charset=windows-1251">'); 30 } else { 31 header ('<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">'); 32 } 33 */ header("Content-type: application/x-msexcel"); 34 header("Content-Disposition: inline; filename=$filename"); 35 header("Expires: 0"); 36 header("Cache-Control: must-revalidate, post-check=0,pre-check=0"); 37 header("Pragma: public"); 38 } 39 } 40 ?>
titre
Description
Corps
titre
Description
Corps
titre
Description
Corps
titre
Corps
Généré le : Sun Feb 25 10:22:19 2007 | par Balluche grâce à PHPXref 0.7 |