<HTML>
<HEAD>
<META NAME="GENERATOR" Content="Microsoft Visual Studio 6.0"><!--#include file="const.asp" -->
<title><%=rs("title")%>---<%=rs("lovetitle")%></title>
<link rel="stylesheet" href="../images/css.css" type="text/css">
</HEAD>
<body leftmargin="0" marginwidth="0" topmargin="0" marginheight="0"><SCRIPT LANGUAGE=javascript>

<p align="center"><object runat=server id=conn1 progid="adodb.connection"></object><%application.Lock
conn1.Open Application("p_jyzx")
Application.UnLock
%><SCRIPT language=JavaScript>
function checkform()
{
	
	if(form1.suggestion.value.length<1){
		alert("对不起留言不能为空！");
		
		return false;
	}
	
	return true;
}
</SCRIPT><!--#include file="top.asp" --><TABLE align=center bgColor=#ff9bbc border=0 cellPadding=10 
                  cellSpacing=1 height="100%" width="100%">
                    <TBODY>
                    <TR>     <TD bgColor=#fff7fd vAlign=top>   
 <FORM action=add_suggestion.asp method=post id=form1 name=form1 onsubmit="checkform()">
 <TABLE border=0 cellPadding=0 cellSpacing=0 align=center>
            
              <TBODY>
                      
              <TR>
                <TD align=right class=p3>标题：</TD>
                
              <TD ><INPUT class=p3 tabIndex=7 type=submit value=提交 id=submit1 name=submit1 > 
               </TD>  
                  
                  </TR>
              <TR>
                <TD class=p3 colSpan=2><TEXTAREA class=p3 cols=62 name=suggestion rows=5 tabIndex=6 wrap=VIRTUAL></TEXTAREA></TD></TR>
             
            </TBODY></TABLE>
 </FORM><br>
 <hr color=HotPink align=center width=80%>
 <%set rs1=server.CreateObject ("ADODB.recordset")
 sql="select * from suggestion order by time desc"
 
 rs1.Open sql,conn1,3
 %>
 <table bgColor="#ffdfef" border="0" cellPadding="3" cellSpacing="1" width="100%">
          <tr>
            <td width="522" colspan="4"><b><font color="#008000"><u>有网友建议<%=rs1.recordcount%>条</u></font></b></td>
          </tr>
          <tr bgColor="#ffa6c2">
            <td width="93" align="center" style="border-bottom-style: solid">日期</td>
            <td width="63" align="center" style="border-bottom-style: solid">网友名</td>
            <td width="270" align="center" style="border-bottom-style: solid">内容</td>
           
                    <td></td>
          </tr>
          <%do while not(rs1.eof)
			suggestion=replace(rs1("suggestion"),"~"," ",1,-1,1)
          %>
          <tr>
            <td width="93" align="center" bgcolor="#EEEEEE" style="border-bottom-style: solid; border-bottom-width: 1" bordercolor="#FFFFFF"><%=rs1("time")%></td>
            <td width="63" align="center" bgcolor="#EEEEEE" style="border-bottom-style: solid; border-bottom-width: 1" bordercolor="#FFFFFF"><%=rs1("user_name")%></td>
            <td width="270" align="center" bgcolor="#EEEEEE" style="border-bottom-style: solid; border-bottom-width: 1" bordercolor="#FFFFFF"><%=suggestion%></td>
            
                    <td></td>
          </tr>
          <%rs1.movenext%>
          <%loop%>
          <tr>
            <td width="91" align="center">&nbsp;</td>
            <td width="61" align="center"></td>
            <td width="268" align="center"></td>
            <td width="96" align="center"></td>
          </tr>
        </table>
</td></tr>
</tbody></table>
<p align="center"><!--#include file="../copyright.asp" -->
</BODY>
</HTML>
