From d978e0e8c7b7f9ed53f03b4c10b3d58987f41457 Mon Sep 17 00:00:00 2001 From: Li Jianxuan Date: Thu, 10 Oct 2013 02:19:46 +0000 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E4=BA=86=E6=95=B0=E6=8D=AE?= =?UTF-8?q?=E6=96=87=E7=8C=AE=E7=9A=84=E7=BC=96=E8=BE=91=E5=8A=9F=E8=83=BD?= =?UTF-8?q?=EF=BC=8C=E5=9C=A8=E6=96=87=E7=8C=AE=E5=88=97=E8=A1=A8=E9=A1=B5?= =?UTF-8?q?=E9=9D=A2=E6=B7=BB=E5=8A=A0=E4=BA=86=E5=BF=AB=E9=80=9F=E6=B7=BB?= =?UTF-8?q?=E5=8A=A0=E6=95=B0=E6=8D=AE=E6=96=87=E7=8C=AE=E7=9A=84=E6=8C=89?= =?UTF-8?q?=E9=92=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../admin/controllers/DataController.php | 2 + .../views/scripts/data/ref-mdref-form.phtml | 2 + .../views/scripts/data/ref-metadatas.phtml | 63 ++---------------- .../admin/views/scripts/data/ref.phtml | 6 +- application/module/Reference/Reference.php | 40 ++++++----- htdocs/js/lib/custom/models/admin-data-ref.js | 66 +++++++++++++++++++ 6 files changed, 103 insertions(+), 76 deletions(-) create mode 100644 htdocs/js/lib/custom/models/admin-data-ref.js diff --git a/application/admin/controllers/DataController.php b/application/admin/controllers/DataController.php index ce555b7f..6d96058e 100755 --- a/application/admin/controllers/DataController.php +++ b/application/admin/controllers/DataController.php @@ -1147,11 +1147,13 @@ class Admin_DataController extends Zend_Controller_Action //文献首页 if(empty($ac)) { + $this->view->referenceType = $reference->referenceType(); view::addPaginator($reference->fetchReferences(),$this,12); return true; } else if ($ac == "water") { + $this->view->referenceType = $reference->referenceType(); view::addPaginator($reference->fetchThemeReferences('water'),$this,10); return true; } diff --git a/application/admin/views/scripts/data/ref-mdref-form.phtml b/application/admin/views/scripts/data/ref-mdref-form.phtml index 382314f6..6721ff29 100644 --- a/application/admin/views/scripts/data/ref-mdref-form.phtml +++ b/application/admin/views/scripts/data/ref-mdref-form.phtml @@ -33,6 +33,7 @@ +
@@ -40,6 +41,7 @@ + diff --git a/application/admin/views/scripts/data/ref-metadatas.phtml b/application/admin/views/scripts/data/ref-metadatas.phtml index 63c9750c..f004d4df 100644 --- a/application/admin/views/scripts/data/ref-metadatas.phtml +++ b/application/admin/views/scripts/data/ref-metadatas.phtml @@ -8,6 +8,7 @@ $this->breadcrumb('文献管理'); $this->breadcrumb()->setSeparator(' > '); $this->theme->AppendPlus($this,'colorbox'); $this->theme->AppendPlus($this,'admin_plugin'); +$this->theme->AppendModel($this,'admin-data-ref'); ?>