link the order page to water

This commit is contained in:
wlx 2010-07-02 15:12:35 +00:00
parent 77dd825ad7
commit 2558d8712d
2 changed files with 14 additions and 13 deletions

View File

@ -6,12 +6,13 @@
$this->headLink()->appendStylesheet('/css/order.css');
$this->breadcrumb('<a href="/">首页</a>');
$this->breadcrumb('<a href="/data">'.$this->config->title->data.'</a>');
$this->breadcrumb('<a href="/water/">黑河综合遥感联合试验</a>');
$this->breadcrumb('离线申请');
$this->breadcrumb()->setSeparator(' > ');
?>
<div id="message">
<?php if ($this->md) : ?>
<p>您已经成功把<a href="/data/<?php echo $this->md['uuid']; ?>"><?php echo $this->md['title']; ?></a>放入数据申请程序中!</p>
<p>您已经成功把<a href="/water/<?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; ?>
@ -22,23 +23,23 @@
<?php if ($this->dataorder0) : ?>
<div id="dataorder0">
<h1>正在下载中的在线数据(<a href="/data/order/finish/all">完成所有</a> <a href="/data/order/cancel/all">取消所有</a></h1>
<h1>正在下载中的在线数据(<a href="/water/order/finish/all">完成所有</a> <a href="/water/order/cancel/all">取消所有</a></h1>
<ul class="title"><li class="time">开始时间</li>
<li class="name">数据名称</li>
<li class="action">操作</li>
</ul>
<?php foreach($this->dataorder0 as $order) : ?>
<ul><li class="time"><?php echo date('Y-m-d H:i:s',strtotime($order['ts_created'])); ?></li>
<li class="name"><a href="/data/<?php echo $order['uuid']; ?>"><?php echo $order['title']; ?></a></li>
<li class="action"><a href="/data/order/finish/<?php echo $order['id']; ?>">完成</a>
<a href="/data/order/cancel/<?php echo $order['id']; ?>">取消下载</a></li>
<li class="name"><a href="/water/<?php echo $order['uuid']; ?>"><?php echo $order['title']; ?></a></li>
<li class="action"><a href="/water/order/finish/<?php echo $order['id']; ?>">完成</a>
<a href="/water/order/cancel/<?php echo $order['id']; ?>">取消下载</a></li>
</ul>
<?php endforeach; ?>
</div>
<?php endif; ?>
<?php if ($this->dataorder1) : ?>
<div id="dataorder1">
<h1>准备提交的离线申请(<a href="/data/order/apply/all">提交所有离线申请</a></h1>
<h1>准备提交的离线申请(<a href="/water/order/apply/all">提交所有离线申请</a></h1>
<ul class="title"><li class="time">申请时间</li>
<li class="datatype">数据类型</li>
<li class="name">数据名称</li>
@ -47,22 +48,22 @@
<?php foreach($this->dataorder1 as $order) : ?>
<ul><li class="time"><?php echo date('Y-m-d H:i:s',strtotime($order['ts_created'])); ?></li>
<li class="datatype"><?php print $order['datatype']?'离线数据':'在线数据'; ?></li>
<li class="name"><a href="/data/<?php echo $order['uuid']; ?>"><?php echo $order['title']; ?></a></li>
<li class="action"><a href="/data/order/del/<?php echo $order['id']; ?>">删除</a>
<a href="/data/order/apply/<?php echo $order['id']; ?>">离线申请</a></li>
<li class="name"><a href="/water/<?php echo $order['uuid']; ?>"><?php echo $order['title']; ?></a></li>
<li class="action"><a href="/water/order/del/<?php echo $order['id']; ?>">删除</a>
<a href="/water/order/apply/<?php echo $order['id']; ?>">离线申请</a></li>
</ul>
<?php endforeach; ?>
</div>
<?php endif; ?>
<?php if ($this->dataorder2) : ?>
<div id="dataorder2">
<h1>已提交的离线申请(<a href="/data/order/pdf/1">生成PDF离线数据申请表</a> </h1>
<h1>已提交的离线申请(<a href="/water/order/pdf/1">生成PDF离线数据申请表</a> </h1>
<ul class="title"><li class="time">申请时间</li>
<li class="name">数据名称</li>
<li class="status">申请状态</li></ul>
<?php foreach($this->dataorder2 as $order) : ?>
<ul><li class="time"><?php echo date('Y-m-d H:i:s',strtotime($order['ts_created'])); ?></li>
<li class="name"><a href="/data/<?php echo $order['uuid']; ?>"><?php echo $order['title']; ?></a>
<li class="name"><a href="/water/<?php echo $order['uuid']; ?>"><?php echo $order['title']; ?></a>
</li>
<li class="status">
<?php switch($order['status']) {

View File

@ -98,9 +98,9 @@ else
</ul>
<div id="linkurl">
<?php if (!$md->datatype) : ?>
<a href="/data/download/uuid/<?php echo $md->uuid; ?>"><img src="/images/download.png" title="直接下载" /></a>
<a href="/water/download/uuid/<?php echo $md->uuid; ?>"><img src="/images/download.png" title="直接下载" /></a>
<?php endif; ?>
<a href="/data/order/uuid/<?php echo $md->uuid; ?>"><img src="/images/order.png" title="免费!离线申请此数据(在线数据和离线数据都可申请)"/></a>
<a href="/water/order/uuid/<?php echo $md->uuid; ?>"><img src="/images/order.png" title="免费!离线申请此数据(在线数据和离线数据都可申请)"/></a>
</div>
</div>