63 lines
2.6 KiB
PHTML
63 lines
2.6 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/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; ?>
|
|
|
|
|
|
<div id="rightPanel">
|
|
|
|
<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 -->
|
|
|
|
<?php if (count($this->paginator)): ?>
|
|
<?php $autoindex=0;?>
|
|
<?php foreach ($this->paginator as $item): ?>
|
|
<?php $autoindex++;?>
|
|
<div id="datalist">
|
|
<ul>
|
|
<li>
|
|
<label>姓名:</label><a href="/admin/down/user/show/<?php echo $item['userid'];?>"><?= $item['username']; ?></a><br />
|
|
<label>单位:</label><?= $item['unit']; ?><br />
|
|
<label>地址:</label><?= $item['address']; ?><br />
|
|
<label>邮编:</label><?= $item['postcode']; ?><br />
|
|
<label>用途:</label><br /><textarea readonly="readonly" style="width:500px;height:70px;font-size:12px;"><?= $item['project']; ?></textarea><br />
|
|
<label>数据:</label><br /><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><br />
|
|
<label>申请时间:</label><?= date('Y-m-d',strtotime($item['ts_created'])); ?><br />
|
|
<label>操作:</label> <a href='/admin/down/online/show/<?php echo $item['id'];?>'>详细</a>
|
|
<a href='/admin/down/online/delete/<?= $item['id'];?>/' onclick="return confirm('确定将此记录删除?')">删除</a>
|
|
</li>
|
|
</ul>
|
|
</div>
|
|
|
|
<?php endforeach; ?>
|
|
<?php endif; ?>
|
|
<div class="pagenavi"><?= $this->paginator; ?></div>
|
|
</div>
|