230 lines
10 KiB
PHTML
Executable File
230 lines
10 KiB
PHTML
Executable File
<?php
|
|
$this->headTitle($this->config->title->site);
|
|
$this->headTitle($this->config->title->data);
|
|
$this->headTitle()->setSeparator(' - ');
|
|
$this->headLink()->appendStylesheet('/static-sanji/css/data-index.css');
|
|
?>
|
|
<div class="data-warp">
|
|
<!-- <div class="top-special-nav">-->
|
|
<!-- <div class="title">专题数据集</div>-->
|
|
<!-- <div class="container">-->
|
|
<!-- <div class="col-sm-4">-->
|
|
<!-- <div>-->
|
|
<!-- <p>黑河计划</p>-->
|
|
<!-- </div>-->
|
|
<!-- <img src="/news/images/data_01.png" alt="">-->
|
|
<!-- </div>-->
|
|
<!-- <div class="col-sm-4">-->
|
|
<!-- <div>-->
|
|
<!-- <p>HiWATER</p>-->
|
|
<!-- <p>克里斯蒂几个垃圾规范可结果看了几个集都十分广泛</p>-->
|
|
<!-- </div>-->
|
|
<!-- <img src="/news/images/data_01.png" alt="">-->
|
|
<!-- </div>-->
|
|
<!-- <div class="col-sm-4">-->
|
|
<!-- <div>-->
|
|
<!-- <p>HiWATER</p>-->
|
|
<!-- <p>克里斯蒂几个垃圾规范可结果看了几个集都十分广泛</p>-->
|
|
<!-- </div>-->
|
|
<!-- <img src="/news/images/data_01.png" alt="">-->
|
|
<!-- </div>-->
|
|
<!-- <div class="col-sm-4">-->
|
|
<!-- <div>-->
|
|
<!-- <p>黑河计划</p>-->
|
|
<!-- </div>-->
|
|
<!-- <img src="/news/images/data_01.png" alt="">-->
|
|
<!-- </div>-->
|
|
<!-- <div class="col-sm-4">-->
|
|
<!-- <div>-->
|
|
<!-- <p>HiWATER</p>-->
|
|
<!-- <p>克里斯蒂几个垃圾规范可结果看了几个集都十分广泛</p>-->
|
|
<!-- </div>-->
|
|
<!-- <img src="/news/images/data_01.png" alt="">-->
|
|
<!-- </div>-->
|
|
<!-- <div class="col-sm-4">-->
|
|
<!-- <div>-->
|
|
<!-- <p>HiWATER</p>-->
|
|
<!-- <p>克里斯蒂几个垃圾规范可结果看了几个集都十分广泛</p>-->
|
|
<!-- </div>-->
|
|
<!-- <img src="/news/images/data_01.png" alt="">-->
|
|
<!-- </div>-->
|
|
<!-- </div>-->
|
|
<!-- </div>-->
|
|
<!-- <div class="data-nav">-->
|
|
<!-- <div class="title">数据导航</div>-->
|
|
<!-- <div class="container">-->
|
|
<!-- --><?php
|
|
// function genDataSetCol($type, $list){
|
|
// $content = "";
|
|
// foreach ($list as $cg){
|
|
// if($type == 'category'){
|
|
// $name = empty($cg['name_zh']) ? $cg['name'] : $cg['name_zh'];
|
|
// $content .= '<a class="btn a-btn btn-default col-sm-3" href="/data/category/code/'.$cg['code'].'">'.$name.'</a>';
|
|
// }else{
|
|
// $content .= '<a class="btn a-btn btn-default col-sm-3" href="/data/series/'. $cg['id']. '">'.$cg['name'].'</a>';
|
|
// }
|
|
//
|
|
// }
|
|
// return '<div class="col-sm-6">'. $content . '</div>';
|
|
// }
|
|
// ?>
|
|
<!-- --><?php //$index = 1; ?>
|
|
<!-- <div class="title-left"><a href="/data/category">数据集类别</a></div>-->
|
|
<!-- --><?php //foreach($this->category as $cg) : ?>
|
|
<!-- --><?php
|
|
// if($index == 1) $arr = array();
|
|
//
|
|
// $arr[] = $cg;
|
|
// $index ++;
|
|
//
|
|
// if($index > 4) {
|
|
// echo genDataSetCol('category', $arr);
|
|
// $index = 1;
|
|
// }
|
|
// ?>
|
|
<!-- --><?php //endforeach; ?>
|
|
<!-- </div>-->
|
|
<!-- <div class="container">-->
|
|
<!-- <div class="title-left"><a href="/data/series">数据集序列</a></div>-->
|
|
<!-- --><?php //$index = 1; ?>
|
|
<!-- --><?php //foreach($this->serie as $cg) : ?>
|
|
<!-- --><?php
|
|
// if($index == 1) $arr = array();
|
|
//
|
|
// $arr[] = $cg;
|
|
// $index ++;
|
|
//
|
|
// if($index > 4) {
|
|
// echo genDataSetCol('series', $arr);
|
|
// $index = 1;
|
|
// }
|
|
// ?>
|
|
<!-- --><?php //endforeach; ?>
|
|
<!-- </div>-->
|
|
<!-- </div>-->
|
|
<div class="special-nav">
|
|
<div class="title">特色导航</div>
|
|
<div class="container">
|
|
<!-- <div class="col-sm-12">-->
|
|
<!-- <form method="get" action="/search" id="search" class="form-search">-->
|
|
<!-- <div class="input-append">-->
|
|
<!-- <input type="text" value="" id="q" name="q" class="span2 search-query" placeholder="全文搜索">-->
|
|
<!-- <button type="submit" class="btn"><i class="icon-search"></i>搜索</button>-->
|
|
<!-- </div>-->
|
|
<!-- </form>-->
|
|
<!-- </div>-->
|
|
<div class="col-sm-12">
|
|
<a class="btn splBtn btn-default col-sm-2" href="/search/advance">高级搜索</a>
|
|
<a class="btn splBtn btn-default col-sm-2" href="/data/browse">数据列表浏览</a>
|
|
<a class="btn splBtn btn-default col-sm-2" href="/data/onlinelist">在线数据清单</a>
|
|
<a class="btn splBtn btn-default col-sm-2" href="/data/offlinelist">离线数据清单</a>
|
|
<a class="btn splBtn btn-default col-sm-2" href="/data/thumb">缩略图浏览</a>
|
|
<a class="btn splBtn btn-default col-sm-2" href="/data/timeline">时间轴浏览</a>
|
|
<a class="btn splBtn btn-default col-sm-2" href="/data/extent">空间浏览</a>
|
|
<a class="btn splBtn btn-default col-sm-2" href="/data/organization">单位浏览</a>
|
|
<a class="btn splBtn btn-default col-sm-2" href="/data/fund">项目浏览</a>
|
|
<a class="btn splBtn btn-default col-sm-2" href="/data/author">作者浏览</a>
|
|
<!-- <button type="button" class="btn splBtn btn-default col-sm-2"><a href="/data/doi">DOI浏览</a></button>-->
|
|
</div>
|
|
<p style="clear: both"></p>
|
|
<?php
|
|
function genCol($keywords){
|
|
$content = "";
|
|
foreach ($keywords as $keyword){
|
|
$content .= '<a class="btn a-btn btn-default col-sm-3" href="/data/tag/'.$keyword[0].'">' . $keyword[0] . '</a>';
|
|
}
|
|
return '<div class="col-sm-6">'. $content . '</div>';
|
|
}
|
|
|
|
$keytypezh=array('place'=>'地点关键词','theme'=>'主题关键词','discipline'=>'学科关键词','temporal'=>'时间关键词');
|
|
$type='theme';
|
|
?>
|
|
<div class="title-left"><a href="/data/tag/keytype/theme"><?php echo $keytypezh[$type]; ?></a></div>
|
|
<?php $index = 1; ?>
|
|
<?php foreach($this->keywords[$type] as $cg) : ?>
|
|
<?php
|
|
if($index == 1) $arr = array();
|
|
|
|
$arr[] = array($cg['keyword'], $cg['count']);
|
|
$index ++;
|
|
|
|
if($index > 4) {
|
|
echo genCol($arr);
|
|
$index = 1;
|
|
}
|
|
?>
|
|
<?php endforeach; ?>
|
|
</div>
|
|
<div class="container">
|
|
<?php $type='discipline'; ?>
|
|
<div class="title-left"><a href="/data/tag/keytype/theme"><?php echo $keytypezh[$type]; ?></a></div>
|
|
<?php $index = 1; ?>
|
|
<?php foreach($this->keywords[$type] as $cg) : ?>
|
|
<?php
|
|
if($index == 1) $arr = array();
|
|
|
|
$arr[] = array($cg['keyword'], $cg['count']);
|
|
$index ++;
|
|
|
|
if($index > 4) {
|
|
echo genCol($arr);
|
|
$index = 1;
|
|
}
|
|
?>
|
|
<?php endforeach; ?>
|
|
</div>
|
|
<div class="container">
|
|
<?php $type='place'; ?>
|
|
<div class="title-left"><a href="/data/tag/keytype/theme"><?php echo $keytypezh[$type]; ?></a></div>
|
|
<?php $index = 1; ?>
|
|
<?php foreach($this->keywords[$type] as $cg) : ?>
|
|
<?php
|
|
if($index == 1) $arr = array();
|
|
|
|
$arr[] = array($cg['keyword'], $cg['count']);
|
|
$index ++;
|
|
|
|
if($index > 4) {
|
|
echo genCol($arr);
|
|
$index = 1;
|
|
}
|
|
?>
|
|
<?php endforeach; ?>
|
|
</div>
|
|
<div class="container">
|
|
<?php $type='temporal'; ?>
|
|
<div class="title-left"><a href="/data/tag/keytype/theme"><?php echo $keytypezh[$type]; ?></a></div>
|
|
<?php $index = 1; ?>
|
|
<?php foreach($this->keywords[$type] as $cg) : ?>
|
|
<?php
|
|
if($index == 1) $arr = array();
|
|
|
|
$arr[] = array($cg['keyword'], $cg['count']);
|
|
$index ++;
|
|
|
|
if($index > 4) {
|
|
echo genCol($arr);
|
|
$index = 1;
|
|
}
|
|
?>
|
|
<?php endforeach; ?>
|
|
</div>
|
|
</div>
|
|
<div class="data-update data-nav">
|
|
<div class="title">数据最近更新</div>
|
|
<ul>
|
|
<?php foreach($this->metadata as $md) : ?>
|
|
<li><a href="/data/<?php echo $md['uuid'];?>"><?php echo $this->escape($md['title']);?></a><span><?php echo date("Y-m-d",strtotime($md['ts_published'])); ?></span></li>
|
|
<?php endforeach; ?>
|
|
</ul>
|
|
</div>
|
|
<div class="data-serves data-nav">
|
|
<div class="container">
|
|
<div class="server-title">数据服务</div>
|
|
<div style="width: 20px;height: 2px;background: #9b58b5;"></div>
|
|
<div class="col-sm-4"><a href="/data/offlineapp">+ 离线数据服务记录(最近20个)</a></div>
|
|
<div class="col-sm-4"><a href="/data/request">+ 如何从时空三极环境大数据平台申请数据</a></div>
|
|
<div class="col-sm-4"><a href="/data/submit">+ 如何在时空三极环境大数据平台发布数据</a></div>
|
|
</div>
|
|
</div>
|
|
</div>
|