📄 gx_dl.asp
字号:
<!--#include file="conn.asp"-->
<html>
<head>
<link rel="stylesheet" href="style.css" type="text/css">
<title>
用户登陆
</title>
</head>
<body>
<!--#include file="gx_wjt.asp"-->
<%set rs=server.createobject("adodb.recordset")
yhm=request.form("yhm")
pass=request.form("pass")
if yhm<>"" and pass<>"" then
exec="select * from admin where yhm='"+yhm+"'"
rs.open exec,conn,1,1
if not rs.eof then
grmm=rs("pass")
if setpwd(pass)<>grmm then response.redirect "gx_dl.asp"
else
response.redirect "gx_dl.asp"
end if
session("gxyhm")=yhm
session("gxpass")=pass
session("gxjb")=rs("jb")
response.redirect "gx_gl.asp"
end if%>
<center>
<form name="from" method="post" action="gx_dl.asp">
<table>
<tr height="25">
<td>
用户名</td>
<td><input type=text name=yhm size="10" ></td>
</tr>
<tr height="25">
<td>密码</td>
<td><input type="password" name="pass" size="10" > </td>
</tr>
</table>
<table cellpadding="4" cellspacing="0">
<tr height="25">
<td align="center" width="57">
<input type=submit onclick="javascript:return dl(yhm.value,pass.value);" value="登 陆">
</tr>
</table>
</form>
</center>
</body>
</htm>
<script language='javascript'>
function dl(yhm,pass)
{
if (yhm=="")
{alert('输入用户名!');
document.from.yhm.focus();
return false;}
if (pass=="")
{alert('输入密码!');
document.from.pass.focus();
return false;}}
</script>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -