diff --git a/application/admin/controllers/ReviewController.php b/application/admin/controllers/ReviewController.php index 1d0b83e7..1fe5ef7e 100644 --- a/application/admin/controllers/ReviewController.php +++ b/application/admin/controllers/ReviewController.php @@ -580,21 +580,27 @@ class Admin_ReviewController extends Zend_Controller_Action function myreviewAction(){ include_once("data/Review.php"); + include_once("data/Source.php"); include_once("helper/view.php"); $search=$this->_request->getParam('search'); - $keyword = $this->_request->getParam('keyword'); + $filter['keyword'] = $this->_request->getParam('keyword'); + $filter['code'] = $this->_request->getParam('code'); $review = new Review($this->db); - if(!empty($search) && !empty($keyword)) + if(!empty($search) && !empty($filter)) { - $rows = $review->adminReviews($keyword); - $this->view->keyword = $keyword; + $rows = $review->adminReviews($filter); + $this->view->keyword = $filter['keyword']; + $this->view->code = $filter['code']; }else{ $rows = $review->adminReviews(); } + + $source = new Source($this->db); + $this->view->source = $source->Fetch(); - view::addPaginator($rows,$this->view,$this->_request); + view::addPaginator($rows,$this,NULL,15); return true; }//我管理的元数据 diff --git a/application/admin/views/scripts/review/myreview.phtml b/application/admin/views/scripts/review/myreview.phtml index fec2fa9d..86d32cea 100644 --- a/application/admin/views/scripts/review/myreview.phtml +++ b/application/admin/views/scripts/review/myreview.phtml @@ -26,12 +26,26 @@ table thead tr th {background:#EBF2F6;color:#444;} -
- +