2011-09-10 15:09:13 +00:00
|
|
|
<?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('在线数据下载记录</a>');
|
|
|
|
$this->breadcrumb()->setSeparator(' > ');
|
|
|
|
?>
|
|
|
|
<div id="leftPanel">
|
|
|
|
<?= $this->partial('down/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; ?>
|
2011-09-13 02:51:34 +00:00
|
|
|
|
|
|
|
|
|
|
|
<div id="rightPanel">
|
2011-09-14 09:50:39 +00:00
|
|
|
|
|
|
|
<div class="right_title"><?php if(!empty($this->title)) echo $this->title;?>共有 <?php echo $this->count;?> 条在线下载记录</div>
|
|
|
|
|
|
|
|
<div class="search">
|
|
|
|
<form action="/admin/down/search/" 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 -->
|
|
|
|
|
2011-09-13 02:51:34 +00:00
|
|
|
<table>
|
2011-09-14 09:50:39 +00:00
|
|
|
<thead>
|
|
|
|
<tr>
|
2011-09-13 02:51:34 +00:00
|
|
|
<td width='100'>姓名</td>
|
|
|
|
<td width='150'>单位</td>
|
|
|
|
<td width='350'>数据</td>
|
|
|
|
<td width='300'>用途</td>
|
|
|
|
<td width='120'>下载时间</td>
|
|
|
|
<td width='100'>操作</td>
|
|
|
|
</tr>
|
2011-09-14 09:50:39 +00:00
|
|
|
</thead>
|
2011-09-10 15:09:13 +00:00
|
|
|
<?php if (count($this->paginator)): ?>
|
2011-09-13 02:51:34 +00:00
|
|
|
<?php $autoindex=0;?>
|
2011-09-10 15:09:13 +00:00
|
|
|
<?php foreach ($this->paginator as $item): ?>
|
2011-09-13 02:51:34 +00:00
|
|
|
<?php $autoindex++;?>
|
|
|
|
<tr <?php if($autoindex%2 == 0) echo 'bgcolor="#CCCCCC"'; else echo 'bgcolor="#FFFFFF"'; ?>>
|
2011-09-14 09:50:39 +00:00
|
|
|
<td><a href="/admin/user/show/id/<?php echo $item['userid'];?>"><img src="/images/user.gif" /></a><a href="/admin/down/user/show/<?php echo $item['userid'];?>"><?= $item['username']?></a> </td>
|
2011-09-13 02:51:34 +00:00
|
|
|
<td><?= $item['unit']?></td>
|
2011-09-14 04:10:46 +00:00
|
|
|
<td><a href="/data/<?php echo $item['uuid'];?>" target="_blank"><img src="/images/data.gif" /></a><a href="/admin/down/data/show/<?php echo $item['uuid'];?>"><?php echo $item['title'];?></a></td>
|
2011-09-14 09:50:39 +00:00
|
|
|
<td><textarea readonly="readonly" style="width:300px;height:100px;border:none;font-size:12px;<?php if($autoindex%2 == 0) echo 'background:#CCCCCC;'; else echo 'background:#FFF;'; ?>"><?php echo $item['project']; ?></textarea></td>
|
2011-09-13 02:51:34 +00:00
|
|
|
<td><?php echo date('Y-m-d H:i:s', strtotime($item['ts_created'])); ?></td>
|
|
|
|
<td>
|
2011-09-14 04:10:46 +00:00
|
|
|
<a href='/admin/down/online/show/<?php echo $item['id'];?>'>详细</a>
|
|
|
|
<a href='/admin/down/online/delete/<?= $item['id'];?>/' onclick="return confirm('确定将此记录删除?')">删除</a>
|
2011-09-10 15:09:13 +00:00
|
|
|
</td>
|
2011-09-13 02:51:34 +00:00
|
|
|
</tr>
|
2011-09-10 15:09:13 +00:00
|
|
|
<?php endforeach; ?>
|
2011-09-13 02:51:34 +00:00
|
|
|
<?php endif; ?>
|
|
|
|
</table>
|
|
|
|
<div style="width:50%;text-align:left;">
|
|
|
|
<?= $this->paginator; ?>
|
|
|
|
</div>
|
2011-09-10 15:09:13 +00:00
|
|
|
</div>
|