{include file="$admingentemplates/admin_top.tpl"}
<div class="back">
    <a href="{$site_url}{$site_root}/admin/admin_blog.php?sel=view_blog&id={$id_blog}">{$lang.button.back}</a>
</div>
<div class="cr"></div>

<div class="show_help" style="display: none;">&nbsp;</div>

<div class=red_header>{$lang.blog.admin.razdel_name}</div>
<div class="cr">&nbsp;</div>
<div class="cr">&nbsp;</div>

<div class="help_text">
    <div class="close_help">
        <img src="{$site_root}{$template_root}/images/close_help.png" alt="">
    </div>
    <div class="help_body">
        <span class="help_title">{$lang.help}:</span>{$lang.admin_help.blog_list}
    </div>
</div>
<div id="test_div" class="error_msg" style="padding: 5px 0px;display:none;">&nbsp;</div>

				<div class="content_2" style=" margin: 0px;">
				<table cellpadding="0" cellspacing="0" border="0" width="100%">
				<tr>
					<td valign="top" style="padding-top: 15px;">
						<form name="post_form" id="post_form" action="admin_blog.php?sel=save_post" method="post" enctype="multipart/form-data">
							<div class="panel_section"><div class="panel_content">
							<table width="100%" border="0" cellpadding="3" cellspacing="0">
								<tr>
									<td height="30" width="160">{$lang.blog.post_title}:</td>
									<td><input type="text" name="post_title" value="{$data.post_title}" style="width: 150px" maxlength="500">
										<input type="hidden" name="id_post" value="{$data.id}">
										<input type="hidden" name="id" value="{$id_blog}">
									</td>
								</tr>
								<tr>
									<td valign="top">{$lang.blog.post_body}:</td>
									<td>
										<table cellpadding="0" cellspacing="0" width="300">
										<tr>
											<td colspan="2" style="padding-top: 5px;">
												{*$editor*}
												{$redactor}
												<textarea name="post_body" id="redactor" class="redactor_normal"></textarea>
											</td>
										</tr>
										</table>
									</td>
								</tr>
								<tr>
									<td height="30">{$lang.blog.hidden_post}:</td>
									<td><input type="checkbox" name="hidden_post" value="1"></td>
								</tr>
								<tr>
									<td height="30">{$lang.blog.can_comment}:</td>
									<td><input type="checkbox" name="can_comment" value="1" checked></td>
								</tr>
								<tr>
									<td height="30">{$lang.blog.tags}:</td>
									<td><input type="text" name="post_tags" value="{$data.tags}" style="width: 150px"></td>
								</tr>
								</table>
								</div></div>
								<table style="float:left;">
								<tr>
									<td height="30" colspan="2">
										<a class="admin_button_major" onclick="document.post_form.submit();" href="#">{$lang.button.save}<span>&nbsp;</span></a>
									</td>
								</tr>
							</table>
						</form>
					</td>
				</tr>
				</table>
				</div>
{include file="$admingentemplates/admin_bottom.tpl"}