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

75 lines
3.7 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">
<a class="btn" href="/data/browse"><i class="icon-align-justify"></i>数据列表浏览</a>
<a class="btn" href="/data/thumb"><i class="icon-th"></i>缩略图浏览</a>
<a class="btn" href="/data/timeline"><i class="icon-calendar"></i>时间轴浏览</a>
<a class="btn" href="/data/map"><i class="icon-globe"></i>空间浏览</a>
<a class="btn" href="/data/timemap"><i class="icon-film"></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>
<a class="btn" href="/search/advance"><i class="icon-search"></i>高级搜索</a>
</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>
</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>
<div class="row">
<div class="span6">
<h4>数据最近更新 <a href="/service/feed" target="_blank"><i class="icon-rss"></i></a></h4>
<ul class="unstyled">
<?php foreach($this->metadata as $md) : ?>
<li><a href="/data/<?php echo $md['uuid'];?>"><i class="icon-map-marker"> </i><?php echo $this->escape($md['title']);?></a><small class="pull-right">[<?= date('Y-m-d',strtotime($md['ts_created'])) ?>]</small></li>
<?php endforeach; ?>
</ul>
</div>
<div class="span6">
<h4>最多浏览数据集 </h4>
<ul class="unstyled">
<?php foreach($this->viewedmd as $md) : ?>
<li><a href="/data/<?php echo $md['uuid'];?>"><i class="icon-map-marker"> </i><?php echo $this->escape($md['title']);?></a><small>&nbsp;&nbsp;[<?= $md['viewed'] ?>]</small></li>
<?php endforeach; ?>
</ul>
</div>
</div>