修改了数据篮页面的样式

This commit is contained in:
Li Jianxuan 2013-04-03 02:30:38 +00:00
parent cdfdac313e
commit 1f8e7b3a33
1 changed files with 162 additions and 107 deletions

View File

@ -3,68 +3,110 @@
$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 id="message"> <div class="row">
<?php if ($this->md) : ?> <div class="span3">
<p>您已经成功把<a href="/data/<?php echo $this->md['uuid']; ?>"><?php echo $this->md['title']; ?></a>放入数据申请程序中!</p> <div class="well sidebar-nav">
<?php endif; if ($this->messages): foreach($this->messages as $msg): ?> <?= $this->partial('account/left.phtml'); ?>
<p><?php echo $msg; ?></p> </div><!--/.well -->
<?php endforeach;endif; ?> </div><!--/span-->
<?php if ($this->msg) : ?> <div class="span9">
<p><?php echo $this->msg; ?></p> <h3>数据篮</h3>
<?php endif; ?> <hr />
<?php if(!empty($this->msg)) { ?>
<?php if(!empty($this->jump_url)) {?>
<div class="alert <?= $this->AlertType;?>">
<a data-dismiss="alert" class="close">×</a>
<?php echo $this->msg ?>
</div> </div>
<?php if(!empty($this->jump_url)) { ?>
<br /><a href="<?= $this->jump_url ?>">如果页面没有自动跳转请点击这里</a>
<script language="javascript">setTimeout("self.location='<?php echo $this->jump_url ?>'",3000);</script>
<?php } ?>
<?php } ?>
<?php }else{?>
<?php if(!empty($this->error)) { ?>
<div class="alert alert-block alert-error fade in" id="Alert-error-box">
<a class="close" data-dismiss="alert" href="#">×</a>
<?php if(!is_array($this->error)) { ?><h4 class="alert-heading"><?= $this->error ?></h4><?php } else { ?>
<ul>
<?php foreach($this->error as $v) { ?>
<li><?= $v ?></li>
<?php } ?>
</ul>
<?php } ?>
</div>
<?php } ?>
<!-- content -->
<?php if ($this->dataorder0) : ?> <?php if ($this->dataorder0) : ?>
<div id="dataorder0"> <div id="row">
<h1>正在下载中的在线数据(<a href="/data/order/finish/all">完成所有</a> <a href="/data/order/cancel/all">取消所有</a></h1> <h4>正在下载中的在线数据(<a href="/data/order/finish/all">完成所有</a> <a href="/data/order/cancel/all">取消所有</a></h4>
<ul class="title"><li class="time">开始时间</li> <table class="table table-bordered table-striped">
<li class="name">数据名称</li> <thead>
<li class="action">操作</li> <th>开始时间</th>
</ul> <th>数据名称</th>
<th>操作</th>
</thead>
<tbody>
<?php foreach($this->dataorder0 as $order) : ?> <?php foreach($this->dataorder0 as $order) : ?>
<ul><li class="time"><?php echo date('Y-m-d H:i:s',strtotime($order['ts_created'])); ?></li> <tr>
<li class="name"><a href="/data/<?php echo $order['uuid']; ?>"><?php echo $order['title']; ?></a></li> <td><?php echo date('Y-m-d H:i:s',strtotime($order['ts_created'])); ?></td>
<li class="action"><a href="/data/order/finish/<?php echo $order['id']; ?>">完成</a> <td><a href="<?php echo $order['uuid']; ?>"><?php echo $order['title']; ?></a></td>
<a href="/data/order/cancel/<?php echo $order['id']; ?>">取消下载</a></li> <td><a href="/data/order/finish/<?php echo $order['id']; ?>" class="btn btn-success btn-small">完成</a>
</ul> <a href="/data/order/cancel/<?php echo $order['id']; ?>" class="btn btn-small">取消下载</a></td>
</tr>
<?php endforeach; ?> <?php endforeach; ?>
</tbody>
</table>
</div> </div>
<?php endif; ?> <?php endif; ?>
<?php if ($this->dataorder1) : ?> <?php if ($this->dataorder1) : ?>
<div id="dataorder1"> <hr />
<h1>准备提交的离线申请(<a href="/data/order/apply/all">提交所有离线申请</a></h1> <div id="row">
<ul class="title"><li class="time">申请时间</li> <h4>准备提交的离线申请(<a href="/data/order/apply/all">提交所有离线申请</a></h4>
<li class="datatype">数据类型</li> <table class="table table-bordered table-striped">
<li class="name">数据名称</li> <thead>
<li class="action">操作</li> <th>申请时间</th>
</ul> <th>数据类型</th>
<th>数据名称</th>
<th>操作</th>
</thead>
<tbody>
<?php foreach($this->dataorder1 as $order) : ?> <?php foreach($this->dataorder1 as $order) : ?>
<ul><li class="time"><?php echo date('Y-m-d H:i:s',strtotime($order['ts_created'])); ?></li> <tr>
<li class="datatype"><?php print $order['datatype']?'离线数据':'在线数据'; ?></li> <td><?php echo date('Y-m-d H:i:s',strtotime($order['ts_created'])); ?></td>
<li class="name"><a href="/data/<?php echo $order['uuid']; ?>"><?php echo $order['title']; ?></a></li> <td><?php print $order['datatype']?'离线数据':'在线数据'; ?></td>
<li class="action"><a href="/data/order/cancel/<?php echo $order['id']; ?>">取消</a> <td><a href="<?php echo $order['uuid']; ?>"><?php echo $order['title']; ?></a></td>
<a href="/data/order/apply/<?php echo $order['id']; ?>">离线申请</a></li> <td><a href="/data/order/apply/<?php echo $order['id']; ?>" class="btn btn-primary btn-small">离线申请</a>
</ul> <a href="/data/order/cancel/<?php echo $order['id']; ?>" class="btn btn-small">取消下载</a></td>
</tr>
<?php endforeach; ?> <?php endforeach; ?>
</tbody>
</table>
</div> </div>
<?php endif; ?> <?php endif; ?>
<?php if ($this->dataorder2) : ?> <?php if ($this->dataorder2) : ?>
<div id="dataorder2"> <hr />
<h1>已提交的离线申请(<a href="/data/order/pdf/1">生成PDF离线数据申请表</a> </h1> <div id="row">
<ul class="title"><li class="time">申请时间</li> <h4>已提交的离线申请(<a href="/data/order/pdf/1">生成PDF离线数据申请表</a> </h4>
<li class="name">数据名称</li> <table class="table table-bordered table-striped">
<li class="status">申请状态</li></ul> <thead>
<th>申请时间</th>
<th>数据名称</th>
<th>申请状态</th>
</thead>
<tbody>
<?php foreach($this->dataorder2 as $order) : ?> <?php foreach($this->dataorder2 as $order) : ?>
<ul><li class="time"><?php echo date('Y-m-d H:i:s',strtotime($order['ts_created'])); ?></li> <tr>
<li class="name"><a href="/data/<?php echo $order['uuid']; ?>"><?php echo $order['title']; ?></a> <td><?php echo date('Y-m-d H:i:s',strtotime($order['ts_created'])); ?></td>
</li> <td><a href="<?php echo $order['uuid']; ?>"><?php echo $order['title']; ?></a></td>
<li class="status"> <td>
<?php switch($order['status']) { <?php switch($order['status']) {
case 2: case 2:
echo "请生成PDF申请表"; echo "请生成PDF申请表";
@ -83,25 +125,38 @@
break; break;
} }
?> ?>
</li> </td>
</ul> </tr>
<?php endforeach; ?> <?php endforeach; ?>
</tbody>
</table>
</div> </div>
<?php endif; ?> <?php endif; ?>
<?php if ($this->dataorder3) : ?>
<div id="dataorder3">
<h1>已通过的离线申请</h1>
<ul class="title"><li class="time">申请时间</li>
<li class="name">数据名称</li>
<li class="status">通过时间</li>
</ul>
<?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) : ?> <?php foreach($this->dataorder3 as $order) : ?>
<ul><li class="time"><?php echo date('Y-m-d H:i:s',strtotime($order['ts_created'])); ?></li> <tr>
<li class="name"><a href="/data/<?php echo $order['uuid']; ?>"><?php echo $order['title']; ?></a> <td><?php echo date('Y-m-d H:i:s',strtotime($order['ts_created'])); ?></td>
</li> <td><a href="<?php echo $order['uuid']; ?>"><?php echo $order['title']; ?></a></td>
<li class="status"><?php echo date('Y-m-d H:i:s',strtotime($order['ts_approved'])); ?></li> <td><?php echo date('Y-m-d H:i:s',strtotime($order['ts_approved'])); ?></td>
</ul> </tr>
<?php endforeach; ?> <?php endforeach; ?>
</tbody>
</table>
</div> </div>
<?php endif; ?> <?php endif; ?>
<!-- /content -->
<?php }?>
</div><!--/span-->
</div><!--/row-->