From 00f0609eebba73a2bb03d9dc295ca3c71b05460b Mon Sep 17 00:00:00 2001 From: Li Jianxuan Date: Wed, 22 May 2013 07:06:30 +0000 Subject: [PATCH] =?UTF-8?q?#490=20=E6=B7=BB=E5=8A=A0=E6=95=B0=E6=8D=AE?= =?UTF-8?q?=E7=9B=B8=E5=85=B3=E9=80=89=E9=A1=B9=EF=BC=8C=E4=BF=AE=E6=94=B9?= =?UTF-8?q?tab=E5=AF=BC=E8=88=AA=E7=9A=84=E6=98=BE=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../default/controllers/AuthorController.php | 19 + .../views/scripts/author/fund-data.phtml | 113 ++++++ .../default/views/scripts/author/fund.phtml | 330 +++++++++--------- .../default/views/scripts/author/navi.phtml | 38 +- application/models/data/Fund.php | 81 ++++- 5 files changed, 393 insertions(+), 188 deletions(-) create mode 100644 application/default/views/scripts/author/fund-data.phtml diff --git a/application/default/controllers/AuthorController.php b/application/default/controllers/AuthorController.php index 0632ff1e..c2a58737 100644 --- a/application/default/controllers/AuthorController.php +++ b/application/default/controllers/AuthorController.php @@ -3833,6 +3833,25 @@ class AuthorController extends Zend_Controller_Action return true; } + if($ac == 'data') + { + $this->_helper->viewRenderer('fund-data'); + $uuid = $this->_getParam('uuid'); + $this->view->q = $q = $this->_getParam('q'); + if(empty($uuid)) + { + $rows = $fund->fetchFormData($uid,$q); + view::addPaginator($rows,$this->view,$this->_request); + }else{ + include('data/Metadata.php'); + $md = new Metadata($this->db); + $this->view->md = $md->view($uuid); + $rows = $fund->fetch($uuid); + view::addPaginator($rows,$this->view,$this->_request); + } + return true; + } + if($ac == "add") { $this->_helper->viewRenderer('fund-add'); diff --git a/application/default/views/scripts/author/fund-data.phtml b/application/default/views/scripts/author/fund-data.phtml new file mode 100644 index 00000000..dd453e5a --- /dev/null +++ b/application/default/views/scripts/author/fund-data.phtml @@ -0,0 +1,113 @@ +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'); ?> +
+
+
+ +
+ 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/default/views/scripts/author/fund.phtml b/application/default/views/scripts/author/fund.phtml index 4b5b96e7..3fbe7ad7 100644 --- a/application/default/views/scripts/author/fund.phtml +++ b/application/default/views/scripts/author/fund.phtml @@ -1,163 +1,167 @@ -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'); ?> -
-
-
- -
- md)) { ?> -
- ct)) { ?> - 为此数据添加项目 - - 返回 -
点击“添加此项目”即可将项目添加到元数据
- -

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

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

error ?>

-
    - error as $v) { ?> -
  • - -
- -
- - msg)) { ?> -
- × - msg ?> -
- jump_url)) { ?> - - - -
- paginator)): ?> - - - - - - - md) { ?> - - - - - - - - - - paginator as $item): - $autoindex++;?> - md)) { ?> - - - - - - - - md) { ?> - ct) { ?> - - - - - - - - - - - - -
名称编号类型排序英文标题英文类型操作
- md)) { ?> - 编辑 - 删除 - - ct)) { ?> - 排序 - 移除 - - 添加此项目 - - -
- - -
- -
-
- - +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'); ?> +
+
+
+ +
+ md)) { ?> +
+ ct)) { ?> + 为此数据添加项目 + + 返回 +
点击“添加此项目”即可将项目添加到元数据
+ +

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

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

error ?>

+
    + error as $v) { ?> +
  • + +
+ +
+ + msg)) { ?> +
+ × + msg ?> +
+ jump_url)) { ?> + + + +
+ paginator)): ?> + + + + + + + md) { ?> + + + + + + + + + + paginator as $item): + $autoindex++;?> + md)) { ?> + + + + + + + + md) { ?> + ct) { ?> + + + + + + + + + + + + +
名称编号类型排序英文标题英文类型操作
+ md)) { ?> + 编辑 + 删除 + + ct)) { ?> + 排序 + 移除 + + 添加此项目 + + +
+ + +
+ +
+
+ + diff --git a/application/default/views/scripts/author/navi.phtml b/application/default/views/scripts/author/navi.phtml index 97828358..7aa38b97 100644 --- a/application/default/views/scripts/author/navi.phtml +++ b/application/default/views/scripts/author/navi.phtml @@ -1,20 +1,20 @@ -