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(' > ');
?>
-
+
+ = $this->partial('user/left.phtml'); ?>
+
-
-
管理员列表
-
-
-
-
-用户名 |
-电子邮箱 |
-用户类型 |
-真实姓名 |
-电话 |
-操作 |
-
-
-paginator)): ?>
-
-paginator as $item): ?>
-
-
-= $item['username']?> |
-= $item['email']; ?> |
-= $item['usertype']; ?> |
-= $item['realname']; ?> |
-= $item['phone']; ?> |
-
-'>查看详细
- |
-
-
-
-
-
= $this->paginator; ?>
+
+
管理员列表
+
+
+
+
+ 用户名 |
+ 电子邮箱 |
+ 用户类型 |
+ 真实姓名 |
+ 电话 |
+ 操作 |
+
+
+ paginator)): ?>
+
+ paginator as $item): ?>
+
+
+ = $item['username']?> |
+ = $item['email']; ?> |
+ = $item['usertype']; ?> |
+ = $item['realname']; ?> |
+ = $item['phone']; ?> |
+
+ '>查看详细
+ |
+
+
+
+
+
= $this->paginator; ?>
+
\ 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)
{