54 lines
1.9 KiB
PHTML
54 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/data">数据管理</a>');
|
|
$this->breadcrumb('离线数据申请管理</a>');
|
|
$this->breadcrumb()->setSeparator(' > ');
|
|
?>
|
|
<div id="leftPanel">
|
|
<?= $this->partial('data/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; ?>
|
|
<a href="/admin/data/offline/add/1">添加新的离线服务记录</a>
|
|
<?= $this->paginator; ?>
|
|
<?php if (count($this->paginator)): ?>
|
|
<table class="offline" cellspacing=0>
|
|
<thead><tr>
|
|
<th id="name">姓名</th>
|
|
<th id="unit">单位</th>
|
|
<th id="addr">地址</th>
|
|
<th id="postcode">邮编</th>
|
|
<th id="project">用途</th>
|
|
<th id="datalist">数据清单</th>
|
|
<th id="ts">申请时间</th>
|
|
<th id="name">操作</th>
|
|
</tr></thead>
|
|
<tbody>
|
|
<?php foreach ($this->paginator as $item): ?>
|
|
<tr><td class="name"><?= $item['username']; ?></td>
|
|
<td class="unit"><?= $item['unit']; ?></td>
|
|
<td class="addr"><?= $item['address']; ?></td>
|
|
<td class="postcode"><?= $item['postcode']; ?></td>
|
|
<td class="project"><?= $item['project']; ?></td>
|
|
<td><?= $item['datalist']; ?></td>
|
|
<td class="ts"><?= date('Y-m-d',strtotime($item['ts_created'])); ?></td>
|
|
<td class="action">
|
|
<a href="/admin/data/offline/edit/<?= $item['id']; ?>">编辑</a> | <a href="/admin/data/offline/delete/<?= $item['id']; ?>">删除</a></td>
|
|
</tr>
|
|
<?php endforeach; ?>
|
|
</tbody></table>
|
|
<?php endif; ?>
|
|
</div>
|