<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<!--#include file="conn.asp" -->
<!--#include file="page.asp"-->
<!--#include file="Inc/function.asp"-->
<!--#include file="Inc/config.asp"-->
<!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>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<meta http-equiv="keywords" content="<%=keywords%>"/>
<link href="css/index.css" type="text/css" rel="stylesheet" />
<title><%=wzname%></title>
<SCRIPT src="js/msg.js" type="text/javascript"></SCRIPT>
<style type="text/css">
<!--
.STYLE2 {color:#C2C2C2;}
.STYLE3 {color: #FF0000}
-->
</style>
</head>
<body>
<div id="contain">
  <div id="header">
    <!--#include file="top.asp"-->
  </div>
  <div id="box">
    <% 
	sql="select * from [book] where passed=0 order by id desc"
	set rs=server.createobject("adodb.recordset") 
		rs.open sql,conn,1,1
	    if rs.eof and rs.bof then	  
	%>
	<div class="box_list">
	  <p>暂无留言信息记录！</p>
	</div>
	<div class="line"></div>
	<% else %>
	<% 
	rs.PageSize =book_ts
    iCount=rs.RecordCount 
    iPageSize=rs.PageSize
    maxpage=rs.PageCount 
    page=request.querystring("page")
    if Not IsNumeric(page) or page="" then
    page=1
    else
    page=cint(page)
    end if
    if page<1 then
    page=1
    elseif  page>maxpage then
    page=maxpage
    end if
    rs.AbsolutePage=Page
    if page=maxpage then
    x=iCount-(maxpage-1)*iPageSize
    else
    x=iPageSize
    end if
    end if
    For i=1 To x %>
    <div class="box_list">
      <p><img src="images/online.gif" alt="留言者" /> <strong><%=rs("book_name")%></strong></p> 
      <div class="list_time">
        Time:<%=FormatDateTime(rs("add_date"),2)%> / IP:<%=replaceip(rs("add_ip"))%> / <%if rs("yc_email")=0 then%><a href="mailto:<%=rs("book_email")%>">邮箱</a> <% else %> *** <%end if%>/ <%if rs("yc_qq")=0 then%><a target=blank href=tencent://message/?uin=<%=rs("book_qq")%>&Site=XYCMS留言板&Menu=yes>QQ</a><% else %> *** <%end if%> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
        <span class="STYLE2">[带&quot;<span class="STYLE3">*</span>&quot;号为隐藏内容]</span></div>
      <div class="list_t">
        <img src="images/ico_1.gif" alt="问题标题" /> <%=rs("book_title")%>
      </div>
      <div class="list_dc">
         <%=rs("book_body")%>
      </div>
	  <%if IsNull(rs("reply_body")) or trim(rs("reply_body")&"")="" then%>
      <div class="list_d">
        <img src="images/ico_2.gif" alt="回答" /> <span>回复：</span> 此留言暂未回复！
      </div>
      <div class="list_time">
          
      </div>
	  <% else%>
	  <div class="list_d">
        <img src="images/ico_2.gif" alt="回答" /> <span>回复：</span> <%=rs("reply_body")%>
      </div>
      <div class="list_time">
        Response Time:<%=rs("reply_date")%>  
      </div>
	  <% end if%>
    </div>
    <div class="line"></div>
	<%
	rs.movenext
	next
	call PageControl(iCount,maxpage,page,"border=0 ","<p align=right>")
	rs.close
	set rs=nothing
	%>
  </div>
  <div id="xycopy">
    <!--#include file="foot.asp"-->
  </div>
</div>
<DIV id="downmsg_emessage" style="DISPLAY: block">
  <DIV id="downmsgBar">
    <DIV id="donwmsg_head">XYCMS官方系统提示</DIV><A class="close" href="javascript:closeDiv()"></A><A class="msg-hidden-btn-1" id="msg_hidden_btn" href="javascript:showHideDiv()">&nbsp;</A></DIV>
  <DIV id="donwmsg_content" style="DISPLAY: block; HEIGHT: 162px">
    <UL>
      <LI class="ll"><A href="http://www.yuleroom.cn/common_1.html" target="_blank">关于XYCMS建站系统</A></LI>
      <LI><A href="http://xycms.taobao.com" target="_blank">官方店铺诚邀您来加盟</A></LI>
      <LI><A href="http://item.taobao.com/item.htm?id=18512924838" target="_blank">XYCMS企业建站系统UTF8版</A></LI>
      <LI><A href="http://item.taobao.com/item.htm?id=12542687420" target="_blank">XYCMS在线留言板商业版</A></LI>
      <LI><A href="http://item.taobao.com/item.htm?id=12429639044" target="_blank">XYCMS教育培训学校建站系统</A></LI>
    </UL>
    <DIV class="lb"><A href="http://www.yuleroom.cn/" target="_blank">XYCMS</A> <A href="http://xycms.taobao.com" target="_blank">官方店铺</A> <A href="http://item.taobao.com/item.htm?id=7320515773" target="_blank">在线定做网站</A></DIV>
  </DIV>
</DIV>
</body>
</html>
