<?php /* Smarty version 2.6.12, created on 2006-11-24 13:45:21
         compiled from db:newbb_index.html */ ?>
<!-- start module contents -->
<table cellspacing="0" width="100%">
  <tr>
    <td colspan="2"><b><?php echo $this->_tpl_vars['lang_welcomemsg']; ?>
</b><br /><small><?php echo $this->_tpl_vars['lang_tostart']; ?>
</small><hr /></td>
  </tr>
  <tr valign="bottom">
    <td><small><?php echo $this->_tpl_vars['lang_totaltopics']; ?>
<b><?php echo $this->_tpl_vars['total_topics']; ?>
</b> | <?php echo $this->_tpl_vars['lang_totalposts']; ?>
<b><?php echo $this->_tpl_vars['total_posts']; ?>
</b></small><br /><br /><a href="<?php echo $this->_tpl_vars['xoops_url']; ?>
/modules/newbb/index.php"><?php echo $this->_tpl_vars['forum_index_title']; ?>
</a></td>
    <td align="right"><small><?php echo $this->_tpl_vars['lang_currenttime']; ?>
<br /><?php echo $this->_tpl_vars['lang_lastvisit']; ?>
</small></td>
  </tr>
</table>
<br />

<!-- start forum categories -->
<?php unset($this->_sections['category']);
$this->_sections['category']['name'] = 'category';
$this->_sections['category']['loop'] = is_array($_loop=$this->_tpl_vars['categories']) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$this->_sections['category']['show'] = true;
$this->_sections['category']['max'] = $this->_sections['category']['loop'];
$this->_sections['category']['step'] = 1;
$this->_sections['category']['start'] = $this->_sections['category']['step'] > 0 ? 0 : $this->_sections['category']['loop']-1;
if ($this->_sections['category']['show']) {
    $this->_sections['category']['total'] = $this->_sections['category']['loop'];
    if ($this->_sections['category']['total'] == 0)
        $this->_sections['category']['show'] = false;
} else
    $this->_sections['category']['total'] = 0;
if ($this->_sections['category']['show']):

            for ($this->_sections['category']['index'] = $this->_sections['category']['start'], $this->_sections['category']['iteration'] = 1;
                 $this->_sections['category']['iteration'] <= $this->_sections['category']['total'];
                 $this->_sections['category']['index'] += $this->_sections['category']['step'], $this->_sections['category']['iteration']++):
$this->_sections['category']['rownum'] = $this->_sections['category']['iteration'];
$this->_sections['category']['index_prev'] = $this->_sections['category']['index'] - $this->_sections['category']['step'];
$this->_sections['category']['index_next'] = $this->_sections['category']['index'] + $this->_sections['category']['step'];
$this->_sections['category']['first']      = ($this->_sections['category']['iteration'] == 1);
$this->_sections['category']['last']       = ($this->_sections['category']['iteration'] == $this->_sections['category']['total']);
?>
<table cellspacing="1" class="outer">
  <tr align="left" valign="top"><th colspan="5"> <a href="<?php echo $this->_tpl_vars['xoops_url']; ?>
/modules/newbb/index.php?cat=<?php echo $this->_tpl_vars['categories'][$this->_sections['category']['index']]['cat_id']; ?>
" style="color:#FFFFFF"><?php echo $this->_tpl_vars['categories'][$this->_sections['category']['index']]['cat_title']; ?>
</a></th></tr>
  <tr class="head" align="center">
    <td>&nbsp;</td>
	<td nowrap="nowrap" align="left"><?php echo $this->_tpl_vars['lang_forum']; ?>
</td>
	<td nowrap="nowrap"><?php echo $this->_tpl_vars['lang_topics']; ?>
</td>
	<td nowrap="nowrap"><?php echo $this->_tpl_vars['lang_posts']; ?>
</td>
	<td nowrap="nowrap"><?php echo $this->_tpl_vars['lang_lastpost']; ?>
</td>
  </tr>
  <!-- start forums -->
  <?php unset($this->_sections['forum']);
$this->_sections['forum']['name'] = 'forum';
$this->_sections['forum']['loop'] = is_array($_loop=$this->_tpl_vars['categories'][$this->_sections['category']['index']]['forums']['forum_id']) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$this->_sections['forum']['show'] = true;
$this->_sections['forum']['max'] = $this->_sections['forum']['loop'];
$this->_sections['forum']['step'] = 1;
$this->_sections['forum']['start'] = $this->_sections['forum']['step'] > 0 ? 0 : $this->_sections['forum']['loop']-1;
if ($this->_sections['forum']['show']) {
    $this->_sections['forum']['total'] = $this->_sections['forum']['loop'];
    if ($this->_sections['forum']['total'] == 0)
        $this->_sections['forum']['show'] = false;
} else
    $this->_sections['forum']['total'] = 0;
if ($this->_sections['forum']['show']):

            for ($this->_sections['forum']['index'] = $this->_sections['forum']['start'], $this->_sections['forum']['iteration'] = 1;
                 $this->_sections['forum']['iteration'] <= $this->_sections['forum']['total'];
                 $this->_sections['forum']['index'] += $this->_sections['forum']['step'], $this->_sections['forum']['iteration']++):
$this->_sections['forum']['rownum'] = $this->_sections['forum']['iteration'];
$this->_sections['forum']['index_prev'] = $this->_sections['forum']['index'] - $this->_sections['forum']['step'];
$this->_sections['forum']['index_next'] = $this->_sections['forum']['index'] + $this->_sections['forum']['step'];
$this->_sections['forum']['first']      = ($this->_sections['forum']['iteration'] == 1);
$this->_sections['forum']['last']       = ($this->_sections['forum']['iteration'] == $this->_sections['forum']['total']);
?>
  <tr>
    <td class="even" align="center" valign="middle" width="5%"><img src="<?php echo $this->_tpl_vars['categories'][$this->_sections['category']['index']]['forums']['forum_folder'][$this->_sections['forum']['index']]; ?>
" alt="" /></td>
    <td class="odd" onclick="window.location='<?php echo $this->_tpl_vars['xoops_url']; ?>
/modules/newbb/viewforum.php?forum=<?php echo $this->_tpl_vars['categories'][$this->_sections['category']['index']]['forums']['forum_id'][$this->_sections['forum']['index']]; ?>
'"><a href="<?php echo $this->_tpl_vars['xoops_url']; ?>
/modules/newbb/viewforum.php?forum=<?php echo $this->_tpl_vars['categories'][$this->_sections['category']['index']]['forums']['forum_id'][$this->_sections['forum']['index']]; ?>
"><b><?php echo $this->_tpl_vars['categories'][$this->_sections['category']['index']]['forums']['forum_name'][$this->_sections['forum']['index']]; ?>
</b></a><br /><?php echo $this->_tpl_vars['categories'][$this->_sections['category']['index']]['forums']['forum_desc'][$this->_sections['forum']['index']]; ?>
<br /><span style="font-size:smaller;"><b><?php echo $this->_tpl_vars['lang_moderators']; ?>
</b> <?php echo $this->_tpl_vars['categories'][$this->_sections['category']['index']]['forums']['forum_moderators'][$this->_sections['forum']['index']]; ?>
</span></td>
    <td class="even" width="5%" align="center" valign="middle"><?php echo $this->_tpl_vars['categories'][$this->_sections['category']['index']]['forums']['forum_topics'][$this->_sections['forum']['index']]; ?>
</td>
    <td class="odd" width="5%" align="center" valign="middle"><?php echo $this->_tpl_vars['categories'][$this->_sections['category']['index']]['forums']['forum_posts'][$this->_sections['forum']['index']]; ?>
</td>
    <td class="even" width="20%" align="center" valign="middle"><?php echo $this->_tpl_vars['categories'][$this->_sections['category']['index']]['forums']['forum_lastpost_time'][$this->_sections['forum']['index']]; ?>
<br /><?php echo $this->_tpl_vars['categories'][$this->_sections['category']['index']]['forums']['forum_lastpost_user'][$this->_sections['forum']['index']]; ?>
 <?php echo $this->_tpl_vars['categories'][$this->_sections['category']['index']]['forums']['forum_lastpost_icon'][$this->_sections['forum']['index']]; ?>
</td>
  </tr>
  <?php endfor; endif; ?>
  <!-- end forums -->
</table>
<img src="images/pixel.gif" height="5" alt="" /><br />
<?php endfor; endif; ?>
<!-- end forum categories -->

<form name="search" action="search.php" method="post">
  <table width="100%">
    <tr>
      <td valign="middle"><img src="<?php echo $this->_tpl_vars['img_hotfolder']; ?>
" alt="" /> = <?php echo $this->_tpl_vars['lang_newposts']; ?>
<br /><img src="<?php echo $this->_tpl_vars['img_folder']; ?>
" alt="" /> = <?php echo $this->_tpl_vars['lang_nonewposts']; ?>
<br />  <img src="<?php echo $this->_tpl_vars['img_locked']; ?>
" alt="" /> = <?php echo $this->_tpl_vars['lang_private']; ?>
</td>
      <td align="right" valign="bottom"><b><?php echo $this->_tpl_vars['lang_search']; ?>
</b>&nbsp;<input name="term" type="text" size="20" /><input type="hidden" name="forum" value="all" /><input type="hidden" name="sortby" value="p.post_time desc" /><input type="hidden" name="searchboth" value="both" /><input type="hidden" name="submit" value="<?php echo $this->_tpl_vars['lang_search']; ?>
" /><br />[ <a href="<?php echo $this->_tpl_vars['xoops_url']; ?>
/modules/newbb/search.php"><?php echo $this->_tpl_vars['lang_advsearch']; ?>
</a> ]</td>
    </tr>
  </table>
</form>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => 'db:system_notification_select.html', 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
<!-- end module contents -->