Размер файла: 1.29Kb
<?php $this->display('header', array('sub_title' => 'Форум')) ?>
<div class="title"><img src="<?php echo URL ?>views/<?php echo THEME ?>/img/titl.gif" class="ico" alt="" /><b>Форум</b></div>
<div class="block">
Новые: <a href="<?php echo a_url('forum/viewforum', 'type=new') ?>">темы</a> | <a href="<?php echo a_url('forum/new_messages') ?>">сообщения</a>
</div>
<?php if($sections): ?>
<?php foreach($sections as $section): ?>
<div class="menu">
<img src="<?php echo URL ?>views/<?php echo THEME ?>/img/icon.png" alt="" /> <a href="<?php echo a_url('forum', 'section_id='. $section['section_id']) ?>"><?php echo $section['name'] ?></a>
</div>
<?php if($section['forums']): ?>
<?php foreach($section['forums'] as $forum): ?>
<div class="block" style="margin: 1px 0px 0px 5px;">
<a href="<?php echo a_url('forum/viewforum', 'forum_id='. $forum['forum_id']) ?>"><?php echo $forum['name'] ?></a> [<?php echo $forum['topics'] .'/'. $forum['messages'] ?>]
</div>
<?php endforeach; ?>
<?php endif; ?>
<?php endforeach; ?>
<?php else: ?>
<div class="block">
<p>Разделов нет</p>
</div>
<?php endif; ?>
<div class="block">
<a href="<?php echo URL ?>">На главную</a>
</div>
<?php $this->display('footer') ?>