<meta http-equiv="Content-Type" content="text/html; charset=windows-874">
<%
Category=Request("Category")
Select Case Category
Case ""
Category="ÊÔ¹¤éÒãËÁè"
path="newlamp/"
Case "ÊÔ¹¤éÒãËÁè"
Category="ÊÔ¹¤éÒãËÁè"
path="newlamp/"
Case "â¤Á俧ҹ´Ô¹à¼Ò"
path="lamp1/"
Case "â¤Áä¿à«ÃÒÁÔ¤Êì"
path="lamp2/"
Case "â¤Áä¿ÈÔÅÒ´Å"
path="lamp3/"
Case "â¤Á俧ҹºÇº"
path="lamp4/"
End Select
Set Conn=Server.CreateObject("ADODB.Connection")
Conn.Provider="Microsoft.Jet.OLEDB.4.0"
Conn.Open Server.MapPath("\ecommerce\db\ecommerce.mdb")
Sql="SELECT * FROM Product WHERE Category LIKE '%" & Category & "%' "
Set rs =Server.CreateObject("ADODB.Recordset")
rs.Open Sql,Conn,1,3
'Paging=====================
Dim Page, RowCount, PageCounter
Page = Request.QueryString("Page")
If Page = "" then Page = 1 end if
if not rs.eof then
RowCount = 0
rs.PageSize = 3
rs.AbsolutePage = cInt(Page)
end if
'===========================
%>
<table width="100%" border="0">
<tr>
<td width="80%" class= "text2">ËÁÇ´ [<font color=red><b><%=rs("Category")%></font></b>]</td>
<td width="20%"><a href="displaylist.asp">ËÂÔºµÐ¡ÃéÒÊÔ¹¤éÒ<img src="Basket.gif" border="0"></a>
</td>
</tr>
</table>
<table width="100%" border="0">
<!--print page number-->
<tr>
<div align="right">
<% if Page > 1 then %>
<a href="display.asp?Page=<%=Page-1%>"><< Back</a>
<% end if %>
<%For PageCounter = 1 to rs.PageCount%>
<% if cInt(PageCounter) = cInt(Page) then%>
<b><%=PageCounter%></b>
<%else%>
<a href="display.asp?Page=<%=PageCounter%>"><%=PageCounter%></a>
<%end if%>
<%Next%>
<% if cInt(Page) < cInt(rs.PageCount) then %>
<a href="display.asp?Page=<%=Page+1%>"> Next >></a>
<% end if %>
</div>
</tr>
<!--print page number-->
</table>