From d8b42ac090bdf577855820b8ef9cecbf0b575824 Mon Sep 17 00:00:00 2001 From: Li Jianxuan Date: Mon, 16 Dec 2013 08:29:55 +0000 Subject: [PATCH] =?UTF-8?q?=E5=88=86=E7=A6=BB=E6=9C=AC=E5=9C=B0=E7=94=A8?= =?UTF-8?q?=E6=88=B7=E5=92=8C=E6=89=80=E6=9C=89=E7=94=A8=E6=88=B7=E7=9A=84?= =?UTF-8?q?=E6=9F=A5=E7=9C=8B=EF=BC=8C=E5=A2=9E=E5=8A=A0=E6=9C=AC=E5=9C=B0?= =?UTF-8?q?=E7=94=A8=E6=88=B7=E6=B7=BB=E5=8A=A0=E7=AA=97=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../admin/controllers/UserController.php | 26 ++++++---- .../admin/views/scripts/review/left.phtml | 20 ++++---- .../admin/views/scripts/user/adminlist.phtml | 3 +- .../admin/views/scripts/user/index.phtml | 50 ++++++++++--------- .../admin/views/scripts/user/left.phtml | 9 ++-- .../admin/views/scripts/user/list.phtml | 4 +- application/module/Users/Users.php | 2 + 7 files changed, 62 insertions(+), 52 deletions(-) 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 @@ -
    -
  • 用户管理
  • + \ No newline at end of file diff --git a/application/admin/views/scripts/user/list.phtml b/application/admin/views/scripts/user/list.phtml index 8f88a490..e1099203 100755 --- a/application/admin/views/scripts/user/list.phtml +++ b/application/admin/views/scripts/user/list.phtml @@ -2,7 +2,6 @@ $this->headTitle($this->config->title->site); $this->headTitle('后台管理'); $this->headTitle()->setSeparator(' - '); -# $this->headLink()->appendStylesheet('/css/admin.css'); $this->breadcrumb('首页'); $this->breadcrumb('后台首页'); $this->breadcrumb('用户管理'); @@ -31,7 +30,8 @@ table thead tr th {background:#EBF2F6;color:#444;}
    -
    用户列表
    +

    用户列表

    +