60 lines
1.9 KiB
PHTML
60 lines
1.9 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('<a href="/admin/user">用户管理</a>');
|
|
$this->breadcrumb()->setSeparator(' > ');
|
|
?>
|
|
<div id="leftPanel">
|
|
<?= $this->partial('user/left.phtml'); ?>
|
|
</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">
|
|
<div style="font-size:16px;line-height:30px;">3年内未登录的用户列表(共 <?= $this->count_users;?> 个)</div>
|
|
|
|
<div>
|
|
<button type="button" onclick="self.location='/admin/user/sendmail/ac/send'" class="btn btn-green">发送邮件邀请用户访问</button>
|
|
</div>
|
|
|
|
<table>
|
|
<thead>
|
|
<tr>
|
|
<td width='150'>用户名</td>
|
|
<td width='250'>电子邮箱</td>
|
|
<td width='100'>用户类型</td>
|
|
<td width='200'>单位</td>
|
|
<td width='100'>真实姓名</td>
|
|
<td width='150'>最后登录</td>
|
|
</tr>
|
|
</thead><!-- table's head -->
|
|
<?php if (count($this->paginator)): ?>
|
|
<?php $autoindex=0;?>
|
|
<?php foreach ($this->paginator as $item): ?>
|
|
<?php $autoindex++;?>
|
|
<tr class="<?php if($autoindex%2 == 0) echo 'even'; else echo 'odd'; ?>">
|
|
<td><?= $item['username']?></td>
|
|
<td><?= $item['email']; ?></td>
|
|
<td><?= $item['usertype']; ?></td>
|
|
<td><?= $item['unit']; ?></td>
|
|
<td><?= $item['realname']; ?></td>
|
|
<td><?= date("Y-m-d",strtotime($item['ts_last_login'])); ?></td>
|
|
</tr>
|
|
<?php endforeach; ?>
|
|
<?php endif; ?>
|
|
</table>
|
|
<div class="pagenavi"><?= $this->paginator; ?></div>
|
|
</div>
|