westdc-zf1/application/default/views/scripts/archives/list-bak.phtml

71 lines
2.4 KiB
PHTML
Raw Permalink Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<?php
$this->headTitle($this->config->title->site);
$this->headTitle('新闻中心');
$this->headTitle()->setSeparator(' - ');
$this->breadcrumb('<a href="/">首页</a>');
$this->breadcrumb('<a href="/archives/">新闻中心</a>');
$this->breadcrumb($this->title);
$this->breadcrumb()->setSeparator(' > ');
$this->headLink()->appendStylesheet('/static-sanji-v2/css/archive.css');
?>
<div class="content-warp">
<div class="list-warp container" >
<div class="row">
<div class="col-md-3">
<div class="list-group">
<a href="#" class="list-group-item active">
新闻动态
</a>
<?php
if(count($this->types))
{
foreach($this->types as $k=>$v)
{
$haed = "";
if(!empty($v[$this->deepField])) {$haed = str_repeat(' ',$v[$this->deepField]);}
echo '<a href="'.$v['url'].'" class="list-group-item">'.$haed.$v['title'].'</a>';
$haed = "";
}
}
?>
</div>
<a href="#" class="thumbnail">
<img src="/images/sea-ice.jpg" alt="sea ice">
</a>
</div>
<div class="col-md-8">
<ol class="breadcrumb">
<li><a href="/">首页</a></li>
<li><a href="/archives/news/localnews" class="active">新闻动态</a></li>
</ol>
<ul class="news-list">
<?php
if(count($this->paginator))
{
foreach ($this->paginator as $v)
{
?>
<li><a href="<?php echo $v['url']; ?>"><?php echo $v['title']; ?></a><span class="pull-right"><?php echo date("Y-m-d",strtotime( $v['ts_published'] )); ?></span></li>
<?php
}
} else {
echo '暂无数据';
}
?>
</ul>
<div class="page">
<div class="pagenavi"><?= $this->paginator; ?></div>
</div>
</div>
</div>
</div>
</div>