📄 producttypelist.asp
字号:
<TABLE cellSpacing = "0" cellPadding = "0" width = "100%" border = "0" ID = "Table8">
<TBODY>
<TR>
<TD height = "20" background = "images/titlebg.gif" align = "center"><strong>手机厂商</strong>
</TD>
</TR>
<TR>
<TD height = "5"></TD>
</TR>
<TR>
<TD vAlign = "top">
<table width = "95%" border = "0" align = "center" cellpadding = "0" cellspacing = "0" ID = "Table9">
<tr>
<td>
<% call ShowManufacturer() %>
</td>
</tr>
</table>
</TD>
</TR>
<TR>
<TD height = "5"></TD>
</TR>
</TBODY>
</TABLE>
<%
' =================================================
'过程名:ShowManufacturer
'作 用:显示商家名称列表(无修饰)
'参 数:无
' =================================================
Sub ShowManufacturer()
dim strSQL, strTemp, rsObj, i
Response.Write "<table width = '100%' border = '0' cellspacing = '0' cellpadding = '0' ID = 'Table3'>"
strSQL = "SELECT * FROM ProductType WHERE SuperID = 0"
i = 0
set rsObj = conn.Execute(strSQL)
do while not (rsObj.eof or err)
Response.Write "<tr><td height = 23>"
Response.Write "<img src = images/cha1.gif>"
Response.Write "<a href = Product.asp?producttype=" & rsObj("ID") & "> " & rsObj("Name") & "</a>"
Response.Write "</td></tr>"
i = i+1
if i>100 then exit do
rsObj.MoveNext
loop
'关闭集合,但不能关闭连接,因为其他地方可能要用
Set rsObj = Nothing
Response.Write "</table>"
end sub
%>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -