|
|
|
|
|
<!DOCTYPE html>
|
|
|
<html lang="en">
|
|
|
|
|
|
<head>
|
|
|
|
|
|
<meta charset="utf-8">
|
|
|
<title>蜜糖ERP注册</title>
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
|
<meta name="description" content="蜜糖ERP">
|
|
|
<meta name="author" content="蜜糖ERP">
|
|
|
|
|
|
<!-- CSS -->
|
|
|
|
|
|
<link rel="stylesheet" href="css/assets/bootstrap/css/bootstrap.min.css">
|
|
|
<link rel="stylesheet" href="css/assets/css/style.css">
|
|
|
<script src="Scripts/MicrosoftAjax.js" type="text/javascript"></script>
|
|
|
<script src="Scripts/jquery.min.js" type="text/javascript"></script>
|
|
|
|
|
|
<script src="Scripts/Global.js" type="text/javascript"></script>
|
|
|
<!-- HTML5 shim, for IE6-8 support of HTML5 elements -->
|
|
|
|
|
|
<script type="text/javascript">
|
|
|
$(document).ready(function () {
|
|
|
ajaxInit(null);
|
|
|
|
|
|
});
|
|
|
|
|
|
function Register() {
|
|
|
$("#li1").next("font").remove();
|
|
|
var flag = 0;
|
|
|
var UserName = $('#txt_UserName').val();
|
|
|
var Password = $('#txt_Pwd').val();
|
|
|
if (UserName == "") {
|
|
|
alert("请输入用户名");
|
|
|
$('#txt_UserName').focus(); return;
|
|
|
}
|
|
|
if (Password == "") {
|
|
|
alert("请输入密码");
|
|
|
$('#txt_Pwd').focus(); return;
|
|
|
}
|
|
|
var param = new Object();
|
|
|
param.UserName = UserName;
|
|
|
param.PassWord = Password;
|
|
|
|
|
|
$.ajax({
|
|
|
url: "UserService.asmx/Login",
|
|
|
data: Sys.Serialization.JavaScriptSerializer.serialize(param),
|
|
|
cache: false,
|
|
|
success: function (msg) {
|
|
|
if (msg.d == false) {
|
|
|
alert("用户名或者密码不正确");
|
|
|
$('#txt_UserName').focus();
|
|
|
return;
|
|
|
}
|
|
|
else {
|
|
|
if ($("#chk_password")[0].checked == true) {
|
|
|
setCookie('net_username', UserName);
|
|
|
setCookie('net_password', Password);
|
|
|
setCookie('net_ischkpwd', 1);
|
|
|
}
|
|
|
else {
|
|
|
delCookie('net_username');
|
|
|
delCookie('net_password');
|
|
|
delCookie('net_ischkpwd');
|
|
|
}
|
|
|
document.location.href = "index.aspx";
|
|
|
}
|
|
|
}
|
|
|
});
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
</head>
|
|
|
|
|
|
<body>
|
|
|
|
|
|
|
|
|
<div class="register-container container">
|
|
|
<div class="row">
|
|
|
|
|
|
<div class="register span6">
|
|
|
<form>
|
|
|
<h2>蜜糖ERP<span class="red"><strong>注册</strong></span></h2>
|
|
|
<label for="firstname">邀请码(FriendCode):<font color="red">(*必填)</font></label>
|
|
|
<input type="text" id="name" class="textinput" name="firstname" placeholder="请输入您的邀请码(FriendCode)...">
|
|
|
<label for="lastname">用户名:<font color="red">(*必填)</font></label>
|
|
|
<input type="text" id="lastname" class="textinput" name="lastname" placeholder="请输入您的登陆用户名...">
|
|
|
<label for="username">密码:<font color="red">(*必填)</font></label>
|
|
|
<input type="password" id="username" class="textinput" name="password" placeholder="请输入您的密码...">
|
|
|
<label for="username">密码确认:<font color="red">(*必填)</font></label>
|
|
|
<input type="password" id="username" class="textinput" name="password" placeholder="请再次确认您的密码...">
|
|
|
<label for="email">Email:<font color="red">(*必填)</font></label>
|
|
|
<input type="text" id="email" class="textinput" name="email" placeholder="请输入您的邮箱...">
|
|
|
<label for="password">联系方式:<font color="red">(*必填)</font></label>
|
|
|
<input type="text" class="textinput" id="password" name="password" placeholder="请输入您的电话或者手机号码...">
|
|
|
<label><input id="Checkbox1" type="checkbox" />同意<a style="text-decoration:underline;cursor:pointer;color:#507399;">《用户协议》</a> </label>
|
|
|
<input id="Button1" style="width:300px" type="button" class="btnbutton" value="注 册" />
|
|
|
|
|
|
</form>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
<div align="center">
|
|
|
Copyright © 2015.蜜糖科技 All rights reserved.
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
</body>
|
|
|
</html> |