添加了可视化数据列表

This commit is contained in:
Li Jianxuan 2014-06-11 12:06:09 +00:00
parent 7c9568a01c
commit dac5f6c791
2 changed files with 66 additions and 69 deletions

View File

@ -1,65 +1,66 @@
<div class="row"> <div class="row">
<div class="span12" style=" border-bottom:1px dashed #E0E0E0"> <div class="span12" style=" border-bottom:1px dashed #E0E0E0">
<form method="get" action="/search" id="search" class="form-search"> <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/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/onlinelist"><i class="icon-th"></i>在线数据清单</a>
<a class="btn" href="/data/offlinelist"><i class="icon-th"></i>离线数据清单</a> <a class="btn" href="/data/offlinelist"><i class="icon-th"></i>离线数据清单</a>
<li class="input-append"> <a class="btn" href="/data/visual"><i class="icon-th"></i>可视化数据</a>
<input type="text" value="" id="q" name="q" class="span2 search-query " placeholder="全文搜索"> <li class="input-append">
<button type="submit" class="btn"><i class="icon-search"></i>搜索</button> <input type="text" value="" id="q" name="q" class="span2 search-query " placeholder="全文搜索">
</li> <button type="submit" class="btn"><i class="icon-search"></i>搜索</button>
</form> </li>
</div> </form>
</div> </div>
</div>
<?php $keytypezh=array('place'=>'地点关键词','theme'=>'主题关键词','discipline'=>'学科关键词','stratum'=>'地层关键词','temporal'=>'时间关键词'); ?>
<div class="row"> <?php $keytypezh=array('place'=>'地点关键词','theme'=>'主题关键词','discipline'=>'学科关键词','stratum'=>'地层关键词','temporal'=>'时间关键词'); ?>
<?php <div class="row">
$type='theme'; <?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> <div class="span12" style="border-bottom:1px dashed #E0E0E0">
<ul class="nav nav-pills"> <h4><a href="/data/tag/keytype/theme"><img src="/sjyportal/img/keyword.png" width="16" height="16" />&nbsp;<?php echo $keytypezh[$type]; ?></a></h4>
<?php foreach($this->keywords[$type] as $cg) : ?> <ul class="nav nav-pills">
<li><a href='/data/tag/<?php echo $cg['keyword']; ?>'><?php echo $cg['keyword']."( ". $cg['count'].")"; ?></a></li> <?php foreach($this->keywords[$type] as $cg) : ?>
<?php endforeach; ?> <li><a href='/data/tag/<?php echo $cg['keyword']; ?>'><?php echo $cg['keyword']."( ". $cg['count'].")"; ?></a></li>
</ul> <?php endforeach; ?>
</div> </ul>
<?php </div>
$type='discipline'; <?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> <div class="span12" style="border-bottom:1px dashed #E0E0E0">
<ul class="nav nav-pills"> <h4><a href="/data/tag/keytype/discipline"><img src="/sjyportal/img/keyword.png" width="16" height="16" />&nbsp;<?php echo $keytypezh[$type]; ?></a></h4>
<?php foreach($this->keywords[$type] as $cg) : ?> <ul class="nav nav-pills">
<li><a href='/data/tag/<?php echo $cg['keyword']; ?>'><?php echo $cg['keyword']."( ". $cg['count'].")"; ?></a></li> <?php foreach($this->keywords[$type] as $cg) : ?>
<?php endforeach; ?> <li><a href='/data/tag/<?php echo $cg['keyword']; ?>'><?php echo $cg['keyword']."( ". $cg['count'].")"; ?></a></li>
</ul> <?php endforeach; ?>
</div> </ul>
</div> </div>
<div class="row"> </div>
<?php <div class="row">
$type='place'; <?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> <div class="span12" style="border-bottom:1px dashed #E0E0E0">
<ul class="nav nav-pills"> <h4><a href="/data/tag/keytype/place"><img src="/sjyportal/img/keyword.png" width="16" height="16" />&nbsp;<?php echo $keytypezh[$type]; ?></a></h4>
<?php foreach($this->keywords[$type] as $cg) : ?> <ul class="nav nav-pills">
<li><a href='/data/tag/<?php echo $cg['keyword']; ?>'><?php echo $cg['keyword']."( ". $cg['count'].")"; ?></a></li> <?php foreach($this->keywords[$type] as $cg) : ?>
<?php endforeach; ?> <li><a href='/data/tag/<?php echo $cg['keyword']; ?>'><?php echo $cg['keyword']."( ". $cg['count'].")"; ?></a></li>
</ul> <?php endforeach; ?>
</div> </ul>
<?php </div>
$type='temporal'; <?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> <div class="span12" style="border-bottom:1px dashed #E0E0E0">
<ul class="nav nav-pills"> <h4><a href="/data/tag/keytype/temporal"><img src="/sjyportal/img/keyword.png" width="16" height="16" />&nbsp;<?php echo $keytypezh[$type]; ?></a></h4>
<?php foreach($this->keywords[$type] as $cg) : ?> <ul class="nav nav-pills">
<li><a href='/data/tag/<?php echo $cg['keyword']; ?>'><?php echo $cg['keyword']."( ". $cg['count'].")"; ?></a></li> <?php foreach($this->keywords[$type] as $cg) : ?>
<?php endforeach; ?> <li><a href='/data/tag/<?php echo $cg['keyword']; ?>'><?php echo $cg['keyword']."( ". $cg['count'].")"; ?></a></li>
</ul> <?php endforeach; ?>
</div> </ul>
</div> </div>
</div>

View File

@ -7,10 +7,6 @@ $this->headLink()->appendStylesheet('/css/metadata.css');
$this->nav[] = array('link'=>"/data/visual",'title'=>'可视化数据列表'); $this->nav[] = array('link'=>"/data/visual",'title'=>'可视化数据列表');
$this->theme->AppendPlus($this,'colorbox'); $this->theme->AppendPlus($this,'colorbox');
?> ?>
<div class="row-fluid">
<?= $this->render('breadcrumbs.phtml') ?>
<?= $this->partial('data/tools.phtml'); ?>
</div>
<?php if (!empty($this->paginator)) : ?> <?php if (!empty($this->paginator)) : ?>
<div id='metacontent'> <div id='metacontent'>
<?php echo $this->paginator; ?> <?php echo $this->paginator; ?>