diff --git a/application/admin/controllers/DownController.php b/application/admin/controllers/DownController.php index ad2b8c83..97952dfc 100644 --- a/application/admin/controllers/DownController.php +++ b/application/admin/controllers/DownController.php @@ -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(); + } } //离线数据服务记录 diff --git a/application/admin/views/scripts/down/offlineapps-notpassed.phtml b/application/admin/views/scripts/down/offlineapps-notpassed.phtml index 2eaeb5f3..e84534bf 100644 --- a/application/admin/views/scripts/down/offlineapps-notpassed.phtml +++ b/application/admin/views/scripts/down/offlineapps-notpassed.phtml @@ -13,7 +13,7 @@ { return "未提交"; }else{ - return '点击下载'; + return '查看'; } } ?> diff --git a/application/admin/views/scripts/down/offlineapps-notreceived.phtml b/application/admin/views/scripts/down/offlineapps-notreceived.phtml index 69a3ebe0..c9e8f0b2 100644 --- a/application/admin/views/scripts/down/offlineapps-notreceived.phtml +++ b/application/admin/views/scripts/down/offlineapps-notreceived.phtml @@ -13,7 +13,7 @@ { return "未提交"; }else{ - return '点击下载'; + return '查看 下载'; } } ?>