You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
31 lines
1.1 KiB
31 lines
1.1 KiB
<?php
|
|
|
|
/**
|
|
|
|
* [Laike System] Copyright (c) 2018 laiketui.com
|
|
|
|
* Laike is not a free software, it under the license terms, visited http://www.laiketui.com/ for more details.
|
|
|
|
*/
|
|
class yueInputView extends SmartyView {
|
|
public function execute() {
|
|
$request = $this->getContext()->getRequest();
|
|
$this->setAttribute("name",$request->getAttribute("name"));
|
|
$this->setAttribute("list",$request->getAttribute("list"));
|
|
$this->setAttribute("starttime",$request->getAttribute("starttime"));
|
|
$this->setAttribute("group_end_time",$request->getAttribute("group_end_time"));
|
|
$this->setAttribute("type",$request->getAttribute("type"));
|
|
$this->setAttribute("pages_show",$request->getAttribute("pages_show"));
|
|
$this->setAttribute("pagesize",$request->getAttribute("pagesize"));
|
|
$pageto = $request->getAttribute('pageto');
|
|
if($pageto != ''){
|
|
$r = rand();
|
|
header("Content-type: application/msexcel;charset=utf-8");
|
|
header("Content-Disposition: attachment;filename=userlist-$r.xls");
|
|
$this->setTemplate("excel_yue.tpl");
|
|
} else {
|
|
$this->setTemplate('yue.tpl');
|
|
}
|
|
}
|
|
}
|
|
?>
|
|
|