From 70a02a9d05c96a9878af864c2056cbd16c6fec67 Mon Sep 17 00:00:00 2001 From: Li Jianxuan Date: Thu, 23 May 2013 08:56:59 +0000 Subject: [PATCH] =?UTF-8?q?#490=20=E5=90=8E=E5=8F=B0=E6=B7=BB=E5=8A=A0?= =?UTF-8?q?=E4=BA=86=E6=94=AF=E6=8C=81=E9=A1=B9=E7=9B=AE=E7=9A=84=E6=95=B0?= =?UTF-8?q?=E6=8D=AE=E7=9B=B8=E5=85=B3=E6=9F=A5=E7=9C=8B=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../admin/controllers/DataController.php | 20 ++++ .../views/scripts/data/fund-data-list.phtml | 113 ++++++++++++++++++ .../views/scripts/data/fund-data-view.phtml | 100 ++++++++++++++++ .../admin/views/scripts/data/fund.phtml | 1 + 4 files changed, 234 insertions(+) create mode 100644 application/admin/views/scripts/data/fund-data-list.phtml create mode 100644 application/admin/views/scripts/data/fund-data-view.phtml diff --git a/application/admin/controllers/DataController.php b/application/admin/controllers/DataController.php index 24428cc7..ea300a16 100755 --- a/application/admin/controllers/DataController.php +++ b/application/admin/controllers/DataController.php @@ -3410,6 +3410,26 @@ class Admin_DataController extends Zend_Controller_Action return true; } + if($ac == 'datalist') + { + $this->_helper->viewRenderer('fund-data-list'); + $this->view->q = $q = $this->_getParam('q'); + $rows = $fund->fetchFormData(true,0,$q); + view::addPaginator($rows,$this->view,$this->_request); + return true; + } + + if($ac == 'dataview') + { + $this->_helper->viewRenderer('fund-data-view'); + $this->view->q = $q = $this->_getParam('q'); + $id = $this->_getParam('id'); + $this->view->fund = $fund->view($id); + $rows = $fund->fetchFormData($id,0,$q); + view::addPaginator($rows,$this->view,$this->_request); + return true; + } + if($ac == "add") { $this->_helper->viewRenderer('fund-add'); diff --git a/application/admin/views/scripts/data/fund-data-list.phtml b/application/admin/views/scripts/data/fund-data-list.phtml new file mode 100644 index 00000000..478a32a0 --- /dev/null +++ b/application/admin/views/scripts/data/fund-data-list.phtml @@ -0,0 +1,113 @@ +headTitle($this->config->title->site); +$this->headTitle($this->config->title->author); +$this->headTitle()->setSeparator(' - '); +$this->breadcrumb('首页'); +$this->headLink()->appendStylesheet('/css/author.css'); +$this->breadcrumb()->setSeparator(' > '); +$this->theme->AppendPlus($this,'colorbox'); +$this->theme->AppendPlus($this,'admin_plugin'); +?> + +
+
+ partial('data/left.phtml'); ?> +
+
+
+ +
+ md)) { ?> +
+ ct)) { ?> + 为此数据添加项目 + + 返回 +
点击“添加此项目”即可将项目添加到元数据
+ +

md['title'] ?>》 的支持项目

+
+
+ +
+
+
+ + +
+
+
+ error)) { ?> + AlertType)) $AlertType = "alert-error";else $AlertType = $this->AlertType;?> +
+ × + error)) { ?>

error ?>

+
    + error as $v) { ?> +
  • + +
+ +
+ + msg)) { ?> +
+ × + msg ?> +
+ jump_url)) { ?> + + + +
+ paginator)): ?> + + + + + + + + + + + + paginator as $item): + $autoindex++;?> + md)) { ?> + + + + + + + + + + + + +
名称项目编号项目类型数据个数操作
+ 查看数据 +
+ + +
+ +
+
+ + diff --git a/application/admin/views/scripts/data/fund-data-view.phtml b/application/admin/views/scripts/data/fund-data-view.phtml new file mode 100644 index 00000000..5fe7bd01 --- /dev/null +++ b/application/admin/views/scripts/data/fund-data-view.phtml @@ -0,0 +1,100 @@ +headTitle($this->config->title->site); +$this->headTitle($this->config->title->author); +$this->headTitle()->setSeparator(' - '); +$this->breadcrumb('首页'); +$this->breadcrumb('数据作者'); +$this->headLink()->appendStylesheet('/css/author.css'); +$this->breadcrumb('申请成为元数据作者'); +$this->breadcrumb()->setSeparator(' > '); +$this->theme->AppendPlus($this,'colorbox'); +$this->theme->AppendPlus($this,'admin_plugin'); +?> + +
+
+ partial('author/navi.phtml'); ?> +
+
+
+ +
+ fund)) { ?> +
+

fund['title'] ?> 的相关数据

+
+
+ +
+
+
+ + +
+
+
+ error)) { ?> + AlertType)) $AlertType = "alert-error";else $AlertType = $this->AlertType;?> +
+ × + error)) { ?>

error ?>

+
    + error as $v) { ?> +
  • + +
+ +
+ + msg)) { ?> +
+ × + msg ?> +
+ jump_url)) { ?> + + + +
+ paginator)): ?> + + + + + + + + + paginator as $item): + $autoindex++;?> + + + + + + +
数据操作
+ 移除 +
+ + +
+ +
+
+ + diff --git a/application/admin/views/scripts/data/fund.phtml b/application/admin/views/scripts/data/fund.phtml index cc5b694c..aab2a9f3 100644 --- a/application/admin/views/scripts/data/fund.phtml +++ b/application/admin/views/scripts/data/fund.phtml @@ -19,6 +19,7 @@ table thead tr th {background:#EBF2F6;}