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

50 lines
1.6 KiB
PHTML
Raw Normal View History

<?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);
2013-04-09 13:06:08 +00:00
$this->breadcrumb()->setSeparator(' > ');
2018-02-04 07:05:06 +00:00
$this->headLink()->appendStylesheet('/static-sanji/css/new-list.css');
?>
2018-02-04 07:05:06 +00:00
<div class="body-warp">
<div class="nav" id="nav">
<ul>
<?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><a href="'.$v['url'].'">'.$haed.$v['title'].'</a></li>';
$haed = "";
}
}
?>
</ul>
</div>
2018-02-04 07:05:06 +00:00
<div class="list-warp container">
<ul>
<?php
if(count($this->paginator))
{
foreach ($this->paginator as $v)
{
?>
<li><a href="<?php echo $v['url']; ?>"><?php echo $v['title']; ?></a><span><?php echo date("Y-m-d",strtotime( $v['ts_published'] )); ?></span></li>
<?php
}
} else {
echo '暂无数据';
}
?>
</ul>
2018-02-04 07:05:06 +00:00
</div>
<div class="page">
<div class="pagenavi"><?= $this->paginator; ?></div>
</div>
2013-04-09 13:06:08 +00:00
</div>
2018-02-04 07:05:06 +00:00