关于我们页面左侧导航和搜索结果页样式。
This commit is contained in:
parent
8dd5f68ee6
commit
e909aa2bf2
|
@ -5,11 +5,11 @@
|
||||||
<div class="span3">
|
<div class="span3">
|
||||||
<div class="bs-docs-sidebar">
|
<div class="bs-docs-sidebar">
|
||||||
<ul class="nav nav-list bs-docs-sidenav">
|
<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-平台简介" <?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-数据来源" ><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-使用条款" ><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-友情链接" ><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-联系我们" ><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>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -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)) { ?>
|
</div>
|
||||||
<table class="table">
|
</div>
|
||||||
<thead>
|
<?php endforeach; ?>
|
||||||
<tr>
|
</div>
|
||||||
<th>标题</th>
|
</div>
|
||||||
<th>uuid</th>
|
<?php echo $this->paginator; ?>
|
||||||
<th>大小</th>
|
<?php endif ?>
|
||||||
<th>创建时间</th>
|
</div>
|
||||||
<th>查看次数</th>
|
<script>
|
||||||
</tr>
|
$(document).ready(function(){
|
||||||
</thead>
|
$(".colorbox").colorbox({rel:"colorbox",photo:"true",transition:"fade"});
|
||||||
<?php $index = 0;?>
|
$(".colorbox").colorbox({photo:"true"});
|
||||||
<?php foreach($this->paginator as $v) { ?>
|
});
|
||||||
<?php $index++ ;?>
|
</script>
|
||||||
<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 -->
|
|
||||||
|
|
|
@ -4,15 +4,15 @@
|
||||||
<div class="pagination">
|
<div class="pagination">
|
||||||
<ul>
|
<ul>
|
||||||
<?php if (isset($this->previous)): ?>
|
<?php if (isset($this->previous)): ?>
|
||||||
<li class="first"><a href="<?= $this->url($route, array('page' => $this->first),false,true); ?><?= $query ?>"><< First</a></li>
|
<li class="first"><a href="<?= $this->url($route, array('page' => $this->first),false,true); ?><?= $query ?>"><< 首页</a></li>
|
||||||
<?php else: ?>
|
<?php else: ?>
|
||||||
<li class="prev disabled"><a href="javascript:void(0);"><< First</a></li>
|
<li class="prev disabled"><a href="javascript:void(0);"><< 首页</a></li>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
<!-- Previous page link -->
|
<!-- Previous page link -->
|
||||||
<?php if (isset($this->previous)): ?>
|
<?php if (isset($this->previous)): ?>
|
||||||
<li class="prev"><a href="<?= $this->url($route,array('page'=>$this->previous),false,true) ?><?= $query ?>">< Previous</a></li>
|
<li class="prev"><a href="<?= $this->url($route,array('page'=>$this->previous),false,true) ?><?= $query ?>">< 前一页</a></li>
|
||||||
<?php else: ?>
|
<?php else: ?>
|
||||||
<li class="prev disabled"><a href="javascript:void(0);">< Previous</a></li>
|
<li class="prev disabled"><a href="javascript:void(0);">< 前一页</a></li>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
|
|
||||||
<!-- Numbered page links -->
|
<!-- Numbered page links -->
|
||||||
|
@ -26,16 +26,16 @@
|
||||||
|
|
||||||
<!-- Next page link -->
|
<!-- Next page link -->
|
||||||
<?php if (isset($this->next)): ?>
|
<?php if (isset($this->next)): ?>
|
||||||
<li class="next"><a href="<?= $this->url($route,array('page'=>$this->next),false,true) ?><?= $query ?>">Next ></a></li>
|
<li class="next"><a href="<?= $this->url($route,array('page'=>$this->next),false,true) ?><?= $query ?>">后一页 ></a></li>
|
||||||
<?php else: ?>
|
<?php else: ?>
|
||||||
<li class="next disabled"><a href="javascript:void(0);">Next ></a></li>
|
<li class="next disabled"><a href="javascript:void(0);">后一页 ></a></li>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
|
|
||||||
<!-- Last page link -->
|
<!-- Last page link -->
|
||||||
<?php if (isset($this->next)): ?>
|
<?php if (isset($this->next)): ?>
|
||||||
<li class="last"><a href="<?= $this->url($route, array('page' => $this->last),false,true); ?><?= $query ?>">Last >></a></li>
|
<li class="last"><a href="<?= $this->url($route, array('page' => $this->last),false,true); ?><?= $query ?>">尾页 >></a></li>
|
||||||
<?php else: ?>
|
<?php else: ?>
|
||||||
<li class="last disabled"><a href="javascript:void(0);">Last >></a></li>
|
<li class="last disabled"><a href="javascript:void(0);">尾页 >></a></li>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in New Issue