You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

78 lines
2.9 KiB
Plaintext

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>CCFlowCloud administrator </title>
<meta charset="UTF-8" />
<link href="login.css" rel="stylesheet" />
<meta name="viewport" content="width=device-width,initial-scale=1.0,maximum-scale=1.0,minimum-scale=1.0,user-scalable=no">
<link href="../WF/Scripts/bootstrap/css/bootstrap.css" rel="stylesheet" type="text/css" />
<script src="config.js" type="text/javascript"></script>
<script type="text/javascript" language="javascript">
document.onkeydown = function (e) {
e = e || window.event;
if (e.keyCode == 13) {
Login();
return false;
}
}
function Login() {
var userNo = $("#TB_No").val();
var userPass = $("#TB_PW").val();
if (userNo == "" || userPass == "") {
layer.msg('请输入用户名与密码');
return false;
}
var handler = new HttpHandler("BP.Cloud.HttpHandler.AdminSys");
handler.AddPara("TB_No", userNo);
handler.AddPara("TB_PW", userPass);
var data = handler.DoMethodReturnString("Login_Submit");
if (data.indexOf('err@') == 0) {
alert(data);
return;
}
var webUser = new WebUser();
var url = GetQueryString("FromUrl");
if (url == null || url == undefined)
url = "Home.htm?OrgNo=" + webUser.OrgNo+"&UserNo="+webUser.No;
location.href = url;
}
</script>
</head>
<body class="login-bg">
<div class="login-box">
<h1 class="logo-name">CCFlowCloud</h1>
<div class="login-form">
<form id="Form1">
<div class="form-group">
<input type="text" id="TB_No" name="TB_No" value="admin" placeholder="请输入账号" lay-verify="required" class="form-control" />
</div>
<div class="form-group">
<input type="password" id="TB_PW" name="TB_PW" placeholder="请输入密码" lay-verify="required" class="form-control" />
</div>
<input type="button" id="Btn_Login" onclick="Login()"
class="btn btn-primary btn-block"
value="超级管理员admin登录" />
<div id="msg"></div>
</form>
</div>
</div>
<script type="text/javascript" src="../WF/Scripts/QueryString.js"></script>
<script src="../WF/Scripts/layui/layui/layui.js" type="text/javascript"></script>
<script src="../WF/Scripts/jquery-1.11.0.min.js" type="text/javascript"></script>
<!-- 引用通用的js文件. -->
<script type="text/javascript" src="../WF/Scripts/config.js"></script>
<script type="text/javascript" src="../WF/Comm/Gener.js"></script>
</body>
</html>