From 3ae66dd5fb98a717b4cb9cb29e098540bf22f5ae Mon Sep 17 00:00:00 2001 From: Li Jianxuan Date: Mon, 9 Sep 2013 03:11:29 +0000 Subject: [PATCH] =?UTF-8?q?=E5=90=8E=E5=8F=B0=E6=B7=BB=E5=8A=A0=E4=BA=86?= =?UTF-8?q?=E7=94=B3=E8=AF=B7=E8=A1=A8=E7=9A=84=E6=9F=A5=E7=9C=8B=E5=92=8C?= =?UTF-8?q?=E4=B8=8B=E8=BD=BD=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/admin/controllers/DownController.php | 10 ++++++++++ .../views/scripts/down/offlineapps-notpassed.phtml | 2 +- .../views/scripts/down/offlineapps-notreceived.phtml | 2 +- 3 files changed, 12 insertions(+), 2 deletions(-) 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 '查看 下载'; } } ?>