headTitle($this->config->title->site);
$this->headTitle('新闻中心');
$this->headTitle()->setSeparator(' - ');
$this->headLink()->appendStylesheet('/css/news.css');
$this->headScript()->appendFile('/js/jquery-1.7.min.js');
$this->breadcrumb('首页');
$this->breadcrumb('新闻中心');
$this->breadcrumb()->setSeparator(' > ');
?>
paginator))
{
foreach ($this->paginator as $v)
{
$description = "";
if(empty($v['description']))
{
$description = "No description";
}else if (mb_strlen($v['description'])>160)
{
$description = mb_substr($v['description'],0,160,'utf-8').'...(more)';
}else{
$description = $v['description'];
}
echo '-
['.$v['typetitle'].'] '.$v['title'].'
TIME : '.date("Y-m-d H:i",strtotime($v['ts_published'])).'
'.$description.'
';
}
}
else
{
echo '暂无数据';
}
?>
= $this->paginator; ?>