61 lines
1.8 KiB
PHTML
61 lines
1.8 KiB
PHTML
|
<?php
|
||
|
$this->headTitle($this->config->title->site);
|
||
|
$this->headTitle('后台管理');
|
||
|
$this->headTitle()->setSeparator(' - ');
|
||
|
$this->headLink()->appendStylesheet('/css/admin.css');
|
||
|
$this->breadcrumb('<a href="/">首页</a>');
|
||
|
$this->breadcrumb('<a href="/admin">后台管理首页</a>');
|
||
|
$this->breadcrumb('用户列表');
|
||
|
$this->breadcrumb()->setSeparator(' > ');
|
||
|
?>
|
||
|
<div id="divContent">
|
||
|
|
||
|
<div id="leftPanel">
|
||
|
用户管理工具:
|
||
|
<ul>
|
||
|
<li><a href="/admin/user/list">普通用户列表</a></li>
|
||
|
<li><a href="/admin/user/adminlist">管理员列表</a></li>
|
||
|
</ul>
|
||
|
</div>
|
||
|
|
||
|
<?php if ($this->msg or $this->messages) :?>
|
||
|
<div id="message">
|
||
|
<?php if ($this->msg) : ?>
|
||
|
<p><?php echo $this->msg; ?></p>
|
||
|
<?php endif; if ($this->messages): foreach($this->messages as $msg): ?>
|
||
|
<p><?php echo $msg; ?></p>
|
||
|
<?php endforeach;endif; ?>
|
||
|
</div>
|
||
|
<?php endif; ?>
|
||
|
|
||
|
|
||
|
<div id="rightPanel">
|
||
|
<table>
|
||
|
<tr>
|
||
|
<td width='150'>用户名</td>
|
||
|
<td width='250'>电子邮箱</td>
|
||
|
<td width='100'>用户类型</td>
|
||
|
<td width='150'>真实姓名</td>
|
||
|
<td width='150'>操作</td>
|
||
|
</tr>
|
||
|
<?php if (count($this->paginator)): ?>
|
||
|
<?php foreach ($this->paginator as $item): ?>
|
||
|
<tr>
|
||
|
<td><?= $item['username']?></td>
|
||
|
<td><?= $item['email']; ?></td>
|
||
|
<td><?= $item['usertype']; ?></td>
|
||
|
<td><?= $item['realname']; ?></td>
|
||
|
<td>
|
||
|
<a href='/admin/user/delete/id/<?= $item['id'];?>/uname/<?= $item['username'];?>' onclick="return confirm('确定将此记录删除?')">删除</a>
|
||
|
<a href='/admin/user/show/id/<?= $item['id'];?>'>查看详细</a>
|
||
|
<a href='/admin/user/fetchpwd/email/<?= $item['email'];?>/id/<?= $item['id'];?>' onclick="return confirm('是否确定为他重置密码?')">重置密码</a>
|
||
|
</td>
|
||
|
</tr>
|
||
|
<?php endforeach; ?>
|
||
|
<?php endif; ?>
|
||
|
</table>
|
||
|
<div style="width:50%;text-align:left;">
|
||
|
<?= $this->paginator; ?>
|
||
|
</div>
|
||
|
|
||
|
</div>
|