<?php /* Smarty version 2.6.12, created on 2006-11-28 11:30:43
         compiled from db:newbb_block_new.html */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('function', 'cycle', 'db:newbb_block_new.html', 13, false),)), $this); ?>
<table class="outer" cellspacing="1">

  <?php if ($this->_tpl_vars['block']['full_view'] == true): ?>
  <tr>
    <th><?php echo $this->_tpl_vars['block']['lang_forum']; ?>
</th>
    <th><?php echo $this->_tpl_vars['block']['lang_topic']; ?>
</th>
    <th align="center"><?php echo $this->_tpl_vars['block']['lang_replies']; ?>
</th>
    <th align="center"><?php echo $this->_tpl_vars['block']['lang_views']; ?>
</th>
    <th align="right"><?php echo $this->_tpl_vars['block']['lang_lastpost']; ?>
</th>
  </tr>

  <?php $_from = $this->_tpl_vars['block']['topics']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['topic']):
?>
  <tr class="<?php echo smarty_function_cycle(array('values' => "even,odd"), $this);?>
">
    <td><a href="<?php echo $this->_tpl_vars['xoops_url']; ?>
/modules/newbb/viewforum.php?forum=<?php echo $this->_tpl_vars['topic']['forum_id']; ?>
"><?php echo $this->_tpl_vars['topic']['forum_name']; ?>
</a></td>
    <td><a href="<?php echo $this->_tpl_vars['xoops_url']; ?>
/modules/newbb/viewtopic.php?topic_id=<?php echo $this->_tpl_vars['topic']['id']; ?>
&amp;forum=<?php echo $this->_tpl_vars['topic']['forum_id']; ?>
&amp;post_id=<?php echo $this->_tpl_vars['topic']['post_id']; ?>
#forumpost<?php echo $this->_tpl_vars['topic']['post_id']; ?>
"><?php echo $this->_tpl_vars['topic']['title']; ?>
</a></td>
    <td align="center"><?php echo $this->_tpl_vars['topic']['replies']; ?>
</td>
    <td align="center"><?php echo $this->_tpl_vars['topic']['views']; ?>
</td>
    <td align="right"><?php echo $this->_tpl_vars['topic']['time']; ?>
</td>
  </tr>
  <?php endforeach; endif; unset($_from); ?>

  <?php else: ?>

  <tr>
    <td class="head"><?php echo $this->_tpl_vars['block']['lang_topic']; ?>
</td>
    <td class="head" align="center"><?php echo $this->_tpl_vars['block']['lang_replies']; ?>
</td>
    <td class="head" align="right"><?php echo $this->_tpl_vars['block']['lang_lastpost']; ?>
</td>
  </tr>

  <?php $_from = $this->_tpl_vars['block']['topics']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['topic']):
?>
  <tr class="<?php echo smarty_function_cycle(array('values' => "even,odd"), $this);?>
">
    <td><a href="<?php echo $this->_tpl_vars['xoops_url']; ?>
/modules/newbb/viewtopic.php?topic_id=<?php echo $this->_tpl_vars['topic']['id']; ?>
&amp;forum=<?php echo $this->_tpl_vars['topic']['forum_id']; ?>
"><?php echo $this->_tpl_vars['topic']['title']; ?>
</a></td>
    <td align="center"><?php echo $this->_tpl_vars['topic']['replies']; ?>
</td>
    <td align="right"><?php echo $this->_tpl_vars['topic']['time']; ?>
</td>
  </tr>
  <?php endforeach; endif; unset($_from); ?>

  <?php endif; ?>

</table>

<div style="text-align:right; padding: 5px;">
<a href="<?php echo $this->_tpl_vars['xoops_url']; ?>
/modules/newbb/"><?php echo $this->_tpl_vars['block']['lang_visitforums']; ?>
</a>
</div>