摘要: //参数初始化 $filePath = ''; if ($_FILES["file"]["error"] > 0) { returnJSON(ERROR_INVALID, $_FILES["file"]["error"]); } $filePath = $_FILES["file"]["tmp_name"]; //建立reader对象 $this->load->library('PHPExcel'); $PHPReader = 阅读全文
posted @ 2013-12-19 17:39 耐得住寂寞 阅读(1072) 评论(0) 推荐(0) 编辑
摘要: //浏览器输出excel header('Content-Type: application/vnd.openxmlformats-officedocument.spreadsheetml.sheet'); header('Content-Disposition: attachment;filename="dzg_card_info.xlsx"'); header('Cache-Control: max-age=0'); $this->load->library('PHPExcel'); //加载类 阅读全文
posted @ 2013-12-19 14:35 耐得住寂寞 阅读(14622) 评论(1) 推荐(1) 编辑