show_bclass.asp

来自「C2C二手交易网SMRUC v2.0 全部实现了C2C电子商务功能。 特别适合」· ASP 代码 · 共 75 行

ASP
75
字号
<!-- #include file="conn.asp" -->

<%
username=trim(Request.Form("username"))
userpass=trim(Request.Form("userpass"))
if username<>"" and userpass<>"" then
	exec_index="select * from [user] where user_name='"&username&"' and user_pass='"&userpass&"'"
	set rs=server.createobject("adodb.recordset")
	rs.open exec_index,conn,1,3
	if not rs.eof then
	    userip = Request.ServerVariables("HTTP_X_FORWARDED_FOR")
        If userip = "" Then userip = Request.ServerVariables("REMOTE_ADDR")
	    rs("user_ip")=userip
		rs("user_lastlogintime")=now()
		rs.update
		session("user")=username
	else
%>
	<SCRIPT Language=javascript>
	<!--
		window.alert("用户名或密码错误!!");
	-->
	</SCRIPT>
<%
	end if
end if
%>

<html>
	<head>
		<TITLE>中国人民大学二手交易网-大类信息</TITLE>
		<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
	</head>
	<link rel="stylesheet" href="css.css">
	<body leftMargin=0 topMargin=0 marginwidth="0" marginheight="0">
	
	
	<table width="760" border="1" align="center" cellpadding="0" cellspacing="0">
	<tr> 
    	<td colspan="3"><!-- #include file="head.asp" --></td>
 	 </tr>
	 <tr> 
    	<td height="25" colspan="3"><!-- #include file="menu.asp" --></td>
  	</tr>
  	
	<tr valign="top"> 
		<%
			if session("user")="" then
		%>
		<td width="192" height="150"> 
      <!-- #include file="left.asp" --></td>
		<%
			else
		%>
		<td width="192" height="150"> 
      <!-- #include file="left_user.asp" --></td>
		<%
			end if
		%>
    	
    <td height="570" width="570" rowspan="2" colspan="2"><!-- #include file="middle_bclass.asp" --></td>
    	
  	</tr>
	<tr>
		<td valign="top">
			<!-- #include file="left_bottom.asp" -->
		</td>
	</tr>
  	<tr> 
    	<td height="55" colspan="3"><!-- #include file="foot.asp" --></td>
  	</tr>
	</table>
	</body>
</html>

⌨️ 快捷键说明

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