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(' > ');

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