<html>
	<head>
	<meta http-equiv="Content-Language" content="{$default_lang}">
    <meta http-equiv="Content-Type" content="text/html; charset={$charset}">
    <title>{$lang.admin_title_main}{$header.subtitle}</title>
    {if $script}<script language="JavaScript" type="text/javascript" src="{$site_root}{$template_root}/js/{$script}.js"></script>{/if}
	<script language="JavaScript" type="text/javascript" src="{$site_root}{$template_root}/js/jquery-1.7.2.min.js"></script>
	<link href="{$site_root}{$template_root}/css/style.css" rel="stylesheet" type="text/css">
</head>
<body>
	<noscript><div id="no_js">{$lang.no_js}</div></noscript>
	{*pg_include_file=demo_help_admin_menu.html*}
	{if $demo_module eq 1}
	{include file="$admingentemplates/demo_admin_top_panel2.tpl"}
	{/if}
	<div class="login_container">
		<div id="login_page">
			<div class="login_page_head">
				<div class="head_text">{$header.razdel_name} {*$header.editform*}</div>
				<div class="head_cross" onclick="document.location.href='{$site_root}/index.php'"><img src="{$site_root}{$template_root}/images/cross_login.png" border="0"></div>
			</div>
			<div class="cr">&nbsp;</div>
			<div class="login_page_form">
				<form method="post" action="{$form.action}"  enctype="multipart/form-data" name=login_form id=login_form>
					<div id="content">
						<table>
							<tr>
								<td><label>{$header.login}:&nbsp;</label></td>
								<td><input type="text" id="login_lg" name="login_lg" tabindex="1" value="{if $demo_module eq 1}admin{/if}" size="30"></td>
							</tr>
							<tr>
								<td><label>{$header.pass}:&nbsp;</label></td>
								<td><input type="password" id="pass_lg" name="pass_lg" tabindex="2" value="{if $demo_module eq 1}admin1{/if}" size="30" onkeypress='javascript:if(event.keyCode == 13) CheckValid();'></td>
							</tr>
							<tr>
								<td><label for="remember" style="padding-top:0px;">&nbsp;</label></td>
								<td><input type="checkbox" id="remember" class="checkbox" name="remember" style="margin-right:5px;"><label for="remember" id="remember_label" style="padding-top:0px;">{$lang.content.remember}</label></td>
							</tr>
						</table>
					</div>
					<div id="submit"><a href="#" class="admin_button_major" onclick="document.login_form.submit();" style="float:left;">{$button.login}<span>&nbsp;</span></a></div>
				</form>
			</div>
		</div>
		<script type="text/javascript">
			var login = "{$err.invalid_login|escape:javascript}";
			var pass = "{$err.invalid_passw|escape:javascript}";
			{literal}
			$(document).ready(function(){
				$('#login_lg').focus();
			});
			function CheckValid(){
				if($('#login_lg').val() == ""){
					alert(login); return false;
				}
				if($('#pass_lg').val() == ""){
					alert(pass); return false;
				}
				document.login_form.submit();
			}
			{/literal}
		</script>
	</div>
{include file="$admingentemplates/admin_login_bottom.tpl"}