Размер файла: 1.11Kb
<?php $this->display('header.tpl', array('sub_title' => 'Новости')) ?>
<div class="title"><img src="<?php echo URL ?>views/<?php echo THEME ?>/img/titl.gif" class="ico" alt="" /><b>Новости</b></div>
<?php if(!empty($list_news)): ?>
<?php foreach($list_news as $news): ?>
<div class="menu">
<u><?php echo $news['subject'] ?></u> <span class="small_text">[<?php echo date('d.m.Y', $news['time']) ?>]</span><br />
<?php echo $news['text'] ?><br />
<img src="<?php echo URL ?>modules/comments/images/comment.png" alt="" border="0" /> <a href="<?php echo a_url('comments', 'module=news&item_id='. $news['news_id'] .'&return='. urlencode(a_url('news', 'start='. @$_GET['start'], TRUE))) ?>">Обсудить</a> <span class="small_text">[<?php echo $news['comments'] ?>]</span>
</div>
<?php endforeach; ?>
<?php else: ?>
<div class="block">
<b>Новостей нет</b>
</div>
<?php endif; ?>
<?php if($pagination)
echo '<div class="block">'. $pagination .'</div>';
?>
<div class="block">
<a href="<?php echo URL ?>">На главную</a>
</div>
<?php $this->display('footer') ?>