📄 reg.asp
字号:
<!--#include file="top.asp"-->
<!--#include file="css.asp"-->
<script language="JavaScript">
<!--
if (parent.frames.length > 0) {
parent.location.href = location.href;
}
function form1_onsubmit() {
if (document.form1.user_name.value=="")
{
alert("用户名不能为空。")
document.form1.user_name.focus()
return false
}
else if(document.form1.user_pass.value=="")
{
alert("密码不能为空。")
document.form1.user_pass.focus()
return false
}
else if(document.form1.user_pass2.value=="")
{
alert("密码确认不能为空。")
document.form1.user_pass2.focus()
return false
}
}
// -->
</script>
<table width="765" border="0" cellspacing="0" cellpadding="0" align="center">
<tr>
<td height="5"></td>
</tr>
</table>
<TABLE align=center border=0 cellPadding=0 cellSpacing=0 width=727>
<TBODY>
<TR>
<TD width=147 valign="top"> <TABLE border=0 cellPadding=0 cellSpacing=0 width=147 valign="top">
<TBODY>
<TR>
<TD bgColor=#efefef vAlign=top width=147> <TABLE cellPadding=0 cellSpacing=0 width=146>
<TBODY>
<TR>
<TD colSpan=2><IMG
src="images/pics2/wp_main_leftmenu_01.gif"></TD>
</TR>
<TR>
<TD height=18 width=5></TD>
<TD height=18 width=141> <table width="180" border="0" cellspacing="0" cellpadding="0" align="center">
<tr>
<td valign="top"> <table border="0" width="180" cellspacing="0" cellpadding="0" height="18">
<%if session("user_name")<>"" then%>
<tr>
<%sql="select * from member where user_name='"&session("user_name")&"'"
rs.open sql,conn,3,3
%>
</tr>
<tr>
<td width="100%" height="18"> <table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="5"><table border="0" width="100%" cellspacing="0">
<tr>
<td height="25"> <img src="IMAGES/pics2/login_im1.gif" width="29" height="23" align="absmiddle">
用户名:</td>
<td height="25"><%=rs("user_name")%></td>
</tr>
<tr>
<td height="25"><img src="IMAGES/pics2/login_im3.gif" width="30" height="17" align="absmiddle">
地址:</td>
<td height="25"><%=rs("user_adds")%></td>
</tr>
<tr>
<td height="25"><img src="IMAGES/pics2/login_im2.gif" width="29" height="16" align="absmiddle">
E-mail:</td>
<td height="25"><%=rs("user_mail")%></td>
</tr>
<tr>
<td height="25"><img src="IMAGES/pics2/login_im4.gif" width="29" height="20" align="absmiddle">
电话:</td>
<td height="25"><%=rs("user_tel")%></td>
</tr>
</table></td>
</tr>
</table></td>
</tr>
<%rs.close%>
<%else%>
<tr>
<td width="100%" height="18"> <table width="99%" border="0" cellspacing="1" cellpadding="0" >
<form method="POST" action="login.asp">
<tr>
<td width="100%" height="110"><table width="95%" border="0" align="center" cellpadding="0" cellspacing="5">
<tr>
<td width="32%"> <div align="center">客户:</div></td>
<td width="68%"> <div align="center">
<input name="user_name2" type="text" class=input id="user_name" style="FONT-SIZE: 12px; WIDTH: 110px" size="10" maxlength="18">
</div></td>
</tr>
<tr>
<td> <div align="center">密码:</div></td>
<td> <div align="center">
<input style="FONT-SIZE: 12px; WIDTH: 110px" type="password" name="user_pass3" size="10" class=input maxlength="18">
</div></td>
</tr>
</table>
<div align="center"></div>
<table width="90%" border="0" cellspacing="5" cellpadding="0" align="center">
<tr>
<td width="80"><a href="reg.asp" target="_blank"><img src="images/pics2/reg.gif" width="81" height="25" border="0"></a></td>
<td> <div align="center">
<input
align=absMiddle alt=进入 cache name=submit2
src="images/pics2/login.gif" type=image tppabs="" width="56" height="25">
</div></td>
</tr>
</table></td>
</tr>
</form>
</table>
<%end if%>
</td>
</tr>
</table></td>
</tr>
</table></TD>
</TR>
<TR>
<TD colSpan=2><IMG
src="images/pics2/wp_main_leftmenu_02.gif"></TD>
</TR>
<TR>
<TD colSpan=2 height=7></TD>
</TR>
<TR>
<TD colSpan=2><IMG
src="images/pics2/wp_main_leftmenu_01_2.gif" width="190" height="35" border=0></TD>
</TR>
<TR>
<TD height=18> </TD>
<TD height=18>
<%
sql="select * from sort"
rs.open sql,conn,1,1
if rs.bof and rs.eof then
response.write "没有任何分类"
else
do while not rs.eof
%>
<div align="center"> <a href="sort.asp?sort_id=<%=rs("sort_id")%>"><br>
<font color="#000000"><b><%=rs("sort_name")%></b></font></a><br>
<% set rs1=server.createobject("adodb.recordset")
sql="select * from Nsort where sort_id="&rs("sort_id")
rs1.open sql,conn,1,1
i=0
do while not rs1.eof
i=i+1
%>
<a href="sort.asp?sort_id=<%=rs1("sort_id")%>&Nsort_id=<%=rs1("Nsort_id")%>"><u><%=rs1("Nsort_name")%></u></a>
<%
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -