westdc-zf1/application/default/views/scripts/data/index.phtml

71 lines
3.3 KiB
PHTML
Executable File

<?php
$this->headTitle($this->config->title->site);
$this->headTitle($this->config->title->data);
$this->headTitle()->setSeparator(' - ');
?>
<div class="row">
<div class="span12" style=" border-bottom:1px dashed #E0E0E0">
<form method="get" action="/search" id="search" class="form-search">
<a class="btn" href="/data/browse"><i class="icon-align-justify"></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>
<a class="btn" href="/data/visual"><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="span12" style="border-bottom:1px dashed #E0E0E0">
<h4><a href="/data/tag/keytype/theme"><img src="/sjyportal/img/keyword.png" width="16" height="16" />&nbsp;<?php echo $keytypezh[$type]; ?></a></h4>
<ul class="nav nav-pills">
<?php foreach($this->keywords[$type] as $cg) : ?>
<li><a href='/data/tag/<?php echo $cg['keyword']; ?>'><?php echo $cg['keyword']." (". $cg['count'].")"; ?></a></li>
<?php endforeach; ?>
</ul>
</div>
<?php
$type='discipline';
?>
<div class="span12" style="border-bottom:1px dashed #E0E0E0">
<h4><a href="/data/tag/keytype/discipline"><img src="/sjyportal/img/keyword.png" width="16" height="16" />&nbsp;<?php echo $keytypezh[$type]; ?></a></h4>
<ul class="nav nav-pills">
<?php foreach($this->keywords[$type] as $cg) : ?>
<li><a href='/data/tag/<?php echo $cg['keyword']; ?>'><?php echo $cg['keyword']." (". $cg['count'].")"; ?></a></li>
<?php endforeach; ?>
</ul>
</div>
</div>
<div class="row">
<?php
$type='place';
?>
<div class="span12" style="border-bottom:1px dashed #E0E0E0">
<h4><a href="/data/tag/keytype/place"><img src="/sjyportal/img/keyword.png" width="16" height="16" />&nbsp;<?php echo $keytypezh[$type]; ?></a></h4>
<ul class="nav nav-pills">
<?php foreach($this->keywords[$type] as $cg) : ?>
<li><a href='/data/tag/<?php echo $cg['keyword']; ?>'><?php echo $cg['keyword']." (". $cg['count'].")"; ?></a></li>
<?php endforeach; ?>
</ul>
</div>
<?php
$type='temporal';
?>
<div class="span12" style="border-bottom:1px dashed #E0E0E0">
<h4><a href="/data/tag/keytype/temporal"><img src="/sjyportal/img/keyword.png" width="16" height="16" />&nbsp;<?php echo $keytypezh[$type]; ?></a></h4>
<ul class="nav nav-pills">
<?php foreach($this->keywords[$type] as $cg) : ?>
<li><a href='/data/tag/<?php echo $cg['keyword']; ?>'><?php echo $cg['keyword']." (". $cg['count'].")"; ?></a></li>
<?php endforeach; ?>
</ul>
</div>
</div>