
<!-- start module contents -->
<!-- breadcrumbs -->
<div class="d3f_breadcrumbs">
	<{strip}>
	<a href="<{$mod_url}>/index.php?cat_ids=<{$category.id}>"><{$smarty.const._MD_D3FORUM_LISTTOPICSINCATEGORY}></a>
	<{if $mod_config.show_breadcrumbs}>
	 | 
	<a href="<{$mod_url}>/index.php"><{$smarty.const._MD_D3FORUM_TOP}></a>
	<{foreach name=catgorybreadcrumbs from=$category.paths_raw key=parent_id item=parent_title_raw}>
		<{if ! $smarty.foreach.catgorybreadcrumbs.last}>
		&nbsp;&gt;&nbsp;
			<a href="<{$mod_url}>/index.php?cat_id=<{$parent_id}>"><{$parent_title_raw|escape}></a>
		<{/if}>
	<{/foreach}>
	<{/if}>
	<{/strip}>
</div>

<h1 class="d3f_title"><{$category.title}></h1>
<{if $category.desc}><p class="d3f_welcome"><{$category.desc}></p><{/if}>

<{if $category.isadminormod}>
<!-- category controller -->
<ul class="d3f_ctrl">
	<li><a href="<{$mod_url}>/index.php?page=makeforum&amp;cat_id=<{$category.id}>"><{$smarty.const._MD_D3FORUM_LINK_MAKEFORUM}></a><{$smarty.const._MD_D3FORUM_SUFFIX_UNDERTHISCATEGORY}></li>
	<{if $xoops_isadmin}>
	<{strip}>
		<li><a href="<{$mod_url}>/index.php?page=makecategory&amp;cat_id=<{$category.id}>"><{$smarty.const._MD_D3FORUM_LINK_MAKESUBCATEGORY}></a><{$smarty.const._MD_D3FORUM_SUFFIX_UNDERTHISCATEGORY}></li>
		<li><a href="<{$mod_url}>/index.php?page=categorymanager&amp;cat_id=<{$category.id}>"><{$smarty.const._MD_D3FORUM_LINK_CATEGORYMANAGER}><img src="<{$mod_imageurl}>/icon_pencil22.gif" alt="<{$smarty.const._EDIT}>" width="16" height="16" /></a></li>
	<{/strip}>
	<{/if}>
	<{if $xoops_isadmin}>
		<li><a href="<{$mod_url}>/admin/index.php?page=category_access&amp;cat_id=<{$category.id}>"><{$smarty.const._MD_D3FORUM_LINK_CATEGORYACCESS}></a></li>
	<{/if}>
	<li><a href="<{$mod_url}>/index.php?page=rss&amp;cat_ids=<{$category.id}>&amp;odr=1"><{$smarty.const._MD_D3FORUM_LINK_CATEGORYRSS}><img src="<{$mod_imageurl}>/icon_rss.gif" alt="RSS" width="16" height="16" /></a></li>
</ul>
<{/if}>

<{if $subcategories}>
<h2 class="d3f_head"><{$smarty.const._MD_D3FORUM_SUBCATEGORIES}></h2>
<ul class="d3f_subcategories">
<{foreach item=subcategory from=$subcategories}>
	<li>
		<a href="<{$mod_url}>/index.php?cat_id=<{$subcategory.id}>"<{if $subcategory.desc}> title="<{$subcategory.desc}>"<{/if}>><img src="<{$mod_imageurl}>/category_<{$subcategory.bit_new}>.gif" alt="<{$subcategory.title}>" width="16" height="16" /> <{$subcategory.title}></a> (<{$smarty.const._MD_D3FORUM_TOTALTOPICSCOUNT}>: <{$subcategory.topics_count_in_tree}>, <{$smarty.const._MD_D3FORUM_TOTALPOSTSCOUNT}>: <{$subcategory.posts_count_in_tree}>)
		<{if $xoops_isadmin}><a href="<{$mod_url}>/index.php?page=categorymanager&amp;cat_id=<{$subcategory.id}>"><img src="<{$mod_imageurl}>/icon_pencil22.gif" alt="<{$smarty.const._EDIT}>" title="<{$smarty.const._MD_D3FORUM_LINK_CATEGORYMANAGER}>" width="16" height="16" /></a><{/if}>
		<a href="<{$mod_url}>/index.php?page=rss&amp;cat_ids=<{$subcategory.id}>&amp;odr=1"><img src="<{$mod_imageurl}>/icon_rss.gif" alt="RSS" title="<{$smarty.const._MD_D3FORUM_LINK_CATEGORYRSS}>" width="16" height="16" /></a>
	</li>
<{/foreach}>
</ul>
<{/if}>

<{if $forums}>
<h2 class="d3f_head"><{$smarty.const._MD_D3FORUM_FORUM}></h2>
<table class="outer d3f_table">
<thead>
<tr class="head">
	<th colspan="2" abbr="<{$smarty.const._MD_D3FORUM_FORUM}>"><{$smarty.const._MD_D3FORUM_FORUM}></th>
	<th abbr="<{$smarty.const._MD_D3FORUM_TOPICSCOUNT}>"><{$smarty.const._MD_D3FORUM_TOPICSCOUNT}></th>
	<th abbr="<{$smarty.const._MD_D3FORUM_POSTSCOUNT}>"><{$smarty.const._MD_D3FORUM_POSTSCOUNT}></th>
	<th abbr="<{$smarty.const._MD_D3FORUM_LASTPOST}>"><{$smarty.const._MD_D3FORUM_LASTPOST}></th>
</tr>
</thead>

<!-- start forums -->
<{foreach item=forum from=$forums}>
<tr class="<{cycle values="even,odd"}>">
<{strip}>
	<td class="d3f_mainicon"><img src="<{$mod_imageurl}>/forum_<{$forum.bit_new}>.gif" alt="<{$forum.title}>" /></td>
	<td>
		<dl>
		<dt>
			<a href="<{$mod_url}>/index.php?forum_id=<{$forum.id}>"><{$forum.title}></a>
		&nbsp;
			<{if $forum.isadminormod}>
				<a href="<{$mod_url}>/index.php?page=forummanager&amp;forum_id=<{$forum.id}>"><img src="<{$mod_imageurl}>/icon_pencil22.gif" alt="<{$smarty.const._EDIT}>" title="<{$smarty.const._MD_D3FORUM_LINK_FORUMMANAGER}>" width="16" height="16" /></a>
			<{/if}>
			<a href="<{$mod_url}>/index.php?page=rss&amp;forum_id=<{$forum.id}>"><img src="<{$mod_imageurl}>/icon_rss.gif" alt="RSS" title="<{$smarty.const._MD_D3FORUM_LINK_FORUMRSS}>" width="16" height="16" /></a>
		</dt>
		<dd><{$forum.desc}></dd>
		<dd class="d3f_td_topicinfo">
			<{include file="db:`$mydirname`_inc_moderators.html" target=$forum}>
			<{if $forum.external_link_format}>
				[<{$smarty.const._MD_D3FORUM_FORUMASCOMMENT}>]
			<{elseif $forum.can_post}>
				[<a href="<{$mod_url}>/index.php?page=newtopic&amp;forum_id=<{$forum.id}>"><{$smarty.const._MD_D3FORUM_POSTASNEWTOPIC}></a>]
			<{/if}>
		</dd>
	</dl></td>
	<td><{$forum.topics_count}></td>
	<td><{$forum.posts_count}></td>
	<td class="d3f_posters"><{if $forum.last_post_time}><{$forum.last_post_time_formatted}><br /><{$forum.last_post_uname}> <a href="<{$mod_url}>/index.php?post_id=<{$forum.last_post_id}>"><img src="<{$mod_imageurl}>/posticon<{$forum.last_post_icon}>.gif" alt="<{$forum.last_post_subject}>" title="<{$forum.last_post_subject}>" /></a><{/if}></td>
<{/strip}>
</tr>
<{/foreach}>
<!-- end forums -->
</table>

<div class="d3f_iconexps">
<ul class="d3f_iconexp">
	<li><img src="<{$mod_imageurl}>/forum_1.gif" alt="" width="18" height="18" /> = <{$smarty.const._MD_D3FORUM_ALT_NEWPOSTS}></li>
</ul>
<ul class="d3f_iconexp">
	<li><img src="<{$mod_imageurl}>/forum_0.gif" alt="" width="18" height="18" /> = <{$smarty.const._MD_D3FORUM_ALT_NONEWPOSTS}></li>
</ul>
</div>
<{/if}>

<!-- category jumpbox -->
<form name="category_jump_box" action="<{$mod_url}>/index.php" method="get" class="d3f_form">
	<select name="cat_id">
		<option value="">(<{$smarty.const._MD_D3FORUM_TOP}>)</option>
		<{$cat_jumpbox_options}>
	</select>
	<input type="submit" value="<{$smarty.const._MD_D3FORUM_BTN_JUMPTOCATEGORY}>" />&nbsp;
	<a href="<{$mod_url}>/index.php?page=search"><{$smarty.const._MD_D3FORUM_LINK_ADVSEARCH}></a>
</form>

<hr class="notification" />

<{include file='db:system_notification_select.html'}>
<!-- end module contents -->
