后台添加了申请表的查看和下载功能

This commit is contained in:
Li Jianxuan 2013-09-09 03:11:29 +00:00
parent 9f7b4ff0f9
commit 3ae66dd5fb
3 changed files with 12 additions and 2 deletions

View File

@ -803,6 +803,16 @@ class Admin_DownController extends Zend_Controller_Action
echo $content;
exit();
}
if($ac == "download")
{
$link = $this->_getParam('link');
$content=file_get_contents($link);
$output = new Output();
$output->pushDownload($content,"申请表.pdf",'pdf');
exit();
}
}
//离线数据服务记录

View File

@ -13,7 +13,7 @@
{
return "未提交";
}else{
return '<a href="/admin/down/applicationform/ac/download">点击下载</a>';
return '<a href="/admin/down/applicationform/ac/view?link='.$form.'">查看</a>';
}
}
?>

View File

@ -13,7 +13,7 @@
{
return "未提交";
}else{
return '<a href="/admin/down/applicationform/ac/download">点击下载</a>';
return '<a href="/admin/down/applicationform/ac/view?link='.$form.'">查看</a> <a href="/admin/down/applicationform/ac/download?link='.$form.'">下载</a>';
}
}
?>