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.
23 lines
994 B
23 lines
994 B
<?php
|
|
class shipmentInputView extends SmartyView {
|
|
public function execute() {
|
|
$request = $this->getContext()->getRequest();
|
|
$this->setAttribute("button",$request->getAttribute("button"));
|
|
$this->setAttribute("list",$request->getAttribute("list"));
|
|
$this->setAttribute("pages_show",$request->getAttribute("pages_show"));
|
|
$this->setAttribute("product_number",$request->getAttribute("product_number"));
|
|
$this->setAttribute("product_title",$request->getAttribute("product_title"));
|
|
$this->setAttribute("excel",$request->getAttribute("excel"));
|
|
|
|
$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_shipment.tpl");
|
|
} else {
|
|
$this->setTemplate("shipment.tpl");
|
|
}
|
|
}
|
|
}
|
|
?>
|
|
|