?? prodtree.asp
字號:
<%
response.write "<table width='175' border='0' align='center' cellpadding=1 cellspacing=1>"
'分大類顯示產品
Dim a,b,c '定義臨時變量
sqllar="select Distinct LarCode,LarSeq,MidCode,MidSeq from ProdClass order by LarSeq,MIdSeq "
Set rsprodtree=Server.CreateObject("ADODB.RecordSet")
rsprodtree.Open sqllar,conn,1,1
if rsprodtree.bof and rsprodtree.eof then
response.write "<tr><td width=175 colspan="&tree_col&" height=100 align=center>您好!<br> 新的商城,商品準備中</td></tr>"
else
a=rsprodtree("LarCode")
Do While Not rsprodtree.eof
if instr(rsprodtree("LarCode"),"*")= 0 then '根據*號判斷是否是屏蔽掉的類別大類
if (a<>b) then
response.write " <tr><td width=175 colspan="&tree_col&"><img height=3 src='images/line_0110.gif' width=175 align=bottom border=0></td></tr>"
response.write "<td align=center width='175' bgcolor='#e7e7e7' class='dfont' height=20 colspan="&tree_col&"> <img src='images/arrow4.gif' width='11' height='13' border='0' align=absmiddle> "
response.write "<a href='sublist.asp?LarCode="&rsprodtree("LarCode")&"'>"&rsprodtree("LarCode")&"</a></td></tr>"
a=rsprodtree("LarCode")
else
end if
if instr(rsprodtree("MidCode"),"*")= 0 then '根據*號判斷是否是屏蔽掉的類別中類
response.write "<tr>"
for i=0 to rsprodtree.recordcount
if i mod tree_col =0 and i<>0 then
response.write "</tr>"&vbcrlf&"<tr>"
response.write vbcrlf&"<TD align=center class='dfont' onMouseOver=""bgColor='#FFE3D2'"" onMouseOut=""bgColor='#FFFBF7'""><a href='sublist.asp?LarCode="&rsprodtree("LarCode")&"&MidCode="&rsprodtree("MidCode")&"'><font color=#0066ff>"&rsprodtree("MidCode")&"</font></a></TD>"
else
response.write vbcrlf&"<TD align=center class='dfont' onMouseOver=""bgColor='#FFE3D2'"" onMouseOut=""bgColor='#FFFBF7'""><a href='sublist.asp?LarCode="&rsprodtree("LarCode")&"&MidCode="&rsprodtree("MidCode")&"'><font color=#0066ff>"&rsprodtree("MidCode")&"</font></a></TD>"
end if
rsprodtree.movenext
if rsprodtree.eof then exit do
if a<>rsprodtree("LarCode") then
b=rsprodtree("LarCode")
exit for
end if
next
end if
end if
Loop
end if
set rsprodtree=nothing
response.write "</td></tr></table>"
%>
<table width="185" border="0" cellspacing="0" cellpadding="0" align="center">
<tr>
<td align="center">
<table width="185" border=0 align="center" cellpadding=2 cellspacing=3 class="new">
<tr><td height=1 bgcolor="#E3B9B5"></td></tr>
<tr class=row bgcolor=#f2f2f2><td valign=top align="center">
<p align="center"><font color="#FF3300">【 在 線 客 服 】</font></p>
</td></tr>
<tr><td height=15 valign=top align="center">
<%=adm_kf1%><br><%=adm_kf2%>
</td></tr>
<tr class=row bgcolor=#f2f2f2><td valign=top align="center"><a href="liucheng.asp"><font color="#FF3300">【
購 物 指 南 】</font></a></td></tr>
<tr class=row bgcolor=#f2f2f2><td valign=top align="center"><a href="b_about.asp"><font color="#FF3300">【
付 款 方 法 】</font></a></td></tr>
<tr class=row bgcolor=#f2f2f2> <td valign=top align="center"><a href="helpcenter.asp"><font color="#FF3300">【
幫 助 中 心 】</font></a></td></tr>
<tr class=row bgcolor=#f2f2f2> <td valign=top align="center"><a href="my_accounts.asp"><font color="#FF3300">【
用 戶 中 心 】</font></a></td></tr>
<tr class=row bgcolor=#f2f2f2> <td valign=top align="center"><a href="news_detail.asp?NewsId=1" target="_blank"><font color="#FF3300">【
發 貨 通 知 】</font></a></td></tr>
<tr class=row bgcolor=#f2f2f2> <td valign=top align="center"><a href="<%=quehuo%>" target="_blank" title="登記我要的商品"><font color="#FF3300">【
缺 貨 登 記 】</font></a></td></tr>
<tr class=row bgcolor=#f2f2f2> <td valign=top align="center">
<p align="center"><font color="#FF3300"><br>
本站LOGO<br>
</font><img border="1" src="IMAGES/logo.gif" width="88" height="31"></td></tr>
<tr> <td height=1 bgcolor="#E3B9B5"></td></tr>
</table>
</td>
</tr>
</table>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -