From 271f266336dbac5fc9d64b0ea463bf203a827b2c Mon Sep 17 00:00:00 2001 From: Li Jianxuan Date: Sat, 8 Oct 2011 08:40:07 +0000 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E9=82=80=E8=AF=B7=E4=B8=93?= =?UTF-8?q?=E5=AE=B6=E7=9A=84=E5=8A=A8=E4=BD=9C=E5=92=8C=E8=A7=86=E5=9B=BE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../admin/controllers/ReviewController.php | 51 +++++++++++++ .../admin/views/scripts/review/accept.phtml | 5 +- .../admin/views/scripts/review/invite.phtml | 73 +++++++++++++++++++ 3 files changed, 127 insertions(+), 2 deletions(-) create mode 100644 application/admin/views/scripts/review/invite.phtml diff --git a/application/admin/controllers/ReviewController.php b/application/admin/controllers/ReviewController.php index e4433728..19d27053 100644 --- a/application/admin/controllers/ReviewController.php +++ b/application/admin/controllers/ReviewController.php @@ -110,6 +110,7 @@ class Admin_ReviewController extends Zend_Controller_Action $search = $this->_request->getParam('search'); $cancel = $this->_request->getParam('cancel'); $update = $this->_request->getParam('update'); + $invite = $this->_request->getParam('invite'); if($cancel>0) { @@ -168,6 +169,56 @@ class Admin_ReviewController extends Zend_Controller_Action } + function inviteAction(){ + + $id = $this->_request->getParam('id'); + $search = $this->_request->getParam('search'); + $keyword = $this->_request->getParam('keyword'); + $submit = $this->_request->getParam('submit'); + $exps = $this->_request->getParam('exps'); + + $stid = $this->_request->getParam('stid'); + $uid = $this->_request->getParam('uid'); + + $this->view->id = $id; + + if(!empty($stid) && !empty($uid)) + { + + } + + $searchjoin = ""; + if(!empty($search) && !empty($keyword)) + { + $searchjoin = " where u.username like '%$keyword%' + or u.realname like '%$keyword%' + or u.unit like '%$keyword%' + or u.email like '%$keyword%'"; + $this->view->keyword = $keyword; + } + + $sql = "select u.id,u.username,u.realname,u.unit,u.phone,u.email from users u + right join mdexperts me on u.id=me.id + $searchjoin"; + $re = $this->db->query($sql); + $rows = $re->fetchAll(); + + $paginator = Zend_Paginator::factory($rows); + $paginator->setCurrentPageNumber($this->_getParam('page')); + $paginator->setItemCountPerPage($this->view->config->page->max); + $paginator->setView($this->view); + Zend_View_Helper_PaginationControl::setDefaultViewPartial('pagination_param.phtml'); + $this->view->paginator=$paginator; + + if(!empty($submit)) + { + if(is_array($exps)) + { + + } + } + } + function addonAction(){ diff --git a/application/admin/views/scripts/review/accept.phtml b/application/admin/views/scripts/review/accept.phtml index 34711f77..9293550e 100644 --- a/application/admin/views/scripts/review/accept.phtml +++ b/application/admin/views/scripts/review/accept.phtml @@ -40,7 +40,7 @@ 元数据标题 状态 - 操作 + 操作 paginator)): ?> @@ -51,13 +51,14 @@ ' onclick="return confirm('是否确定取消评审')">取消评审 + '>邀请专家
- paginator; ?> + paginator; ?>
\ No newline at end of file diff --git a/application/admin/views/scripts/review/invite.phtml b/application/admin/views/scripts/review/invite.phtml new file mode 100644 index 00000000..8410eaa8 --- /dev/null +++ b/application/admin/views/scripts/review/invite.phtml @@ -0,0 +1,73 @@ +headTitle($this->config->title->site); + $this->headTitle('后台管理'); + $this->headTitle()->setSeparator(' - '); + $this->headLink()->appendStylesheet('/css/admin.css'); + $this->breadcrumb('首页'); + $this->breadcrumb('后台首页'); + $this->breadcrumb('元数据评审'); + $this->breadcrumb()->setSeparator(' > '); +?> +
+
+partial('review/left.phtml'); ?> +
+ +msg or $this->messages) :?> +
+msg) : ?> +

msg; ?>

+messages): foreach($this->messages as $msg): ?> +

+ +
+ + +
+ + + +
+ + + + + + + + + + + + + paginator)): ?> + + paginator as $item): ?> + + > + + + + + + + + + + +
选择用户ID用户名姓名单位联系电话电子邮箱
+
+
+ paginator; ?>
+ +
+
\ No newline at end of file