{include file="$gentemplates/$header_tpl"}
	<div>
		<div>
			{include file="$gentemplates/forum_top.tpl"}
		</div>			
		<div class="contant">
			{if $par eq 'index'}
					<dl style="overflow:hidden;">
						<dt class="max_width" style="width:170px;"><b>{$lang.forum.categories}</b></dt>
						<dt class="max_width" style="width:429px;"><b>{$lang.forum.category_description}</b></dt>
						<dt class="min_width" style="width:46px;"><b>{$lang.forum.topics}</b></dt>
						<dt class="min_width" style="width:40px;"><b>{$lang.forum.posts}</b></dt>
					</dl>
					{section name=f loop=$forum}
						<dl class="dl_line">
							<dd class="max_width" style="width:180px;padding-{$default_left}:5px;">
								{if $forum[f].new_posts eq 0 || $guest eq 1}
								{else}
								{/if}
								<a href="{$file_name}?sel=category&amp;id_category={$forum[f].id}">
									{if !($forum[f].new_posts eq 0  || $guest eq 1)}<b>{/if}
									{$forum[f].category}
									{if !($forum[f].new_posts eq 0  || $guest eq 1)}</b>{/if}
								</a>
							</dd>
							<dd class="min_width" style="width:436px;">{$forum[f].description}</dd>
							<dd class="min_width" style="width:48px;">{$forum[f].total_subcategories}</dd>
							<dd class="min_width" style="width:40px;">{$forum[f].total_posts}</dd>
						</dl>
					{/section}	

			{elseif $par eq 'help'}
				<div>
					<h2>{$lang.forum.forum_help}</h2>
					<p>{$lang.forum.help_text}</p>
				</div>
			{elseif $par eq 'category'}
				{strip}
					{include file="$gentemplates/forum_category_table.tpl"}
				{/strip}
			{elseif $par eq 'new_subcategory' || $par eq 'new_post' || $par eq 'quote' || $par eq 'edit_post'}
				{include file="$gentemplates/forum_edit_form.tpl"}
			{elseif $par eq 'subcategory'}
				{strip}
					{include file="$gentemplates/forum_subcategory_table.tpl"}
				{/strip}
			{/if}


	</div>
{include file="$gentemplates/$footer_tpl"}