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

72 lines
3.3 KiB
PHTML
Raw Normal View History

2010-11-08 02:15:39 +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>
<div id="rightPanel">
2010-11-08 02:15:39 +00:00
<?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 class="right_title">离线数据申请管理</div>
2011-09-16 03:21:19 +00:00
<a href="/admin/down/offlineapp/reset/-1" onclick="return confirm('是否重置该申请?')">重置1年前的所有未收到申请表的记录</a>
| <a href="/admin/down/offlineapp/status/4">已收到的申请</a>
2012-02-16 03:56:46 +00:00
| <a href="/admin/down/offlineapp/status/-1">已拒绝的申请</a>
| <a href="/admin/down/offlineapp">待处理的申请</a>
| <a href="/admin/down/offline">已通过的申请(离线服务记录)</a>
2010-11-08 02:15:39 +00:00
<?php if (count($this->paginator)): ?>
<table>
2010-11-08 02:15:39 +00:00
<thead><tr>
<th width='70'>姓名</th>
<th width='150'>单位</th>
<th width='150'>地址</th>
<th width='50'>邮编</th>
<th width='300'>用途</th>
<th width='300'>数据清单</th>
<th width='80'>申请时间</th>
<th width='60'>操作</th>
2010-11-08 02:15:39 +00:00
</tr></thead>
<tbody>
<?php $autoindex=0;?>
<?php foreach ($this->paginator as $item): ?>
<?php $autoindex++;?>
<tr <?php if($autoindex%2 == 0) echo 'bgcolor="#CCCCCC"'; else echo 'bgcolor="#FFFFFF"'; ?>>
<td><a href="/admin/down/offlineapp/view/<?= $item['id']; ?>"><?= $item['username']; ?></a></td>
<td><?= $item['unit']; ?></td>
<td><?= $item['address']; ?></td>
<td><?= $item['postcode']; ?></td>
<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;'; ?>"><?= $item['project']; ?></textarea></td>
<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;'; ?>"><?= $item['datalist']; ?></textarea></td>
<td><?= date('Y-m-d',strtotime($item['ts_created'])); ?></td>
<td>
2012-02-16 04:04:32 +00:00
<?php if ($item['datastatus']==3) : ?>
<a href="/admin/down/offlineapp/start/<?= $item['id']; ?>" onclick="return confirm('确定收到该申请?')">收到</a>
2012-02-16 03:54:15 +00:00
<?php endif; ?>
<a href="/admin/down/offlineapp/finish/<?= $item['id']; ?>" onclick="return confirm('确定确定通过该申请?')">通过</a>
<a href="/admin/down/offlineapp/cancel/<?= $item['id']; ?>" onclick="return confirm('确定将此记录删除?')">删除</a>
2011-09-16 03:21:19 +00:00
<a href="/admin/down/offlineapp/deny/<?= $item['id']; ?>" onclick="return confirm('确定拒绝该申请?')">拒绝</a>
<a href="/admin/down/offlineapp/reset/<?= $item['id']; ?>" onclick="return confirm('是否重置该申请?')">重置</a>
</td>
2010-11-08 02:15:39 +00:00
</tr>
<?php endforeach; ?>
</tbody></table>
<?php endif; ?>
2011-10-12 14:53:03 +00:00
<div class="pagenavi"><?= $this->paginator; ?></div>
2010-11-08 02:15:39 +00:00
</div>