<%dbdns="../"%>
<!--#include file="../inc/conn.asp"-->
<%sortid=int(request.querystring("sortid"))
tableid=int(request.querystring("tableid"))
if sortid="" then sortid=0
if tableid="" then tableid=0


set rs=Server.CreateObject("Adodb.Recordset")
sql="select top 8 * from dlxf_leaveword where dlxf_book_sort="&sortid&" and dlxf_book_table="&tableid&" order by dlxf_book_id desc"
rs.open sql,conn,1,1
if not(rs.eof and rs.bof) then
book_view="<table width=""100%"" border=0 cellspacing=0 cellpadding=3>"
n=0
do while not rs.eof
n=n+1
book_view=book_view&"<tr><td bgcolor=fafafa><strong>"&rs("dlxf_book_user")&"</strong> ΑτΡΤΣΪ <font color=#999999>"&rs("dlxf_book_date")&" ("&rs("dlxf_book_contact")&")</font></td></tr>"&_
"<tr><td height=40>‘‘‘‘"&trim(rs("dlxf_book_content"))&"</td></tr>"&_
"<tr><td background="&application("cityurl")&"img/list_line_1.gif></td></tr>"&_
rs.movenext
loop
book_view=book_view&"</table>"
else
book_view="<div align=center>ΤέΞήΑτΡΤ</div>"
end if
rs.close
set rs=nothing

%>
document.write('<%=book_view%>')