数据产品首页样式修改

This commit is contained in:
Li Heng 2014-07-07 08:02:46 +00:00
parent d179cde692
commit 9963256257
1 changed files with 49 additions and 45 deletions

View File

@ -33,54 +33,58 @@ $this->headTitle()->setSeparator(' - ');
<li><a class="btn" href="/data/author"><i class="icon-user-md"></i>作者浏览</a></li> <li><a class="btn" href="/data/author"><i class="icon-user-md"></i>作者浏览</a></li>
</ul> </ul>
</div> </div>
<?php
$keytypezh=array('place'=>'地点关键词','theme'=>'主题关键词','discipline'=>'学科关键词','stratum'=>'地层关键词','temporal'=>'时间关键词'); <?php $keytypezh=array('place'=>'地点关键词','theme'=>'主题关键词','discipline'=>'学科关键词','stratum'=>'地层关键词','temporal'=>'时间关键词'); ?>
$type='theme'; <div class="row">
?> <?php
<div class="span6"> $type='theme';
<h4><a href="/data/tag/keytype/theme"><i class="icon-tags"></i><?php echo $keytypezh[$type]; ?></a></h4> ?>
<ul class="unstyled inline"> <div class="span12" style="border-bottom:1px dashed #E0E0E0">
<?php foreach($this->keywords[$type] as $cg) : ?> <h4><a href="/data/tag/keytype/theme"><img src="/images/keyword.png" width="16" height="16" />&nbsp;<?php echo $keytypezh[$type]; ?></a></h4>
<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> <ul class="nav nav-pills">
<?php endforeach; ?> <?php foreach($this->keywords[$type] as $cg) : ?>
</ul> <li><a href='/data/tag/<?php echo $cg['keyword']; ?>'><?php echo $cg['keyword']."( ". $cg['count'].")"; ?></a></li>
</div> <?php endforeach; ?>
<?php </ul>
$type='discipline'; </div>
?> <?php
<div class="span6"> $type='discipline';
<h4><a href="/data/tag/keytype/discipline"><i class="icon-tags"></i><?php echo $keytypezh[$type]; ?></a></h4> ?>
<ul class="unstyled inline"> <div class="span12" style="border-bottom:1px dashed #E0E0E0">
<?php foreach($this->keywords[$type] as $cg) : ?> <h4><a href="/data/tag/keytype/discipline"><img src="/images/keyword.png" width="16" height="16" />&nbsp;<?php echo $keytypezh[$type]; ?></a></h4>
<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> <ul class="nav nav-pills">
<?php endforeach; ?> <?php foreach($this->keywords[$type] as $cg) : ?>
</ul> <li><a href='/data/tag/<?php echo $cg['keyword']; ?>'><?php echo $cg['keyword']."( ". $cg['count'].")"; ?></a></li>
</div> <?php endforeach; ?>
</ul>
</div>
</div> </div>
<div class="row"> <div class="row">
<?php <?php
$type='place'; $type='place';
?> ?>
<div class="span6"> <div class="span12" style="border-bottom:1px dashed #E0E0E0">
<h4><a href="/data/tag/keytype/place"><i class="icon-tags"></i><?php echo $keytypezh[$type]; ?></a></h4> <h4><a href="/data/tag/keytype/place"><img src="/images/keyword.png" width="16" height="16" />&nbsp;<?php echo $keytypezh[$type]; ?></a></h4>
<ul class="unstyled inline"> <ul class="nav nav-pills">
<?php foreach($this->keywords[$type] as $cg) : ?> <?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> <li><a href='/data/tag/<?php echo $cg['keyword']; ?>'><?php echo $cg['keyword']."( ". $cg['count'].")"; ?></a></li>
<?php endforeach; ?> <?php endforeach; ?>
</ul> </ul>
</div> </div>
<?php <?php
$type='temporal'; $type='temporal';
?> ?>
<div class="span6"> <div class="span12" style="border-bottom:1px dashed #E0E0E0">
<h4><a href="/data/tag/keytype/temporal"><i class="icon-tags"></i><?php echo $keytypezh[$type]; ?></a></h4> <h4><a href="/data/tag/keytype/temporal"><img src="/images/keyword.png" width="16" height="16" />&nbsp;<?php echo $keytypezh[$type]; ?></a></h4>
<ul class="unstyled inline"> <ul class="nav nav-pills">
<?php foreach($this->keywords[$type] as $cg) : ?> <?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> <li><a href='/data/tag/<?php echo $cg['keyword']; ?>'><?php echo $cg['keyword']."( ". $cg['count'].")"; ?></a></li>
<?php endforeach; ?> <?php endforeach; ?>
</ul> </ul>
</div> </div>
</div> </div>
<div class="row"> <div class="row">
<div class="span6"> <div class="span6">