2012-12-03 10:08:25 +00:00
|
|
|
|
<?php
|
|
|
|
|
$this->headTitle($this->config->title->site);
|
|
|
|
|
$this->headTitle('新闻中心');
|
|
|
|
|
$this->headTitle()->setSeparator(' - ');
|
|
|
|
|
$this->breadcrumb('<a href="/">首页</a>');
|
2012-12-04 09:31:14 +00:00
|
|
|
|
$this->breadcrumb('<a href="/archives/">新闻中心</a>');
|
2012-12-03 10:08:25 +00:00
|
|
|
|
$this->breadcrumb($this->title);
|
2013-04-09 13:06:08 +00:00
|
|
|
|
$this->breadcrumb()->setSeparator(' > ');
|
2012-12-03 10:08:25 +00:00
|
|
|
|
?>
|
2014-05-27 09:56:38 +00:00
|
|
|
|
|
|
|
|
|
<!-- 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="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
|
2013-03-25 09:21:37 +00:00
|
|
|
|
if(count($this->types))
|
|
|
|
|
{
|
|
|
|
|
foreach($this->types as $k=>$v)
|
2012-12-03 10:08:25 +00:00
|
|
|
|
{
|
2013-03-25 09:21:37 +00:00
|
|
|
|
$haed = "";
|
|
|
|
|
if(!empty($v[$this->deepField])) {$haed = str_repeat(' ',$v[$this->deepField]);}
|
2013-04-09 12:52:14 +00:00
|
|
|
|
echo '<li'.($v['code']==$this->type?' class="active"':'').'><a href="'.$v['url'].'"><i class="icon-chevron-right"></i>'.$haed.$v['title'].'</a></li>';
|
2013-03-25 09:21:37 +00:00
|
|
|
|
$haed = "";
|
2012-12-03 10:08:25 +00:00
|
|
|
|
}
|
2013-03-25 09:21:37 +00:00
|
|
|
|
}
|
|
|
|
|
?>
|
|
|
|
|
</ul>
|
2014-05-27 09:56:38 +00:00
|
|
|
|
</div>
|
|
|
|
|
<!-- /.bs-docs-sidebar -->
|
|
|
|
|
|
2012-12-03 10:08:25 +00:00
|
|
|
|
</div>
|
2014-05-27 09:56:38 +00:00
|
|
|
|
<!-- /.span3 -->
|
|
|
|
|
<?php $list = $this->paginator;?>
|
2013-03-25 09:21:37 +00:00
|
|
|
|
<div class="span9">
|
2014-05-27 09:56:38 +00:00
|
|
|
|
<div class="Lbox">
|
|
|
|
|
<h4 class="box-title">新闻列表</h4>
|
|
|
|
|
<ol >
|
|
|
|
|
<?php
|
2012-12-03 10:08:25 +00:00
|
|
|
|
if(count($this->paginator))
|
|
|
|
|
{
|
|
|
|
|
foreach ($this->paginator as $v)
|
|
|
|
|
{
|
2013-04-09 13:06:08 +00:00
|
|
|
|
$description = "";
|
2013-04-09 12:52:14 +00:00
|
|
|
|
if (mb_strlen($v['description'])>160)
|
2012-12-03 10:08:25 +00:00
|
|
|
|
{
|
|
|
|
|
$description = mb_substr($v['description'],0,160,'utf-8').'...<a href="'.$v['url'].'" class="more">(more)</a>';
|
|
|
|
|
}else{
|
|
|
|
|
$description = $v['description'];
|
2013-04-09 13:06:08 +00:00
|
|
|
|
}
|
|
|
|
|
?>
|
2014-06-17 00:07:35 +00:00
|
|
|
|
<li><a href="<?php echo $v['url']; ?>"><?php echo $v['title']; ?></a> <small class="pull-right">[<?php echo date("Y-m-d",strtotime( $v['ts_published'] )); ?>]</small></li>
|
2014-05-27 09:56:38 +00:00
|
|
|
|
<?php
|
2012-12-03 10:08:25 +00:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
echo '暂无数据';
|
|
|
|
|
}
|
|
|
|
|
?>
|
2014-05-27 09:56:38 +00:00
|
|
|
|
</ol>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="pagenavi">
|
|
|
|
|
<?= $this->paginator; ?>
|
|
|
|
|
</div>
|
2012-12-03 10:08:25 +00:00
|
|
|
|
</div>
|
2014-05-27 09:56:38 +00:00
|
|
|
|
<!-- /.span9 -->
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
<!-- /.row -->
|
|
|
|
|
|
|
|
|
|
<!-- <div class="pagination">
|
|
|
|
|
<ul>
|
|
|
|
|
<li class="disabled"><a href="#">«</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="#">»</a></li>
|
|
|
|
|
</ul>
|
|
|
|
|
</div>-->
|
|
|
|
|
</div>
|
2013-04-09 13:06:08 +00:00
|
|
|
|
</div>
|
2014-05-27 09:56:38 +00:00
|
|
|
|
<!-- /.container -->
|