public function view_index() { $toptitle = '报表导出页面'; //头部title $this->smarty->assign('toptitle', $toptitle); $this->smarty->assign('toplevel', 5); $OmAccountAct = new OmAccountAct(); $reportAct = new ExcelExportAct(); $ebayAccountList = $OmAccountAct->act_getEbayAccountList(); $b2bAccountList = $OmAccountAct->act_getB2BAccountList(); $neweggAccountList = $OmAccountAct->act_getNeweggAccountList(); $ebayAccountList = $OmAccountAct->act_ebayaccountAllList(); $amazonAccountList = $OmAccountAct->act_amazonaccountAllList(); $dresslinkAccountList = $OmAccountAct->act_dresslinkaccountAllList(); $aliexpressAccountList = $OmAccountAct->act_getAccountListByPid(2); $innerAccountList = $OmAccountAct->act_getINNERAccountList(); $aliexpressAccountList = json_decode($aliexpressAccountList, true); $transAPI = new TransAPIAct(); $transType = $transAPI->act_getChannelistByApi(); //var_dump($aliexpressAccountList); $allAccountList = $OmAccountAct->act_getAllAccountList(); $priceInfoUrl = $reportAct->act_priceInfoReport(); $this->smarty->assign("ebayAccountList", $ebayAccountList); $this->smarty->assign("b2bAccountList", $b2bAccountList); $this->smarty->assign("neweggAccountList", $neweggAccountList); $this->smarty->assign("innerAccountList", $innerAccountList); $this->smarty->assign("dresslinkAccountList", $dresslinkAccountList); $this->smarty->assign("aliexpressAccountList", $aliexpressAccountList); $this->smarty->assign("allAccountList", $allAccountList); $this->smarty->assign("amazonAccountList", $amazonAccountList); $this->smarty->assign("transType", $transType); $this->smarty->assign("priceInfoUrl", $priceInfoUrl); $startTime = date('Y-m-d ') . ' 00:00:00'; $endTime = date('Y-m-d ') . ' 23:59:59'; $chkTime = date('Y-m-d '); $this->smarty->assign("curStartTime", $startTime); $this->smarty->assign("curEndTime", $endTime); $this->smarty->assign("chkTime", $chkTime); //单个时间 $this->smarty->display("exportXls.htm"); }