{strip}
<div class="panel_section">
<div class="panel_content">
{if $par eq 'new_subcategory'}
<table cellpadding="0" cellspacing="0" border="0" width="100%">
<tr>
	<td valign="top">
	<form action="{$file_name}" method="post" name="form5">
	<input type="hidden" value="{$data.category_id}" id="id_category" name="id_category">
	<input type="hidden" value="new_subcategory_post" id="sel" name="sel">
    <input type="hidden" value="{$type}" id="type" name="type">
	<table cellpadding="0" cellspacing="0" border="0">
		<tr>
			<td valign="top" width="100" class="text_head">{$lang.forum.topic_title}:&nbsp;</td>
			<td valign="top"><input size="50" type="text" class="str" name="subcategory_name" id="subcategory_name" value="{$data.subcategory_name}"></td>
		</tr>
		<tr>
			<td valign="top" style="padding-top: 7px; padding-bottom: 5px;" class="text_head">{$lang.forum.message_title}:&nbsp;</td>
			<td valign="top" style="padding-top: 7px; padding-bottom: 5px;"><input size="50" type="text" class="str" name="post_name" id="post_name" value="{$data.post_name}"></td>
		</tr>
		<tr>
			<td valign="top" style="padding-top: 7px; padding-bottom: 5px;"><font class="text_head">{$lang.forum.message}</font>:&nbsp;<div style="height:7px;">&nbsp;</div><font class="text_hidden">{$lang.forum.bbcode_enabled}</font>&nbsp;</td>
			<td style="padding-top: 7px; padding-bottom: 5px;">
				{*$editor*}
				{$redactor}
				<textarea id="message" name="message" class="redactor_normal"></textarea> 
			</td>
		</tr>
	</table>
	</form>
	</td>
</tr>
</table>
</div>
</div>
<div style="float:left;"><table>
	<tr>
		<td style="padding-top: 7px; padding-bottom: 5px;" colspan="2" align="left">
			<a class="admin_button_major" onclick="document.form5.submit();">{$lang.button.save}<span>&nbsp;</span></a>&nbsp;&nbsp;		
{*				<a class="admin_button_cancel" onclick="document.location.href='{$file_name}?sel=category&id_category={$data.category_id}';">{$lang.button.vip_cancel}<span>&nbsp;</span></a>*}
		</td>
	</tr>
</table>
</div>
{elseif $par eq 'new_post' || $par eq 'quote' || $par eq 'edit_post'}
<table cellpadding="0" cellspacing="0" border="0" width="100%">
<tr>
	<td>
	<form action="{$file_name}" method="post" id="new_post" name="new_post">
	<input type="hidden" value="{$data.subcategory_id}" id="id_subcategory" name="id_subcategory">
	{if $par eq 'edit_post'}
		<input type="hidden" value="edit_post_save" id="sel" name="sel">
		<input type="hidden" value="{$data.id_post}" id="id_post" name="id_post">
		<input type="hidden" value="{$data.id_user}" id="id_user" name="id_user">
		<input type="hidden" value="{$data.first_post}" id="first_post" name="first_post">
		<input type="hidden" value="{$data.created_date}" id="created_date" name="created_date">
        <input type="hidden" value="{$type}" id="type" name="type">
	{else}
		<input type="hidden" value="new_post_save" id="sel" name="sel">
		<input type="hidden" value="{$data.id_user}" id="id_user" name="id_user">
        <input type="hidden" value="{$type}" id="type" name="type">
	{/if}
	<table cellpadding="0" cellspacing="0"  border="0">
		<tr>
			<td valign="top" style="padding-top: 7px; padding-bottom: 5px;" class="text_head" width="100">{$lang.forum.message_title}:&nbsp;</td>
			<td valign="top" style="padding-top: 7px; padding-bottom: 5px;"><input size="50" type="text" class="str" name="post_name" id="post_name" value="{$data.post_name}"></td>
		</tr>
		<tr>
			<td valign="top" style="padding-top: 7px; padding-bottom: 5px;"><font class="text_head">{$lang.forum.message}:&nbsp;</td>
			<td>
				{$redactor}
				<textarea id="message" name="message" class="redactor_normal"></textarea> 
			</td>
		</tr>
		{if $guest eq 1}
		<tr>
			<td valign="top" class="text_head" style="padding-top: 7px; padding-bottom: 5px;">{$lang.forum.security_code}:</td>
			<td valign="top" style="padding-top: 7px; padding-bottom: 5px;">
				<table cellpadding="0" cellspacing="0">
				<tr>
					<td><img src="{$data.kcaptcha}" alt="{$lang.forum.security_code}"></td>
				</tr>
				<tr>
					<td><input type="text" style="width: 200px" name="keystring"></td>
				</tr>
				</table>
			</td>
		</tr>
		{/if}
	</table>
	</form>
	</td>
</tr>
</table>
</div>
</div>
<div style="float:left;"><table>
		<tr>
			<td style="padding-top: 7px; padding-bottom: 5px;" colspan="2" align="left">
				<a class="admin_button_major" onclick="document.new_post.submit();">{$lang.button.save}<span>&nbsp;</span></a>&nbsp;&nbsp;		
{*				<a class="admin_button" onclick="document.location.href='{$file_name}?sel=subcategory&id_subcategory={$data.subcategory_id}';">{$lang.button.back}<span>&nbsp;</span></a>*}
			</td>
		</tr>
</table>
</div>
{/if}
{/strip}
