后台添加了申请表的查看和下载功能
This commit is contained in:
parent
9f7b4ff0f9
commit
3ae66dd5fb
|
@ -803,6 +803,16 @@ class Admin_DownController extends Zend_Controller_Action
|
||||||
echo $content;
|
echo $content;
|
||||||
exit();
|
exit();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if($ac == "download")
|
||||||
|
{
|
||||||
|
$link = $this->_getParam('link');
|
||||||
|
$content=file_get_contents($link);
|
||||||
|
|
||||||
|
$output = new Output();
|
||||||
|
$output->pushDownload($content,"申请表.pdf",'pdf');
|
||||||
|
exit();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
//离线数据服务记录
|
//离线数据服务记录
|
||||||
|
|
|
@ -13,7 +13,7 @@
|
||||||
{
|
{
|
||||||
return "未提交";
|
return "未提交";
|
||||||
}else{
|
}else{
|
||||||
return '<a href="/admin/down/applicationform/ac/download">点击下载</a>';
|
return '<a href="/admin/down/applicationform/ac/view?link='.$form.'">查看</a>';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
|
|
|
@ -13,7 +13,7 @@
|
||||||
{
|
{
|
||||||
return "未提交";
|
return "未提交";
|
||||||
}else{
|
}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>';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
|
|
Loading…
Reference in New Issue