<% const MaxPerPage=10 dim totalPut dim CurrentPage dim TotalPages dim a,j if not isempty(request("page")) then currentPage=cint(request("page")) else currentPage=1 end if %>
  
     
 

签写留言| 关于我们| 站点导航| 会员注册 | 在线预约 | 献计献策 | 就诊须知 | 收费标准| 返回主页 | 刷新本页

<% sql="select * from guest order by id desc" set rs=server.createobject("adodb.recordset") rs.open sql,conn,1,1 if rs.eof and rs.bof then response.write "

还 没 有 任 何 留 言

" else totalPut=rs.recordcount if currentpage<1 then currentpage=1 end if if (currentpage-1)*MaxPerPage>totalput then if (totalPut mod MaxPerPage)=0 then currentpage=totalPut \ MaxPerPage else currentpage=totalPut \ MaxPerPage + 1 end if end if if currentPage=1 then showContent showpage totalput,MaxPerPage,"index.asp" else if (currentPage-1)*MaxPerPage
 
姓名:<%=rs("guestname")%>
">
<% if rs("from")<>"" then %> 來自:<%=rs("from")%> <%end if%>
  <%if rs("email")<>"" then %> "> <%end if %>   <%if rs("homepage")<>"" then%> "> <%end if%>   <% if rs("oicq")<>"" then%> "> <%end if%> ">  
 
<% if len(rs("guestcontent"))>110 then response.write ubbcode(left(rs("guestcontent"),80)) else response.write ubbcode(rs("guestcontent")) end if %>

<%if rs("guestreply")<>"" then %> 回复 <%=ubbcode(rs("guestreply"))%> <%end if%>
  发表于:<%=rs("guestdate")%> Admin
<% a=a+1 if a>=MaxPerPage then exit do rs.movenext loop end sub function showpage(totalnumber,maxperpage,filename) dim n if totalnumber mod maxperpage=0 then n=totalnumber \ maxperpage else n=totalnumber \ maxperpage + 1 end if response.write "
" response.write " " if CurrentPage<2 then response.write "首頁 上一頁 " else response.write "首頁 " response.write "上一頁 " end if if n-currentpage<1 then response.write "下一頁 尾頁" else response.write "下一頁 " response.write "尾頁" end if response.write ""&totalnumber&"条留言 每頁"&maxperpage&"条留言 " response.write "转到:" response.write "
" end function %>

签写留言| 关于我们| 站点导航| 会员注册 | 在线预约 | 献计献策 | 就诊须知 | 收费标准| 返回主页 | 刷新本页