正在显示
1 个修改的文件
包含
1 行增加
和
17 行删除
@@ -172,22 +172,6 @@ class Dashboard extends Backend | @@ -172,22 +172,6 @@ class Dashboard extends Backend | ||
172 | header("Content-Type:application/download");; | 172 | header("Content-Type:application/download");; |
173 | header('Content-Disposition:attachment;filename="入库明细表.xls"'); | 173 | header('Content-Disposition:attachment;filename="入库明细表.xls"'); |
174 | header("Content-Transfer-Encoding:binary"); | 174 | header("Content-Transfer-Encoding:binary"); |
175 | -// echo $table->downLoad(); | ||
176 | - $this->downLoad($table); | ||
177 | - } | ||
178 | - | ||
179 | - private $head; | ||
180 | - private $body; | ||
181 | - | ||
182 | - public function downLoad($filename = '') | ||
183 | - { | ||
184 | - if (!$filename) | ||
185 | - $filename = date('YmdHis', time()) . '.xls'; | ||
186 | - header("Content-type:application/vnd.ms-excel"); | ||
187 | - header("Content-Disposition:filename=$filename"); | ||
188 | - header("Content-Type:charset=gb2312"); | ||
189 | - if ($this->head) | ||
190 | - echo $this->head; | ||
191 | - echo $this->body; | 175 | + echo $table; |
192 | } | 176 | } |
193 | } | 177 | } |
-
请 注册 或 登录 后发表评论