📄 denglu.asp
字号:
<%@ LANGUAGE=JavaScript %>
<html>
<head>
<title>中国旅游-后台登陆</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<script language="JavaScript" type="text/JavaScript" src="images/myfreetemplates.js"></script>
<link href="images/myfreetemplates.css" rel="stylesheet" type="text/css">
</head>
<body>
<table width="600" align="center">
<tr><td>
<!--#include file="../Lib/yonghu.asp"-->
<!--#include file="../Lib/SHA1.asp"-->
<!--#include file="../Lib/Comm.asp"-->
<%
if (Request.ServerVariables("REQUEST_METHOD")=="POST") {
var ming = String(Request.Form("YongHuMing"));
var miMa = String(Request.Form("MiMa"));
try {
if (YongHu.DengLu(ming,1,hex_sha1(miMa)) == 1) {
Response.Write("<font color='blue'>登陆成功!返回<a href='manager.asp'>管理首页</a>。</font>");
if (hasRequest(Request("form")))
Response.Redirect(Request("form"));
} else {
Response.Write("<font color='red'>用户名或密码错误!</font>");
}
}
catch (e) {
Response.Write("<font color='red'>" + e.description + "</font>");
}
}
%>
<style type="text/css">
p label {
width: 180px;
}
</style>
<form method="post" action="">
<input type="hidden" name="form" value="<%
if (hasRequest(Request("form")))
Response.Write(new String(Request('form')));
%>" />
<table width="200" align="center">
<tr><td>用户名</td><td><input type="text" name="YongHuMing" size="18" value="<%=Request.Form("YongHuMing")%>" /></td></tr>
<tr><td>密码</td><td><input type="password" name="MiMa" size="18" /></td></tr>
<tr><td colspan="2"> <input type="submit" value="登录" /> <input type="button" value="返回" onclick="window.history.go(-1);" /></td></tr>
</table>
</form>
</td></tr>
</table>
<!-- 主体内容 end. -->
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -