⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 gllydl.asp

📁 国内最早的在线客服系统源码.可以把访客变成自己的客户.是目前比较流行的在线客服系统
💻 ASP
字号:
<%response.expires=0%>
<!--#include file="function.asp"-->
<%
siteid=request("id")
if siteid="" then
	call disp_error2("对不起,数据传送错误!")
end if
'on error resume next
yhm=trim(request.form("yhm"))
mm=trim(request.form("mm"))
if yhm<>"" and mm<>"" then
%>
<!--#include file="conn.asp"-->
<%
	session("lymanager")=0
	set rs=server.createobject("adodb.recordset")
	rs.open "select * from userinfo where id="&siteid,conn,1,1
	if not rs.eof and not rs.bof then
		if rs("yhm")<>yhm then
			rs.close
			conn.close
			set rs=nothing
			set conn=nothing
			response.write("<script language='javascript'>")
			response.write("alert('用户名错误!');")
			response.write("history.go(-1);")
			response.write("</script>")
		else
			if rs("mm")<>mm then
				rs.close
				conn.close
				set rs=nothing
				set conn=nothing
				response.write("<script language='javascript'>")
				response.write("alert('密码错误!');")
				response.write("history.go(-1);")
				response.write("</script>")
			else
				rs.close
				conn.close
				set rs=nothing
				set conn=nothing
				session("lymanager")=1
				session("siteid")=siteid
				response.write("<script language='javascript'>")
				response.write("opener.location.href='glly.asp?id=0&siteid="&siteid&"&page=1';")
				response.write("window.close();")
				response.write("</script>")
			end if
		end if
	end if
end if
%>
<html>
<head>
<meta http-equiv="expires" content="no-cache">
<meta http-equiv="Content-Language" content="zh-cn">
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>留言管理登录</title>
<link rel="stylesheet" type="text/css" href="style.css">
<script language="javascript">
function check_form(thisForm)
{
	if (thisForm.yhm.value=="")
		{
			alert("请输入用户名!");
			thisForm.yhm.focus();
			return(false);
		}
	if (thisForm.yhm.value.length>10)
		{
			alert("用户名太长!");
			thisForm.yhm.focus();
			return(false);
		}
	if (thisForm.mm.value=="")
		{
			alert("请输入密码!");
			thisForm.mm.focus();
			return(false);
		}
	if (thisForm.mm.value.length>16)
		{
			alert("密码太长!");
			thisForm.mm.focus();
			return(false);
		}
	return(true);	
}
</script>
</head>

<body leftmargin="1" topmargin="1">

<form method="post" action="gllydl.asp?id=<%=siteid%>" onsubmit="return check_form(this)">
  <div align="center">
    <center>
    <table border="1" width="199" height="98" cellspacing="0" cellpadding="0" bordercolorlight="#000000" bordercolordark="#ffffff" bgcolor="#eeeeee">
      <tr>
        <td width="63" height="25">用户名:</td>
        <td width="120" height="25">
        <p align="center"><input name="yhm" size="15" maxlength="10" ></td>
      </tr>
      <tr>
        <td width="63" height="25">密&nbsp; 码:</td>
        <td width="120" height="25">
		<p align="center"><input type="password" name="mm" size="15" maxlength="16"></td>
      </tr>
      <tr>
        <td width="189" colspan="2" height="25">
          <p align="center"><input type="submit" value=" 登 录 " name="B1" height="22" style="FONT-FAMILY: 宋体; FONT-SIZE: 9pt; HEIGHT: 22px">&nbsp;&nbsp;&nbsp;<input type="button" value=" 取 消 " name="B2" height="22" onclick="window.close()" style="FONT-FAMILY: 宋体; FONT-SIZE: 9pt; HEIGHT: 22px"></p></td>
      </tr>
    </table>
    </center>
  </div>
</form>

</body>

</html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -