153 lines
5.3 KiB
PHTML
Executable File
153 lines
5.3 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-v2/css/dataProduct.css');
|
|
$this->headLink()->appendStylesheet('/static-sanji-v2/css/header-position.css');
|
|
?>
|
|
<!--搜索框-->
|
|
<div class="searchBox">
|
|
<div class="container">
|
|
<div class="col-sm-12">
|
|
<div class="form-group">
|
|
<form action="/search" id="search-form">
|
|
<input type="text" name="q" id="q" class="form-control" placeholder="搜素关键词">
|
|
</form>
|
|
</div>
|
|
<i onclick="$('#search-form').submit()"></i>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<!--固定搜索框-->
|
|
<div class="searchBox searchBox1">
|
|
<div class="container">
|
|
<div class="col-sm-12">
|
|
<div class="form-group">
|
|
<input type="text" class="form-control" placeholder="搜素关键词">
|
|
</div>
|
|
<i></i>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<!--搜索条件-->
|
|
<div class="searchOne">
|
|
<div class="container">
|
|
<div class="col-lg-12">
|
|
<?= $this->partial('data/tools.phtml'); ?>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<!--最近更新数据-->
|
|
<div class="intro1">
|
|
<div class="container">
|
|
<h2 class="title">最近更新数据</h2>
|
|
<a href="/data/browse">查看更多</a>
|
|
</div>
|
|
</div>
|
|
<div class="container">
|
|
<div class="row">
|
|
<div class="col-md-12">
|
|
<div class="row">
|
|
<?php foreach($this->metadata as $md) : ?>
|
|
<div class="col-sm-6 col-md-6">
|
|
<a href="/data/<?php echo $md['uuid'];?>">
|
|
<div class="dataBox">
|
|
<img src="/service/thumb/id/<?php echo $md['id']; ?>" alt="" />
|
|
<div class="rightBox">
|
|
<h6><?php echo $this->escape($md['title']);?></h6>
|
|
<p><?= $this->escape($md['description']) ?></p>
|
|
<span>发布时间:<?php echo date("Y-m-d",strtotime($md['ts_published'])); ?></span>
|
|
</div>
|
|
</div>
|
|
</a>
|
|
</div>
|
|
<?php endforeach; ?>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<!--数据资源查找-->
|
|
<div class="intro1">
|
|
<div class="container">
|
|
<h2 class="title">数据资源查找</h2>
|
|
</div>
|
|
</div>
|
|
<div class="container">
|
|
<ul id="myTab" class="nav nav-tabs">
|
|
<li class="active">
|
|
<a href="#tab1" data-toggle="tab">主题关键词</a>
|
|
</li>
|
|
<li>
|
|
<a href="#tab2" data-toggle="tab">学科关键词</a>
|
|
</li>
|
|
<li>
|
|
<a href="#tab3" data-toggle="tab">地点关键词</a>
|
|
</li>
|
|
<li>
|
|
<a href="#tab4" data-toggle="tab">时间关键词</a>
|
|
</li>
|
|
</ul>
|
|
<div id="myTabContent" class="tab-content">
|
|
<div class="tab-pane fade in active" id="tab1">
|
|
<?php $type='theme'; ?>
|
|
<?php foreach($this->keywords[$type] as $cg) : ?>
|
|
<a class="btn a-btn btn-default col-sm-2" href="/data/tag/<?= $cg['keyword'] ?>"><?= $cg['keyword'] ?></a>
|
|
<?php endforeach; ?>
|
|
</div>
|
|
<div class="tab-pane fade" id="tab2">
|
|
<?php $type='discipline'; ?>
|
|
<?php foreach($this->keywords[$type] as $cg) : ?>
|
|
<a class="btn a-btn btn-default col-sm-2" href="/data/tag/<?= $cg['keyword'] ?>"><?= $cg['keyword'] ?></a>
|
|
<?php endforeach; ?>
|
|
</div>
|
|
<div class="tab-pane fade" id="tab3">
|
|
<?php $type='place'; ?>
|
|
<?php foreach($this->keywords[$type] as $cg) : ?>
|
|
<a class="btn a-btn btn-default col-sm-2" href="/data/tag/<?= $cg['keyword'] ?>"><?= $cg['keyword'] ?></a>
|
|
<?php endforeach; ?>
|
|
</div>
|
|
<div class="tab-pane fade" id="tab4">
|
|
<?php $type='temporal'; ?>
|
|
<?php foreach($this->keywords[$type] as $cg) : ?>
|
|
<?php if($cg['keyword'] != '') {?>
|
|
<a class="btn a-btn btn-default col-sm-2" href="/data/tag/<?= $cg['keyword'] ?>"><?= $cg['keyword'] ?></a>
|
|
<?php } ?>
|
|
<?php endforeach; ?>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<!--数据服务-->
|
|
<div class="intro1">
|
|
<div class="container">
|
|
<h2 class="title">数据服务</h2>
|
|
</div>
|
|
</div>
|
|
<div class="container">
|
|
<div class="row">
|
|
<div class="col-sm-12">
|
|
<div class="col-sm-6 col-md-4 addOne">
|
|
<a href="" class="a1">离线数据服务记录(最近20个)</a>
|
|
</div>
|
|
<div class="col-sm-6 col-md-4 addOne">
|
|
<a href="" class="a2">如何从时空三极环境大数据平台申请数据</a>
|
|
</div>
|
|
<div class="col-sm-6 col-md-4 addOne">
|
|
<a href="" class="a3">如何在时空三极环境大数据平台发布数据</a>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<script type="text/javascript">
|
|
/*顶部固定搜素*/
|
|
$(window).scroll(function(){
|
|
if($(window).scrollTop() >= 100){
|
|
$(".searchBox1").show();
|
|
} else{
|
|
$(".searchBox1").hide();
|
|
}
|
|
});
|
|
</script>
|