From 0628745e697b74de880ccad0d01f52d69923cfbb Mon Sep 17 00:00:00 2001 From: wlx Date: Fri, 18 May 2012 13:14:52 +0000 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=8B=BC=E5=86=99=E9=94=99?= =?UTF-8?q?=E8=AF=AF=EF=BC=9B=E4=BF=AE=E5=A4=8D=E5=8D=95=E6=95=B0=E6=8D=AE?= =?UTF-8?q?=E6=9F=A5=E7=9C=8B=E6=A8=A1=E5=BC=8F=E4=B8=8B=E4=B8=8A=E4=BC=A0?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../default/controllers/AuthorController.php | 4 ++-- .../scripts/author/literature-viewdata.phtml | 19 ++++++------------- application/models/files.php | 2 +- 3 files changed, 9 insertions(+), 16 deletions(-) diff --git a/application/default/controllers/AuthorController.php b/application/default/controllers/AuthorController.php index d40f67b0..c834271b 100644 --- a/application/default/controllers/AuthorController.php +++ b/application/default/controllers/AuthorController.php @@ -2543,7 +2543,7 @@ class AuthorController extends Zend_Controller_Action try{ $files=new files(); - $msg = $files -> upload($this->view->config->upload,$_FILES['Filedata'],'liteature'); + $msg = $files -> upload($this->view->config->upload,$_FILES['Filedata'],'literature'); if(empty($msg['error'])) { @@ -2729,7 +2729,7 @@ class AuthorController extends Zend_Controller_Action try{ $files=new files(); - $msg = $files -> upload($this->view->config->upload,$_FILES['Filedata'],'md'); + $msg = $files -> upload($this->view->config->upload,$_FILES['Filedata'],'document'); if(empty($msg['error'])) { diff --git a/application/default/views/scripts/author/literature-viewdata.phtml b/application/default/views/scripts/author/literature-viewdata.phtml index c509f689..f189d0c7 100644 --- a/application/default/views/scripts/author/literature-viewdata.phtml +++ b/application/default/views/scripts/author/literature-viewdata.phtml @@ -5,7 +5,10 @@ $this->headTitle()->setSeparator(' - '); $this->headScript()->appendFile('/js/jquery-1.7.min.js'); $this->headScript()->appendFile('/js/jquery.colorbox-min.js'); $this->headLink()->appendStylesheet('/css/author.css'); -$this->headLink()->appendStylesheet('/css/colorbox.css'); +$this->headLink()->appendStylesheet('/css/colorbox.css'); +$this->headScript()->appendFile('/static/js/uploadify/swfobject.js'); +$this->headScript()->appendFile('/static/js/uploadify/jquery.uploadify.v2.1.4.min.js'); +$this->headLink()->appendStylesheet('/static/js/uploadify/uploadify.css'); $this->breadcrumb('首页'); $this->breadcrumb('数据作者'); $this->breadcrumb('数据文献管理'); @@ -42,7 +45,7 @@ $this->breadcrumb()->setSeparator(' > ');

查看详细 | 删除 - | 添加文献 + | 添加文献