<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<!--#include file="setup.asp"-->
<!--#include file="conn.asp"-->
<%
act=request("act")

%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<link href="style.css" rel="stylesheet" type="text/css" />
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title><%=site_name%>——领导信箱</title>

</head>

<body>
<!--#include file="top.asp" -->
<div id="box">
<div id="left">
  <div id="nav4">栏目导航</div>
  <div id="nav_content">
<ul class="cannel2">
<li><a href="gbwrite.asp">签写书信</a></li>
<li><a href="gindex.asp">信箱公开</a></li>
<li><a href="dean_Login.asp">领导入口</a></li>
</ul>
</div>
<div id="nav4">点击排行</div>
<div id="nav_content">
<ul>
<%
 Set rs = Server.CreateObject("ADODB.RecordSet")
rs.open "select top 6 * from news order by hit desc",conn,1,1
if rs.eof and rs.bof then
response.Write("")
else
do while not rs.eof
%>
<li>·<a href="list.asp?yiid=<%=rs("yiid")%>"><%=rs("title")%></a></li>
<%
rs.movenext
loop
end if
rs.close
set rs=nothing
 %>
</ul>
</div>
<div id="nav4">投票调查</div>
<div id="nav_content">
<script language="javascript" src="vote/votescript.asp?vid=7"></script>
</div>
</div>

<div id="right">
<div id="address">您的位置：本站首页→领导信箱</div>

<div id="big_content">
<div id="content">
 <%
set rs=server.createobject("ADODB.recordset")
sql="select * from tubook where  trim(bookhui)<>'' order by id desc"
rs.open sql,conn,1,1
if  rs.eof then
response.Write("暂无信息")
response.End()
end if
number=qian_message_show_count   '设置梅页显示条数
if request("page")="" then
curpage = 1
else
curpage = cint(request("page"))
end if

rs.pagesize=cint(number)
rs.absolutepage = curpage


for i= 1 to rs.pagesize%> 
      <table width="100%"  height="54" border="0" cellpadding="3" cellspacing="0" style="border:1px dashed #cccccc " bgcolor="#FAFAFA">
        <tr>
          <td width="85" valign="top" style="word-wrap:break-word;word-break:break-all"><div align="center"><span class="style5">[姓名]<br>
          </span><%=rs("bookname")%></div><br>
              <br>
              <br>
      [<%=gettime(rs("booktime"))%>]<br>
          </td>
          <td valign="top" style="border-left:1px dashed #cccccc;word-wrap:break-word;word-break:break-all "><table width="506" border="0" cellspacing="0" cellpadding="3">
              <tr>
                <td width="500" style="word-wrap:break-word;word-break:break-all; border-bottom:1px dashed #CCCCCC"> <span class="style5">[主题]</span><%=rs("booktitle")%> </td>
              </tr>
            </table>
              <table width="498" border="0" cellspacing="0" cellpadding="3">
                <tr>
                  <td width="492" style="word-wrap:break-word;word-break:break-all"><span class="style5">[内容]</span><span class="style3"><br>
                  </span><%=rs("bookcon")%>
                      <%if rs("bookhui")<>"" then%>
                  </td>
                </tr>
              </table>
              <table width="98%" border="0" cellspacing="0" cellpadding="0">
                <tr>
                  <td height="3" background="img/dline.gif"></td>
                </tr>
              </table>
              <table width="100%" border="0" cellspacing="0" cellpadding="3">
                <tr>
                  <td width="492" bgcolor="#FFFFFF" style="word-wrap:break-word;word-break:break-all"><span class="style5">[回复]</span><span class="style3"><br>
                    </span> <%=rs("bookhui")%>
                    <%end if%>
                  </td>
                </tr>
              </table></td>
        </tr>
      </table>
      <br />
<%rs.movenext
       if rs.eof then
           i=i+1
           exit for
       end if
next%>
<%
''''''''设置上一页,下一页功能///////////////////////////////////////////////////////////////////////////////////////
    response.Write "当前"&curpage&"页/总共"&rs.pagecount&"页"
     if curpage = 1 then 
		response.write "首页 前页 "
	else
		response.write "<a class='xiahua' href='gindex.asp?page=1'>首页</a> <a class='xiahua' href='gindex.asp?page=" & cstr(curpage-1) & "'>前页</a> "
	end if
	if  curpage = rs.pagecount then
		response.write "后页 末页"
	else
		response.write "<a class='xiahua' href='gindex.asp?page=" & cstr(curpage+1) & "'>后页</a> <a class='xiahua' href='gindex.asp?page=" & cstr(rs.pagecount) & "'>末页</a>"
	end if
	response.write "(总共"&rs.recordcount&"条留言)"
''''''''设置上一页,下一页功能////////////////////////////////////////////////////////////////////////////////////

rs.close
set rs=nothing
conn.close
%>
</div>
</div>
</div>
</div>
<!--#include file="bottom.asp"-->
</body>
</html>
