<?php
session_start();
require_once "init.php";
$AgentInfo = load_config(1);
$backUrl = $_GET['backUrl'];
$mess = $_GET['mess'];

?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=gb2312"/>
	<title>管理员登录</title>
	
	<link href="file_edt1/static/style/bootstrap.css?ver=KOD_VERSION" rel="stylesheet"/>
	<link href="file_edt1/static/style/font-awesome/css/font-awesome.css" rel="stylesheet" >
	<!-- 字体不能跨域问题 -->
	<!--[if IE 7]>
	<link rel="stylesheet" href="file_edt1/static/style/font-awesome/css/font-awesome-ie7.css">
	<![endif]-->
	<link rel="stylesheet" type="text/css" href="file_edt1/static/style/login.css">
</head>
<body>

<SCRIPT language=javascript>
function CheckForm(form)
{
	if(form.UserID.value=="")
	{
		alert("请输入用户ID！");
		form.UserID.focus();
		return false;
	}
	if(form.Password.value == "")
	{
		alert("请输入密码！");
		form.Password.focus();
		return false;
	}
}
</SCRIPT>
	<img class="background" src="file_edt1/static/images/wall_page/7.jpg" />

	<div class="loginbox" >
		<div class="title">
			<div class="logo"><i class="icon-cloud"></i>网站管理后台</div>
			<div class='info'>——-云.网站管理器</div>
		</div>
		<div class="form">
<FORM action='chklogin.php' method='post' onSubmit="return CheckForm(this);" target="_top">
			<div class="inputs">

				<div><span>用户名：</span><input id="username" name='UserID' type="text" placeholder="用户名" required/> </div>
				<div><span>密码：</span><input id="password" name="Password" type="password" placeholder="密码" required /></div>
<div><span></span>输入安装时设置的用户和密码 </div>
            				</div>
			<div class="actions">
				<input type="submit" id="submit" value="登录" />
				<input type="checkbox" class="checkbox" name="rember_password" id='rm' checked='checked' />
				<label for='rm'>记住密码</label>
			</div>
			<div class="msg"></div>
			<div style="clear:both;"></div>

			<div class='guest'>
							</div>
		</div>
	</div></form>

<? if($mess){?>
	<script>alert("<?=$mess?>")</script>
<? }?>
<div class="common_footer">Powered by <?=$AgentInfo['Company']?> | 网站管理系统 v<?=$_CFG[version]?></div>

</body>
</html>