<!--#include file="conn/conn.asp"-->
<!--#include file="config.asp"-->
<%
username=trim(request.form("username"))
email=trim(request.form("email"))
homeurl=trim(request.form("homeurl"))
oicq=trim(request.form("qq"))
yzm=trim(request.form("yzm"))
xin=trim(request.form("xin"))
call guolv(username)
call guolv(email)
call guolv(homeurl)
call guolv(oicq)
call guolv(yzm)
call guolv(xin)
call guolv(request.form("content"))
if username="" then
response.write"<font size=6 color=ff0000><b> 晕，连大名都忘了，I服了U!</font></b><a href=""javascript:history.go(-1)""><font size=2>返回重输</font></a>"
response.end
end if
if email="" then
response.write"请填写您的E-mail!!<a href=""javascript:history.go(-1)"">返回重输</a>"
response.end
end if
if instr(email,"@")=0 then
response.write"<font size=6 color=ff0000><b> 正确E-mail格式为123@456.com</font></b><a href=""javascript:history.go(-1)""><font size=2>返回重输</font></a>"
response.end
end if

if yzm<>"wenxue521" then
response.write"请正确填写验证码<a href=""javascript:history.go(-1)"">返回重输</a>"
response.end
end if

if len(request.form("content"))=0 then  
response.write"<font size=6 color=ff0000><b> 您还没有填写任何留言！</font></b><a href=""javascript:history.go(-1)""><font size=2>返回重输</font></a>"
response.end
end if
sub guolv(nr)
if instr(lcase(nr),"exe")<>0 or instr(lcase(nr),"request")<>0 or instr(lcase(nr),"%")<>0 or instr(lcase(nr),"<")<>0 or instr(lcase(nr),">")<>0 then  
response.write"<font size=6 color=ff0000><b> 警告！请勿提交非法信息！请立即终止！！！(您的IP已被记录！)</font></b><a href=""javascript:history.go(-1)""><font size=2>返回重输</font></a>"
response.end
end if
end sub
if len(request.form("content"))>2024 then  
response.write"留言写入太多，请重输入<a href=""javascript:history.go(-1)"">返回重输</a>"
response.end
end if 
if homeurl="" then
homeurl="没有填写"
end if
if oicq="" then
oicq="没有填写"
end if 
content=Server.Htmlencode(request.form("content"))
%>
<HTML><HEAD><TITLE>处理结果-<%=SiteName%></TITLE>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=gb2312">
<meta name="description" content="<%=SiteName%>">
<meta name="keywords" content="<%=keys%>">
<LINK 
href="images/css1.css" type=text/css rel=stylesheet><LINK 
href="images/css2.css" type=text/css rel=stylesheet>
<META content="MSHTML 6.00.2900.3395" name=GENERATOR>
<style type="text/css">
<!--
.style7 {font-weight: bold}
.style4 {	color: #008000;
	font-weight: bold;
}
.style5 {color: #FF0000}
-->
</style>
</HEAD>
<BODY background=images/wbg.gif>
<!--#include file="top.asp"-->
<TABLE cellSpacing=0 cellPadding=0 width=910 align=center bgColor=#0a253a 
border=0>
  <TBODY>
  <TR>
    <TD width=7></TD>
    <TD vAlign=top>
      <SCRIPT language=javascript>
		  function fod1(obj)
		  {
		   	//var p1 = document.getElementById("Fod_list1").getElementsByTagName("div");
			var p1 = obj.parentNode.parentNode.parentNode.parentNode;
			//alert(p1.innerHTML);
			var p11 = obj.parentNode.getElementsByTagName("div");
			var t1 = p1.getElementsByTagName("tr")[1].getElementsByTagName("ul");
			var n1 = p11.length;
			for(i=0;i<n1;i++)
			{
				if(p11[i] == obj)
				{
					p11[i].className = "s1";
					t1[i].className = "dis";
				}
				else
				{
					p11[i].className = "";
					t1[i].className = "undis";				
				}
			}
		  }
		</SCRIPT>
      
      <table width="896"  border="0" align="left" cellpadding="0" cellspacing="0" bgcolor="#2A659F">
        <tr>
          <th width="241" height="3" valign="top" scope="row"></th>
          <th width="655" valign="top" scope="row"></th>
        </tr>
        <tr>
          <th height="253" valign="top" scope="row" style="border-right:1px solid #c5e2fe;"><table cellspacing=1 cellpadding=5 width="240" border=0>
            <tbody>
              <tr>
                <td width="227" align="center" valign=top><a href="addgbook.asp"><img src="images/gbook/liu.jpg" width="108" height="35" border="0"></a> <br>
                    <font color="#FFFF00"><b>内容需春风君<br>
                      回复才能查看</b></font><br>
                  <br>
                  <table width="86%"  border="0" cellspacing="0" cellpadding="0">
                    <tr>
                      <td><font color="#99FF00"><strong>提示：</strong></font><font color="#c5e2fe">本留言本是提供给网友交流，请勿在本留言本中签写的<strong><font color="#ffffff" size="4">广告</font></strong>等不良信息，否则一律删除！</font></td>
                    </tr>
                  </table>                  </td>
              </tr>
            </tbody>
          </table>
             <br></th>
          <td height="50" align="center" valign="top" bordercolor="458ed5"><TABLE class=marb4 cellSpacing=0 cellPadding=0 width=640 border=0>
            <TBODY>
              <TR>
                <TD width=106 background=images/chuli.gif 
                height=25></TD>
                <TD width=185 background=images/c52.gif></TD>
                <TD width=185 background=images/c53.gif></TD>
                <TD width=184 
              background=images/c54.gif></TD>
              </TR>
            </TBODY>
          </TABLE>      
            <table width="100%" border="1" cellpadding="0" cellspacing="4" bordercolor="458ed5">
              <tr>
                <td><p align="center">
                  <%
set rs=server.createobject("adodb.recordset")
sql="select * from gbook"
rs.open sql,conn,3,3
rs.addnew
rs("username")=username
rs("homeurl")=homeurl
rs("email")=email
rs("xin")=xin
rs("qq")=oicq
rs("body")=content
rs("dateandtime")=now()
rs("ip")=Request("REMOTE_ADDR")
rs.update
rs.close
set rs=nothing
call closeconn()
  %>
<font color="#c5e2fe">您的留言已成功发表，感谢您的支持，待站长回复后可见！</font><font color="#176d00"><a href="index.asp"><font color=yellow><
<返回首页>
></font></a></font></p></td>
                </tr>
            </table></td>
        </tr>
</table></td>
    </tr>
</table>
      </TD>
    <TD width=8></TD>
  </TR></TBODY></TABLE>
<TABLE cellSpacing=0 cellPadding=0 width=910 align=center border=0>
  <TBODY>
  <TR>
    <TD width="5" height=6 bgColor=#0a253a></TD>
    <TD width="900" bgColor=#4A9ACD></TD>
    <TD width="5" bgColor=#0a253a></TD>
</TR></TBODY></TABLE>
<!--#include file="bom.asp"-->
</BODY></HTML>
