westdc-zf1/application/admin/views/scripts/data/offlineapp.phtml

56 lines
2.0 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">
<?= $this->paginator; ?>
<?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; ?>
<?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/offlineapp/start/<?= $item['userid']; ?>">开始</a>
<a href="/admin/data/offlineapp/finish/<?= $item['userid']; ?>">完成</a>
<a href="/admin/data/offlineapp/finish/<?= $item['userid']; ?>">取消</a>
<a href="/admin/data/offlineapp/view/<?= $item['userid']; ?>">查看</a></td>
</tr>
<?php endforeach; ?>
</tbody></table>
<?php endif; ?>
</div>