 |
cellspacing="0" cellpadding="3" align="center" class="p9">
|
常州市思达电源有限公司留言板
|
|
║填写留言║版主管理║回
首 页║ |
|
border="0" align="center" cellpadding="2" cellspacing="1" class="pc1" bgcolor="<%=main_color%>">
| >查看留言 |
<%sqlstr="select * from t_guestbook_main order by mydate desc,hf_date desc"
set myrs=server.CreateObject("adodb.recordset")
myrs.Open sqlstr,conn,1,1
if myrs.RecordCount>0 then
myrs.PageSize=10'每页显示的记录数
total_page=myrs.PageCount
total_red=myrs.RecordCount
current_page=Request("me_page")
if current_page="" then
current_page=1
elseif not isnumeric(current_page) then
current_page=1
else
current_page=cint(current_page)
end if
if current_page>total_page then
current_page=total_page
elseif current_page<1 then
current_page=1
end if
myrs.AbsolutePage=current_page
%>
<%else
Response.Write "
对不起!没有任何留言!返回 "
end if
myrs.Close
set myrs=nothing
%>
|
|
 |