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

65 lines
2.4 KiB

<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Login.aspx.cs" Inherits="MESWebSite.Login" %>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<title>MES系统-登录界面</title>
<link type="text/css" rel="stylesheet" href="SysImages/Css/style.css" />
<script type="text/javascript" src="Scripts/jquery-1.7.1.min.js"></script>
<script type="text/javascript">
//$(function () {
// //设置背景图片高度
// $('.logbg').css('height', $(window).height());
//})
function UserAddVerify() {
var userName = document.getElementById("LoginName").value;
var password = document.getElementById("LoginPassword").value;
var identityReg = /(^\d{15}$)|(^\d{18}$)|(^\d{17}(\d|X|x)$)/;
var mobileReg = /1[3-8]+\d{9}/;
if (userName == "" || userName == null) {
alert("用户名不能为空");
return false;
}
else if (password == "" || password == null) {
alert("密码不能为空");
return false;
}
return true;
}
</script>
</head>
<body>
<%--<div class="logbg">--%>
<div class="logbg" style="background:url(SysImages/images/log_bg.jpg) center 0 no-repeat; top: 0px; left: 0px; position: absolute; width: 100%; height: 100%; background-size: cover;background-attachment: fixed;">
<!-- 登录框 -->
<div class="logk">
<form action="" method="" runat="server">
<ul class="dlmes">
<li>
<label for="">
<span>用户名</span>
<i>Username</i>
</label>
<asp:TextBox ID="LoginName" runat="server" CssClass="txt"></asp:TextBox>
</li>
<li>
<label for="">
<span>密 码</span>
<i>Password</i>
</label>
<asp:TextBox ID="LoginPassword" runat="server" CssClass="txt" TextMode="Password" ></asp:TextBox>
</li>
<li style="margin-top:50px;">
<asp:Button ID="btnLogin" runat="server" Text="登录" CssClass="sub" OnClick="btnLogin_Click" />
</li>
</ul>
</form>
</div>
</div>
</body>
</html>