'¤ÓÊÑè§àªç¤ÇèÒÁÕ¡ÒáÓ˹´¤èÒ¡Òäé¹ËÒ record ËÃ×ÍäÁèËÒ¡ÁÕ¡ÒÃàªç¤à¤Ã×èͧËÁÒ¶١·Õè˹éÒªèͧ¡Ó˹´¤èÒ Áѹ¨Ð¹ÓÁÒàªç¤ÇèÒÁÕ¡ÒáÓ˹´¤èÒ¡Òäé¹ËÒÍÐäúҧ
'ÍÂèÒ§¤ÓÊÑ觹ÕéËÁÒ¤ÇÒÁÇèÒËÒ¡ÁÕ¡Òõԡà¤Ã×èͧËÁÒ¶١·Õè˹éÒªèͧ TITLE áÅéÇ Áѹ¨Ð¹ÓÁÒàªç¤ËÒ¡ÁÕ¡Òõԡ¨ÃÔ§¤ÓÊÑ觤é¹ËҨСÅÒÂà»é¹¡ÒÃà¾ÔèÁǧ㹡Òäé¹ËÒ ã¹¤×Í¡ÒÃà¾ÔèÁrecord TITLE
'à¢éÒä»ã¹¤é¹ËÒ á»ÅÇèÒ¤Ó·ÕèÊÑè§ãËé¤éËҨФ鹨ҡµÒÃÒ§·Õèª×èÍÇèÒTITLE ¡ÑºµÒÃÒ§ª×èÍ DESCRIPTION ÍÂèÒ§¹Õéà»é¹µé¹
if title="true" Then
Sql = "Select * FROM search Where detail Like'%"&search2&"%'Or DESCRIPTION Like'%"&search2&"%'"
Elseif url="true" then
Sql = "Select * FROM search Where URL Like'%"&search2&"%' Or DESCRIPTION Like'%"&search2&"%' "
Elseif title="true" AND url="true" then
Sql = "Select * FROM search Where TITLE Like'%"&search2&"%' Or URL like'%"&search2&"%'"
Else
Sql = "Select * FROM search Where DESCRIPTION Like'%"&search2&"%'"
end If
rs.Open Sql,Conn,1,3
'¡ÒèѴáºè§¼Å¡Òäé¹ËÒ·Õèä´éà»ç¹Ë¹éÒæËÒ¡¼Å·Õèä´éÁÕà¡Ô¹ 20¨Ðâ´¹µÑ´áºè§ä»¢Öé¹Ë¹éҶѴä»
PerPage = 20
rs.PageSize = PerPage
TotalE = rs.RecordCount
TotalP = rs.PageCount
If Request.QueryString("Page") = "" or Request.QueryString("Page") < TotalP or Request.QueryString("Page") = "0" Then
rpage = 1
Else
rpage = CInt(Request.QueryString("Page"))
End If %>
<font size="2" Color="#000000">¼Å¡Òäé¹ËÒ·Ñé§ËÁ´ </font>
<font size="2" color="#0000FF"><b><%= TotalE %></b> </font>
<font size="2" Color="#000000">ÃÒ¡ÒÃ</font>
<font size="2" Color="#000000">¹ÓáÊ´§·Ñé§ËÁ´</font>
<font size="2" color="#993300"><b><%= rpage %></b></font>
/<font size="2" color="#993300"><b> <%= TotalP %></b> </font>
<font size="2" Color="#000000">˹éÒ</font>
<%If NOT rs.EOF Then rs.AbsolutePage = rpage
RNumber = 1
Do While Not rs.EOF and RNumber <= PerPage %>
<table class = text1 width="100%" border="0" bgcolor="#eeeeee">
<tr>
<td width="9%" align="center">
#<%=Right("000"&rs("ID"),4)%><%=i%>
</td>