143 lines
4.7 KiB
PHTML
143 lines
4.7 KiB
PHTML
<?php
|
|
$this->headTitle($this->config->title->site);
|
|
$this->headTitle($this->config->title->data);
|
|
$this->headTitle('离线申请');
|
|
$this->headTitle()->setSeparator(' - ');
|
|
$this->headLink()->appendStylesheet('/css/order.css');
|
|
$this->breadcrumb('<a href="/">首页</a>');
|
|
$this->breadcrumb('<a href="/data">'.$this->config->title->data.'</a>');
|
|
$this->breadcrumb('离线申请');
|
|
$this->breadcrumb()->setSeparator(' > ');
|
|
?>
|
|
<div id="page">
|
|
<div id="message">
|
|
<?php if ($this->md) : ?>
|
|
<p>您已经成功把<a href="/data/<?php echo $this->md['uuid']; ?>"><?php echo $this->md['title']; ?></a>放入数据申请程序中!</p>
|
|
<?php endif; if ($this->messages): foreach($this->messages as $msg): ?>
|
|
<p><?php echo $msg; ?></p>
|
|
<?php endforeach;endif; ?>
|
|
<?php if ($this->msg) : ?>
|
|
<p><?php echo $this->msg; ?></p>
|
|
<?php endif; ?>
|
|
</div>
|
|
|
|
<?php if ($this->dataorder0) : ?>
|
|
<div class="dataorder">
|
|
<div class="title">正在下载中的在线数据 <a href="/data/order/cancel/all">取消所有</a><a href="/data/order/finish/all">完成所有</a></div>
|
|
<table class="orderlist">
|
|
<thead>
|
|
<tr>
|
|
<td width="140px">开始时间</td>
|
|
<td>数据名称</td>
|
|
<td width="120px">操作</td>
|
|
</tr>
|
|
</thead>
|
|
<tbody id="tbody">
|
|
<?php foreach($this->dataorder0 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']; ?></td>
|
|
<td>
|
|
<a href="/data/order/finish/<?php echo $order['id']; ?>">完成</a>
|
|
<a href="/data/order/cancel/<?php echo $order['id']; ?>">取消下载</a>
|
|
</td>
|
|
</tr>
|
|
<?php endforeach; ?>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
<?php endif; ?>
|
|
<?php if ($this->dataorder1) : ?>
|
|
<div class="dataorder">
|
|
<div class="title">准备提交的离线申请<a href="/data/order/apply/all">提交所有离线申请</a></div>
|
|
<table class="orderlist">
|
|
<thead>
|
|
<tr>
|
|
<td width="140px">申请时间</td>
|
|
<td width="120px">数据类型</td>
|
|
<td>数据名称</td>
|
|
<td width="120px">操作</td>
|
|
</tr>
|
|
</thead>
|
|
<tbody id="tbody">
|
|
<?php foreach($this->dataorder1 as $order) : ?>
|
|
<tr>
|
|
<td><?php echo date('Y-m-d H:i:s',strtotime($order['ts_created'])); ?></td>
|
|
<td><?php print $order['datatype']?'离线数据':'在线数据'; ?></td>
|
|
<td><a href="/data/<?php echo $order['uuid']; ?>"><?php echo $order['title']; ?></a></td>
|
|
<td>
|
|
<a href="/data/order/del/<?php echo $order['id']; ?>">删除</a>
|
|
<a href="/data/order/apply/<?php echo $order['id']; ?>">离线申请</a>
|
|
</td>
|
|
</tr>
|
|
<?php endforeach; ?>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
<?php endif; ?>
|
|
<?php if ($this->dataorder2) : ?>
|
|
<div class="dataorder">
|
|
<div class="title">已提交的离线申请<a href="/data/order/pdf/1">生成PDF离线数据申请表</a></div>
|
|
<table class="orderlist">
|
|
<thead>
|
|
<tr>
|
|
<td width="140px">申请时间</td>
|
|
<td>数据名称</td>
|
|
<td width="120px">申请状态</td>
|
|
</tr>
|
|
</thead>
|
|
<tbody id="tbody">
|
|
<?php foreach($this->dataorder2 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 switch($order['status']) {
|
|
case 2:
|
|
echo "请生成PDF申请表";
|
|
break;
|
|
case 3:
|
|
echo "请打印并邮寄申请表";
|
|
break;
|
|
case 4:
|
|
echo "已收到申请,请等待审批";
|
|
break;
|
|
case 5:
|
|
echo "已通过申请,请查收邮件";
|
|
break;
|
|
default:
|
|
break;
|
|
}
|
|
?>
|
|
</td>
|
|
</tr>
|
|
<?php endforeach; ?>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
<?php endif; ?>
|
|
<?php if ($this->dataorder3) : ?>
|
|
<div class="dataorder">
|
|
<div class="title">已通过的离线申请</div>
|
|
<thead>
|
|
<tr>
|
|
<td width="140px">申请时间</td>
|
|
<td>数据名称</td>
|
|
<td width="140px">通过时间</td>
|
|
</tr>
|
|
</thead>
|
|
<?php foreach($this->dataorder3 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 echo date('Y-m-d H:i:s',strtotime($order['ts_approved'])); ?></td>
|
|
</tr>
|
|
<?php endforeach; ?>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
<?php endif; ?>
|
|
</div>
|
|
<script>
|
|
$("tbody tr").mouseover(function(){$(this).addClass("high")}).mouseout(function(){$(this).removeClass("high")})
|
|
</script>
|