78 lines
3.4 KiB
PHTML
78 lines
3.4 KiB
PHTML
|
|
<div class="row">
|
|
<div class="span12">
|
|
<form method="get" action="/search" id="search" class="form-search">
|
|
<a class="btn" href="/data/browse"><i class="icon-reorder"></i>数据列表浏览</a>
|
|
<a class="btn" href="/data/onlinelist"><i class="icon-th"></i>在线数据清单</a>
|
|
<a class="btn" href="/data/offlinelist"><i class="icon-th"></i>离线数据清单</a>
|
|
<li 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>
|
|
</li>
|
|
</form>
|
|
</div>
|
|
</div>
|
|
|
|
<?php $keytypezh=array('place'=>'地点关键词','theme'=>'主题关键词','discipline'=>'学科关键词','stratum'=>'地层关键词','temporal'=>'时间关键词'); ?>
|
|
<div class="row">
|
|
<?php
|
|
$type='theme';
|
|
?>
|
|
<div class="span6">
|
|
<h4><a href="/data/tag/keytype/theme"><i class="icon-tags"></i><?php echo $keytypezh[$type]; ?></a></h4>
|
|
<ul class="unstyled inline">
|
|
<?php foreach($this->keywords[$type] as $cg) : ?>
|
|
<li><a href='/data/tag/<?php echo $cg['keyword']; ?>'><i class="icon-tag"></i><?php echo $cg['keyword']; ?></a><span class="note">(<?php echo $cg['count']; ?>)</span></li>
|
|
<?php endforeach; ?>
|
|
</ul>
|
|
</div>
|
|
<?php
|
|
$type='discipline';
|
|
?>
|
|
<div class="span6">
|
|
<h4><a href="/data/tag/keytype/discipline"><i class="icon-tags"></i><?php echo $keytypezh[$type]; ?></a></h4>
|
|
<ul class="unstyled inline">
|
|
<?php foreach($this->keywords[$type] as $cg) : ?>
|
|
<li><a href='/data/tag/<?php echo $cg['keyword']; ?>'><i class="icon-tag"></i><?php echo $cg['keyword']; ?></a><span class="note">(<?php echo $cg['count']; ?>)</span></li>
|
|
<?php endforeach; ?>
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
<div class="row">
|
|
<?php
|
|
$type='place';
|
|
?>
|
|
<div class="span6">
|
|
<h4><a href="/data/tag/keytype/place"><i class="icon-tags"></i><?php echo $keytypezh[$type]; ?></a></h4>
|
|
<ul class="unstyled inline">
|
|
<?php foreach($this->keywords[$type] as $cg) : ?>
|
|
<li><a href='/data/tag/<?php echo $cg['keyword']; ?>'><i class="icon-tag"></i><?php echo $cg['keyword']; ?></a><span class="note">(<?php echo $cg['count']; ?>)</span></li>
|
|
<?php endforeach; ?>
|
|
</ul>
|
|
</div>
|
|
<?php
|
|
$type='temporal';
|
|
?>
|
|
<div class="span6">
|
|
<h4><a href="/data/tag/keytype/temporal"><i class="icon-tags"></i><?php echo $keytypezh[$type]; ?></a></h4>
|
|
<ul class="unstyled inline">
|
|
<?php foreach($this->keywords[$type] as $cg) : ?>
|
|
<li><a href='/data/tag/<?php echo $cg['keyword']; ?>'><i class="icon-tag"></i><?php echo $cg['keyword']; ?></a><span class="note">(<?php echo $cg['count']; ?>)</span></li>
|
|
<?php endforeach; ?>
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="row">
|
|
<div class="span6">
|
|
<h4>最近更新</h4>
|
|
<?php if(!empty($this->metadata_latest)) { ?>
|
|
<ul class="unstyled">
|
|
<?php foreach($this->metadata_latest as $K=>$v) { ?>
|
|
<li><img src="<?= $this->basePath("img/westdc_20w.gif") ?>" /><a href="<?= $this->url('data/view',array('uuid'=>$v['uuid'])); ?>" title="<?= $v['title'] ?>"><?= $v['title'] ?></a></li>
|
|
<?php } ?>
|
|
</ul>
|
|
<?php } ?>
|
|
</div>
|
|
</div>
|