You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
71 lines
2.3 KiB
PHP
71 lines
2.3 KiB
PHP
<div class="container-fluid mb_10">
|
|
<div class="pull-right content-action">
|
|
<a href="<?php echo Zc::url(AdminRouteConst::adminUserBoard)?>" class="btn btn-primary"><i class="glyphicon glyphicon-plus"></i>添加</a>
|
|
</div>
|
|
</div>
|
|
<div class="panel panel-default">
|
|
<div class="panel-heading">
|
|
<h3 class="panel-title"><i class="glyphicon glyphicon-th-list"></i>管理员列表</h3>
|
|
</div>
|
|
<div class="panel-body">
|
|
<?php if($errorMsg){?>
|
|
<p class="alert alert-danger">
|
|
<?php echo $errorMsg;?>
|
|
</p>
|
|
<?php }?>
|
|
<?php if($successMsg){?>
|
|
<p class="alert alert-success">
|
|
<?php echo $successMsg;?>
|
|
</p>
|
|
<?php }?>
|
|
<table class="table table-bordered table-hover">
|
|
<thead>
|
|
<tr>
|
|
<th>姓名</th>
|
|
<th>工号</th>
|
|
<th>状态</th>
|
|
<th>手机号</th>
|
|
<th width="35%">拥有角色</th>
|
|
<th width="15%">操作</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<?php foreach($adminList as $admin) {?>
|
|
<tr>
|
|
<td><?php echo $admin['notes']?></td>
|
|
<td><?php echo $admin['username']?></td>
|
|
<td><?php
|
|
switch ($admin['status']) {
|
|
case StatusConst::normal :
|
|
echo '<span class="text-success">正常</span>';
|
|
break;
|
|
case StatusConst::delete :
|
|
echo '<span class="text-danger">删除</span>';
|
|
break;
|
|
}
|
|
?></td>
|
|
<td><?php echo $admin['mobile']?></td>
|
|
<td>
|
|
<?php
|
|
$adminId = $admin['admin_id'];
|
|
|
|
if (!empty($rbacUserList[$adminId])) {
|
|
$currRbacUserId = $rbacUserList[$adminId]['rbac_user_id'];
|
|
foreach($userRoleList[$currRbacUserId] as $role) {
|
|
echo "<a href='" .Zc::url(AdminRouteConst::adminRoleBoard, array('roleId' => $role['zc_role_id'])) . "'>" . $role['role_name'] . "</a> ";
|
|
}
|
|
}
|
|
?>
|
|
</td>
|
|
<td>
|
|
<a class="btn btn-xs btn-primary" href="<?php echo Zc::url(AdminRouteConst::adminUserBoard, array('adminId'=>$admin['admin_id'], 'showType' => 'notPWD')) ?> ">编辑</a>
|
|
<a class="btn btn-xs btn-default" href="<?php echo Zc::url(AdminRouteConst::adminUserBoard, array('adminId'=>$admin['admin_id'], 'showType' => 'onlyPWD')) ?> ">重置密码</a>
|
|
</td>
|
|
</tr>
|
|
<?php }?>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
|
|
<?php echo HtmlTool::getStaticCommonFile(array('/biz/admin/rbac.js'));?>
|