{*debug*}
{*strip*}
{if $par eq 'new_subcategory'}
<div class="forum_edit_from">
	<form action="{$file_name}" method="post" id="new_theme" name="new_theme">
		<input type="hidden" value="{$data.category_id}" id="id_category" name="id_category">
		<input type="hidden" value="new_subcategory_post" id="sel" name="sel">		
		<dl>
			<dd>{$lang.forum.topic_title}:&nbsp;</dd>
			<dt>
                <input size="50" type="text" class="str" onkeyup="BadWords('subcategory_name');" name="subcategory_name" id="subcategory_name" value="{$data.subcategory_name}"/>
                <div id="bad_div_subcategory_name" style="width: 380px;" class="bad_div_left"></div>
            </dt>
		</dl>
		<dl>
			<dd>{$lang.forum.message_title}:&nbsp;</dd>
			<dt>
                <input size="50" type="text" class="str" onkeyup="BadWords('post_name');" name="post_name" id="post_name" value="{$data.post_name}"/>
                <div id="bad_div_post_name" style="width: 380px;" class="bad_div_left"></div>    
            </dt>
		</dl>
		
		<dl>
			<dd valign="top"><font class="text_head">{$lang.forum.message}</font>:&nbsp;</dd>
			<dt>
				{$redactor}
				<textarea id="redactor" name="message" style="width: 510px; height: 250px;"></textarea>
				<div id="bad_div_redactor" style="width: 380px;" class="bad_div_left"></div>
			</dt>
		</dl>
		{if $guest eq 1}
		<dl>
			<dd class="text_head">{$lang.forum.security_code}:</dd>
			<dt>
				<div>
					<img src="{$data.kcaptcha}" alt="{$lang.forum.security_code}">
				</div>
				<div>
					<input type="text" style="width: 200px" name="keystring">
				</div>
			</dt>
		</dl>
		{/if}
		<dl>
			<dd>&nbsp;</dd>
			<dt>
				<p><input type="submit" value="{$lang.button.save}"></p>
			</dt>
		</dl>
	</form>
</div>
{elseif $par eq 'new_post' || $par eq 'quote' || $par eq 'edit_post'}
<div class="forum_edit_from">
	<h2>{$data.subcategory_name}</h2>
	<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">
	{else}
		<input type="hidden" value="new_post_save" id="sel" name="sel">
	{/if}
	<div class="form_edit_input">
		<div class="form_edit_input_text">{$lang.forum.message_title}:&nbsp;</div>
		<div>
            <input size="69" type="text" class="str" onkeyup="BadWords('post_name');" name="post_name" id="post_name" value="{$data.post_name}"/>
            <div id="bad_div_post_name" style="width: 510px;" class="bad_div_left"></div>    
        </div>
	</div>
	
	<div class="form_edit_input">
		<div class="form_edit_input_text">
			<font>{$lang.forum.message}:&nbsp;<br>
			<font class="text_hidden">{$lang.forum.bbcode_enabled}</font>&nbsp;
		</div>
		{$redactor}
		<textarea id="redactor" name="message" style="width: 510px; height: 250px; border: none;"></textarea>
		<div id="bad_div_redactor" style="width: 380px;" class="bad_div_left"></div>
		{*<div>{$editor}</div>*}
	</div>
	
	{if $guest eq 1}
	<dl class="form_edit_input">
		<dd>{$lang.forum.security_code}:</dd>
		<dt>
			<div><img src="{$data.kcaptcha}" alt="{$lang.forum.security_code}"></div>
			<div><input type="text" style="width: 200px" name="keystring"></div>
		</dt>
	</dl>
	{/if}
	
	<div class="form_edit_input"><input type="submit" class="btn_small" value="{$lang.button.save}"></div>
	</form>
</div>
{/if}
{*/strip*}
