From 4833a99d8aa233a207a1ffef7cbe2130ba3d2f89 Mon Sep 17 00:00:00 2001 From: Li Jianxuan Date: Thu, 5 Jun 2014 09:49:04 +0000 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E7=94=A8=E6=88=B7=E7=AE=A1?= =?UTF-8?q?=E7=90=86=E7=9B=B8=E5=85=B3=E5=86=85=E5=AE=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../admin/views/scripts/user/adminlist.phtml | 73 ++++++++++--------- application/module/Users/Users.php | 17 +++-- 2 files changed, 48 insertions(+), 42 deletions(-) diff --git a/application/admin/views/scripts/user/adminlist.phtml b/application/admin/views/scripts/user/adminlist.phtml index 3606ba74..da80328b 100755 --- a/application/admin/views/scripts/user/adminlist.phtml +++ b/application/admin/views/scripts/user/adminlist.phtml @@ -2,46 +2,47 @@ $this->headTitle($this->config->title->site); $this->headTitle('后台管理'); $this->headTitle()->setSeparator(' - '); - $this->headLink()->appendStylesheet('/css/admin.css'); $this->breadcrumb('首页'); $this->breadcrumb('后台首页'); $this->breadcrumb('用户管理'); $this->breadcrumb()->setSeparator(' > '); ?> -
-partial('user/left.phtml'); ?> -
+
+
+ partial('user/left.phtml'); ?> +
-
-
管理员列表
-
同步管理员到geonetwork
- - - - - - - - - - - -paginator)): ?> - -paginator as $item): ?> - - - - - - - - - - - -
用户名电子邮箱用户类型真实姓名电话操作
-'>查看详细 -
- +
+
管理员列表
+
同步管理员到geonetwork
+ + + + + + + + + + + + paginator)): ?> + + paginator as $item): ?> + + + + + + + + + + + +
用户名电子邮箱用户类型真实姓名电话操作
+ '>查看详细 +
+ +
\ No newline at end of file diff --git a/application/module/Users/Users.php b/application/module/Users/Users.php index 0660bea2..64477df6 100644 --- a/application/module/Users/Users.php +++ b/application/module/Users/Users.php @@ -44,11 +44,11 @@ class Users extends \Zend_Controller_Plugin_Abstract $this->usertype = array( '普通会员' => 'member', '系统管理员' => 'administrator', - '青海省气象科学研究所' => '', - '青海省环境监测中心站' => '', - '青海省水土保持局' => '', - '青海省林业调查规划院' => '', - '青海省水文水资源局' => '' + '青海省气象科学研究所' => 'meteorologic', + '青海省环境监测中心站' => 'environment', + '青海省水土保持局' => 'watersoil', + '青海省林业调查规划院' => 'forestry', + '青海省水文水资源局' => 'hydrology' ); } @@ -59,7 +59,7 @@ class Users extends \Zend_Controller_Plugin_Abstract return $this->usertype; } - //通过ID获取User信息 + //通过ID获取User信息 public function getUser($id) { $sql="select * from users where id=?"; @@ -69,6 +69,11 @@ class Users extends \Zend_Controller_Plugin_Abstract return $rows; } + public function getUserInfo($id) + { + return $this->getUser($id); + } + //通过email地址返回用户信息是否存在 public function userExists($email = NULL) {