{include file="$gentemplates/$header_tpl"}
<h2>{$lang.section.blog_create}</h2>

{*if $form.err}
	<p class="error_msg">*&nbsp;{$form.err}</p>
{/if*}

	{if $form.inactive ne 1}
		{include file="$gentemplates/blog_menu.tpl"}
		<div class="blog_post_add">
			<form name="blog_form" id="blog_form" action="{$form.action}" method="post" enctype="multipart/form-data">
				<p>
					{$lang.blog.blog_name}<font class="error_msg">*</font>:<br />
					<input type="text" name="blog_name" id="blog_name" onkeyup="BadWords('blog_name');" value="{$data.blog_name}" style="width: 150px" maxlength="500"/>
                    <div id="bad_div_blog_name" class="bad_div_left"></div>
				</p>
				<p>
					{$lang.blog.category}<font class="error_msg">*</font>:<br />
					<select name="blog_category">
					{foreach from=$categories item=item}
						<option value="{$item.id}" {if $item.sel eq 1}selected="selected"{/if}>{$item.name}</option>
					{/foreach}
					</select>
				</p>
				<p>
					{$lang.blog.hidden_blog}:&nbsp;
					<input type="checkbox" name="hidden_blog" value="1" {if $data.hidden_blog}checked=""{/if}>
				</p>
				<p>
					{$lang.blog.description}:<br />
					{*{$lang.blog.no_html}<br />*}
					{$redactor}
					<textarea name="description" id="description" class="redactor_normal">{*$data.description*}</textarea>
                    <div id="bad_div_description" class="bad_div_left"></div>
				</p>
				{if $use_tags}
				<p>
					{$lang.blog.tags}:<br />
					<input type="text" name="blog_tags" id="blog_tags" onkeyup="BadWords('blog_tags');" value="{$data.tags}" style="width: 150px"/>
                    <div id="bad_div_blog_tags" class="bad_div_left"></div>
				</p>
				{/if}
				<p>
					<input type="submit" value="{$lang.button.submit}" class="button">
				</p>
			</form>
		</div>
	{/if}
{include file="$gentemplates/$footer_tpl"}