在data/view页面中添加了dataservice

This commit is contained in:
Li Jianxuan 2013-08-28 02:49:07 +00:00
parent 849918408b
commit 643ccaad7a
3 changed files with 21 additions and 7 deletions

View File

@ -9,6 +9,9 @@
$this->breadcrumb()->setSeparator(' > ');
$this->theme->AppendPlus($this,'google_map_v3');
$this->theme->AppendPlus($this,'colorbox');
if(!empty($this->dataService)) {
$this->theme->AppendModel($this,"dataservice");
}
?>
<style>
h3.gs_rt{font-size:110%;}
@ -336,12 +339,14 @@ endforeach;
在线下载
</a>
<?php else: ?>
<?php if(!empty($this->dataService)) { ?>
<a href="javascript:void(0);" class="btn btn-primary btn-large btn-block" title="此数据需要选择要下载的子集" onclick="westdc.dataservice.choiceData('<?= $md->uuid ?>');">
<?php
if(!empty($this->dataService)) { ?>
<?php $this->theme->AppendPlus($this,'datepicker'); ?>
<a href="javascript:void(0);" class="btn btn-primary btn-large btn-block" title="此数据需要选择要下载的子集" onclick="westdc.dataservice.choiceData('<?= $md->uuid ?>',this);">
<?php }else{ ?>
<a href="/data/order/uuid/<?php echo $md->uuid; ?>" class="btn btn-primary btn-large btn-block" title="免费!离线申请此数据(在线数据和离线数据都可申请)">
<?php } ?>
放入数据篮
放入数据篮
</a>
<?php endif;endif; ?>
<a href="javascript:void(0);" class="btn btn-block" title="喜欢此数据可以将它放到收藏夹中下次浏览">

View File

@ -12,7 +12,7 @@
$this->theme->AppendPlus($this,'google_map_v3');
$this->theme->AppendPlus($this,'colorbox');
if(!empty($this->dataService)) {
$this->theme->AppendModel($this,"dataservice");
$this->theme->AppendModel($this,"dataservice");
}
?>
<?= $this->render('breadcrumbs.phtml') ?>
@ -371,7 +371,7 @@ endforeach;
<a href="/data/order/uuid/<?php echo $md->uuid; ?>" class="btn btn-primary btn-large btn-block" title="免费!离线申请此数据(在线数据和离线数据都可申请)">
<?php } ?>
放入数据篮
</a>
</a>
<?php endif;endif; ?>
<a href="javascript:void(0);" onclick="method.like('<?php echo $md->uuid; ?>',this)" class="btn btn-block" title="喜欢此数据可以将它放到收藏夹中下次浏览">
收藏此数据

View File

@ -11,6 +11,9 @@
$this->theme->AppendPlus($this,'google_map_v3');
$this->theme->AppendPlus($this,'colorbox');
$this->nav[] = array('link'=>"/water",'title'=>'黑河综合遥感联合试验');
if(!empty($this->dataService)) {
$this->theme->AppendModel($this,"dataservice");
}
?>
<style>
h3.gs_rt{font-size:110%;}
@ -336,9 +339,15 @@ endforeach;
在线下载
</a>
<?php else: ?>
<a href="/data/order/uuid/<?php echo $md->uuid; ?>" class="btn btn-primary btn-large btn-block" title="免费!离线申请此数据(在线数据和离线数据都可申请)">
<?php
if(!empty($this->dataService)) { ?>
<?php $this->theme->AppendPlus($this,'datepicker'); ?>
<a href="javascript:void(0);" class="btn btn-primary btn-large btn-block" title="此数据需要选择要下载的子集" onclick="westdc.dataservice.choiceData('<?= $md->uuid ?>',this);">
<?php }else{ ?>
<a href="/data/order/uuid/<?php echo $md->uuid; ?>" class="btn btn-primary btn-large btn-block" title="免费!离线申请此数据(在线数据和离线数据都可申请)">
<?php } ?>
放入数据篮
</a>
</a>
<?php endif;endif; ?>
</div>