调整列表页面板块比例。

This commit is contained in:
Li Heng 2014-01-25 14:21:59 +00:00
parent f9e1342ee6
commit 020a9d7a0e
2 changed files with 61 additions and 42 deletions

View File

@ -9,44 +9,32 @@ $this->breadcrumb()->setSeparator(' > ');
?>
<!-- Marketing messaging and featurettes
================================================== -->
================================================== -->
<!-- Wrap the rest of the page in another container to center all the content. -->
<div class="container marketing">
<!-- Three columns of text below the carousel -->
<div class="row-fluid">
<div class="span9">
<div class="Lbox">
<h4 class="box-title">新闻动态</h4>
<ol >
<?php
if(count($this->paginator))
{
foreach ($this->paginator as $v)
{
$description = "";
if (mb_strlen($v['description'])>160)
{
$description = mb_substr($v['description'],0,160,'utf-8').'...<a href="'.$v['url'].'" class="more">(more)</a>';
}else{
$description = $v['description'];
}
?>
<li><a href="<?php echo $v['url']; ?>"><?php echo $v['title']; ?></a><small>[<?php echo date("Y-m-d",strtotime( $v['ts_published'] )); ?>]</small></li>
<?php
}
}
else
{
echo '暂无数据';
}
?>
</ol>
</div>
</div>
<!-- /.span9 -->
<div class="span3">
<div class="bs-docs-sidebar">
<ul class="nav nav-list bs-docs-sidenav">
<li><a href="/archives"><i class="icon-chevron-right"></i>新闻中心</a></li>
<?php
if(count($this->types))
{
foreach($this->types as $k=>$v)
{
$haed = "";
if(!empty($v[$this->deepField])) {$haed = str_repeat(' ',$v[$this->deepField]);}
echo '<li'.($v['code']==$this->type?' class="active"':'').'><a href="'.$v['url'].'"><i class="icon-chevron-right"></i>'.$haed.$v['title'].'</a></li>';
$haed = "";
}
}
?>
</ul>
</div>
<!-- /.bs-docs-sidebar -->
<div class="Lbox">
<h4 class="box-title">热门排行</h4>
<ol >
@ -71,19 +59,50 @@ $this->breadcrumb()->setSeparator(' > ');
</ol>
</div>
</div>
<!-- /.span4 -->
<!-- /.span3 -->
<div class="span9">
<div class="Lbox">
<h4 class="box-title">新闻动态</h4>
<ol >
<?php
if(count($this->paginator))
{
foreach ($this->paginator as $v)
{
$description = "";
if (mb_strlen($v['description'])>160)
{
$description = mb_substr($v['description'],0,160,'utf-8').'...<a href="'.$v['url'].'" class="more">(more)</a>';
}else{
$description = $v['description'];
}
?>
<li><a href="<?php echo $v['url']; ?>"><?php echo $v['title']; ?></a><small>[<?php echo date("Y-m-d",strtotime( $v['ts_published'] )); ?>]</small></li>
<?php
}
}
else
{
echo '暂无数据';
}
?>
</ol>
</div>
</div>
<!-- /.span9 -->
</div>
<!-- /.row -->
<!-- /.row -->
<div class="pagination">
<ul>
<li class="disabled"><a href="#">&laquo;</a></li>
<li class="active"><a href="#">1</a></li>
<li ><a href="#">2</a></li>
<li ><a href="#">3</a></li>
<li class="disabled"><a href="#">&raquo;</a></li>
</ul>
<ul>
<li class="disabled"><a href="#">&laquo;</a></li>
<li class="active"><a href="#">1</a></li>
<li ><a href="#">2</a></li>
<li ><a href="#">3</a></li>
<li class="disabled"><a href="#">&raquo;</a></li>
</ul>
</div>
</div>
</div>
</div>
<!-- /.container -->

View File

@ -14,7 +14,7 @@
<div class="span12">
<div class="span4">
<div class="box">
<h4 class="box-title">数据中心新闻</h4>
<h4 class="box-title">省监测中心新闻</h4>
<ul>
<?php foreach($this->list_news as $k=>$v){ ?>
<li><a href="<?= $v['url'] ?>"><?= $v['title'] ?></a></li>