修改了数据篮页面的样式
This commit is contained in:
parent
cdfdac313e
commit
1f8e7b3a33
|
@ -1,107 +1,162 @@
|
||||||
<?php
|
<?php
|
||||||
$this->headTitle($this->config->title->site);
|
$this->headTitle($this->config->title->site);
|
||||||
$this->headTitle($this->config->title->data);
|
$this->headTitle($this->config->title->data);
|
||||||
$this->headTitle('离线申请');
|
$this->headTitle('离线申请');
|
||||||
$this->headTitle()->setSeparator(' - ');
|
$this->headTitle()->setSeparator(' - ');
|
||||||
$this->headLink()->appendStylesheet('/css/order.css');
|
$this->breadcrumb('<a href="/">首页</a>');
|
||||||
$this->breadcrumb('<a href="/">首页</a>');
|
$this->breadcrumb('<a href="/data">'.$this->config->title->data.'</a>');
|
||||||
$this->breadcrumb('<a href="/data">'.$this->config->title->data.'</a>');
|
$this->breadcrumb('离线申请');
|
||||||
$this->breadcrumb('离线申请');
|
$this->breadcrumb()->setSeparator(' > ');
|
||||||
$this->breadcrumb()->setSeparator(' > ');
|
?>
|
||||||
?>
|
<div class="row">
|
||||||
<div id="message">
|
<div class="span3">
|
||||||
<?php if ($this->md) : ?>
|
<div class="well sidebar-nav">
|
||||||
<p>您已经成功把<a href="/data/<?php echo $this->md['uuid']; ?>"><?php echo $this->md['title']; ?></a>放入数据申请程序中!</p>
|
<?= $this->partial('account/left.phtml'); ?>
|
||||||
<?php endif; if ($this->messages): foreach($this->messages as $msg): ?>
|
</div><!--/.well -->
|
||||||
<p><?php echo $msg; ?></p>
|
</div><!--/span-->
|
||||||
<?php endforeach;endif; ?>
|
<div class="span9">
|
||||||
<?php if ($this->msg) : ?>
|
<h3>数据篮</h3>
|
||||||
<p><?php echo $this->msg; ?></p>
|
<hr />
|
||||||
<?php endif; ?>
|
<?php if(!empty($this->msg)) { ?>
|
||||||
</div>
|
<?php if(!empty($this->jump_url)) {?>
|
||||||
|
<div class="alert <?= $this->AlertType;?>">
|
||||||
<?php if ($this->dataorder0) : ?>
|
<a data-dismiss="alert" class="close">×</a>
|
||||||
<div id="dataorder0">
|
<?php echo $this->msg ?>
|
||||||
<h1>正在下载中的在线数据(<a href="/data/order/finish/all">完成所有</a> <a href="/data/order/cancel/all">取消所有</a>)</h1>
|
</div>
|
||||||
<ul class="title"><li class="time">开始时间</li>
|
<?php if(!empty($this->jump_url)) { ?>
|
||||||
<li class="name">数据名称</li>
|
<br /><a href="<?= $this->jump_url ?>">如果页面没有自动跳转请点击这里</a>
|
||||||
<li class="action">操作</li>
|
<script language="javascript">setTimeout("self.location='<?php echo $this->jump_url ?>'",3000);</script>
|
||||||
</ul>
|
<?php } ?>
|
||||||
<?php foreach($this->dataorder0 as $order) : ?>
|
<?php } ?>
|
||||||
<ul><li class="time"><?php echo date('Y-m-d H:i:s',strtotime($order['ts_created'])); ?></li>
|
<?php }else{?>
|
||||||
<li class="name"><a href="/data/<?php echo $order['uuid']; ?>"><?php echo $order['title']; ?></a></li>
|
<?php if(!empty($this->error)) { ?>
|
||||||
<li class="action">(<a href="/data/order/finish/<?php echo $order['id']; ?>">完成</a>
|
<div class="alert alert-block alert-error fade in" id="Alert-error-box">
|
||||||
<a href="/data/order/cancel/<?php echo $order['id']; ?>">取消下载</a>)</li>
|
<a class="close" data-dismiss="alert" href="#">×</a>
|
||||||
</ul>
|
<?php if(!is_array($this->error)) { ?><h4 class="alert-heading"><?= $this->error ?></h4><?php } else { ?>
|
||||||
<?php endforeach; ?>
|
<ul>
|
||||||
</div>
|
<?php foreach($this->error as $v) { ?>
|
||||||
<?php endif; ?>
|
<li><?= $v ?></li>
|
||||||
<?php if ($this->dataorder1) : ?>
|
<?php } ?>
|
||||||
<div id="dataorder1">
|
</ul>
|
||||||
<h1>准备提交的离线申请(<a href="/data/order/apply/all">提交所有离线申请</a>)</h1>
|
<?php } ?>
|
||||||
<ul class="title"><li class="time">申请时间</li>
|
</div>
|
||||||
<li class="datatype">数据类型</li>
|
<?php } ?>
|
||||||
<li class="name">数据名称</li>
|
<!-- content -->
|
||||||
<li class="action">操作</li>
|
<?php if ($this->dataorder0) : ?>
|
||||||
</ul>
|
<div id="row">
|
||||||
<?php foreach($this->dataorder1 as $order) : ?>
|
<h4>正在下载中的在线数据(<a href="/data/order/finish/all">完成所有</a> <a href="/data/order/cancel/all">取消所有</a>)</h4>
|
||||||
<ul><li class="time"><?php echo date('Y-m-d H:i:s',strtotime($order['ts_created'])); ?></li>
|
<table class="table table-bordered table-striped">
|
||||||
<li class="datatype"><?php print $order['datatype']?'离线数据':'在线数据'; ?></li>
|
<thead>
|
||||||
<li class="name"><a href="/data/<?php echo $order['uuid']; ?>"><?php echo $order['title']; ?></a></li>
|
<th>开始时间</th>
|
||||||
<li class="action">(<a href="/data/order/cancel/<?php echo $order['id']; ?>">取消</a>
|
<th>数据名称</th>
|
||||||
<a href="/data/order/apply/<?php echo $order['id']; ?>">离线申请</a>)</li>
|
<th>操作</th>
|
||||||
</ul>
|
</thead>
|
||||||
<?php endforeach; ?>
|
<tbody>
|
||||||
</div>
|
<?php foreach($this->dataorder0 as $order) : ?>
|
||||||
<?php endif; ?>
|
<tr>
|
||||||
<?php if ($this->dataorder2) : ?>
|
<td><?php echo date('Y-m-d H:i:s',strtotime($order['ts_created'])); ?></td>
|
||||||
<div id="dataorder2">
|
<td><a href="<?php echo $order['uuid']; ?>"><?php echo $order['title']; ?></a></td>
|
||||||
<h1>已提交的离线申请(<a href="/data/order/pdf/1">生成PDF离线数据申请表</a> )</h1>
|
<td><a href="/data/order/finish/<?php echo $order['id']; ?>" class="btn btn-success btn-small">完成</a>
|
||||||
<ul class="title"><li class="time">申请时间</li>
|
<a href="/data/order/cancel/<?php echo $order['id']; ?>" class="btn btn-small">取消下载</a></td>
|
||||||
<li class="name">数据名称</li>
|
</tr>
|
||||||
<li class="status">申请状态</li></ul>
|
<?php endforeach; ?>
|
||||||
<?php foreach($this->dataorder2 as $order) : ?>
|
</tbody>
|
||||||
<ul><li class="time"><?php echo date('Y-m-d H:i:s',strtotime($order['ts_created'])); ?></li>
|
</table>
|
||||||
<li class="name"><a href="/data/<?php echo $order['uuid']; ?>"><?php echo $order['title']; ?></a>
|
</div>
|
||||||
</li>
|
<?php endif; ?>
|
||||||
<li class="status">
|
|
||||||
<?php switch($order['status']) {
|
<?php if ($this->dataorder1) : ?>
|
||||||
case 2:
|
<hr />
|
||||||
echo "请生成PDF申请表";
|
<div id="row">
|
||||||
echo ' <a href="/data/order/cancel/'.$order['id'].'">取消</a>';
|
<h4>准备提交的离线申请(<a href="/data/order/apply/all">提交所有离线申请</a>)</h4>
|
||||||
break;
|
<table class="table table-bordered table-striped">
|
||||||
case 3:
|
<thead>
|
||||||
echo "请打印并邮寄申请表";
|
<th>申请时间</th>
|
||||||
break;
|
<th>数据类型</th>
|
||||||
case 4:
|
<th>数据名称</th>
|
||||||
echo "已收到申请,请等待审批";
|
<th>操作</th>
|
||||||
break;
|
</thead>
|
||||||
case 5:
|
<tbody>
|
||||||
echo "已通过申请,请查收邮件";
|
<?php foreach($this->dataorder1 as $order) : ?>
|
||||||
break;
|
<tr>
|
||||||
default:
|
<td><?php echo date('Y-m-d H:i:s',strtotime($order['ts_created'])); ?></td>
|
||||||
break;
|
<td><?php print $order['datatype']?'离线数据':'在线数据'; ?></td>
|
||||||
}
|
<td><a href="<?php echo $order['uuid']; ?>"><?php echo $order['title']; ?></a></td>
|
||||||
?>
|
<td><a href="/data/order/apply/<?php echo $order['id']; ?>" class="btn btn-primary btn-small">离线申请</a>
|
||||||
</li>
|
<a href="/data/order/cancel/<?php echo $order['id']; ?>" class="btn btn-small">取消下载</a></td>
|
||||||
</ul>
|
</tr>
|
||||||
<?php endforeach; ?>
|
<?php endforeach; ?>
|
||||||
</div>
|
</tbody>
|
||||||
<?php endif; ?>
|
</table>
|
||||||
<?php if ($this->dataorder3) : ?>
|
</div>
|
||||||
<div id="dataorder3">
|
<?php endif; ?>
|
||||||
<h1>已通过的离线申请</h1>
|
|
||||||
<ul class="title"><li class="time">申请时间</li>
|
<?php if ($this->dataorder2) : ?>
|
||||||
<li class="name">数据名称</li>
|
<hr />
|
||||||
<li class="status">通过时间</li>
|
<div id="row">
|
||||||
</ul>
|
<h4>已提交的离线申请(<a href="/data/order/pdf/1">生成PDF离线数据申请表</a> )</h4>
|
||||||
|
<table class="table table-bordered table-striped">
|
||||||
<?php foreach($this->dataorder3 as $order) : ?>
|
<thead>
|
||||||
<ul><li class="time"><?php echo date('Y-m-d H:i:s',strtotime($order['ts_created'])); ?></li>
|
<th>申请时间</th>
|
||||||
<li class="name"><a href="/data/<?php echo $order['uuid']; ?>"><?php echo $order['title']; ?></a>
|
<th>数据名称</th>
|
||||||
</li>
|
<th>申请状态</th>
|
||||||
<li class="status"><?php echo date('Y-m-d H:i:s',strtotime($order['ts_approved'])); ?></li>
|
</thead>
|
||||||
</ul>
|
<tbody>
|
||||||
<?php endforeach; ?>
|
<?php foreach($this->dataorder2 as $order) : ?>
|
||||||
</div>
|
<tr>
|
||||||
<?php endif; ?>
|
<td><?php echo date('Y-m-d H:i:s',strtotime($order['ts_created'])); ?></td>
|
||||||
|
<td><a href="<?php echo $order['uuid']; ?>"><?php echo $order['title']; ?></a></td>
|
||||||
|
<td>
|
||||||
|
<?php switch($order['status']) {
|
||||||
|
case 2:
|
||||||
|
echo "请生成PDF申请表";
|
||||||
|
echo ' <a href="/data/order/cancel/'.$order['id'].'">取消</a>';
|
||||||
|
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) : ?>
|
||||||
|
<hr />
|
||||||
|
<div id="row">
|
||||||
|
<h4>已通过的离线申请</h4>
|
||||||
|
<table class="table table-bordered table-striped">
|
||||||
|
<thead>
|
||||||
|
<th>申请时间</th>
|
||||||
|
<th>数据名称</th>
|
||||||
|
<th>通过时间</th>
|
||||||
|
</thead>
|
||||||
|
<tbody>
|
||||||
|
<?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="<?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; ?>
|
||||||
|
|
||||||
|
<!-- /content -->
|
||||||
|
<?php }?>
|
||||||
|
</div><!--/span-->
|
||||||
|
</div><!--/row-->
|
||||||
|
|
Loading…
Reference in New Issue