108 lines
3.6 KiB
PHTML
108 lines
3.6 KiB
PHTML
<?php
|
||
$this->headTitle($this->config->title->site);
|
||
$this->headTitle($this->config->title->data);
|
||
$this->headTitle('离线申请');
|
||
$this->headTitle()->setSeparator(' - ');
|
||
$this->breadcrumb('<a href="/">首页</a>');
|
||
$this->breadcrumb('<a href="/data">'.$this->config->title->data.'</a>');
|
||
$this->breadcrumb('离线申请');
|
||
$this->breadcrumb()->setSeparator(' > ');
|
||
$this->nav[] = array('link'=>"/data/order",'title'=>'数据蓝');
|
||
?>
|
||
<?= $this->render('breadcrumbs.phtml') ?>
|
||
<div class="row">
|
||
|
||
<div class="span3">
|
||
<div class="well sidebar-nav">
|
||
<?= $this->partial('account/left.phtml'); ?>
|
||
</div><!--/.well -->
|
||
</div><!--/span-->
|
||
<div class="span9">
|
||
<h3>数据篮</h3>
|
||
<hr />
|
||
<?php
|
||
if(!empty($this->msg))
|
||
{
|
||
echo $this->msg;
|
||
}
|
||
?>
|
||
<ul class="nav nav-tabs">
|
||
|
||
<li id="Nav-order-offline1"><a href="/data/order/ac/offline1">未提交的数据</a></li>
|
||
<li id="Nav-order-offline2"><a href="/data/order/ac/offline2">正在提交的数据</a></li>
|
||
<li id="Nav-order-offline3"><a href="/data/order/ac/offline3">等待通过的申请</a></li>
|
||
<li id="Nav-order-offline4"><a href="/data/order/ac/offline4">已通过的申请</a></li>
|
||
<li id="Nav-order-online"><a href="/data/order/ac/online">在线数据</a></li>
|
||
</ul>
|
||
<!-- content -->
|
||
<?php if (!empty($this->paginator)) : ?>
|
||
<div class="pagenavi"><?= $this->paginator; ?></div>
|
||
<table class="table table-bordered table-striped">
|
||
<thead>
|
||
<th>时间</th>
|
||
<th>标题</th>
|
||
<th>
|
||
<?php if ($this->tabID=='order-offline1') {
|
||
echo '<a class="btn btn-primary" href="/data/order/apply/all">提交所有数据</a>(一次最多5条)';
|
||
} elseif ($this->tabID=='order-offline2') {
|
||
echo '<a class="btn btn-primary" href="/data/order/pdf/1">提交离线申请</a>';
|
||
} elseif ($this->tabID=='order-offline3') {
|
||
echo '申请状态';
|
||
} elseif ($this->tabID=='order-offline4') {
|
||
echo '通过时间';
|
||
}
|
||
?>
|
||
|
||
</th>
|
||
</thead>
|
||
<tbody>
|
||
<?php foreach($this->paginator as $order) : ?>
|
||
<tr>
|
||
<td><?php echo date('Y-m-d H:i:s',strtotime($order['ts_created'])); ?></td>
|
||
<td><a href="/data/<?php echo $order['uuid']; ?>"><?php echo $order['title']; ?></a></td>
|
||
<td>
|
||
<?php
|
||
if ($this->tabID=='order-offline1') {
|
||
echo '<a href="/data/order/apply/'.$order['id'].'" class="btn btn-primary">提交</a>
|
||
<a href="/data/order/cancel/'.$order['id'].'" class="btn">取消</a>';
|
||
} elseif ($this->tabID=='order-offline2') {
|
||
switch($order['status']) {
|
||
case 2:
|
||
echo "请生成PDF申请表";
|
||
echo ' <a class="btn" href="/data/order/cancel/'.$order['id'].'">取消</a>';
|
||
break;
|
||
case 3:
|
||
echo "请打印签字扫描为pdf并email或邮寄";
|
||
break;
|
||
default:
|
||
break;
|
||
}
|
||
} elseif ($this->tabID=='order-offline3') {
|
||
switch($order['status']) {
|
||
case 3:
|
||
echo "请打印签字扫描为pdf并email或邮寄";
|
||
break;
|
||
case 4:
|
||
echo "已收到申请,请等待审批。日期:";echo date('Y-m-d',strtotime($order['ts_received']));
|
||
break;
|
||
case 5:
|
||
echo "已通过申请,请查收邮件";
|
||
break;
|
||
default:
|
||
break;
|
||
}
|
||
} elseif ($this->tabID=='order-offline4') {
|
||
echo date('Y-m-d',strtotime($order['ts_approved']));
|
||
}
|
||
?>
|
||
</td>
|
||
</tr>
|
||
<?php endforeach; ?>
|
||
</tbody>
|
||
</table>
|
||
<?php endif; ?>
|
||
<!-- /content -->
|
||
</div><!--/span-->
|
||
</div><!--/row-->
|
||
<script>$('#Nav-<?= $this->tabID?>').addClass("active");</script>
|