This commit is contained in:
avene 2018-06-22 18:41:42 +08:00
parent a8de38d2d4
commit c1732f8c03
7 changed files with 594 additions and 455 deletions

View File

@ -32,7 +32,8 @@ logging.file = /var/www/test.westgis.ac.cn/data/logs/debug.log
page.limit=10
import.dir=../data/import
title.site=三江源国家公园星空地一体化生态监测及数据平台
title.data=数据产品
title.data=数据服务
title.news=新闻动态
title.heihe=黑河计划数据管理中心
title.yrnmr=黄河上游宁蒙河段综合数据
title.glacier=中国冰川资源及其变化调查

View File

@ -1,102 +0,0 @@
<?php
$this->headTitle($this->config->title->site);
$this->headTitle('新闻中心');
$this->headTitle()->setSeparator(' - ');
$this->breadcrumb('<a href="/">首页</a>');
$this->breadcrumb('新闻中心');
$this->breadcrumb()->setSeparator(' > ');
$this->headLink()->appendStylesheet('/static-sanji/css/new-list.css');
?>
<div class="body-warp">
<div class="nav" id="nav">
<ul>
<?php
if(count($this->types))
{
foreach($this->types as $k=>$v)
{
$haed = "";
if(!empty($v[$this->deepField])) {$haed = str_repeat(' ',$v[$this->deepField]);}
echo '<li><a href="'.$v['url'].'">'.$haed.$v['title'].'</a></li>';
$haed = "";
}
}
?>
</ul>
</div>
<div class="list-warp container">
<ul>
<li><a href="#">海河流域多尺度地表通量与气象要素观测数据集发布</a><span>2018-02-03</span></li>
<li><a href="#">海河流域多尺度地表通量与气象要素观测数据集数据正式发布</a><span>2018-02-03</span></li>
<li><a href="#">海河流域多尺度地表测数据集数据数据正式发布</a><span>2018-02-03</span></li>
<li><a href="#">海河流域多尺度地表通量与气象要素观测数据集数据正式发布</a><span>2018-02-03</span></li>
<li><a href="#">海河流域多尺度地量与气象要素观测</a><span>2018-02-03</span></li>
<li><a href="#">海河流域多尺度地表通量与气象要素观测数据集数据式发布</a><span>2018-02-03</span></li>
<li><a href="#">海河流域多尺度地表通量与气象要素观测数据集数据正式发布</a><span>2018-02-03</span></li>
<li><a href="#">海河流域多尺度地表通量与气象要素观测数据集数据正式发布</a><span>2018-02-03</span></li>
<li><a href="#">海河流域多尺度地表通量与气象要素数据集数据正式发布</a><span>2018-02-03</span></li>
<li><a href="#">海河流域多尺度地表通量与气象要素观测数据集数据正式据正式发布</a><span>2018-02-03</span></li>
<li><a href="#">海河流域多尺度地表通量与气象要素观测数据式发布</a><span>2018-02-03</span></li>
<li><a href="#">海河流域多尺度地表通量与气象要素观测数据集数据正式发布</a><span>2018-02-03</span></li>
<li><a href="#">海河流域多尺度地表通量与气象要素观测集数数据正式发布</a><span>2018-02-03</span></li>
<li><a href="#">海河流域多尺度地表通量与气象要素观测数据集数据正式发布</a><span>2018-02-03</span></li>
<li><a href="#">海河流域多尺度地表通量与气象要素观据集数据正式发布</a><span>2018-02-03</span></li>
<li><a href="#">海河流域多尺度地表通量与气象要素观测数据集数据正式发布</a><span>2018-02-03</span></li>
<li><a href="#">海河流域多尺度地表通量与气象要素观测数据集数据正式发布</a><span>2018-02-03</span></li>
</ul>
</div>
<div class="page">
<span>共125条记录</span>
<span>共6页</span>
<span><a href="javascript:" class="prev">上一页</a></span>
<span class="pageSize"><a href="javascript:" class="pageClass">[1]</a></span>
<span class="pageSize"><a href="javascript:">2</a></span>
<span class="pageSize"><a href="javascript:">3</a></span>
<span class="pageSize"><a href="javascript:">4</a></span>
<span><a href="javascript:" class="next">下一页</a></span>
<span><a href="#">返回顶部</a></span>
</div>
</div>
<div class="row">
<div class="span3">
<div class="sidebar-nav bs-review-nav">
<ul class="nav nav-list bs-review-sidenav">
<li class="active"><a href="/archives"><i class="icon-chevron-right"></i>新闻中心</a></li>
<?php
if(count($this->types))
{
foreach($this->types as $k=>$v)
{
$haed = "";
if(!empty($v[$this->deepField])) {$haed = str_repeat(' ',$v[$this->deepField]);}
echo '<li><a href="'.$v['url'].'"><i class="icon-chevron-right"></i>'.$haed.$v['title'].'</a></li>';
$haed = "";
}
}
?>
</ul>
</div>
</div>
<div class="span9">
<div class="row" id="container">
<?php
foreach($this->lists as $v)
{?>
<?php if(count($v['list'])>0) {?>
<div class="span4 items">
<h3><a href="<?= $v['url'] ?>"><?= $v['title'] ?></a></h3>
<div class="list-content">
<ul class="unstyled">
<?php foreach($v['list'] as $arc){?>
<li><small>[<?php echo date("Y-m-d",strtotime( $arc['ts_published'] )); ?>]</small>
<a href="<?= $arc['url']?>"><?= $arc['title'] ?></a></li>
<?php }?>
</ul>
</div>
</div>
<?php } }
?>
</div>
</div>
</div>

View File

@ -1,5 +1,6 @@
<?php
$this->headTitle($this->config->title->site);
$this->headTitle($this->config->title->news);
$this->headTitle('新闻动态');
$this->headTitle()->setSeparator(' - ');
$this->headLink()->appendStylesheet('/static-sanjy-np/css/index.css');
@ -11,11 +12,7 @@ $this->headLink()->appendStylesheet('/static-sanjy-np/css/about.css')
<div class="row">
<div class="col-md-3 col-sm-4 bcid-cat">新闻动态</div>
<div class="col-md-9 col-sm-8 location">
<img src="/static-sanjy-np/img/address.png" alt=""/>
<span>当前位置:
<a href="/">主页</a> &gt;
<a href="/archives">新闻动态</a>
</span>
<?= $this->render('breadcrumbs.phtml'); ?>
</div>
</div>
</div>

View File

@ -1,8 +1,9 @@
<!--当前定位-->
<?php if(!empty($this->nav)){ ?>
<div class="container">
<div class="col-sm-12">
<div class="col-md-9 col-sm-8 location">
<div class="fixTab">
<img src="/static-sanjy-np/img/address.png" alt="" />
<?php foreach ($this->nav as $k=>$v){?>
<a href="<?= $v['link'] ?>"><?= $v['title']?></a>
<?php if(isset($this->nav[$k+1])) {?> <span>/</span> <?php } ?>

View File

@ -12,11 +12,7 @@ $this->headLink()->appendStylesheet('/static-sanjy-np/css/about.css');
<div class="row">
<div class="col-md-3 col-sm-4 bcid-cat">数据服务</div>
<div class="col-md-9 col-sm-8 location">
<img src="static-sanjy-np/img/address.png" alt=""/>
<span>当前位置:
<a href="/">主页</a> &gt;
<a href="/data">数据服务</a>
</span>
<?= $this->render('breadcrumbs.phtml'); ?>
</div>
</div>
</div>
@ -52,13 +48,13 @@ $this->headLink()->appendStylesheet('/static-sanjy-np/css/about.css');
</div>
<div class="newRight">
<div class="newTopTitle">
<span><?php echo $this->escape($md['title']);?></span>
<i><?php echo date("Y-m-d",strtotime($md['ts_published'])); ?></i>
<span><?php echo $this->escape($md['title']); ?></span>
<i><?php echo date("Y-m-d", strtotime($md['ts_published'])); ?></i>
</div>
<p>
<?= $this->escape($md['description']) ?>
</p>
<a class="more" href="/data/<?php echo $md['uuid'];?>">查看详情</a>
<a class="more" href="/data/<?php echo $md['uuid']; ?>">查看详情</a>
</div>
</li>
<?php endforeach; ?>

View File

@ -0,0 +1,349 @@
<?php
$this->headTitle($this->config->title->site);
$this->headTitle($this->config->title->data);
$this->headTitle($this->metadata->title);
$this->headTitle()->setSeparator(' - ');
$this->theme->AppendPlus($this,'tianditu');
$this->headLink()->appendStylesheet('/static-sanji-v2/css/dataProduct.css');
$this->headLink()->appendStylesheet('/static-sanji-v2/css/detail.css');
$this->headLink()->appendStylesheet('/static-sanji-v2/css/header-position.css');
$this->headLink()->appendStylesheet('/static-sanji-v2/css/detail-intro.css');
$this->nav[] = array('link'=>"/data/". $this->metadata->uuid,'title'=>$this->metadata->title);
?>
<?= $this->render('breadcrumbs.phtml'); ?>
<?php $md=$this->metadata; if ($md):?>
<!--数据列表-->
<div class="container">
<div class="col-md-12">
<div class="col-md-8 col-sm-8 leftBox">
<h5><?php echo $this->escape($md->title); ?></h5>
<?php if ($md->title_en) echo '<p class="englishTitle">'.$this->escape($md->title_en).'</p>';?>
<div class="smallSize">
<?php
$kw=array('discipline'=>'学科','place'=>'地点','theme'=>'主题','temporal'=>'时间','stratum'=>'地层');
$kt='';
$i=0;
foreach($this->keys as $cg) :
if ($kt==$cg['keytype']) :
$i+=1;
else :
if (!empty($kt)) echo '</span>';
$kt=$cg['keytype'];
$i=0;
endif;
if ($i==0) {
?>
<span><a href="/data/tag/keytype/<?php echo $kt; ?>"><?php echo $kw[$kt]; ?>: </a>
<?
}
echo '<a href="/data/tag/key/'.urlencode($cg['keyword']).'">'.$cg['keyword'].'</a> ';
endforeach;
?>
</div>
<div class="dataContent">
<div class="thumb">
<a href="javascript:void(0);">
<img src="/service/thumb/uuid/<?php echo $md->uuid;?>"/>
</a>
</div>
<p><?php echo str_replace(array("\r\n", "\n", "\r"),'</p><p>',$md->description);?></p>
</div>
<?php if ($this->mcitation && (count($this->mcitation)>1) ) : ?>
<h6>本数据要求的多篇文献引用</h6>
<?php foreach($this->mcitation as $ref) :
echo '<p>'.$ref->reference;
echo '<a href="/knowledge/paper/id/'.$ref->id.'"><i class="icon-info-sign text-success"></i>查看</a>';
if (empty($ref->link))
{
if(!empty($ref->attid))
echo '<a href="/service/attach/id/'.$ref->attid.'"><i class="icon-download text-success"></i>下载</a>';
}else{
echo '<a href="'.$ref->link.'"><i class="icon-download text-success"></i>下载</a>';
}
echo "</p>";
endforeach;
?>
<?php endif; ?>
<?php if (($md->citation) || (count($this->mcitation)==1)) :
if (!$md->citation) $md->citation=$this->mcitation[0]->reference;
?>
<h6>本数据引用方式</h6>
<a class="pull-right" href="/archives/help/platform/archive-23.html" ><i class="icon-comment"></i>数据引用帮助</a>
<p><?php if (empty($md->datadoi) || !strpos($md->citation,$md->datadoi)) : ?><span class="label label-info">文章的引用</span>
<?php endif; echo $this->escape($md->citation);if (strpos($md->citation,$md->datadoi)) : ?>
(下载引用:<a href="/service/ris/lang/cn/uuid/<?php echo $md->uuid; ?>">RIS格式</a> | <a href="/service/ris/lang/en/uuid/<?php echo $md->uuid; ?>">RIS英文格式</a> | <a href="/service/bibtex/lang/cn/uuid/<?php echo $md->uuid; ?>">Bibtex格式</a> | <a href="/service/bibtex/lang/en/uuid/<?php echo $md->uuid; ?>">Bibtex英文格式</a>)
<?php endif; ?>
</p>
<?php if (!empty($md->datadoi) && !strpos($md->citation,$md->datadoi)) : ?>
<p><span class="label label-info">数据的引用</span><?php
echo substr($md->authors,1,-1).'. '.$md->title.'. '.$md->publisher.', '.(empty($md->ts_published)?$md->publish_year:date('Y',strtotime($md->ts_published))).'. doi:'.$md->doi;
echo ' ['.str_replace('"','',substr($md->author_en,1,-1)).'. '.$md->title_en.'. '.$md->publisher_en.', '.(empty($md->ts_published)?$md->publish_year:date('Y',strtotime($md->ts_published))).'. doi:'.$md->doi.']';
?> (下载引用:<a href="/service/ris/lang/cn/uuid/<?php echo $md->uuid; ?>">RIS格式</a> | <a href="/service/ris/lang/en/uuid/<?php echo $md->uuid; ?>">RIS英文格式</a> | <a href="/service/bibtex/lang/cn/uuid/<?php echo $md->uuid; ?>">Bibtex格式</a> | <a href="/service/bibtex/lang/en/uuid/<?php echo $md->uuid; ?>">Bibtex英文格式</a>)</p>
<?php endif; ?>
<?php endif; ?>
<?php if ($this->ref) : ?>
<h6>相关文献(作者推荐)</h6>
<?php foreach($this->ref as $ref) :
echo '<p>'.$ref->reference;
echo '<a href="/knowledge/paper/id/'.$ref->id.'"><i class="icon-info-sign text-success"></i>查看</a>';
if (empty($ref->link))
{
if(!empty($ref->attid))
echo '<a href="/service/attach/id/'.$ref->attid.'"><i class="icon-download text-success"></i>下载</a>';
}else{
echo '<a href="'.$ref->link.'"><i class="icon-download text-success"></i>下载</a>';
}
echo "</p>";
endforeach;
?>
<?php endif;?>
<?php if ($this->themeref) :?>
<h6>专题文献</h6>
<?php foreach($this->themeref as $ref) :
echo '<p>'.$ref->reference;
echo '<a href="/knowledge/paper/id/'.$ref->id.'"><i class="icon-info-sign text-success"></i>查看</a>';
if (empty($ref->link))
{
if(!empty($ref->attid))
echo ' | <a href="/service/attach/id/'.$ref->attid.'"><i class="icon-download text-success"></i>下载</a>';
}else{
echo ' | <a href="'.$ref->link.'"><i class="icon-download text-success"></i>下载</a>';
}
echo "</p>";
endforeach;
?>
<?php endif; ?>
<?php if ($this->userref) : ?>
<h6>数据施引文献</h6>
<?php foreach($this->userref as $ref) :
echo '<p>'.$ref->reference;
echo '<a href="/knowledge/paper/id/'.$ref->id.'"><i class="icon-info-sign text-success"></i>查看</a>';
if (empty($ref->link))
{
if(!empty($ref->attid))
echo '<a href="/service/attach/id/'.$ref->attid.'"><i class="icon-download text-success"></i>下载</a>';
}else{
echo '<a href="'.$ref->link.'"><i class="icon-download text-success"></i>下载</a>';
}
echo "</p>";
endforeach;
if (count($this->userref)==15)
{
echo '<a class="btn btn-success pull-right" href="/knowledge/user/uuid/'.$md->uuid.'" ><i class="icon-info-sign"></i>更多施引文献</a>';
}
?>
<?php endif; ?>
<h6>数据使用声明</h6>
<?php
if ($this->uselimits) :
foreach($this->uselimits as $uselimit) :
echo '<p>'.str_replace(array("\r\n", "\n", "\r"),'</p><p>',$this->escape($uselimit->uselimit)).'</p>';
endforeach;
?>
<?php else : ?>
<p>为尊重知识产权、保障数据作者的权益、扩展数据中心的服务、评估数据的应用潜力,请数据使用者在使用数据所产生的研究成果中(包括公开发表的论文、论著、数据产品和未公开发表的研究报告、数据产品等成果),明确注明数据来源和数据作者。对于转载(二次或多次发布)的数据,作者还须注明原始数据来源。</p>
<p>中文发表的成果参考以下规范注明: 数据来源于时空三极大数据平台(http://www.poles.ac.cn)</p>
<p>英文发表的成果依据以下规范注明: The data set is provided by Cold and Arid Regions Sciences Data Center at Lanzhou (http://www.poles.ac.cn)</p>
<?php endif; ?>
<?php if($this->data_archives){ ?>
<h6>数据使用声明</h6>
<ul class="list-unstyled">
<?php
foreach($this->data_archives as $v){?>
<li><a href="<?= $v['url']['archive_url']?>"><?= $v['title']?></a></li>
<?php } ?>
</ul>
<?php }?>
<?php if ($md->suppinfo || $this->fund) : ?>
<h6>资助项目</h6>
<?php if(!empty($this->fund)) : ?>
<ul class="list-unstyled">
<?php foreach($this->fund as $k=>$v) : ?>
<li><?= $v['fund_type'] ?><a href="/data/fund/id/<?= $v['id'] ?>"><?= $v['title'] ?></a>(项目编号:<?= $v['fund_id']?>) [<?= $v['fund_type_en'] ?>(No. <?= $v['fund_id']?>)]</li>
<?php endforeach; ?>
</ul>
<?php elseif(!empty($md->suppinfo)) : ?>
<?php echo '<p>'.str_replace(array("\r\n", "\n", "\r"),'</p><p>',$this->escape($md->suppinfo)).'</p>';?>
<?php endif; ?>
<?php endif; ?>
<!--
<?php if ($this->resources) : ?>
<h6>相关资源</h6>
<ul class="list-unstyled">
<?php foreach($this->resources as $link) : ?>
<li><a href="<?php echo $link->linkage; ?>" title="<?php echo $link->description; ?>">
<?php
if (!empty($link->name))
echo $link->name;
elseif (!empty($link->description))
echo $link->description;
else
echo $link->linkage;
?></a></li>
<?php endforeach; ?>
</ul>
<?php endif; ?>
-->
<div class="">
<ul id="myTab" class="nav nav-tabs">
<li class="active">
<a href="#home1" data-toggle="tab">相关数据 </a>
</li>
<li>
<a href="#home2" data-toggle="tab">服务记录 </a>
</li>
<li>
<a href="#home3" data-toggle="tab">给我推荐 </a>
</li>
</ul>
<div id="myTabContent" class="tab-content">
<div class="tab-pane fade in active" id="home1">
<p>暂无数据</p>
</div>
<div class="tab-pane fade in" id="home2">
<?php if ($this->downhistory) : ?>
<p>最近10条服务记录如下</p>
<ul start="1">
<?php
foreach($this->downhistory as $v){
echo '<li>'.date("Y-m-d",strtotime($v->ts_created))." ".$v->unit." ".$v->realname;
if (!empty($v->offlineproject))
echo ' 用途:'.$v->offlineproject;
elseif (!empty($v->onlineproject))
echo ' 用途:'.$v->onlineproject;
echo '</li>';
}
?>
</ul>
<?php else : ?>
<p>暂时没有服务记录,欢迎您下载使用!</p>
<?php endif; ?>
</div>
<div class="tab-pane fade in" id="home3">
<p>暂无数据</p>
</div>
</div>
</div>
</div>
<div class="col-md-3 col-sm-3 rightBox">
<h6>空间位置</h6>
<div class="topMap" id='watermap' style="width:100%;height:300px;">
<img src="/static-sanji-v2/img/banner1.jpg"/>
</div>
<h6>数据细节</h6>
<ul>
<?php if ($md->fileformat) : ?>
<li>格式:<span><?php echo $md->fileformat; ?></span></li>
<?php endif; ?>
<li>大小:<span><?php echo $md->filesize; ?>MB</span></li>
<?php if ($this->downloaded>9) :?>
<li>下载:<span><?php echo $this->downloaded; ?></span></li>
<?php endif; ?>
<li>浏览:<span><?php echo $this->viewed; ?></span></li>
<?php if (!empty($md->timebegin)) : ?>
<li>数据时间范围:<span><?php echo date('Y-m-d',strtotime($md->timebegin));if (!empty($md->timeend)) echo " 至 ".date('Y-m-d',strtotime($md->timeend)); ?></span></li>
<?php endif; ?>
<li>数据共享方式:<span><?php if ($md->datatype) print "离线"; else print "在线(可直接下载)";?></span></li>
<li>元数据更新时间:<span><?php print date('Y-m-d',strtotime($md->ts_created)); ?></span></li>
</ul>
<?php if ($md->status>0 and $md->status<5) : ?>
<a href="/review/review/uuid/<?php echo $md->uuid; ?>" class="addBtn">数据评审</a>
<?php else : if (!$md->datatype) : ?>
<a href="/data/todownload/?uuid=<?= $md->uuid?>" class="addBtn">下载数据</a>
<?php else: ?>
<?php
if(!empty($this->dataService)) { ?>
<?php $this->theme->AppendPlus($this,'datepicker'); ?>
<a href="javascript:void(0);" class="addBtn" title="此数据需要选择要下载的子集" onclick="westdc.dataservice.choiceData('<?= $md->uuid ?>',this);">
<?php }else{ ?>
<a href="/data/order/uuid/<?php echo $md->uuid; ?>" class="addBtn" title="免费!离线申请此数据(在线数据和离线数据都可申请)">放入数据篮</a>
<?php } ?>
放入数据篮
</a>
<?php endif;endif; ?>
<h6>联系信息</h6>
<div class="">
<?php
$party_zh=array('resourceProvider'=>'资源提供者','custodian'=>'维护者','owner'=>'拥有者','user'=>'用户','distributor'=>'数据服务联系人','originator'=>'创建者','pointOfContact'=>'联系人','principalInvestigator'=>'数据调查与处理者','processor'=>'处理者','publisher'=>'元数据发布者','author'=>'元数据作者');
$r='';
$i=0;
foreach($this->authors as $k=>$author) :
if ($author->role!=$r)
{
$r=$author->role;
$i=0;
if ($k>0) echo '</p>';
echo '<p>'.$party_zh[$author->role].'';
}
if ($i>0) echo '';
$i+=1;
if (!empty($author->email) && $r!='principalInvestigator')
echo '<a href="mailto:'.$author->email.'">';
echo '<strong title="'.$author->organisation.'">';
if (!empty($author->individual))
echo $author->individual;
else
echo $author->organisation;
echo '</strong>';
if (!empty($author->email)) echo '</a>';
if ($k+1==count($this->authors)) echo '</p>';
endforeach;
?>
</div>
</div>
</div>
</div>
<script type="text/javascript" charset="utf-8">
var config = { projection: "EPSG:4326"};
var map=new TMap("watermap",config);
var lat=<?= ($md->south+$md->north)/2; ?>;
var lng=<?= ($md->east+$md->west)/2; ?>;
map.centerAndZoom(new TLngLat(lng,lat),12);
map.setMapType(TMAP_HYBRID_MAP);
<?php if ($md->north==$md->south && $md->east==$md->west) :?>
var marker=new TMarker(new TLngLat(lng,lat));
map.addOverLay(marker);
<?php else :?>
var p1=new TLngLat(<?= $md->west ?>,<?= $md->south ?>);
var p2=new TLngLat(<?= $md->west ?>,<?= $md->north ?>);
var p3=new TLngLat(<?= $md->east ?>,<?= $md->north ?>);
var p4=new TLngLat(<?= $md->east ?>,<?= $md->south ?>);
map.setViewport(new Array(p1,p2,p3,p4));
var bounds = new TBounds(<?= $md->west; ?>,<?= $md->south; ?>,<?= $md->east; ?>,<?= $md->north; ?>);
var config = {
strokeColor:"red", //折线颜色
fillColor:"#FFFFFF", //填充颜色。当参数为空时,折线覆盖物将没有填充效果
strokeWeight:"3px", //折线的宽度,以像素为单位
opacity:0.3, //折线的透明度取值范围0 - 1
strokeStyle:"dashed" //折线的样式solid或dashed
};
var rect = new TRect(bounds,config);
map.addOverLay(rect);
//map.zoomOut();
<?php endif; ?>
var config = {
type:"TMAP_NAVIGATION_CONTROL_SMALL", //缩放平移的显示类型
anchor:"TMAP_ANCHOR_TOP_LEFT", //缩放平移控件显示的位置
offset:[0,0] //缩放平移控件的偏移值 showZoomInfo:true //是否显示级别提示信息true表示显示false表示隐藏。
};
//创建缩放平移控件对象
control=new TNavigationControl(config);
//添加缩放平移控件
map.addControl(control);
</script>
<?php else: ?>
<p>Cannot find the metadata.</p>
<p>没有找到对应的元数据。</p>
<?php endif;?>

View File

@ -1,348 +1,245 @@
<?php
$this->headTitle($this->config->title->site);
$this->headTitle($this->config->title->data);
$this->headTitle($this->metadata->title);
$this->headTitle()->setSeparator(' - ');
$this->theme->AppendPlus($this,'tianditu');
$this->headLink()->appendStylesheet('/static-sanji-v2/css/dataProduct.css');
$this->headLink()->appendStylesheet('/static-sanji-v2/css/detail.css');
$this->headLink()->appendStylesheet('/static-sanji-v2/css/header-position.css');
$this->headLink()->appendStylesheet('/static-sanji-v2/css/detail-intro.css');
$this->nav[] = array('link'=>"/data/". $this->metadata->uuid,'title'=>$this->metadata->title);
$this->headTitle($this->config->title->site);
$this->headTitle($this->config->title->data);
$this->headTitle($this->metadata->title);
$this->headTitle()->setSeparator(' - ');
$this->theme->AppendPlus($this, 'tianditu');
$this->headLink()->appendStylesheet('/static-sanjy-np/css/index.css');
$this->headLink()->appendStylesheet('/static-sanjy-np/css/about.css');
$this->headLink()->appendStylesheet('/static-sanjy-np/css/dataDetail.css');
$this->nav[] = array('link' => "/data/" . $this->metadata->uuid, 'title' => $this->metadata->title);
?>
<?= $this->render('breadcrumbs.phtml'); ?>
<?php $md=$this->metadata; if ($md):?>
<!--数据列表-->
<div class="container">
<div class="col-md-12">
<div class="col-md-8 col-sm-8 leftBox">
<h5><?php echo $this->escape($md->title); ?></h5>
<?php if ($md->title_en) echo '<p class="englishTitle">'.$this->escape($md->title_en).'</p>';?>
<div class="smallSize">
<?php
$kw=array('discipline'=>'学科','place'=>'地点','theme'=>'主题','temporal'=>'时间','stratum'=>'地层');
$kt='';
$i=0;
foreach($this->keys as $cg) :
if ($kt==$cg['keytype']) :
$i+=1;
else :
if (!empty($kt)) echo '</span>';
$kt=$cg['keytype'];
$i=0;
endif;
if ($i==0) {
?>
<span><a href="/data/tag/keytype/<?php echo $kt; ?>"><?php echo $kw[$kt]; ?>: </a>
<?
}
echo '<a href="/data/tag/key/'.urlencode($cg['keyword']).'">'.$cg['keyword'].'</a> ';
endforeach;
?>
</div>
<div class="dataContent">
<div class="thumb">
<a href="javascript:void(0);">
<img src="/service/thumb/uuid/<?php echo $md->uuid;?>"/>
</a>
<div class="breadcrumb-wrapper">
<div class="container">
<div class="row">
<div class="col-md-3 col-sm-4 bcid-cat">数据详情</div>
<?= $this->render('breadcrumbs.phtml'); ?>
</div>
<p><?php echo str_replace(array("\r\n", "\n", "\r"),'</p><p>',$md->description);?></p>
</div>
<?php if ($this->mcitation && (count($this->mcitation)>1) ) : ?>
<h6>本数据要求的多篇文献引用</h6>
<?php foreach($this->mcitation as $ref) :
echo '<p>'.$ref->reference;
echo '<a href="/knowledge/paper/id/'.$ref->id.'"><i class="icon-info-sign text-success"></i>查看</a>';
if (empty($ref->link))
{
if(!empty($ref->attid))
echo '<a href="/service/attach/id/'.$ref->attid.'"><i class="icon-download text-success"></i>下载</a>';
}else{
echo '<a href="'.$ref->link.'"><i class="icon-download text-success"></i>下载</a>';
}
echo "</p>";
endforeach;
?>
<?php endif; ?>
<?php if (($md->citation) || (count($this->mcitation)==1)) :
if (!$md->citation) $md->citation=$this->mcitation[0]->reference;
?>
<h6>本数据引用方式</h6>
<a class="pull-right" href="/archives/help/platform/archive-23.html" ><i class="icon-comment"></i>数据引用帮助</a>
<p><?php if (empty($md->datadoi) || !strpos($md->citation,$md->datadoi)) : ?><span class="label label-info">文章的引用</span>
<?php endif; echo $this->escape($md->citation);if (strpos($md->citation,$md->datadoi)) : ?>
(下载引用:<a href="/service/ris/lang/cn/uuid/<?php echo $md->uuid; ?>">RIS格式</a> | <a href="/service/ris/lang/en/uuid/<?php echo $md->uuid; ?>">RIS英文格式</a> | <a href="/service/bibtex/lang/cn/uuid/<?php echo $md->uuid; ?>">Bibtex格式</a> | <a href="/service/bibtex/lang/en/uuid/<?php echo $md->uuid; ?>">Bibtex英文格式</a>)
<?php endif; ?>
</p>
<?php if (!empty($md->datadoi) && !strpos($md->citation,$md->datadoi)) : ?>
<p><span class="label label-info">数据的引用</span><?php
echo substr($md->authors,1,-1).'. '.$md->title.'. '.$md->publisher.', '.(empty($md->ts_published)?$md->publish_year:date('Y',strtotime($md->ts_published))).'. doi:'.$md->doi;
echo ' ['.str_replace('"','',substr($md->author_en,1,-1)).'. '.$md->title_en.'. '.$md->publisher_en.', '.(empty($md->ts_published)?$md->publish_year:date('Y',strtotime($md->ts_published))).'. doi:'.$md->doi.']';
?> (下载引用:<a href="/service/ris/lang/cn/uuid/<?php echo $md->uuid; ?>">RIS格式</a> | <a href="/service/ris/lang/en/uuid/<?php echo $md->uuid; ?>">RIS英文格式</a> | <a href="/service/bibtex/lang/cn/uuid/<?php echo $md->uuid; ?>">Bibtex格式</a> | <a href="/service/bibtex/lang/en/uuid/<?php echo $md->uuid; ?>">Bibtex英文格式</a>)</p>
<?php endif; ?>
<?php endif; ?>
<?php if ($this->ref) : ?>
<h6>相关文献(作者推荐)</h6>
<?php foreach($this->ref as $ref) :
echo '<p>'.$ref->reference;
echo '<a href="/knowledge/paper/id/'.$ref->id.'"><i class="icon-info-sign text-success"></i>查看</a>';
if (empty($ref->link))
{
if(!empty($ref->attid))
echo '<a href="/service/attach/id/'.$ref->attid.'"><i class="icon-download text-success"></i>下载</a>';
}else{
echo '<a href="'.$ref->link.'"><i class="icon-download text-success"></i>下载</a>';
}
echo "</p>";
endforeach;
?>
<?php endif;?>
<?php if ($this->themeref) :?>
<h6>专题文献</h6>
<?php foreach($this->themeref as $ref) :
echo '<p>'.$ref->reference;
echo '<a href="/knowledge/paper/id/'.$ref->id.'"><i class="icon-info-sign text-success"></i>查看</a>';
if (empty($ref->link))
{
if(!empty($ref->attid))
echo ' | <a href="/service/attach/id/'.$ref->attid.'"><i class="icon-download text-success"></i>下载</a>';
}else{
echo ' | <a href="'.$ref->link.'"><i class="icon-download text-success"></i>下载</a>';
}
echo "</p>";
endforeach;
?>
<?php endif; ?>
<?php if ($this->userref) : ?>
<h6>数据施引文献</h6>
<?php foreach($this->userref as $ref) :
echo '<p>'.$ref->reference;
echo '<a href="/knowledge/paper/id/'.$ref->id.'"><i class="icon-info-sign text-success"></i>查看</a>';
if (empty($ref->link))
{
if(!empty($ref->attid))
echo '<a href="/service/attach/id/'.$ref->attid.'"><i class="icon-download text-success"></i>下载</a>';
}else{
echo '<a href="'.$ref->link.'"><i class="icon-download text-success"></i>下载</a>';
}
echo "</p>";
endforeach;
if (count($this->userref)==15)
{
echo '<a class="btn btn-success pull-right" href="/knowledge/user/uuid/'.$md->uuid.'" ><i class="icon-info-sign"></i>更多施引文献</a>';
}
?>
<?php endif; ?>
<h6>数据使用声明</h6>
<?php
if ($this->uselimits) :
foreach($this->uselimits as $uselimit) :
echo '<p>'.str_replace(array("\r\n", "\n", "\r"),'</p><p>',$this->escape($uselimit->uselimit)).'</p>';
endforeach;
?>
<?php else : ?>
<p>为尊重知识产权、保障数据作者的权益、扩展数据中心的服务、评估数据的应用潜力,请数据使用者在使用数据所产生的研究成果中(包括公开发表的论文、论著、数据产品和未公开发表的研究报告、数据产品等成果),明确注明数据来源和数据作者。对于转载(二次或多次发布)的数据,作者还须注明原始数据来源。</p>
<p>中文发表的成果参考以下规范注明: 数据来源于时空三极大数据平台(http://www.poles.ac.cn)</p>
<p>英文发表的成果依据以下规范注明: The data set is provided by Cold and Arid Regions Sciences Data Center at Lanzhou (http://www.poles.ac.cn)</p>
<?php endif; ?>
<?php if($this->data_archives){ ?>
<h6>数据使用声明</h6>
<ul class="list-unstyled">
<?php
foreach($this->data_archives as $v){?>
<li><a href="<?= $v['url']['archive_url']?>"><?= $v['title']?></a></li>
<?php } ?>
</ul>
<?php }?>
<?php if ($md->suppinfo || $this->fund) : ?>
<h6>资助项目</h6>
<?php if(!empty($this->fund)) : ?>
<ul class="list-unstyled">
<?php foreach($this->fund as $k=>$v) : ?>
<li><?= $v['fund_type'] ?><a href="/data/fund/id/<?= $v['id'] ?>"><?= $v['title'] ?></a>(项目编号:<?= $v['fund_id']?>) [<?= $v['fund_type_en'] ?>(No. <?= $v['fund_id']?>)]</li>
<?php endforeach; ?>
</ul>
<?php elseif(!empty($md->suppinfo)) : ?>
<?php echo '<p>'.str_replace(array("\r\n", "\n", "\r"),'</p><p>',$this->escape($md->suppinfo)).'</p>';?>
<?php endif; ?>
<?php endif; ?>
<!--
<?php if ($this->resources) : ?>
<h6>相关资源</h6>
<ul class="list-unstyled">
<?php foreach($this->resources as $link) : ?>
<li><a href="<?php echo $link->linkage; ?>" title="<?php echo $link->description; ?>">
<?php
if (!empty($link->name))
echo $link->name;
elseif (!empty($link->description))
echo $link->description;
else
echo $link->linkage;
?></a></li>
<?php endforeach; ?>
</ul>
<?php endif; ?>
-->
<div class="">
<ul id="myTab" class="nav nav-tabs">
<li class="active">
<a href="#home1" data-toggle="tab">相关数据 </a>
</li>
<li>
<a href="#home2" data-toggle="tab">服务记录 </a>
</li>
<li>
<a href="#home3" data-toggle="tab">给我推荐 </a>
</li>
</ul>
<div id="myTabContent" class="tab-content">
<div class="tab-pane fade in active" id="home1">
<p>暂无数据</p>
</div>
<div class="tab-pane fade in" id="home2">
<?php if ($this->downhistory) : ?>
<p>最近10条服务记录如下</p>
<ul start="1">
<?php
foreach($this->downhistory as $v){
echo '<li>'.date("Y-m-d",strtotime($v->ts_created))." ".$v->unit." ".$v->realname;
if (!empty($v->offlineproject))
echo ' 用途:'.$v->offlineproject;
elseif (!empty($v->onlineproject))
echo ' 用途:'.$v->onlineproject;
echo '</li>';
}
?>
</ul>
<?php else : ?>
<p>暂时没有服务记录,欢迎您下载使用!</p>
<?php endif; ?>
</div>
<div class="tab-pane fade in" id="home3">
<p>暂无数据</p>
</div>
</div>
</div>
</div>
<div class="col-md-3 col-sm-3 rightBox">
<h6>空间位置</h6>
<div class="topMap" id='watermap' style="width:100%;height:300px;">
<img src="/static-sanji-v2/img/banner1.jpg"/>
</div>
<h6>数据细节</h6>
<ul>
<?php if ($md->fileformat) : ?>
<li>格式:<span><?php echo $md->fileformat; ?></span></li>
<?php endif; ?>
<li>大小:<span><?php echo $md->filesize; ?>MB</span></li>
<?php if ($this->downloaded>9) :?>
<li>下载:<span><?php echo $this->downloaded; ?></span></li>
<?php endif; ?>
<li>浏览:<span><?php echo $this->viewed; ?></span></li>
<?php if (!empty($md->timebegin)) : ?>
<li>数据时间范围:<span><?php echo date('Y-m-d',strtotime($md->timebegin));if (!empty($md->timeend)) echo " 至 ".date('Y-m-d',strtotime($md->timeend)); ?></span></li>
<?php endif; ?>
<li>数据共享方式:<span><?php if ($md->datatype) print "离线"; else print "在线(可直接下载)";?></span></li>
<li>元数据更新时间:<span><?php print date('Y-m-d',strtotime($md->ts_created)); ?></span></li>
</ul>
<?php if ($md->status>0 and $md->status<5) : ?>
<a href="/review/review/uuid/<?php echo $md->uuid; ?>" class="addBtn">数据评审</a>
<?php else : if (!$md->datatype) : ?>
<a href="/data/todownload/?uuid=<?= $md->uuid?>" class="addBtn">下载数据</a>
<?php else: ?>
<?php
if(!empty($this->dataService)) { ?>
<?php $this->theme->AppendPlus($this,'datepicker'); ?>
<a href="javascript:void(0);" class="addBtn" title="此数据需要选择要下载的子集" onclick="westdc.dataservice.choiceData('<?= $md->uuid ?>',this);">
<?php }else{ ?>
<a href="/data/order/uuid/<?php echo $md->uuid; ?>" class="addBtn" title="免费!离线申请此数据(在线数据和离线数据都可申请)">放入数据篮</a>
<?php } ?>
放入数据篮
</a>
<?php endif;endif; ?>
<h6>联系信息</h6>
<div class="">
<?php
$party_zh=array('resourceProvider'=>'资源提供者','custodian'=>'维护者','owner'=>'拥有者','user'=>'用户','distributor'=>'数据服务联系人','originator'=>'创建者','pointOfContact'=>'联系人','principalInvestigator'=>'数据调查与处理者','processor'=>'处理者','publisher'=>'元数据发布者','author'=>'元数据作者');
$r='';
$i=0;
foreach($this->authors as $k=>$author) :
if ($author->role!=$r)
{
$r=$author->role;
$i=0;
if ($k>0) echo '</p>';
echo '<p>'.$party_zh[$author->role].'';
}
if ($i>0) echo '';
$i+=1;
if (!empty($author->email) && $r!='principalInvestigator')
echo '<a href="mailto:'.$author->email.'">';
echo '<strong title="'.$author->organisation.'">';
if (!empty($author->individual))
echo $author->individual;
else
echo $author->organisation;
echo '</strong>';
if (!empty($author->email)) echo '</a>';
if ($k+1==count($this->authors)) echo '</p>';
endforeach;
?>
</div>
</div>
</div>
</div>
<script type="text/javascript" charset="utf-8">
var config = { projection: "EPSG:4326"};
var map=new TMap("watermap",config);
var lat=<?= ($md->south+$md->north)/2; ?>;
var lng=<?= ($md->east+$md->west)/2; ?>;
map.centerAndZoom(new TLngLat(lng,lat),12);
map.setMapType(TMAP_HYBRID_MAP);
<?php if ($md->north==$md->south && $md->east==$md->west) :?>
var marker=new TMarker(new TLngLat(lng,lat));
map.addOverLay(marker);
<?php else :?>
var p1=new TLngLat(<?= $md->west ?>,<?= $md->south ?>);
var p2=new TLngLat(<?= $md->west ?>,<?= $md->north ?>);
var p3=new TLngLat(<?= $md->east ?>,<?= $md->north ?>);
var p4=new TLngLat(<?= $md->east ?>,<?= $md->south ?>);
map.setViewport(new Array(p1,p2,p3,p4));
var bounds = new TBounds(<?= $md->west; ?>,<?= $md->south; ?>,<?= $md->east; ?>,<?= $md->north; ?>);
var config = {
strokeColor:"red", //折线颜色
fillColor:"#FFFFFF", //填充颜色。当参数为空时,折线覆盖物将没有填充效果
strokeWeight:"3px", //折线的宽度,以像素为单位
opacity:0.3, //折线的透明度取值范围0 - 1
strokeStyle:"dashed" //折线的样式solid或dashed
};
var rect = new TRect(bounds,config);
map.addOverLay(rect);
//map.zoomOut();
<?php endif; ?>
var config = {
type:"TMAP_NAVIGATION_CONTROL_SMALL", //缩放平移的显示类型
anchor:"TMAP_ANCHOR_TOP_LEFT", //缩放平移控件显示的位置
offset:[0,0] //缩放平移控件的偏移值 showZoomInfo:true //是否显示级别提示信息true表示显示false表示隐藏。
};
//创建缩放平移控件对象
control=new TNavigationControl(config);
//添加缩放平移控件
map.addControl(control);
</script>
<?php $md = $this->metadata;
if ($md): ?>
<div class="content">
<div class="container">
<div class="col-md-8 col-sm-8 leftBox" style="padding-left: 0;">
<h5><?php echo $this->escape($md->title); ?></h5>
<?php if ($md->title_en) echo '<p class="englishTitle">' . $this->escape($md->title_en) . '</p>'; ?>
<div class="smallSize">
<?php
$kw = array('discipline' => '学科', 'place' => '地点', 'theme' => '主题', 'temporal' => '时间', 'stratum' => '地层');
$kt = '';
$i = 0;
foreach ($this->keys as $cg) :
if ($kt == $cg['keytype']) :
$i += 1;
else :
if (!empty($kt)) echo '</span>';
$kt = $cg['keytype'];
$i = 0;
endif;
if ($i == 0) {
?>
<span><a href="/data/tag/keytype/<?php echo $kt; ?>"><?php echo $kw[$kt]; ?>: </a>
<?
}
echo '<a href="/data/tag/key/' . urlencode($cg['keyword']) . '">' . $cg['keyword'] . '</a> ';
endforeach;
?>
</div>
<div class="dataContent">
<div class="thumb">
<a href="javascript:void(0);">
<img src="/service/thumb/uuid/<?php echo $md->uuid; ?>"/>
</a>
</div>
<p><?php echo str_replace(array("\r\n", "\n", "\r"), '</p><p>', $md->description); ?></p>
</div>
<h6>本数据引用方式</h6>
<a class="pull-right" href="/archives/help/platform/archive-23.html"><i class="icon-comment"></i>数据引用帮助</a>
<p><?php if (empty($md->datadoi) || !strpos($md->citation, $md->datadoi)) : ?><span
class="label label-info">文章的引用</span>
<?php endif;
echo $this->escape($md->citation);
if (strpos($md->citation, $md->datadoi)) : ?>
(下载引用:<a href="/service/ris/lang/cn/uuid/<?php echo $md->uuid; ?>">RIS格式</a> | <a
href="/service/ris/lang/en/uuid/<?php echo $md->uuid; ?>">RIS英文格式</a> | <a
href="/service/bibtex/lang/cn/uuid/<?php echo $md->uuid; ?>">Bibtex格式</a> | <a
href="/service/bibtex/lang/en/uuid/<?php echo $md->uuid; ?>">Bibtex英文格式</a>)
<?php endif; ?>
</p>
<h6>数据使用声明</h6>
<?php
if ($this->uselimits) :
foreach ($this->uselimits as $uselimit) :
echo '<p>' . str_replace(array("\r\n", "\n", "\r"), '</p><p>', $this->escape($uselimit->uselimit)) . '</p>';
endforeach;
?>
<?php else : ?>
<p>
为尊重知识产权、保障数据作者的权益、扩展数据中心的服务、评估数据的应用潜力,请数据使用者在使用数据所产生的研究成果中(包括公开发表的论文、论著、数据产品和未公开发表的研究报告、数据产品等成果),明确注明数据来源和数据作者。对于转载(二次或多次发布)的数据,作者还须注明原始数据来源。</p>
<p>中文发表的成果参考以下规范注明: 数据来源于时空三极大数据平台(http://www.poles.ac.cn)</p>
<p>英文发表的成果依据以下规范注明: The data set is provided by Cold and Arid Regions Sciences Data Center at
Lanzhou (http://www.poles.ac.cn)</p>
<?php endif; ?>
<?php if ($this->data_archives) { ?>
<h6>数据使用声明</h6>
<ul class="list-unstyled">
<?php
foreach ($this->data_archives as $v) {
?>
<li><a href="<?= $v['url']['archive_url'] ?>"><?= $v['title'] ?></a></li>
<?php } ?>
</ul>
<?php } ?>
<div class="">
<ul id="myTab" class="nav nav-tabs">
<li class="active">
<a href="#home1" data-toggle="tab">相关数据 </a>
</li>
<li>
<a href="#home2" data-toggle="tab">服务记录 </a>
</li>
<li>
<a href="#home3" data-toggle="tab">给我推荐 </a>
</li>
</ul>
<div id="myTabContent" class="tab-content">
<div class="tab-pane fade in active" id="home1">
<p>暂无数据</p>
</div>
<div class="tab-pane fade in" id="home2">
<?php if ($this->downhistory) : ?>
<p>最近10条服务记录如下</p>
<ul start="1">
<?php
foreach ($this->downhistory as $v) {
echo '<li>' . date("Y-m-d", strtotime($v->ts_created)) . " " . $v->unit . " " . $v->realname;
if (!empty($v->offlineproject))
echo ' 用途:' . $v->offlineproject;
elseif (!empty($v->onlineproject))
echo ' 用途:' . $v->onlineproject;
echo '</li>';
}
?>
</ul>
<?php else : ?>
<p>暂时没有服务记录,欢迎您下载使用!</p>
<?php endif; ?>
</div>
<div class="tab-pane fade in" id="home3">
<p>暂无数据</p>
</div>
</div>
</div>
</div>
<div class="col-md-4 rightOne" style="padding-right: 0;">
<h6>站内搜索</h6>
<div class="searchBox">
<i>搜索</i>
<input type="text" placeholder="请输入搜索内容"/>
</div>
<h6>空间位置</h6>
<div class="spaceLocation" id='watermap'>
<img src="/static-sanjy-np/img/banner2.png"/>
</div>
<h6>数据细节</h6>
<ul>
<?php if ($md->fileformat) : ?>
<li>格式:<span><?php echo $md->fileformat; ?></span></li>
<?php endif; ?>
<li>大小:<span><?php echo $md->filesize; ?>MB</span></li>
<?php if ($this->downloaded > 9) : ?>
<li>下载:<span><?php echo $this->downloaded; ?></span></li>
<?php endif; ?>
<li>浏览:<span><?php echo $this->viewed; ?></span></li>
<?php if (!empty($md->timebegin)) : ?>
<li>数据时间范围:<span><?php echo date('Y-m-d', strtotime($md->timebegin));
if (!empty($md->timeend)) echo " 至 " . date('Y-m-d', strtotime($md->timeend)); ?></span>
</li>
<?php endif; ?>
<li>数据共享方式:<span><?php if ($md->datatype) print "离线"; else print "在线(可直接下载)"; ?></span></li>
<li>元数据更新时间:<span><?php print date('Y-m-d', strtotime($md->ts_created)); ?></span></li>
</ul>
<h6>联系信息</h6>
<div class="">
<?php
$party_zh=array('resourceProvider'=>'资源提供者','custodian'=>'维护者','owner'=>'拥有者','user'=>'用户','distributor'=>'数据服务联系人','originator'=>'创建者','pointOfContact'=>'联系人','principalInvestigator'=>'数据调查与处理者','processor'=>'处理者','publisher'=>'元数据发布者','author'=>'元数据作者');
$r='';
$i=0;
foreach($this->authors as $k=>$author) :
if ($author->role!=$r)
{
$r=$author->role;
$i=0;
if ($k>0) echo '</p>';
echo '<p>'.$party_zh[$author->role].'';
}
if ($i>0) echo '';
$i+=1;
if (!empty($author->email) && $r!='principalInvestigator')
echo '<a href="mailto:'.$author->email.'">';
echo '<strong title="'.$author->organisation.'">';
if (!empty($author->individual))
echo $author->individual;
else
echo $author->organisation;
echo '</strong>';
if (!empty($author->email)) echo '</a>';
if ($k+1==count($this->authors)) echo '</p>';
endforeach;
?>
</div>
<a href="" class="addBtn">加入数据篮</a>
</div>
</div>
</div>
<script type="text/javascript" charset="utf-8">
var config = { projection: "EPSG:4326"};
var map=new TMap("watermap",config);
var lat=<?= ($md->south+$md->north)/2; ?>;
var lng=<?= ($md->east+$md->west)/2; ?>;
map.centerAndZoom(new TLngLat(lng,lat),12);
map.setMapType(TMAP_HYBRID_MAP);
<?php if ($md->north==$md->south && $md->east==$md->west) :?>
var marker=new TMarker(new TLngLat(lng,lat));
map.addOverLay(marker);
<?php else :?>
var p1=new TLngLat(<?= $md->west ?>,<?= $md->south ?>);
var p2=new TLngLat(<?= $md->west ?>,<?= $md->north ?>);
var p3=new TLngLat(<?= $md->east ?>,<?= $md->north ?>);
var p4=new TLngLat(<?= $md->east ?>,<?= $md->south ?>);
map.setViewport(new Array(p1,p2,p3,p4));
var bounds = new TBounds(<?= $md->west; ?>,<?= $md->south; ?>,<?= $md->east; ?>,<?= $md->north; ?>);
var config = {
strokeColor:"red", //折线颜色
fillColor:"#FFFFFF", //填充颜色。当参数为空时,折线覆盖物将没有填充效果
strokeWeight:"3px", //折线的宽度,以像素为单位
opacity:0.3, //折线的透明度取值范围0 - 1
strokeStyle:"dashed" //折线的样式solid或dashed
};
var rect = new TRect(bounds,config);
map.addOverLay(rect);
//map.zoomOut();
<?php endif; ?>
var config = {
type:"TMAP_NAVIGATION_CONTROL_SMALL", //缩放平移的显示类型
anchor:"TMAP_ANCHOR_TOP_LEFT", //缩放平移控件显示的位置
offset:[0,0] //缩放平移控件的偏移值 showZoomInfo:true //是否显示级别提示信息true表示显示false表示隐藏。
};
//创建缩放平移控件对象
control=new TNavigationControl(config);
//添加缩放平移控件
map.addControl(control);
</script>
<?php else: ?>
<p>Cannot find the metadata.</p>
<p>没有找到对应的元数据。</p>