change output filename

This commit is contained in:
wlx 2012-06-21 05:45:41 +00:00
parent 4ab158bd88
commit be977393de
1 changed files with 3 additions and 3 deletions

View File

@ -1140,10 +1140,10 @@ class DataController extends Zend_Controller_Action
$pdf->drawWestdc();
$pdf->addRef($rows);
$pdf->addSecurity($this->view->config->offline->security);
header("Content-Disposition: inline; filename=westdc-data-apply.pdf");
header("Content-Disposition: inline; filename=qherc-data-apply.pdf");
header("Content-Type:application/pdf");
//header("Content-Length: " . strlen($pdfstring));
echo $pdf->Output('westdc-data-apply.pdf','S');
echo $pdf->Output('qherc-data-apply.pdf','S');
die();
//exit;
} elseif ($formData['submit']) {
@ -1188,7 +1188,7 @@ class DataController extends Zend_Controller_Action
$mail->send();
//跳转到/data/order并提示帮助信息告知用户已经发送EMAIL
$this->messenger->addMessage('提示信息:您的离线申请已经提交,系统已经发送一封邮件给您,请打印出申请表并签字后邮寄给西部数据中心服务组,具体信息请参考邮件说明。');
$this->messenger->addMessage('提示信息:您的离线申请已经提交,系统已经发送一封邮件给您,请打印出申请表并签字后邮寄给青海湖数据中心服务组,具体信息请参考邮件说明。');
$this->_redirect('/data/order');
}
}