关于我们页面左侧导航和搜索结果页样式。

This commit is contained in:
Li Heng 2014-03-13 11:21:44 +00:00
parent 8dd5f68ee6
commit e909aa2bf2
3 changed files with 56 additions and 53 deletions

View File

@ -5,11 +5,11 @@
<div class="span3">
<div class="bs-docs-sidebar">
<ul class="nav nav-list bs-docs-sidenav">
<li id="Nav-about-平台简介" class="active"><a href="/about/平台简介"><i class="icon-chevron-right"></i>平台简介</a></li>
<li id="Nav-about-数据来源" ><a href="/about/数据来源"><i class="icon-chevron-right"></i>数据来源</a></li>
<li id="Nav-about-使用条款" ><a href="/about/使用条款"><i class="icon-chevron-right"></i>使用条款</a></li>
<li id="Nav-about-友情链接" ><a href="/about/友情链接"><i class="icon-chevron-right"></i>友情链接</a></li>
<li id="Nav-about-联系我们" ><a href="/about/联系我们"><i class="icon-chevron-right"></i>联系我们</a></li>
<li id="Nav-about-平台简介" <?php if($_SERVER["REQUEST_URI"]=='/about/%E5%B9%B3%E5%8F%B0%E7%AE%80%E4%BB%8B'){echo ' class="active"';}?>><a href="/about/平台简介"><i class="icon-chevron-right"></i>平台简介</a></li>
<li id="Nav-about-数据来源" <?php if($_SERVER["REQUEST_URI"]=='/about/%E6%95%B0%E6%8D%AE%E6%9D%A5%E6%BA%90'){echo ' class="active"';}?>><a href="/about/数据来源"><i class="icon-chevron-right"></i>数据来源</a></li>
<li id="Nav-about-使用条款" <?php if($_SERVER["REQUEST_URI"]=='/about/%E4%BD%BF%E7%94%A8%E6%9D%A1%E6%AC%BE'){echo ' class="active"';}?>><a href="/about/使用条款"><i class="icon-chevron-right"></i>使用条款</a></li>
<li id="Nav-about-友情链接" <?php if($_SERVER["REQUEST_URI"]=='/about/%E5%8F%8B%E6%83%85%E9%93%BE%E6%8E%A5'){echo ' class="active"';}?>><a href="/about/友情链接"><i class="icon-chevron-right"></i>友情链接</a></li>
<li id="Nav-about-联系我们" <?php if($_SERVER["REQUEST_URI"]=='/about/%E8%81%94%E7%B3%BB%E6%88%91%E4%BB%AC'){echo ' class="active"';}?>><a href="/about/联系我们"><i class="icon-chevron-right"></i>联系我们</a></li>
</ul>
</div>
</div>

View File

@ -1,41 +1,44 @@
<div class="row-fluid">
<h3>搜索 <small><?= $this->keyword ?></small></h3>
<hr />
<div class="container">
<div id="row">
<?= $this->partial('layout/metadata/subnav'); ?>
</div>
<?php if(!empty($this->unit)) { ?>
<h3>单位:<?= $this->unit ?> <small><?= !empty($this->count) ? $this->count."条数据":"" ?></small></h3>
<?php } ?>
<?php if (!empty($this->paginator)) : ?>
<div id='metacontent'>
<?php echo $this->paginator; ?>
<div class="box">
<?php foreach($this->paginator as $md) : ?>
<div class="clearfix" style="border-bottom:1px dashed #DFDFDF; overflow:hidden">
<div class="pull-left">
<a href="/service/thumb/id/<?php echo $md['id'];?>" class="colorbox">
<img class="img-rounded img-polaroid" src="/service/thumb/id/<?php echo $md['id'];?>" style="margin:20px 20px" width="140" height="80" />
</a>
</div>
<div style="display:block; padding-left:180px;">
<h3><a href="/data/<?php echo $md['uuid']; ?>"><?php echo $md['title'];?></a></h3>
<p class=""><?php echo mb_strlen($md['description'])>400? mb_substr($md['description'],0,400,'UTF-8').'...':$md['description'];?></p>
<p class="text-right"><strong>UUID: </strong><small><?= $md['uuid'] ?></small> , <small><?= $md['filesize']."MB" ?></small></p>
<p class="pull-right"><strong class="badge badge-info ">查阅数: <?= $md['viewed'] ?></strong> , <small><?= date("Y-m-d H:i",strtotime($md['ts_created'])) ?></small></p>
<?php if(!empty($this->paginator)) { ?>
<table class="table">
<thead>
<tr>
<th>标题</th>
<th>uuid</th>
<th>大小</th>
<th>创建时间</th>
<th>查看次数</th>
</tr>
</thead>
<?php $index = 0;?>
<?php foreach($this->paginator as $v) { ?>
<?php $index++ ;?>
<tr class="<?= $index % 2 == 0 ? "active":""?>">
<td><?= $v['id'] ?></td>
<td><?= $v['title'] ?></td>
<td><?= $v['uuid'] ?></td>
<td><?= $v['filesize']."MB" ?></td>
<td><?= date("Y-m-d H:i",strtotime($v['ts_created'])) ?></td>
<td><?= $v['viewed'] ?></td>
</tr>
<tr class="<?= $index % 2 == 0 ? "active":""?>">
<td colspan="6"><?= $v['description']; ?></td>
</tr>
<?php } ?>
</table>
<?php }else{ ?>
暂无信息
<?php } ?>
<?php if(!empty($this->paginator)) { ?>
<?= $this->paginator; ?>
<?php } ?>
</div><!-- /.row-fluid -->
</div>
</div>
<?php endforeach; ?>
</div>
</div>
<?php echo $this->paginator; ?>
<?php endif ?>
</div>
<script>
$(document).ready(function(){
$(".colorbox").colorbox({rel:"colorbox",photo:"true",transition:"fade"});
$(".colorbox").colorbox({photo:"true"});
});
</script>

View File

@ -4,15 +4,15 @@
<div class="pagination">
<ul>
<?php if (isset($this->previous)): ?>
<li class="first"><a href="<?= $this->url($route, array('page' => $this->first),false,true); ?><?= $query ?>">&lt;&lt; First</a></li>
<li class="first"><a href="<?= $this->url($route, array('page' => $this->first),false,true); ?><?= $query ?>">&lt;&lt; 首页</a></li>
<?php else: ?>
<li class="prev disabled"><a href="javascript:void(0);">&lt;&lt; First</a></li>
<li class="prev disabled"><a href="javascript:void(0);">&lt;&lt; 首页</a></li>
<?php endif; ?>
<!-- Previous page link -->
<?php if (isset($this->previous)): ?>
<li class="prev"><a href="<?= $this->url($route,array('page'=>$this->previous),false,true) ?><?= $query ?>">&lt; Previous</a></li>
<li class="prev"><a href="<?= $this->url($route,array('page'=>$this->previous),false,true) ?><?= $query ?>">&lt; 前一页</a></li>
<?php else: ?>
<li class="prev disabled"><a href="javascript:void(0);">&lt; Previous</a></li>
<li class="prev disabled"><a href="javascript:void(0);">&lt; 前一页</a></li>
<?php endif; ?>
<!-- Numbered page links -->
@ -26,16 +26,16 @@
<!-- Next page link -->
<?php if (isset($this->next)): ?>
<li class="next"><a href="<?= $this->url($route,array('page'=>$this->next),false,true) ?><?= $query ?>">Next &gt;</a></li>
<li class="next"><a href="<?= $this->url($route,array('page'=>$this->next),false,true) ?><?= $query ?>">后一页 &gt;</a></li>
<?php else: ?>
<li class="next disabled"><a href="javascript:void(0);">Next &gt;</a></li>
<li class="next disabled"><a href="javascript:void(0);">后一页 &gt;</a></li>
<?php endif; ?>
<!-- Last page link -->
<?php if (isset($this->next)): ?>
<li class="last"><a href="<?= $this->url($route, array('page' => $this->last),false,true); ?><?= $query ?>">Last &gt;&gt;</a></li>
<li class="last"><a href="<?= $this->url($route, array('page' => $this->last),false,true); ?><?= $query ?>">尾页 &gt;&gt;</a></li>
<?php else: ?>
<li class="last disabled"><a href="javascript:void(0);">Last &gt;&gt;</a></li>
<li class="last disabled"><a href="javascript:void(0);">尾页 &gt;&gt;</a></li>
<?php endif; ?>
</ul>
</div>