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;}
partial('user/left.phtml'); ?>
-
管理员列表
+

管理员列表

+
diff --git a/application/admin/views/scripts/user/index.phtml b/application/admin/views/scripts/user/index.phtml index bba66cbe..8c8853de 100755 --- a/application/admin/views/scripts/user/index.phtml +++ b/application/admin/views/scripts/user/index.phtml @@ -1,25 +1,27 @@ -headTitle($this->config->title->site); - $this->headTitle('后台管理'); - $this->headTitle()->setSeparator(' - '); - $this->headLink()->appendStylesheet('/css/admin.css'); - $this->breadcrumb('首页'); - $this->breadcrumb('后台管理首页'); - $this->breadcrumb()->setSeparator(' > '); -?> -
-partial('user/left.phtml'); ?> -
- -
-
用户总数: su['total'];?>,其中管理员: suadmin['total'];?>
-
搜索用户 -
- -
姓名
-
单位
-
项目
-
- -
+headTitle($this->config->title->site); + $this->headTitle('后台管理'); + $this->headTitle()->setSeparator(' - '); + $this->headLink()->appendStylesheet('/css/admin.css'); + $this->breadcrumb('首页'); + $this->breadcrumb('后台管理首页'); + $this->breadcrumb()->setSeparator(' > '); +?> +
+partial('user/left.phtml'); ?> +
+ +
+

用户总数: su['total'];?>,其中管理员: suadmin['total'];?>

+
+
+

搜索用户

+
+ +
姓名
+
单位
+
项目
+
+ +
\ No newline at end of file diff --git a/application/admin/views/scripts/user/left.phtml b/application/admin/views/scripts/user/left.phtml index 152cbf0d..36b23a0b 100755 --- a/application/admin/views/scripts/user/left.phtml +++ b/application/admin/views/scripts/user/left.phtml @@ -1,11 +1,10 @@ -