📄 index.asp
字号:
<!--#include file="conn.asp" -->
<%
set rs=server.createobject("adodb.recordset")
sql="select top 20 * from Product order by regtime desc"
rs.open sql,conn
set rs_class_1=server.createobject("adodb.recordset")
sqltext2="select * from Class_1 "
rs_class_1.open sqltext2,conn,1,1
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=GBK">
<script>
function openbag(id) { window.open("eshop.asp?cpbm="+id,"","height=400,width=630,left=200,top=0,resizable=yes,scrollbars=yes,status=no,toolbar=no,menubar=no,location=no");}
</script>
<script language="javascript">
<!--
function winopen(url)
{
window.open(url,"search","toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=yes,width=640,height=450,top=200,left=100");
}
function MM_openBrWindow(theURL,winName,features) { //v2.0
window.open(theURL,winName,features);
}
//-->
</script>
<title>电子商务系统</title>
<href="style.css">
<link rel="stylesheet" type="text/css" href="style.css">
<style type="text/css">
<!--
.style1 {color: #FFFFFF}
.style2 {color: #000000}
-->
</style>
</head>
<body leftmargin="0" topmargin="0">
<table cellSpacing="0" cellPadding="0" width="764" align="center" border="0" height="90" bgcolor="#336699">
<tbody>
<tr>
<td width="100%" height="1" align="center" bgcolor="6699CC"> <img src="images/top_title.jpg" width="764" height="100" border="0">
<center>
</center></td>
</tr>
</tbody>
</table>
<div align="center">
<table border="0" width="764" cellspacing="0" cellpadding="0" height="60">
<center>
<tr>
<td width="153" valign="top" bgcolor="#6699CC" height="61" rowspan="4">
<div align="center">
<table border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="160" height="17" bgcolor="6699CC"> </td>
</tr>
</table>
<table class="main" cellspacing="0" cellpadding="2" width="153" border="0" height="126">
<tbody>
<tr>
<td height="10" ></td>
</tr>
<tr>
<td width="152" height="63" align="middle" valign="top" bgcolor="#6699CC"> <form language="javascript" name="FORM1" onSubmit="return FORM1_onsubmit()" action="orderloginsb.asp" method="post">
<p style="word-spacing: 0; margin-top: 0; margin-bottom: 0"><font color="#B0E8F8">
</font><span class="style2">账号
<input name="uid" class="smallInput" size="14" maxlength="16">
</span> </p>
<p style="word-spacing: 0; margin-top: 0; margin-bottom: 0"><span class="style2">密码</span><font color="#B0E8F8">
<input name="pwd" type="password" class="smallInput" size="14" maxlength="16">
</font> </p>
<p style="word-spacing: 0; margin-top: 0; margin-bottom: 0">
<font color="#B0E8F8"> <br>
<input name="Submit2" type="submit" class="smallInput" value="登录" size="3">
<input name="B1" type="button" class="smallInput" onClick="window.location.href='reguser.htm';" value="注册会员">
</font> </p>
</form></td>
</tr>
</tbody>
</table>
<table border="0" width="90%" cellspacing="0" cellpadding="0">
<tr>
<td width="100%"> <div align="center">
<table height="10" cellspacing="0" cellpadding="0" width="100%" border="0">
<tbody>
<tr>
<td width="100%"> <font color="#B0E8F8">
<%
While Not rs_class_1.EOF
set rs_class_2=server.createobject("adodb.recordset")
sqltext3="select * from Class_2 where Class_1_Name='" & rs_class_1("Class_1_Name") & "'"
rs_class_2.open sqltext3,conn,1,1
%>
</font> <div align="center">
<table border="0" cellspacing="0" width="100%" height="1" bordercolorlight="#C0C0C0" cellpadding="0" bordercolordark="#336699">
<tr>
<td height="1" width="100%"> <table border="0" width="100%" bgcolor="#0099CC" cellspacing="0" cellpadding="0">
<tr>
<td height="22" bgcolor="#E1E1E1"> <p align="center"><font color="#000000"><b><%=rs_class_1("Class_1_Name")%></b></font></td>
</tr>
</table></td>
</tr>
<tr>
<%j=1%>
<%While Not rs_class_2.EOF%>
<td width="139" height="22" bgcolor="#B1CBE4">
<p align="center"><a href="splb.asp?spdl=<%=rs_class_1("Class_1_Name")%>&spxl=<%=rs_class_2("Class_2_Name")%>"><font color="#000000"><%=rs_class_2("Class_2_Name")%></font></a>
</td>
<%if j mod 1 = 0 then %>
</tr>
<tr>
<%end if%>
<%
rs_class_2.MoveNext
j=j+1
Wend
rs_class_2.close
%>
</tr>
</table>
</div>
<font color="#B0E8F8">
<%
rs_class_1.MoveNext
Wend
rs_class_1.close
%>
</font> </td>
</tr>
</tbody>
</table>
</div></td>
</tr>
</table>
<br>
</div></td>
<td width="610" valign="top" colspan="2" height="15" bgcolor="6699CC" align="center">
<table width="100%" height="19" border="0" cellpadding="0" cellspacing="0">
<tr align="center" bgcolor="6699CC">
<td width="25"> </td>
<td align="right" bgcolor="6699CC"><span class="style1"><img src="images/navigate.jpg" width="301" height="19" border="0" usemap="#Map"> </span><span class="style1"></span></td>
<td width="25"> </td>
</tr>
</table></td>
</tr>
</center>
<tr>
<td width="610" valign="top" colspan="2" height="25"> <table border="0" width="100%" height="1" cellspacing="0" cellpadding="5">
<tr>
<center>
<td width="50%" height="1"> <form method="POST" action="orderofind.asp" target="_blank">
<p style="word-spacing: 0; margin-top: 0; margin-bottom: 0" align="center">订单查询
<input name="Form_Id" type="text" class="smallInput" value="订单号" size="8">
<input type="submit" value="查询" name="djB1" class="smallInput">
</form></td>
</center>
<td width="50%" height="1"> <form method="POST" action="spss.asp" target="_blank">
<p style="word-spacing: 0; margin-top: 0; margin-bottom: 0"> 商品查询
<input type="text" name="Product_Name" size="10" class="smallInput" style="font-size: 14px">
<select name="Product_Class" size="1" tabindex="0" class="a" style="font-size: 14px">
<option value="礼品">礼品</option>
<option value="影视">影视</option>
<option value="化妆">化妆</option>
<option value="互联网">互联网</option>
</select>
<input type="image" height="20" cache width="52" src="images/go.gif" align="absMiddle" value="GO" border="0" name="I55">
</p>
</form></td>
</tr>
</table></td>
</tr>
<center>
<tr>
<td width="100%" valign="top"> <div align="center">
<center>
</center>
</div>
<div align="center">
<center>
<table width="94%" border="0" align="center" cellpadding="0" cellspacing="3">
<tbody>
<tr>
<td align="middle" width="10"></td>
<td width="475"><img height="10" src="images/arrow_1.gif" width="13"> <font class="105v">热卖商品</font>
<%
set rs_hot=server.createobject("adodb.recordset")
sqltext4="select top 6 * from Product order by Look_Count desc"
rs_hot.open sqltext4,conn,1,1
%>
</td>
</tr>
</tbody>
</table>
</center>
</div>
<div align="center">
<center>
<br>
</center>
</div> <div align="center">
<center>
<table width="94%" border="0" align="center" cellpadding="0" cellspacing="0">
<tbody>
<tr>
<td valign="top" width="10" rowspan="2"></td>
<td width="505" bgcolor="#10a6be" height="1"></td>
<td valign="top" width="10" rowspan="2"></td>
</tr>
<tr height="25">
<td> </td>
</tr>
</tbody>
</table>
</center>
</div> <div align="center">
<center>
<table width="94%" height="98" border="0" align="center" cellpadding="0" cellspacing="0">
<%row_count=1 %>
<tr>
<% Do While Not rs_hot.EOF%>
<td height="1" align="center" valign="bottom" width="455">
<p style="word-spacing: 0; margin-top: 0; margin-bottom: 0"> <img border="0" src="<%=rs_hot("p_pic")%>">
<p style="word-spacing: 0; margin-top: 0; margin-bottom: 0"><a href="javascript:winopen('spjj.asp?ProductNO=<%=rs_hot("Product_No")%>')"><b><%=rs_hot("Product_Name")%></b></a></p>
<p style="word-spacing: 0; margin-top: 0; margin-bottom: 0">市场价:¥ <strike><%=rs_hot("P_OldPrice")%></strike><br>
会员价:¥ <font color="#FF0000"><%=rs_hot("P_NewPrice")%></font><br>
<a href="javascript:winopen('spjj.asp?ProductNO=<%=rs_hot("Product_No")%>')">[详细介绍]</a></p>
<p style="word-spacing: 0; margin-top: 0; margin-bottom: 0"><a href="javascript:openbag(<%=rs_hot("Product_Id")%>)"><img border="0" src="images/mybuy.gif"></a></p>
<hr size="1" color="#808000" width="80%">
</td>
<%if row_count mod 2 <>0 then%>
<%end if%>
<% if row_count mod 3 =0 then%>
</tr>
<tr>
<%end if%>
<%
rs_hot.MoveNext
row_count=row_count+1
Loop
rs_hot.close
'conn.close
%>
</tr>
</table>
</center>
</div> <div align="center">
<center>
<br>
</center>
</div></td>
<td width="161" valign="top" height="10" align="right"> <p> </p> </td>
</tr>
<tr>
<td width="100%" valign="top"> </td>
<td width="161" valign="top" height="95" align="right"> <table border="0" width="100%" cellspacing="0" cellpadding="0">
<tr>
<td width="100%"> </td>
</tr>
</table>
<br>
<br> </td>
</tr>
</center>
</table>
</center>
</div>
<table align="center" border="0" cellPadding="4" cellSpacing="0" width="764" bgcolor="#FFFFFF">
<tbody>
<tr>
<td align="right" class="unnamed1"><hr size="1" color="#000000"></td>
</tr>
<tr>
<td align="right" class="unnamed1"> <p align="center" style="word-spacing: 0; margin-top: 0; margin-bottom: 0"> </p>
</td>
</tr>
</tbody>
</table>
<map name="Map">
<area shape="rect" coords="6,5,60,17" href="index.asp">
<area shape="rect" coords="73,3,125,18" href="zxsp.asp">
<area shape="rect" coords="139,3,194,18" href="reguser.htm">
<area shape="rect" coords="206,3,269,17" href="javascript:openbag()">
</map>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -