📄 login.asp
字号:
<!--#include file="../inc/conn.asp"-->
<!--#include file="../top.Asp" -->
<!--#include file="../inc/getPartStrAndBytesLen.asp"-->
<%
Sub ShowErrMsg(ErrMsg)
Response.Write("<script language='javascript'>")
Response.Write("alert('"&ErrMsg&"');window.location='login.asp';")
Response.Write("</script>")
Response.End
End Sub
OpenDataConn
Dim action
action=changechr(Trim(Request("action")))
If action="login" Then
Dim ErrMsg,Rs,userid,pwd,usertype
userid=changechr(Trim(Request("reg_user")))
pwd=changechr(Trim(Request("reg_pwd")))
usertype=changechr(Trim(Request("reg_type")))
Set Rs=Server.CreateObject("ADODB.Recordset")
Rs.Open"select * from company where userid='"&userid&"'",conn,1,1
If Rs.Eof Then
ErrMsg="此用户不存在!"
Call ShowErrMsg(ErrMsg)
ElseIf Trim(Rs("pwd"))<>pwd or Trim(Rs("reg_type"))<>usertype Then
ErrMsg="您输入的密码错误或用户类型不对!"
Call ShowErrMsg(ErrMsg)
ElseIf Trim(Rs("ismember"))<>1 Then
ErrMsg="您还没有正式成为我们的会员,正在审批中!"
Call ShowErrMsg(ErrMsg)
Else
Session("loginid")=userid
Session("reg_type")=Trim(Rs("reg_type"))
Response.Redirect("house_fabu.asp")
End If
Rs.Close
Set Rs=Nothing
ElseIf action="logout" Then
Session.Abandon()
Response.Write("<script language='javascript'>alert('您已安全退出!');window.location='../index.asp';</script>")
Response.End
End If
%>
<HTML><HEAD><TITLE>会员登录</TITLE>
<META http-equiv=Content-Type content="text/html; charset=gb2312">
<LINK
href="img/style.css" type=text/css rel=stylesheet>
<STYLE type=text/css>
</STYLE>
<BODY><TABLE height=28 cellSpacing=0 cellPadding=0 width=980 align=center
background=../img/headbg4.gif border=0>
<TBODY>
<TR>
<TD align=right width=35>
<IMG height=13 src="../img/headarrow.gif"
width=17></TD>
<TD align=middle width=10></TD>
<TD class=TD_Place width=935>您现在的位置:<a href="../index.aspx"><FONT color=#ffffff><%=homepage_title%></FONT></a><FONT color=#ffffff> >> 会员中心</FONT></TD></TR></TBODY></TABLE>
<TABLE cellSpacing=0 cellPadding=0 width=752 align=center
background=img/ind_ground.gif border=0>
<TBODY>
<TR>
<TD width=19><IMG height=297 alt="" src="img/ind_01.gif"
width=19></TD>
<TD vAlign=top width=375>
<TABLE cellSpacing=0 cellPadding=0 width=375 border=0>
<TBODY>
<TR>
<TD>
<IMG height=90 alt="" src="img/ind_02.jpg"
width=375></TD></TR>
<TR>
<TD height="138"> <font color="#FF6600">·</font><font color="#428DFF">注意:用户名及密码限定在30位字符以内,可以由英文字母(a-z),阿拉伯数字(0-9),下划线(_),圆点(.)和横线(-)构成,字符之间不允许有空格。<b><br>
<br>
</b> </font><font color="#FF6000">·</font><font color="#428DFF">如果您填写完毕,请点击"提交"按钮,进入下一步;
点击"取消"按钮,即取消您刚才的输入,回到风云房产网首页,可以重新进行申请。</font></TD></TR>
<TR>
<TD>
<TABLE height=65 cellSpacing=0 cellPadding=0 width=375 border=0>
<TBODY>
<TR>
<TD vAlign=top width=257>
<TABLE height=23 cellSpacing=0 cellPadding=0 width="95%"
border=0>
<TBODY>
<TR>
<TD vAlign=bottom align=right><FONT
style="FONT-SIZE: 14px"
color=#ff0000><B>如果您还不是会员</B></FONT></TD></TR></TBODY></TABLE></TD>
<TD vAlign=top width=118><a href="reg.asp" onFocus="if(this.blur)this.blur()">
<IMG height=51
src="img/ind_into.gif" width=118 border=0
name=Image17></A></TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE></TD>
<TD vAlign=top width=332>
<TABLE cellSpacing=0 cellPadding=0 width=331 border=0>
<TBODY>
<TR>
<TD><IMG height=102 src="img/ind_03.gif"
width=334></TD></TR>
<TR>
<TD vAlign=top width=332 background=img/ind_05_bg.gif
height=159>
<TABLE height=159 cellSpacing=0 cellPadding=0 width=333 border=0>
<TBODY>
<TR>
<TD width=43> </TD>
<TD vAlign=top>
<TABLE cellSpacing=0 cellPadding=0 width="95%" border=0>
<TBODY>
<form action="checkpass.asp" method="POST" name="reg" id="reg" onSubmit="return DoVerify();">
<TR>
<TD style="LETTER-SPACING: 2px" align=right
width=74><FONT
style="FONT-SIZE: 14px; COLOR: #ffffff"><B>会员名:</B></FONT></TD>
<TD width=5>
<DIV align=center></DIV></TD>
<TD width=191><input name="reg_user" type="text" id="reg_user"></TD></TR>
<TR>
<TD height=20> </TD>
<TD colSpan=2> </TD></TR>
<TR>
<TD style="LETTER-SPACING: 9px" align=right><FONT
style="FONT-SIZE: 14px; COLOR: #ffffff"><B>密码:</B></FONT></TD>
<TD>
<DIV align=center></DIV></TD>
<TD width=153><input name="reg_pwd" type="password" id="pass2"></TD></TR>
<TR>
<TD style="LETTER-SPACING: 9px" align=right> </TD>
<TD>
</TD>
<TD width=153><input type="radio" name="reg_type" value="0" class="box" checked>
<font color="#FFFFFF">个人</font>
<input type="radio" name="reg_type" value="1" class="box">
<font color="#FFFFFF">中介公司</font> </TD></TR>
<TR>
<TD class=14></TD>
<TD colSpan=2></TD></TR>
<TR>
<TD class=14> </TD>
<TD vAlign=center align=middle colSpan=2 height=37>
<DIV>
<TABLE cellSpacing=0 cellPadding=0 width="96%"
border=0><TBODY>
<TR>
<TD vAlign=center align=left>
<INPUT type=image
height=20 width=50
src="img/login1.gif" border=0
name=memberlogin> </TD>
<TD vAlign=center align=left> <%if is_house_ot_user=1 then%><a href="<%=house_ot_regurl%>">
<IMG
height=20 src="img/reg1.gif"
width=50
border=0></a><%else%><a href="reg.asp" onFocus="if(this.blur)this.blur()"><IMG
height=20 src="img/reg1.gif"
width=50
border=0></a><%end if%></TD></TR></TBODY></TABLE></DIV></TD></TR>
<TR>
<TD colSpan=3 height=21><font color="#FFFFFF">>>
如果忘记密码怎么办?<%if is_house_ot_user=1 then%><a target="_blank" href="<%=house_ot_lostpasswordurl%>"><font color="#FFFFFF">请点击这里!</font></a> <%else%><a target="_blank" href=pwd_useid.asp?first=1><font color="#FFFFFF">请点击这里!</font></a><%end if%></TD></TR></FORM></TBODY></TABLE>
</TD></TR></TBODY></TABLE></TD></TR>
<TR>
<TD vAlign=top>
<IMG height=36 src="img/ind_08.gif"
width=334></TD></TR></TBODY></TABLE></TD>
<TD vAlign=top bgColor=#ffffff>
<IMG height=297
src="img/ind_04.gif" width=24></TD><INPUT type=hidden
name=url_dir> </TR></TBODY></TABLE>
<TABLE height=25 cellSpacing=0 cellPadding=0 width=768 border=0>
<TBODY>
<TR>
<TD> </TD></TR></TBODY></TABLE>
<TABLE cellSpacing=0 cellPadding=0 width=768 align=center bgColor=#ffffff
border=0>
<TBODY>
<TR>
<TD bgColor=#cccccc height=1></TD></TR>
<TR>
<TD bgColor=#f7f7f7 height=5></TD></TR></TBODY></TABLE>
<TABLE cellSpacing=0 cellPadding=0 width=768 align=center bgColor=#ffffff
border=0>
<TBODY>
<TR>
<TD height=5></TD></TR></TBODY></TABLE></BODY></HTML>
<!--#include file="../end.Asp" -->
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -