<table width="100%" border="0" cellspacing="0" cellpadding="2">
  <tr>
    <td align="left" valign="top" >
      <a href="<?php echo isset($this->vars['U_VIEW_FORUM']) ? $this->vars['U_VIEW_FORUM'] : ''; ?>"><span class="maintitle"><?php echo isset($this->vars['FORUM_NAME']) ? $this->vars['FORUM_NAME'] : ''; ?></span></a>
      <br><?php echo isset($this->vars['PAGINATION']) ? $this->vars['PAGINATION'] : ''; ?>
    </td>
    <!--
    <td class="gensmall" align="right" valign="bottom"><?php echo isset($this->vars['L_MODERATOR']) ? $this->vars['L_MODERATOR'] : ''; ?>: <?php echo isset($this->vars['MODERATORS']) ? $this->vars['MODERATORS'] : ''; ?><br />
    <?php echo isset($this->vars['LOGGED_IN_USER_LIST']) ? $this->vars['LOGGED_IN_USER_LIST'] : ''; ?><br />
    <strong><a href="<?php echo isset($this->vars['U_MARK_READ']) ? $this->vars['U_MARK_READ'] : ''; ?>"><?php echo isset($this->vars['L_MARK_TOPICS_READ']) ? $this->vars['L_MARK_TOPICS_READ'] : ''; ?></a></strong></td>
    -->
  </tr>
</table>
<table width="100%" cellspacing="2" cellpadding="2" border="0">
  <tr>
    <td class="nav" valign="bottom"><a href="<?php echo isset($this->vars['U_INDEX']) ? $this->vars['U_INDEX'] : ''; ?>" class="nav"><?php echo isset($this->vars['L_INDEX']) ? $this->vars['L_INDEX'] : ''; ?></a><?php echo isset($this->vars['NAV_CAT_DESC']) ? $this->vars['NAV_CAT_DESC'] : ''; ?><?php echo isset($this->vars['NAV_SEPARATOR']) ? $this->vars['NAV_SEPARATOR'] : ''; ?><a href="<?php echo isset($this->vars['U_VIEW_FORUM']) ? $this->vars['U_VIEW_FORUM'] : ''; ?>" class="nav"><?php echo isset($this->vars['FORUM_NAME']) ? $this->vars['FORUM_NAME'] : ''; ?></a></td>
  </tr>
  <tr>
    <td valign="bottom"><a href="<?php echo isset($this->vars['U_POST_NEW_TOPIC']) ? $this->vars['U_POST_NEW_TOPIC'] : ''; ?>"><img src="<?php echo isset($this->vars['POST_IMG']) ? $this->vars['POST_IMG'] : ''; ?>" border="0" alt="<?php echo isset($this->vars['L_POST_NEW_TOPIC']) ? $this->vars['L_POST_NEW_TOPIC'] : ''; ?>" title="<?php echo isset($this->vars['L_POST_NEW_TOPIC']) ? $this->vars['L_POST_NEW_TOPIC'] : ''; ?>"  /></a></td>
    <td class="gensmall" align="right" valign="bottom"><?php echo isset($this->vars['L_MODERATOR']) ? $this->vars['L_MODERATOR'] : ''; ?>: <?php echo isset($this->vars['MODERATORS']) ? $this->vars['MODERATORS'] : ''; ?><br />
    <?php echo isset($this->vars['LOGGED_IN_USER_LIST']) ? $this->vars['LOGGED_IN_USER_LIST'] : ''; ?><br />
    <strong><a href="<?php echo isset($this->vars['U_MARK_READ']) ? $this->vars['U_MARK_READ'] : ''; ?>"><?php echo isset($this->vars['L_MARK_TOPICS_READ']) ? $this->vars['L_MARK_TOPICS_READ'] : ''; ?></a></strong></td>
  </tr>
</table>
<table border="0" cellpadding="2" cellspacing="1" width="100%" class="forumline">
  <tr>
    <!-- Image Mod -->
    <!--  <th colspan="2">&nbsp;<?php echo isset($this->vars['L_TOPICS']) ? $this->vars['L_TOPICS'] : ''; ?>&nbsp;</th> -->
    <th colspan="3">&nbsp;<?php echo isset($this->vars['L_TOPICS']) ? $this->vars['L_TOPICS'] : ''; ?>&nbsp;</th>
    <!-- Image Mod -->
		<th width="50">&nbsp;<?php echo isset($this->vars['L_REPLIES']) ? $this->vars['L_REPLIES'] : ''; ?>&nbsp;</th>
		<th width="100">&nbsp;<?php echo isset($this->vars['L_AUTHOR']) ? $this->vars['L_AUTHOR'] : ''; ?>&nbsp;</th>
		<th width="50">&nbsp;<?php echo isset($this->vars['L_VIEWS']) ? $this->vars['L_VIEWS'] : ''; ?>&nbsp;</th>
		<th>&nbsp;<?php echo isset($this->vars['L_LASTPOST']) ? $this->vars['L_LASTPOST'] : ''; ?>&nbsp;</th>
  </tr>
  <?php

$topicrow_count = ( isset($this->_tpldata['topicrow.']) ) ?  sizeof($this->_tpldata['topicrow.']) : 0;
for ($topicrow_i = 0; $topicrow_i < $topicrow_count; $topicrow_i++)
{
 $topicrow_item = &$this->_tpldata['topicrow.'][$topicrow_i];

?>
  <!-- mod : split topic type -->
  <?php

$topictype_count = ( isset($topicrow_item['topictype.']) ) ? sizeof($topicrow_item['topictype.']) : 0;
for ($topictype_i = 0; $topictype_i < $topictype_count; $topictype_i++)
{
 $topictype_item = &$topicrow_item['topictype.'][$topictype_i];

?>
  <tr>
    <td colspan="7" align="left" class="cat"><span class="topictitle"><?php echo isset($topictype_item['TITLE']) ? $topictype_item['TITLE'] : ''; ?></span></td>
  </tr>
  <?php

} // END topictype

?>
  <!-- fin mod : split topic type -->
  <tr>
    <td height="34" class="row1"><a href="<?php echo isset($topicrow_item['U_VIEW_TOPIC']) ? $topicrow_item['U_VIEW_TOPIC'] : ''; ?>"><img src="<?php echo isset($topicrow_item['TOPIC_FOLDER_IMG']) ? $topicrow_item['TOPIC_FOLDER_IMG'] : ''; ?>" alt="<?php echo isset($topicrow_item['L_TOPIC_FOLDER_ALT']) ? $topicrow_item['L_TOPIC_FOLDER_ALT'] : ''; ?>" title="<?php echo isset($topicrow_item['L_TOPIC_FOLDER_ALT']) ? $topicrow_item['L_TOPIC_FOLDER_ALT'] : ''; ?>" border="0" /></a></td>
    <!-- Image Mod -->
    <td class="row1" align="center" valign="middle" width="16"><?php echo isset($topicrow_item['ICON']) ? $topicrow_item['ICON'] : ''; ?></td>
    <!-- Image Mod -->
		<!-- Begin PNphpBB2 Attachment Mod -->
     <td class="row1" width="100%" onMouseOver="this.style.backgroundColor='<?php echo isset($this->vars['T_TD_COLOR1']) ? $this->vars['T_TD_COLOR1'] : ''; ?>'; this.style.cursor='hand';" onMouseOut=this.style.backgroundColor="<?php echo isset($this->vars['T_TR_COLOR1']) ? $this->vars['T_TR_COLOR1'] : ''; ?>" onclick="window.location.href='<?php echo isset($topicrow_item['U_VIEW_TOPIC']) ? $topicrow_item['U_VIEW_TOPIC'] : ''; ?>'"><span class="topictitle"><?php echo isset($topicrow_item['NEWEST_POST_IMG']) ? $topicrow_item['NEWEST_POST_IMG'] : ''; ?><?php echo isset($topicrow_item['TOPIC_TYPE']) ? $topicrow_item['TOPIC_TYPE'] : ''; ?><a href="<?php echo isset($topicrow_item['U_VIEW_TOPIC']) ? $topicrow_item['U_VIEW_TOPIC'] : ''; ?>" class="topictitle"><?php echo isset($topicrow_item['TOPIC_TITLE']) ? $topicrow_item['TOPIC_TITLE'] : ''; ?></a></span><span class="gensmall"><br /> 		<!-- End PNphpBB2 Attachment Mod -->
		<?php echo isset($topicrow_item['GOTO_PAGE']) ? $topicrow_item['GOTO_PAGE'] : ''; ?></span></td>
		<td class="row2" align="center"><span class="postdetails"><?php echo isset($topicrow_item['REPLIES']) ? $topicrow_item['REPLIES'] : ''; ?></span></td>
		<td class="row3" align="center"><span class="postdetails"><?php echo isset($topicrow_item['TOPIC_AUTHOR']) ? $topicrow_item['TOPIC_AUTHOR'] : ''; ?></span></td>
		<td class="row2" align="center"><span class="postdetails"><?php echo isset($topicrow_item['VIEWS']) ? $topicrow_item['VIEWS'] : ''; ?></span></td>
		<td class="row3" align="center" nowrap="nowrap"><span class="postdetails">&nbsp;<?php echo isset($topicrow_item['LAST_POST_TIME']) ? $topicrow_item['LAST_POST_TIME'] : ''; ?>&nbsp;<br />
		<?php echo isset($topicrow_item['LAST_POST_AUTHOR']) ? $topicrow_item['LAST_POST_AUTHOR'] : ''; ?> <?php echo isset($topicrow_item['LAST_POST_IMG']) ? $topicrow_item['LAST_POST_IMG'] : ''; ?></span></td>
	</tr>
	<?php

} // END topicrow

?>
	<?php

$switch_no_topics_count = ( isset($this->_tpldata['switch_no_topics.']) ) ?  sizeof($this->_tpldata['switch_no_topics.']) : 0;
for ($switch_no_topics_i = 0; $switch_no_topics_i < $switch_no_topics_count; $switch_no_topics_i++)
{
 $switch_no_topics_item = &$this->_tpldata['switch_no_topics.'][$switch_no_topics_i];

?>
	<tr>
	  <td class="row1" colspan="7" align="center"><?php echo isset($this->vars['L_NO_TOPICS']) ? $this->vars['L_NO_TOPICS'] : ''; ?></td>
	</tr>
	<?php

} // END switch_no_topics

?>
	<tr>
	  <td class="cat" align="center" colspan="7">
      <table border="0" cellspacing="1" cellpadding="1" align="center">
			  <tr>
				  <td class="genmed" align="center">
					  <form method="post" action="<?php echo isset($this->vars['S_POST_DAYS_ACTION']) ? $this->vars['S_POST_DAYS_ACTION'] : ''; ?>">
						  <?php echo isset($this->vars['L_SORT_METHOD']) ? $this->vars['L_SORT_METHOD'] : ''; ?>:&nbsp;<?php echo isset($this->vars['S_SORT_METHOD']) ? $this->vars['S_SORT_METHOD'] : ''; ?>&nbsp;&nbsp;<?php echo isset($this->vars['L_ORDER']) ? $this->vars['L_ORDER'] : ''; ?>:&nbsp;<?php echo isset($this->vars['S_ORDER']) ? $this->vars['S_ORDER'] : ''; ?>&nbsp;&nbsp;
						  <?php echo isset($this->vars['L_DISPLAY_TOPICS']) ? $this->vars['L_DISPLAY_TOPICS'] : ''; ?>:&nbsp;<?php echo isset($this->vars['S_SELECT_TOPIC_DAYS']) ? $this->vars['S_SELECT_TOPIC_DAYS'] : ''; ?>&nbsp;&nbsp;
						  <input type="submit" class="catbutton" value="<?php echo isset($this->vars['L_GO']) ? $this->vars['L_GO'] : ''; ?>" name="submit" />
						</form>
					</td>
				</tr>
				<tr class="genmed" align="center">
				  <td><?php echo isset($this->vars['SEARCHBOX']) ? $this->vars['SEARCHBOX'] : ''; ?>&nbsp;&nbsp;<?php echo isset($this->vars['JUMPBOX']) ? $this->vars['JUMPBOX'] : ''; ?></td>
				</tr>
			</table>
		</td>
	</tr>
</table>
<table width="100%" cellspacing="2" cellpadding="2" border="0">
  <tr>
	  <td valign="top"><a href="<?php echo isset($this->vars['U_POST_NEW_TOPIC']) ? $this->vars['U_POST_NEW_TOPIC'] : ''; ?>"><img src="<?php echo isset($this->vars['POST_IMG']) ? $this->vars['POST_IMG'] : ''; ?>" border="0" alt="<?php echo isset($this->vars['L_POST_NEW_TOPIC']) ? $this->vars['L_POST_NEW_TOPIC'] : ''; ?>" title="<?php echo isset($this->vars['L_POST_NEW_TOPIC']) ? $this->vars['L_POST_NEW_TOPIC'] : ''; ?>" /></a></td>
		<td rowspan="2" class="gensmall" align="right" valign="top"><?php echo isset($this->vars['S_TIMEZONE']) ? $this->vars['S_TIMEZONE'] : ''; ?><br />
		<strong><a href="<?php echo isset($this->vars['U_MARK_READ']) ? $this->vars['U_MARK_READ'] : ''; ?>"><?php echo isset($this->vars['L_MARK_TOPICS_READ']) ? $this->vars['L_MARK_TOPICS_READ'] : ''; ?></a></strong><br />
		<?php echo isset($this->vars['L_MODERATOR']) ? $this->vars['L_MODERATOR'] : ''; ?>: <?php echo isset($this->vars['MODERATORS']) ? $this->vars['MODERATORS'] : ''; ?><br /><?php echo isset($this->vars['LOGGED_IN_USER_LIST']) ? $this->vars['LOGGED_IN_USER_LIST'] : ''; ?></td>
	</tr>
	<tr>
	  <td class="nav" valign="top"><?php echo isset($this->vars['PAGINATION']) ? $this->vars['PAGINATION'] : ''; ?></td>
	</tr>
	<tr>
	  <td class="nav"><a href="<?php echo isset($this->vars['U_INDEX']) ? $this->vars['U_INDEX'] : ''; ?>" class="nav"><?php echo isset($this->vars['L_INDEX']) ? $this->vars['L_INDEX'] : ''; ?></a><?php echo isset($this->vars['NAV_CAT_DESC']) ? $this->vars['NAV_CAT_DESC'] : ''; ?><?php echo isset($this->vars['NAV_SEPARATOR']) ? $this->vars['NAV_SEPARATOR'] : ''; ?><a href="<?php echo isset($this->vars['U_VIEW_FORUM']) ? $this->vars['U_VIEW_FORUM'] : ''; ?>" class="nav"><?php echo isset($this->vars['FORUM_NAME']) ? $this->vars['FORUM_NAME'] : ''; ?></a></td>
	</tr>
</table>
<table width="100%" cellpadding="2" cellspacing="1" border="0" class="forumline">
  <tr>
	  <td colspan="7" align="left" class="cat"><span class="topictitle"><?php echo isset($this->vars['L_LEGEND']) ? $this->vars['L_LEGEND'] : ''; ?></span></td>
		<!-- <td class="cat" colspan="8"><a class="topictitle"><?php echo isset($this->vars['L_LEGEND']) ? $this->vars['L_LEGEND'] : ''; ?></a></td> -->
	</tr>
	<tr>
	  <td>
		  <table width="100%" cellspacing="2" border="0" cellpadding="1">
			  <tr>
			    <td>
				    <table border="0" cellspacing="1" cellpadding="2">
					    <tr>
						    <td><img src="<?php echo isset($this->vars['FOLDER_NEW_IMG']) ? $this->vars['FOLDER_NEW_IMG'] : ''; ?>" alt="<?php echo isset($this->vars['L_NEW_POSTS']) ? $this->vars['L_NEW_POSTS'] : ''; ?>" title="<?php echo isset($this->vars['L_NEW_POSTS']) ? $this->vars['L_NEW_POSTS'] : ''; ?>" /></td>
								<td class="gensmall"><?php echo isset($this->vars['L_NEW_POSTS']) ? $this->vars['L_NEW_POSTS'] : ''; ?></td>
								<td>&nbsp;&nbsp;</td>
								<td><img src="<?php echo isset($this->vars['FOLDER_IMG']) ? $this->vars['FOLDER_IMG'] : ''; ?>" alt="<?php echo isset($this->vars['L_NO_NEW_POSTS']) ? $this->vars['L_NO_NEW_POSTS'] : ''; ?>" title="<?php echo isset($this->vars['L_NO_NEW_POSTS']) ? $this->vars['L_NO_NEW_POSTS'] : ''; ?>" /></td>
								<td class="gensmall"><?php echo isset($this->vars['L_NO_NEW_POSTS']) ? $this->vars['L_NO_NEW_POSTS'] : ''; ?></td>
								<td>&nbsp;&nbsp;</td>
								<td><img src="<?php echo isset($this->vars['FOLDER_ANNOUNCE_IMG']) ? $this->vars['FOLDER_ANNOUNCE_IMG'] : ''; ?>" alt="<?php echo isset($this->vars['L_ANNOUNCEMENT']) ? $this->vars['L_ANNOUNCEMENT'] : ''; ?>" title="<?php echo isset($this->vars['L_ANNOUNCEMENT']) ? $this->vars['L_ANNOUNCEMENT'] : ''; ?>" /></td>
								<td class="gensmall"><?php echo isset($this->vars['L_ANNOUNCEMENT']) ? $this->vars['L_ANNOUNCEMENT'] : ''; ?></td>
  						</tr>
  						<tr>
    				    <td><img src="<?php echo isset($this->vars['FOLDER_HOT_NEW_IMG']) ? $this->vars['FOLDER_HOT_NEW_IMG'] : ''; ?>" alt="<?php echo isset($this->vars['L_NEW_POSTS_HOT']) ? $this->vars['L_NEW_POSTS_HOT'] : ''; ?>" title="<?php echo isset($this->vars['L_NEW_POSTS_HOT']) ? $this->vars['L_NEW_POSTS_HOT'] : ''; ?>" /></td>
    						<td class="gensmall"><?php echo isset($this->vars['L_NEW_POSTS_HOT']) ? $this->vars['L_NEW_POSTS_HOT'] : ''; ?></td>
    						<td>&nbsp;</td>
    						<td><img src="<?php echo isset($this->vars['FOLDER_HOT_IMG']) ? $this->vars['FOLDER_HOT_IMG'] : ''; ?>" alt="<?php echo isset($this->vars['L_NO_NEW_POSTS_HOT']) ? $this->vars['L_NO_NEW_POSTS_HOT'] : ''; ?>" title="<?php echo isset($this->vars['L_NO_NEW_POSTS_HOT']) ? $this->vars['L_NO_NEW_POSTS_HOT'] : ''; ?>" /></td>
    						<td class="gensmall"><?php echo isset($this->vars['L_NO_NEW_POSTS_HOT']) ? $this->vars['L_NO_NEW_POSTS_HOT'] : ''; ?></td>
    						<td>&nbsp;</td>
    						<td><img src="<?php echo isset($this->vars['FOLDER_STICKY_IMG']) ? $this->vars['FOLDER_STICKY_IMG'] : ''; ?>" alt="<?php echo isset($this->vars['L_STICKY']) ? $this->vars['L_STICKY'] : ''; ?>" title="<?php echo isset($this->vars['L_STICKY']) ? $this->vars['L_STICKY'] : ''; ?>" /></td>
    						<td class="gensmall"><?php echo isset($this->vars['L_STICKY']) ? $this->vars['L_STICKY'] : ''; ?></td>
  						</tr>
  						<tr>
    				    <td><img src="<?php echo isset($this->vars['FOLDER_LOCKED_NEW_IMG']) ? $this->vars['FOLDER_LOCKED_NEW_IMG'] : ''; ?>" alt="<?php echo isset($this->vars['L_NEW_POSTS_LOCKED']) ? $this->vars['L_NEW_POSTS_LOCKED'] : ''; ?>" title="<?php echo isset($this->vars['L_NEW_POSTS_LOCKED']) ? $this->vars['L_NEW_POSTS_LOCKED'] : ''; ?>" /></td>
    						<td class="gensmall"><?php echo isset($this->vars['L_NEW_POSTS_LOCKED']) ? $this->vars['L_NEW_POSTS_LOCKED'] : ''; ?></td>
    						<td>&nbsp;</td>
    						<td><img src="<?php echo isset($this->vars['FOLDER_LOCKED_IMG']) ? $this->vars['FOLDER_LOCKED_IMG'] : ''; ?>" alt="<?php echo isset($this->vars['L_NO_NEW_POSTS_LOCKED']) ? $this->vars['L_NO_NEW_POSTS_LOCKED'] : ''; ?>" title="<?php echo isset($this->vars['L_NO_NEW_POSTS_LOCKED']) ? $this->vars['L_NO_NEW_POSTS_LOCKED'] : ''; ?>" /></td>
    						<td class="gensmall"><?php echo isset($this->vars['L_NO_NEW_POSTS_LOCKED']) ? $this->vars['L_NO_NEW_POSTS_LOCKED'] : ''; ?></td>
    						<td>&nbsp;</td>
   							<td>&nbsp;</td>
    						<td>&nbsp;</td>
  						</tr>
						</table>
					</td>
        	<td align="right" valign="top"><?php echo isset($this->vars['AUTHLIST']) ? $this->vars['AUTHLIST'] : ''; ?></td>
      	</tr>
			</table>
  	</td>
	</tr>
</table>

