<!--#include file="../managebh.asp"-->
<!--#include file="ljconn.asp"-->
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<meta name="GENERATOR" content="Microsoft FrontPage 4.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<title>中国秀未来设计留言本</title>
<style type="text/css">
<!--
.style1 {font-size: 12px}
-->
</style>
</head>

<body>
  <table  width="100%">
  <tr> 
<td height="20" colspan="7" align="center" background="../img/admin_bg_1.gif"><span class="style1"><strong><font color="#ffffff">留言管理</font></strong></span></td>
</tr>
  </table>
  <div align="center">
       <div align="center">
         <%                                                                 
sql="select * from gbook order by id desc"                                                                 
set rs=server.createobject("adodb.recordset")                                                                 
rs.open sql,connstr,1,1                                                              
i=0                                                               
if rs.eof then                                                             
response.write "暂无留言！"                                                             
else                             
const maxperpage=4                           
dim currentpage                             
rs.pagesize=maxperpage                             
currentpage=request.querystring("pageid")                             
if currentpage="" then                             
currentpage=1                             
elseif currentpage<1 then                             
currentpage=1                             
else                             
currentpage=clng(currentpage)                             
	if currentpage > rs.pagecount then                             
	currentpage=rs.pagecount                             
	end if                             
end if                             
                             
if not isnumeric(currentpage) then                             
currentpage=1                             
end if                             
dim totalput,n                             
totalput=rs.recordcount                             
if totalput mod maxperpage=0 then                             
n=totalput\maxperpage                             
else                             
n=totalput\maxperpage+1                             
end if                             
if n=0 then                             
n=1                             
end if                             
rs.move(currentpage-1)*maxperpage                             
i=0                             
w=1                             
do while i< maxperpage and not rs.eof                                                            
%>                                                            
</div>
  <div align="center">                                                         
    <center>                                                           
      <table width="100%" border="0" align="center" cellpadding="3" cellspacing="1" >                                                          
  <tr>                                                          
    <td width="18%" height="20" align="center" bgcolor="#E8F1FF" class="style1">姓名：<font color=#008080 class="style8">&nbsp; </font></td>                                                          
    <td width="82%" align="left" bgcolor="#E8F1FF" class="style1"><% if rs("mail")<>"" then %>
      <a href="mailto:<%=rs("mail")%>" class="setred" title="电子信箱"><%=rs("name")%></a>
      <% else %>
      <%=rs("name")%>
      <% end if %>
&nbsp;&nbsp;<font color=gray>(<%=rs("date")%>)</font>&nbsp;<a href=delly.asp?id=<%=rs("id")%>>删除</a>
<span style="display:none;"><%if rs("ggg")<>"1" then%><a href="tgsh.asp?id=<%=rs("id")%>">通过审核</a>
<%else%>通过审核<%end if%>&nbsp;&nbsp;<a href=huifu.asp?id=<%=rs("id")%>>回复</a></span>
</td>
  </tr>                                                       
  <tr bgcolor="#E8F1FF">                                                       
    <td height="20" align="center" bgcolor="#E8F1FF"><span class="style1">电话：</span><font color=#008080 class="style8">&nbsp; </font></td>                                                       
    <td height="20"><span class="style1"><%=rs("tel")%> </span></td>
  </tr>                                                  
  <tr bgcolor="#E8F1FF">                                                      
    <td height="20" align="center" bgcolor="#E8F1FF"><span class="style1">留言：</span><font color=#008080 class="style10">&nbsp; </font></td>                                                     
    <td height="20"><font class="style10 style1"><%=rs("word")%>&nbsp;</font></td>
  </tr>                                               
  <% if rs("huifu")<>"" then %>                                                     
  <tr bgcolor="#E8F1FF" style="display:none;">                                                     
    <td height="20" align="center" bgcolor="#E8F1FF"><span class="style1">回复：</span><font color=red class="style6">&nbsp;</font></td>                                                     
    <td height="20"><font color=red class="style6 style1"><%=rs("huifu")%></font></td>
  </tr>
  <% end if %>                                                    
</table>                                                         
    </center>                                                    
</div>                                                    
 <table width="100%" border="0" cellpadding="0" cellspacing="0" bgcolor="#698EDA">
  <tr>
    <td colspan="7" height="2"></td>
  </tr>
</table>
     
          <%                                                       
      i=i+1                                                       
      rs.movenext                                                                                        
      loop                                                       
      rs.close                                                       
      end if                                                       
      %>                        
      
      <div align="center">                       
    <center>                       
   <table width="100%" border="0" cellpadding="0" cellspacing="0" class="line1">                                                                                                                                                                  
   <tr>                                                                                        
    <td height="20" align="center" bgcolor="#E8F1FF"><span class="style1">
      <p align="center" class="setred1">页数：<%=currentpage%>/<% =n%>                                                                                             
   	<%k=currentpage                                                                                                                     
   	if k<>1 then%>                                                                                                 
   	<a href="ly1.asp?pageid=1">首页</a>                                                                                                                     
   	<a href="ly1.asp?pageid=<%=k-1%>">上一</a>                                                                                                                     
   	<%else%>                                                                                                 
   	首页&nbsp;上一页                                                                                                                     
   	<%end if%>                                                                                                 
   	<%if k<>n then%>                                                                                                                     
   	<a href="ly1.asp?pageid=<%=k+1%>">下一</a>                                                                                                                     
   	<a href="ly1.asp?pageid=<%=n%>">尾页</a>                                                                                                                     
   	<%else%>                                                                                                 
   	下一页&nbsp;尾页                                                                                                                     
   	<%end if%>                                                                                                 
        共有<font color="red"><%=totalput%></font>条</p></span>                                                                                                                    
      </td>                                                                                                              
   </tr>                                                                                           
  </table>
<!--#include file="../copyright.asp"-->                                                                                                                 
    <br>
    </center>                         
  </div>                         
</body>                                                                                                          
                                                                                                          
</html>                                                                                                          
