<?php defined('APP_NAME') || exit('Access Denied'); 
?><!doctype html>
<html>
<head>
<title>管理员登陆</title>
<meta http-equiv="content-type" content="text/html;charset=utf-8" />
<meta name="Author" content="QQ:401421567" />
<link rel="stylesheet" href="<?php echo(isset($C['admin_static']) ? $C['admin_static'] : ''); ?>admin/css/bootstrap.min.css" />
<script src="<?php echo(isset($C['admin_static']) ? $C['admin_static'] : ''); ?>admin/js/jquery.js"></script>
<script>if(self.parent.frames.length != 0) self.parent.location=document.location;</script>
<!--[if lt IE 8]>
	<p class="text-red pd20 f24 text-center">
		【友情提示】<br />您的浏览器版本太低了，部分功能可能无法使用！<br />
		请使用<strong>Chrome</strong>、<strong>Firefox</strong>登陆后台！感谢您的支持！
	</p>
<![endif]-->
<!--[if lt IE 9]>
  <script src="/static/admin/js/html5.js"></script>
  <script src="/static/admin/js/respond.min.js"></script>
<![endif]-->
<style>
body{color:#333;background:#333;font-family: "Microsoft Yahei","Helvetica Neue",Helvetica,Hiragino Sans GB,WenQuanYi Micro Hei,sans-serif;}
a,a:hover,a:visited{text-decoration:none}
input[type="text"],
input[type="password"]{height: 40px;margin: 0;padding: 0 20px;vertical-align: middle;background: #f8f8f8;font-family: 'Roboto', sans-serif;font-size: 16px;font-weight: 300;line-height: 40px;-moz-border-radius: 4px;-webkit-border-radius: 4px;border-radius: 4px;-moz-box-shadow: none;-webkit-box-shadow: none;box-shadow: none;-o-transition: all .3s;-moz-transition: all .3s;-webkit-transition: all .3s;-ms-transition: all .3s;transition: all .3s;}
input[type="text"]:focus,
input[type="password"]:focus{outline: 0;background: #fff;-moz-box-shadow: none;-webkit-box-shadow: none;box-shadow: none;}

.icon{font-size: 66px;position: absolute;right:20px;top:20px;;color: #ddd;}
</style>
</head>
<body>
<div class="container">
	<div class="row">
		<div class="col-sm-4 col-sm-offset-4 form-box" id="lgn">
			<div class="panel panel-success">
				<div class="panel-heading">
					<h3>ADMIN</h3>
					<p class="text-muted">后台管理中心-管理登陆</p>
					<i class="glyphicon glyphicon-lock icon"></i>
				</div>
				<div class="panel-body">
					<form role="form" action="index.php?u=index-login-ajax-1" method="post" class="login-form" id="login-form">
						<input type="hidden" name="FORM_HASH" value="<?php echo(isset($C['FORM_HASH']) ? $C['FORM_HASH'] : ''); ?>" />
						<div class="form-group">
							<div class="input-group">
								<span class="input-group-addon">帐　号</span>
								<input type="text" class="form-control" name="username" />
							</div>
						</div>
						<div class="form-group">
							<div class="input-group">
								<span class="input-group-addon">密　码</span>
								<input type="password" name="password" class="form-control" />
							</div>
						</div>
						<a href="javascript:;" class="btn btn-success btn-block" onclick="$('form:first').submit();" id="btn">登陆</a>
					</form>
				</div>
				<div class="panel-footer">
					<p class="text-warning text-center" id="tips">推荐使用firefox、chrome浏览器登陆管理！</p>
				</div>
			</div>
		</div>
	</div>
</div>
<script>
var t = ($(document).height() - $("#lgn").height()) / 2;
$("#lgn").css({
	top: t
});
$("form:first").submit(function () {
	$("#btn").attr("disabled", "disabled");
	setTimeout(function () {
		$("#btn").removeAttr("disabled")
	}, 2000);
	$.post($(this).attr("action"), $(this).serializeArray(), res, "json");
	return false;
});
function res(res) {
	if (res.err == 0) {
		location.href = "./";
	} else {
		alert(res.msg);
	}
}
</script>
</body>
</html>