...
|
...
|
@@ -172,22 +172,6 @@ class Dashboard extends Backend |
|
|
header("Content-Type:application/download");;
|
|
|
header('Content-Disposition:attachment;filename="入库明细表.xls"');
|
|
|
header("Content-Transfer-Encoding:binary");
|
|
|
// echo $table->downLoad();
|
|
|
$this->downLoad($table);
|
|
|
}
|
|
|
|
|
|
private $head;
|
|
|
private $body;
|
|
|
|
|
|
public function downLoad($filename = '')
|
|
|
{
|
|
|
if (!$filename)
|
|
|
$filename = date('YmdHis', time()) . '.xls';
|
|
|
header("Content-type:application/vnd.ms-excel");
|
|
|
header("Content-Disposition:filename=$filename");
|
|
|
header("Content-Type:charset=gb2312");
|
|
|
if ($this->head)
|
|
|
echo $this->head;
|
|
|
echo $this->body;
|
|
|
echo $table;
|
|
|
}
|
|
|
} |
...
|
...
|
|