<?php
error_reporting(0); 
include("../../config/config.php");
?>
<!DOCTYPE html>
<html>
<head>
<title>·¢Æ¬ÊÖµÇÂ¼</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312"/>
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<link rel="stylesheet" href="/2019newui/fp/global.css">
<link rel="stylesheet" href="/2019newui/fp/layui.css">
<SCRIPT language=javascript src="/2019newui/js/jquery.min.js"></SCRIPT>
<script src="/layui/layui.js"></script>
</head>
<body id="login">
<div class="login">
<h2>·¢Æ¬ÊÖµÇÂ¼</h2>
<form class="layui-form layui-form-pane" action="" method="post" name="FormInfo" id="FormInfo">
<div class="layui-form-item">
<input type="text" name="name" placeholder="µÇÂ¼ÕËºÅ" required lay-verify="required" autocomplete="off" class="layui-input">
</div>
<div class="layui-form-item">
<input type="password" name="pass" placeholder="µÇÂ¼ÃÜÂë" required lay-verify="required" autocomplete="off" class="layui-input">
</div>
<div class="layui-form-item">
<input    type="submit"   value="µÇ Â¼"     lay-submit="" lay-filter="FormInfo" class="layui-btn"  style="padding: 0 114px;" />
</div>
</form>
<script>
layui.use(['form', 'layedit', 'laydate', 'element', 'jquery', 'layer'], function(){
var form = layui.form
,layer   = layui.layer
,layedit = layui.layedit
,element = layui.element
,$= layui.jquery
,laydate = layui.laydate;
form.on('submit(FormInfo)', function (data) {
var index = layer.load(4, {
shade: [0.1,'#fff'] 
});
$.ajax({
type:'POST',
url:'/flogin<?php echo $dshz?>',
data:$("#FormInfo").serialize(),
dataType:'json',
success:function(result){
if(result.status == 'true'){
layer.closeAll('loading');
layer.open({
type: 1
,offset: 'auto'
,id: 'layerMsg'
,content: '<div style="padding: 20px 100px;">µÇÂ¼³É¹¦</div>'
,btn: 'È·¶¨'
,btnAlign: 'c'
,shade: 0
,closeBtn: 0
,yes: function(index){
location.href=result.url;
}
});
}else{
layer.closeAll('loading');
layer.msg(result.msg);
}
}	
});
return false;
});
});
</script>
</body>
</html>