36 lines
1.6 KiB
PHP
36 lines
1.6 KiB
PHP
|
<?php echo $this->fetch('library/page_header.html'); ?>
|
||
|
<link rel="stylesheet" type="text/css" href="<?php echo $this->_var['tpl']; ?>css/news.css">
|
||
|
|
||
|
<div class="mainArea">
|
||
|
<div class="wrap b-box">
|
||
|
<div class="titleBox clearfix">
|
||
|
<h2><em>NEWS</em><strong>最新消息</strong></h2>
|
||
|
</div>
|
||
|
<div class="contentBox clearfix">
|
||
|
<div class="g-tv-12 topBox">
|
||
|
</div>
|
||
|
<div class="g-tv-12 bottom">
|
||
|
<ul class="newsList clearfix">
|
||
|
<?php $_from = $this->_var['news_list']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('', 'news');$this->_foreach['news'] = array('total' => count($_from), 'iteration' => 0);
|
||
|
if ($this->_foreach['news']['total'] > 0):
|
||
|
foreach ($_from AS $this->_var['news']):
|
||
|
$this->_foreach['news']['iteration']++;
|
||
|
?>
|
||
|
<li class="g-d-4 g-ml-6 g-mv-12 clearfix">
|
||
|
<div class="item clearfix">
|
||
|
<div class="Img"><a href="news.php?act=view&id=<?php echo $this->_var['news']['id']; ?>" title="<?php echo $this->_var['news']['subject']; ?>"><img src="<?php echo $this->_var['news']['image']; ?>"></a></div>
|
||
|
<div class="Txt b-box">
|
||
|
<div class="date"><?php echo $this->_var['news']['start_time']; ?></div>
|
||
|
<h3><a href="news.php?act=view&id=<?php echo $this->_var['news']['id']; ?>" title="<?php echo $this->_var['news']['subject']; ?>" data-abhover="<?php echo $this->_var['news']['subject']; ?>"><?php echo $this->_var['news']['subject']; ?></a></h3>
|
||
|
<a href="news.php?act=view&id=<?php echo $this->_var['news']['id']; ?>" class="btnMore">View More</a>
|
||
|
</div>
|
||
|
</div>
|
||
|
</li>
|
||
|
<?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
|
||
|
</ul>
|
||
|
</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
<?php echo $this->fetch('library/page_footer.html'); ?>
|