diff --git a/application/admin/controllers/UserController.php b/application/admin/controllers/UserController.php index 9106f7c7..620a048b 100755 --- a/application/admin/controllers/UserController.php +++ b/application/admin/controllers/UserController.php @@ -1,4 +1,7 @@ db->select(); - - $select->from('users') + $select->from('users') ->where('usertype = ?', 'member') ->order('users.id desc'); - + + view::addPaginator($select,$this,20); + }//listAction + + function localAction() + { + $select=$this->db->select(); - $paginator = Zend_Paginator::factory($select); - $paginator->setCurrentPageNumber($this->_getParam('page')); - $paginator->setItemCountPerPage(30); - $paginator->setView($this->view); - Zend_View_Helper_PaginationControl::setDefaultViewPartial('pagination.phtml'); - $this->view->paginator=$paginator; + $select->from(array('u'=>'users')) + ->join(array('l'=>'users_local'),'u.id=l.uid') + ->order('u.id desc'); + + view::addPaginator($select,$this,20); }//listAction function searchAction() diff --git a/application/admin/views/scripts/review/left.phtml b/application/admin/views/scripts/review/left.phtml index b9ce7de6..f88b3ff1 100644 --- a/application/admin/views/scripts/review/left.phtml +++ b/application/admin/views/scripts/review/left.phtml @@ -1,12 +1,12 @@
\ No newline at end of file diff --git a/application/admin/views/scripts/user/adminlist.phtml b/application/admin/views/scripts/user/adminlist.phtml index 52f8dfab..f47d1de3 100755 --- a/application/admin/views/scripts/user/adminlist.phtml +++ b/application/admin/views/scripts/user/adminlist.phtml @@ -17,7 +17,8 @@ table thead tr th {background:#EBF2F6;color:#444;}