62 lines
2.1 KiB
PHTML
Executable File
62 lines
2.1 KiB
PHTML
Executable File
<?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/down">申请管理</a>');
|
|
$this->breadcrumb('在线下载记录');
|
|
$this->breadcrumb()->setSeparator(' > ');
|
|
$this->headScript()->appendFile('/js/prototype.js');
|
|
?>
|
|
<div id="leftPanel">
|
|
<?= $this->partial('down/left.phtml'); ?>
|
|
</div>
|
|
<div id="rightPanel">
|
|
<?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 class="right_title"><?php if(!empty($this->title)) echo $this->title;?>共 <?php echo $this->count;?> 数据下载记录</div>
|
|
|
|
<div class="search">
|
|
<form action="/admin/down/user/" method="get">
|
|
<input type="hidden" name="search" value='1' />
|
|
<ul>
|
|
<li><label>搜索关键字</label><input type="text" name="keyword" value="<?php echo $this->keyword; ?>" /></li>
|
|
<li><input type="submit" class="searchbtn" value="搜索" /></li>
|
|
</ul>
|
|
</form>
|
|
</div><!-- search DIV -->
|
|
|
|
<table><thead>
|
|
<tr>
|
|
<td width='150'>姓名</td>
|
|
<td width='350'>单位</td>
|
|
<td width='150'>下载次数</td>
|
|
<td width='150'>操作</td>
|
|
</tr></thead>
|
|
<?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><a href="/admin/user/show/id/<?php echo $item['uid'];?>"><img src="/images/user.gif" /></a> <a href="/admin/down/user/show/<?php echo $item['uid'];?>"><?= $item['realname']?></a> </td>
|
|
<td><?php echo $item['unit']; ?></td>
|
|
<td><?php echo $item['num']; ?></td>
|
|
<td>
|
|
<a href='/admin/down/user/show/<?php echo $item['uid'];?>'>详细</a>
|
|
</td>
|
|
</tr>
|
|
<?php endforeach; ?>
|
|
<?php endif; ?>
|
|
</table>
|
|
<div class="pagenavi"><?= $this->paginator; ?></div>
|
|
</div>
|