From e393f8085a5aa9bbfe05f71090ddfaf60a6b46f1 Mon Sep 17 00:00:00 2001 From: Li Jianxuan Date: Wed, 10 Jul 2013 09:04:43 +0000 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=90=8E=E5=8F=B0=E6=88=91?= =?UTF-8?q?=E8=B4=9F=E8=B4=A3=E7=9A=84=E5=85=83=E6=95=B0=E6=8D=AE=E7=AE=A1?= =?UTF-8?q?=E7=90=86=E5=8A=9F=E8=83=BD=EF=BC=8C=E5=A2=9E=E5=8A=A0=E4=BA=86?= =?UTF-8?q?=E5=88=86=E5=AD=97=E6=AE=B5=E6=8E=92=E5=BA=8F=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../admin/controllers/ReviewController.php | 5 + .../admin/views/scripts/review/accept.phtml | 2 +- .../admin/views/scripts/review/myreview.phtml | 93 +++++++++++-------- application/models/data/Review.php | 35 +++++-- htdocs/js/lib/custom/models/sfadmin.js | 50 ++++++++++ 5 files changed, 137 insertions(+), 48 deletions(-) create mode 100644 htdocs/js/lib/custom/models/sfadmin.js diff --git a/application/admin/controllers/ReviewController.php b/application/admin/controllers/ReviewController.php index 3a703bf6..397f61d0 100644 --- a/application/admin/controllers/ReviewController.php +++ b/application/admin/controllers/ReviewController.php @@ -586,6 +586,8 @@ class Admin_ReviewController extends Zend_Controller_Action $search=$this->_request->getParam('search'); $filter['keyword'] = $this->_request->getParam('keyword'); $filter['code'] = $this->_request->getParam('code'); + $filter['order'] = $this->_request->getParam('order'); + $filter['sort'] = $this->_request->getParam('sort'); $review = new Review($this->db); if(!empty($search) && !empty($filter)) @@ -593,6 +595,9 @@ class Admin_ReviewController extends Zend_Controller_Action $rows = $review->adminReviews($filter); $this->view->keyword = $filter['keyword']; $this->view->code = $filter['code']; + }if(!empty($filter)) + { + $rows = $review->adminReviews($filter); }else{ $rows = $review->adminReviews(); } diff --git a/application/admin/views/scripts/review/accept.phtml b/application/admin/views/scripts/review/accept.phtml index a2c24848..80f06c7c 100644 --- a/application/admin/views/scripts/review/accept.phtml +++ b/application/admin/views/scripts/review/accept.phtml @@ -36,7 +36,7 @@ table thead tr th {background:#EBF2F6;color:#444;} - + diff --git a/application/admin/views/scripts/review/myreview.phtml b/application/admin/views/scripts/review/myreview.phtml index 7e2db66e..f0346448 100644 --- a/application/admin/views/scripts/review/myreview.phtml +++ b/application/admin/views/scripts/review/myreview.phtml @@ -7,6 +7,7 @@ $this->breadcrumb('元数据评审'); $this->breadcrumb()->setSeparator(' > '); $this->theme->AppendPlus($this,'colorbox'); + $this->theme->AppendModel($this,'sfadmin'); ?>
元数据标题负责编辑责任编辑 接收时间 操作