westdc-zf1/application/admin/views/scripts/down/online.phtml

71 lines
3.7 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 class="row">
<div class="hidden-sm hidden-xs col-md-2">
<?= $this->partial('down/left.phtml'); ?>
</div>
<?php if ($this->msg or $this->messages) :?>
<div id="message" class="alert alert-info">
<?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="col-md-10 col-sm-12">
<h4 class="right_title"><?php if(!empty($this->title)) echo $this->title;?>共有 <?php echo $this->count;?> 条在线下载记录</h4><hr />
<div class="input-group form-group">
<form action="/admin/down/search/" method="get" class="search_form">
<input type="text" name="keyword" value="<?php echo $this->keyword; ?>" class="form-control" placeholder="搜索关键字" />
<input type="hidden" name="search" value='1' />
<span class="input-group-btn"><input class="btn btn-default" type="submit" class="searchbtn" value="搜索" /></span>
</form>
</div><!-- search DIV -->
<div class="table-responsive">
<table class="stylized table table-bordered table-striped table-hover">
<thead><tr>
<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></thead>
<?php if (count($this->paginator)): ?>
<?php $autoindex=0;?>
<?php foreach ($this->paginator as $item): ?>
<?php $autoindex++;?>
<tr>
<td>
<a href="/admin/user/show/id/<?php echo $item['userid'];?>"><span class="glyphicon glyphicon-user"></span></a>
<a href="/admin/down/user/show/<?php echo $item['userid'];?>"><?= $item['username']?></a>
</td>
<td><?= $item['unit']?></td>
<td>
<a href="/data/<?php echo $item['uuid'];?>" target="_blank"><span class="glyphicon glyphicon-hdd"></span></a>
<a href="/admin/down/data/show/<?php echo $item['uuid'];?>"><?php echo $item['title'];?></a>
</td>
<td><textarea readonly="readonly" style="width:98%;height:98%;border:none;font-size:12px;background:#FFF;"><?php echo $item['project']; ?></textarea></td>
<td><?php echo date('Y-m-d H:i:s', strtotime($item['ts_created'])); ?></td>
<td>
<a href='/admin/down/online/show/<?php echo $item['id'];?>'>详细</a>
<a href='/admin/down/online/delete/<?= $item['id'];?>/' onclick="return confirm('确定将此记录删除?')">删除</a>
</td>
</tr>
<?php endforeach; ?>
<?php endif; ?>
</table>
</div>
<div class="pagenavi"><?= $this->paginator; ?></div>
</div>
</div>