<!--#include file="conn.asp"-->
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>欢迎光临昆明人企业网站管理系统3.0[终极完美双语版]网站</title>
<link href="css.css" rel="stylesheet" type="text/css">
<Script language="JavaScript1.3" type="text/javascript">
<!--
function gopage()
{
	var o=document.getElementById("num");
	var num=o.value;
	if(!isNaN(parseInt(num)))
	{
		document.URL="faq.asp?page="+num;
	}
}
//-->
</Script>
<script language=javascript>
function aa() {

if (document.form3.title.value=="")
	{
	  alert("请填写主题！")
	  document.form3.title.focus()
	  return false
	 }
if (document.form3.setname.value=="")
	{
	  alert("请填写姓名！")
	  document.form3.setname.focus()
	  return false
	 }
	 
if (document.form3.setmsg.value=="")
	{
	  alert("请填写留言内容！")
	  document.form3.setmsg.focus()
	  return false
	 }
}
</script>	
<style type="text/css">
<!--
.style1 {color: #FF0000}
-->
</style>
</head>

<body leftmargin="0" rightmargin="0" topmargin="0" marginwidth="0" marginheight="0" bottommargin="0" class="bg1">
<table width="1004" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td><!--#include file="top.htm" -->
</td>
  </tr>
  <tr>
    <td align="center" valign="top"><table width="765" border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF">
        <tr> 
          <td width="638" height="7"><img src="image/none.jpg" width="12" height="7"></td>
          <td width="638">&nbsp;</td>
          <td width="638">&nbsp;</td>
          <td height="7"><img src="image/none.jpg" width="12" height="7"></td>
        </tr>
        <tr> 
          <td width="32" align="center" valign="top" >&nbsp;</td>
          <td align="center" valign="top" ><table width="100%" border="0" cellspacing="0" cellpadding="0">
              <tr> 
                <td><img src="image/faq.jpg" width="56" height="29"></td>
              </tr>
              <tr> 
                <td height="2"><img src="image/line3.jpg" width="627" height="2"></td>
              </tr>
              <tr> 
                <td height="13"></td>
              </tr>
              <tr> 
                <td valign="top"> <table width="96%" border="0" cellspacing="0" cellpadding="0">
                    <tr> 
                      <td>
<%
Set rs=Server.CreateObject("Adodb.RecordSet")
Sql="select * from Faq where mgtype='留言信息' and isreply=1 order by settime desc"
'response.Write sql
page=Request("page")
if page<>"" then 
 page=cdbl(page)
else
 page=1
end if
rs.PageSize=3
rs.open Sql,conn,1,1
Total_Page=rs.PageCount
if (rs.PageCount<page) then page=rs.PageCount
if (page<1) then  page=1
if not rs.eof then  rs.AbsolutePage=page
%>
<%if rs.bof and rs.eof then %>					  <table width="100%" height="100"  border="0" cellpadding="0" cellspacing="0">
                        <tr>
                          <td class="main4"><div align="center">对不起，暂无留言信息！</div></td>
                        </tr>
                      </table>
<% else %>
<%
for i=1 to rs.pagesize
if rs.eof then
exit for
end if
%>
                      <table width="628" border="0" cellspacing="0" cellpadding="0">
                          <tr> 
                            <td height="27" background="image/tbg.jpg" class="bg2"> 
                              <table width="96%" border="0" align="center" cellpadding="0" cellspacing="0" class="ly">
                                <tr> 
                                  <td width="9%"><strong>留言人：</strong></td>
                                  <td width="59%"><%=rs("setname")%></td>
                                  <td width="12%" align="right"><strong>留言时间：</strong></td>
                                  <td width="20%"><%=rs("settime")%></td>
                                </tr>
                              </table></td>
                          </tr>
                          <tr> 
                            <td height="4"></td>
                          </tr>
                          <tr> 
                            <td><img src="image/top.jpg" width="628" height="8"></td>
                          </tr>
                          <tr> 
                            <td height="59" align="center" valign="top" background="image/bg2.jpg"> 
                              <table width="96%" border="0" cellpadding="0" cellspacing="0" class="main3">
                                <tr> 
                                  <td valign="top" style="word-break:break-all">标题：<%=rs("title")%></td>
                                </tr>
                                <tr> 
                                  <td valign="top" style="word-break:break-all"><img src="image/letter.jpg" width="18" height="19"><%=rs("setmsg")%></td>
                                </tr>
                              </table></td>
                          </tr>
                          <tr> 
                            <td height="8" valign="top"><img src="image/bottom2.jpg" width="628" height="8"></td>
                          </tr>
                          <tr> 
                            <td height="4" valign="top"></td>
                          </tr>
                          <tr> 
                            <td height="27" background="image/tbg.jpg" class="bg2"> 
                              <table width="96%" border="0" align="center" cellpadding="0" cellspacing="0" class="ly">
                                <tr> 
                                  <td width="9%"><strong>回复</strong></td>
                                  <td width="59%">&nbsp;</td>
                                  <td width="12%" align="right"><strong>回复时间：</strong></td>
                                  <td width="20%"><%=rs("replytime")%></td>
                                </tr>
                              </table></td>
                          </tr>
                          <tr> 
                            <td height="4"></td>
                          </tr>
                          <tr> 
                            <td><img src="image/top.jpg" width="628" height="8"></td>
                          </tr>
                          <tr> 
                            <td height="59" align="center" valign="top" background="image/bg2.jpg"> 
                              <table width="96%" border="0" cellpadding="0" cellspacing="0" class="main3">
                                <tr> 
                                  <td valign="top" style="word-break:break-all"><img src="image/book.jpg" width="15" height="18"><%=rs("replymsg")%></td>
                                </tr>
                              </table></td>
                          </tr>
                          <tr> 
                            <td height="8" valign="top"><img src="image/bottom2.jpg" width="628" height="8"></td>
                          </tr>
                        </table>
                        <br> 
                      <%
rs.movenext
next 
end if
%>		
					  </td>
                    </tr>
                    <tr> 
                      <td>&nbsp;</td>
                    </tr>
                    <tr> 
                      <td align="right"> <table width="98%"  border="0" align="center" cellpadding="0" cellspacing="0" class="main4">
                        <tr>
                          <td width="92%"><div align="right">第<%=page%>页　共<%=rs.recordcount%>条　
                                  <%
		if totalpage<>1 then
			if page>1 then
				response.Write("<a href='faq.asp?page=1'>首页</a>　<a href='faq.asp?page="&page-1&"'>上一页</a>")
			else
				response.Write("首页　上一页")
			end if
			
			if page<Total_Page then
				response.Write("　<a href='faq.asp?page="&page+1&"'>下一页</a>　<a href='faq.asp?page="&Total_Page&"'>未页</a>")
			else
				response.Write("　下一页　未页")
			end if
		end if
		%>
        　 转到：
        <input name="num" type="text" class="f1" id="num2" size="3" maxlength="5">
                          </div></td>
                          <td width="8%"><div align="right"><img src="image/go.jpg" width="27" height="23" id="btngo" onclick="gopage();" ></div></td>
                        </tr>
                      </table></td>
                    </tr>
                  </table></td>
              </tr>
              <tr> 
                <td>&nbsp;</td>
              </tr>
              <tr> 
                <td><img src="image/faq2.jpg" width="66" height="20"></td>
              </tr>
              <tr> 
                <td><img src="image/line3.jpg" width="627" height="2"></td>
              </tr>
			     <tr> 
                <td height="12"></td>
              </tr>
              <tr> 
                <td><table width="90%" border="0" align="center" cellpadding="0" cellspacing="0" class="gfont">
                    <form name="form3" method="post" action="faq_sub.asp" onsubmit="return aa()">  <tr>
                        <td width="9%" align="center">姓　名：</td>
                      <td width="91%">
                          <input name="setname" type="text" class="f1" id="setname" size="50">
                          <span class="style1">*</span>
                        </td>
                    </tr>
                    <tr>
                        <td align="center">标　题：</td>
                      <td>
                          <input name="title" type="text" class="f1" id="title" size="50">
                          <span class="style1">*</span>                       </td>
                    </tr>
                    <tr>
                        <td align="center">内　容：</td>
                        <td valign="top"><textarea name="setmsg" cols="50" rows="8" class="f1" id="setmsg"></textarea>
                          <span class="style1">*</span> </td>
                    </tr>
                    <tr>
                      <td>&nbsp;</td>
                        <td height="35" valign="middle">　 
                          <input name="imageField" type="image" src="image/reply.gif" width="76" height="27" border="0">
                          　<img src="image/cancel.gif" width="79" height="27" border="0" onClick="reset()"> </td>
                    </tr> </form>
                  </table></td>
              </tr>
              <tr> 
                <td>&nbsp;</td>
              </tr>
            </table></td>
          <td width="15" align="center" valign="top" >&nbsp;</td>
          <td width="90" align="right" valign="top"> <!--#include file="right.htm" --> </td>
        </tr>
      </table></td>
  </tr>
  <tr>
    <td align="center" valign="top">
      <!--#include file="bottom.htm" -->
    </td>
  </tr>
</table>
</body>
</html>
