<!--#include file="conn.asp"-->
<%
'if s_head="head4.asp" or s_productkind="4" then
'	response.write "<!DOCTYPE html PUBLIC ""-//W3C//DTD XHTML 1.0 Transitional//EN"" ""http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"">"
'else
	response.write "<!DOCTYPE HTML PUBLIC ""-//W3C//DTD HTML 4.01 Transitional//EN"">"
'end if
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title><%=application("sitename")%></title>
<link href="i.css" type=text/css rel=stylesheet>
<style type="text/css">
<!--

.style1 {font-size: 14px}
.style11 {
	font-size: 14px;
	color: #ee0000;
	font-weight: bold;
}
.style12 {color: #990000}
.style13 {color: #333333}
#tabcss{
	BORDER-COLLAPSE: collapse;
	border-top-width: 1px;
	border-left-width: 1px;
	border-top-style: solid;
	border-left-style: solid;
	border-top-color: #dddddd;
	border-left-color: #dddddd;
}#tabcss td {
	line-height: 24px;
	padding-left: 3px;
	padding-right: 2px;
	padding-top: 2px;
	padding-bottom: 2px;
	color: #333333;
	border-right-width: 1px;
	border-bottom-width: 1px;
	border-right-style: solid;
	border-bottom-style: solid;
	border-right-color: #dddddd;
	border-bottom-color: #dddddd;
}
-->
</style>
<SCRIPT LANGUAGE=JScript>
function all_onclick1() 
{
	if(document.formd.allckeck1.checked==true)
	{
		for(i=0;i<document.formd.elements.length;i++)
		{
			document.formd.elements[i].checked=true;
		}
	}
	else
		for(i=0;i<document.formd.elements.length;i++)
		{
			document.formd.elements[i].checked=false;
		}

}
</script>
</head>
<body leftmargin="0" topmargin="0">
<!--#include file="head.asp"-->
<TABLE width="996" border=0 align="center" cellPadding=0 cellSpacing=0 bgcolor="#FFFFFF">
  <tr>
    <td bgcolor="#fafafa"> 

<table width="994" height="422" border="0" align="center" cellpadding="0" cellspacing="0">
<tr> 
          <td valign="top"> 
<table width="98%" border="0" align="center" cellpadding="0" cellspacing="0">
        <tr> 
          <td width="86%" height="35"><B><font class='style11'><%=application("sitename")%>留言簿：</font></B> &nbsp;&nbsp;<B><a href='g_post.asp'>[我要留言]</a></B></td>
          <td width="14%">&nbsp;</td>
        </tr>
      </table>
      <table width="98%" border="0" align="center" cellpadding="0" cellspacing="0" id="tabcss">
        <tr bgcolor="#d1d1d2"> 
                <td width="165"> 
<div align="center">留言人</div></td>
                <td width="48"> 
                  <div align="center">表情</div></td>
                <td width="429" height="25" bgcolor="#d1d1d2"> 
                  <div align="center">主题</div></td>
                <td width="63"> 
                  <div align="center">回复</div></td>
                <td width="195"> 
                  <div align="center">最后回复时间</div></td>
        </tr>
<%
response.expires="0"
nowpage=request("page")
set rs=server.createobject("adodb.recordset")


	sql="select g_reversion,g_brow,g_title,g_man,g_updatetime,id,recount,check from message where g_pkid=1 and re='0' and check='1' order by g_updatetime desc"


rs.open sql,conn,1,1
if not rs.eof then
   rs.pagesize=20
   rs.absolutepage=1
   if request("page")<>"" then rs.absolutepage=request("page")
   rowcount =rs.pagesize
   if not rs.eof then
    p=1
	do while not rs.eof and rowcount>0
	set g_reversion=rs("g_reversion")
	set g_brow=rs("g_brow")
	set g_title=rs("g_title")
	set g_man=rs("g_man")
	set g_updatetime=rs("g_updatetime")
	set id=rs("id")
	set recount=rs("recount")
	set check=rs("check")
	
%>
        <tr bgcolor="#F4FAFF"> 
          <td bgcolor="#F4FAFF"><div align="center"><%=g_man%></div></td>
          <td><div align="center"><img src="pic/icon<%=g_brow%>.gif" width="15" height="15"></div></td>
          <td height="25">
		  <a href="showmessage.asp?id=<%=id%>"><%=g_title%></a></td>
          <td bgcolor="#F4FAFF"><div align="center"><font color="#FF0000"><%=recount%></font></div></td>
          <td><div align="center"><%=g_updatetime%></div></td>
        </tr>
<%
	p=p+1
	rs.movenext       
	rowcount=rowcount-1      
	loop   
	end if  
end if
%>

      </table>
      <table width="100%" height="35" border="0" align="center" cellpadding="0" cellspacing="0" style="margin-top:5px;">
        <tr> 
          <td width="43%" align='right' valign='top'>&nbsp;</td>
          <td width="57%"><form name="form1" method="post" action="message.asp">
              <%
		if nowpage="" then nowpage="1" 
 ' if rs.pagecount>1 then    
     response.write "<table border='0' align='center' width='100%'>"    
 
	response.write "共 "& rs.pagecount &" 页  现在第 "& nowpage &" 页　<a href='message.asp?page=1'>[首页]</a>　"    
  if nowpage>1 then
  response.write "<a href='message.asp?page="& nowpage-1 &"'>[上页]</a>　" 
  else
    response.write"[上页]　" 
  end if
  if  cstr(nowpage)<cstr(rs.pagecount) then
    response.write"<a href='message.asp?page="& nowpage+1 &"'>[下页]</a>　"
	else
	response.write"[下页]　"
	end if
	 response.write "<a href='message.asp?page="& rs.pagecount &"'>[尾页]</a>　"
	 %>
              跳到<input name="page" type="text" size="3" maxlength="3">页 <input type="submit" name="Submit" value="OK" class='input3'>
              <input type="hidden" name="condition" value="<%=condition%>">
              <input type="hidden" name="myword" value="<%=myword%>">
              
			  <%response.write "</tr></table>" %>
            </form></td>
        </tr>
      </table>
      
          </td>
  </tr>
</table>

</TD></TR></TABLE>
<!-- #include file="foot.asp" -->
<%
conn.close
set conn=nothing
%>
</body>
</html>

