<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<!--#include file="conn.asp"-->

<!--#include file="inc/config.asp"-->
<!--#include file="inc/xycms.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="X-UA-Compatible" content="IE=7" />
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<link href="style/index.css" type="text/css" rel="stylesheet" />
<script src="js/jquery.min.js" type="text/javascript"></script>
<script src="js/jquery-1.4.2.js" type="text/javascript"></script>
<script type="text/javascript" language="javascript" src="js/MSClass.js"></script>
<script src="js/xy.js" type="text/javascript"></script>
<title>在线留言_<%=wzname%></title>
<script>
	$(function(){
		$(".nav>li").hover(function(){
			$(this).children('ul').stop(true,true).show(300);
		},function(){
			$(this).children('ul').stop(true,true).hide(300);
		})
	})
</script>
</head>
<body>
<!--#include file="header.asp"-->
<div id="cont">
  <div id="focus"><script src=/advfile/ad_25.js></script></div>
  <div id="dc">
    <div class="dc_l">
      <div class="dc_l_t"><div class="title">您当前位置：网站首页 >> 在线留言</div></div>
      <div class="dc_l_c">
        <div class="dc_l_c_c">
          <form name="form" method="post" action="add_book.asp?act=ok">
            <table class="tablecss">
              <tr>
                <th><em>*</em>留言标题：</th>
                <td><input name="title" type="text" size="40" /><input name="sh" type="hidden" id="sh" value="<%=gbook_sh%>" /><em>必须填写</em></td>
              </tr>
              <tr>
                <th><em>*</em>姓名：</th>
                <td><input name="ly_name" type="text" size="20" /><em>必须填写，方便联系，网页不会公开</em></td>
              </tr>
              <tr>
                <th>联系电话：</th>
                <td><input name="tel" type="text" size="20" /><em>方便电话联系，网页不会公开</em></td>
              </tr>
              <tr>
                <th><em>*</em>联系邮箱：</th>
                <td><input name="email" type="text" size="30" /><em>必须填写，方便电话联系，网页不会公开</em></td>
              </tr>
              <tr>
                <th>是否隐藏：</th>
                <td><input type="radio" name="sf_yc" checked="checked" value="0" />否 <input type="radio" name="sf_yc" value="1" />是
                <em>选择隐藏，问题将不在列表显示，否则将显示</em>
                </td>
              </tr>
              <tr>
                <th><em>*</em>留言内容：</th>
                <td><textarea name="body" rows="7" cols="50"></textarea></td>
              </tr>
              <tr>
                <td colspan="2" align="center"><input type="submit" value="提交信息" /> <input type="reset" value="全部重写" /></td>
              </tr>
            </table>
            </form>
        </div>
      </div>
    </div>
    <div class="dc_r">
      <div class="dc_r_t"><div class="title">快速导航</div></div>
      <div class="dc_r_c">
        <div class="dc_r_c_c">
          <ul>
            <li><a href="add_book.asp" target="_blank">添加留言</a></li>
            <li><a href="gbook.asp" target="_self">查看留言</a></li>
          </ul>
        </div>
      </div>
      <div class="dc_r_t"><div class="title">关于我们</div></div>
      <div class="dc_r_c">
        <div class="dc_r_c_c">
          <ul>
            <%=xycms_commonlist()%>
          </ul>
        </div>
      </div>
      <div class="dc_r_pic"><script src=/advfile/ad_26.js></script></div>
    </div>
    <div class="clear"></div>
  </div>
  <!--#include file="footer.asp"-->
</div>
</body>
</html>
<%
if Request.QueryString("act")="ok" then
set rs=server.createobject("adodb.recordset")
sql="select * from [gbook]"
rs.open sql,conn,1,3
rs.addnew
rs("title")=trim(request.form("title"))
rs("sh")=request.form("sh")
rs("ly_name")=trim(request.form("ly_name"))
rs("tel")=trim(request.form("tel"))
rs("email")=trim(request.form("email"))
rs("sf_yc")=request.form("sf_yc")
rs("body")=trim(request.form("body"))
rs.update
rs.close
set rs=nothing
Response.Write "<script>alert('恭喜你，留言信息添加成功，请勿重复提交！');window.location.href='gbook.asp';</script>"
end if
%>