...
|
...
|
@@ -108,7 +108,8 @@ class Dashboard extends Backend |
|
|
|
|
|
|
|
|
//自定义导出
|
|
|
public function exportDayInner(){
|
|
|
public function exportDayInner()
|
|
|
{
|
|
|
//月 起止时间戳
|
|
|
$start_time = mktime(0, 0, 0, date('m'), 1, date('Y'));
|
|
|
$end_time = mktime(23, 59, 59, date('m'), date('t'), date('Y'));
|
...
|
...
|
@@ -171,6 +172,22 @@ class Dashboard extends Backend |
|
|
header("Content-Type:application/download");;
|
|
|
header('Content-Disposition:attachment;filename="入库明细表.xls"');
|
|
|
header("Content-Transfer-Encoding:binary");
|
|
|
echo $table;
|
|
|
// 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;
|
|
|
}
|
|
|
} |
...
|
...
|
|