📄 list.asp
字号:
<!--#include file="header.asp" -->
<TABLE cellSpacing=0 cellPadding=0 width=778 align=center border=0>
<TBODY>
<TR>
<TD width=185 height="300" vAlign=top class="table-right">
<!--#include file="left.asp" -->
</TD>
<TD vAlign=top> <table width="100%" cellspacing="0" cellpadding="0">
<tr>
<td width="10"> </td>
<td> <table width="50%" cellspacing="0" cellpadding="0">
<tr>
<td> 当前类别:
<%Set rssia_class= Server.CreateObject("ADODB.Recordset")
sqlsia_class="select * from sia_class where claid="&clng(request("claid"))&""
set rssia_class = conn.execute(sqlsia_class)
Set rssia_category= Server.CreateObject("ADODB.Recordset")
sqllb="select * from sia_category where clid="&rssia_class("clid")&""
set rssia_category= conn.execute(sqllb)%> <font color="#FF0000"><%=rssia_category("clname")%></font> >> <font color="#FF0000"><%=rssia_class("claname")%></font> </td>
</tr>
</table>
<%
Set rs= Server.CreateObject("ADODB.Recordset")
sql="select * from sia_product where claid="&clng(request("claid"))&" and hide=false order by proid DESC"
rs.open sql,conn,1,1
if rs.eof then
response.write "<br>本分类下暂无产品"
end if
rs.pagesize = 8
if request("page")="" or isempty(request("page")) then
page = 1
else
page=int(request("page"))
end if
if page>rs.pagecount then
page=rs.pagecount
end if
if not rs.BOF then
Rs.Move Rs.PageSize*(page-1)
end if
i=1
while not rs.eof and i<=rs.pagesize
%>
<table width="98%" cellpadding="5" cellspacing="0" class="table-top">
<tr>
<td width="120" height="100" align="center" valign="middle"><a href=" product.asp?proid=<%=rs("proid")%>" onFocus="this.blur()"><img src="admin/<%=rs("smallpic")%>" width="80" height="80" border="0"></a></td>
<td valign="top">名称:<a href=" product.asp?proid=<%=rs("proid")%>"><%=rs("proname")%></a><br>
编号:<%=rs("code")%><br>
原价:<s>¥<%=rs("proprice")%>元</s> 现价:¥<%=rs("disprice")%>元<br>
简介:<%
info=trim(rs("info"))
info = Replace(info,"<br>","")
if len(info)>100 then
info=left(info,100)
response.write info
response.write "…"
else
response.write info
end if
%>
<br>
<a href="add.asp?add=<%=rs("proname")%>" onFocus="this.blur()"><img src="images/siacart.gif" width="90" height="20" border="0"></a>
</td>
</tr>
</table><%
i=i+1
rs.MoveNext
wend
%>
<table width="98%" cellpadding="0" cellspacing="0" class="table-top">
<tr>
<td align="center" valign="bottom"><br>
<%
if rs.recordcount<>0 then
if page-1 mod 10=0 then
p=(page-1) \ 10
else
p=(page-1) \ 10
end if
response.write "<form name=form method=post action=?claid="&request("claid")&">页次:"& page &"/"& rs.pagecount &"页 每页"& rs.pagesize &" 共"& rs.recordcount &"条记录"&_
" 分页:"
if p*10>0 then response.write "<a href='?claid="&request("claid")&"&page="&p*10&"' title=上十页>[<<]</a> "
uming_i=1
for ii=p*10+1 to P*10+10
if ii=page then
response.write "<font color=#ff0000>["+Cstr(ii)+"]</font> "
else
response.write "<a href='?claid="&request("claid")&"&page="&ii&"'>["+Cstr(ii)+"]</a> "
end if
if ii=rs.pagecount then exit for
uming_i=uming_i+1
next
if ii<=rs.pagecount and uming_i=11 then response.write "<a href='?claid="&request("claid")&"&page="&ii&"' title=下十页>[>>]</a> "
response.write(" 跳页:<input type=text name=page size=2 maxlength=3 class=textbox> <input type=submit name=Submit2 value=Go class=textbox-1></form>")
end if%>
</td>
</tr>
</table>
</td>
</tr>
</table></TD>
</TR>
</TBODY>
</TABLE>
<!--#include file="footer.asp"-->
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -