<!--#include file="header.asp"-->
<!--#include file="check.asp"-->
<script language="javascript">
function checkname(){
	if(document.boon.title.value==""){
	alert("标题不能为空");
	document.boon.title.focus();
	return false
	}
	if(document.boon.name.value==""){
	alert("姓名不能为空");
	document.boon.name.focus();
	return false
	}
	if(document.boon.content.value==""){
	alert("内容不能为空");
	document.boon.content.focus();
	return false
	}
	}
</script>
<%
if request.QueryString("action")="save" then 
title=server.HTMLEncode(trim(request.Form("title")))
name=server.HTMLEncode(trim(request.Form("name")))
addres=server.HTMLEncode(trim(request.Form("address")))
content=server.HTMLEncode(trim(request.Form("content")))
set rs=server.CreateObject("adodb.recordset")
sql="select * from book"
rs.open sql,conn,1,3
rs.addnew
rs("b_title")=title
rs("b_name")=name
rs("b_from")=addres
rs("b_content")=content
rs("b_sex")=request("sex")
rs.update
rs.close
set rs=nothing
response.Redirect("book.asp")
end if
%>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td background="images/iceweb_01.gif"><table width="776" border="0" align="center" cellpadding="0" cellspacing="0">
      <tr>
        <td><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="777" height="175">
          <param name="movie" value="bixin.swf" />
          <param name="quality" value="high" />
          <embed src="bixin.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="777" height="175"></embed>
        </object></td>
      </tr>
    </table></td>
  </tr>
</table>
<table width="777" border="0" align="center" cellpadding="0" cellspacing="0">
  
  <tr>
    <td width="2343" height="8" colspan="3"></td>
  </tr>
  <tr>
    <td colspan="3"><table width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td width="29%" valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td><table width="100%" border="0" cellspacing="0" cellpadding="0">
              <tr>
                <td><img src="images/iceweb.cn_05.gif" width="228" /></td>
              </tr>
              <tr>
                <td><img src="images/iceweb.cn_07.gif" width="228" height="168" /></td>
              </tr>
              <tr>
                <td><img src="images/iceweb.cn_10.gif" width="228" height="11" /></td>
              </tr>
            </table></td>
          </tr>
          <tr>
            <td>&nbsp;</td>
          </tr>
          <tr>
            <td><table width="100%" border="0" cellspacing="0" cellpadding="0">
              <tr>
                <td><table width="100%" border="0" cellspacing="0" cellpadding="0">
                  <tr>
                    <td width="4%"><img src="images/iceweb.cn_11_01.gif" width="28" height="26" /></td>
                    <td width="63%" align="center" valign="middle" background="images/iceweb.cn_11_02.gif" class="title">留言板</td>
                    <td width="33%"><img src="images/iceweb.cn_11_03.gif" width="139" height="26" /></td>
                  </tr>
                </table></td>
              </tr>
              <tr>
                <td background="images/iceweb.cn_bg.gif"><table width="100%" border="0" cellspacing="10" cellpadding="0">
                    <tr>
                      <td><table width="100%" border="0" cellspacing="0" cellpadding="0">
                          <tr>
                            <td height="13" align="center" class="twopage"><img src="images/iceweb.cn_icon.gif" width="15" height="14" /></td>
                            <td height="20" class="twopage"><a href="book.asp">查看留言</a></td>
                          </tr>
                          <tr>
                            <td width="15%" height="13" align="center" class="twopage"><img src="images/iceweb.cn_icon.gif" width="15" height="14" /></td>
                            <td width="85%" height="20" class="twopage"><a href="write.asp?t=签写留言">签写留言</a></td>
                          </tr>
                      </table></td>
                    </tr>
                </table></td>
              </tr>
              <tr>
                <td><img src="images/iceweb.cn_13.gif" width="228" height="15" /></td>
              </tr>
            </table></td>
          </tr>
          <tr>
            <td>&nbsp;</td>
          </tr>
        </table></td>
        <td width="1%" valign="top"></td>
        <td width="70%" valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td><table width="100%" border="0" cellspacing="0" cellpadding="0">
              <tr>
                <td width="5%"><img src="images/iceweb.cn_06_01.gif" width="25" height="33" /></td>
                <td width="17%" background="images/iceweb.cn_06_02.gif">留言板</td>
                <td width="13%"><img src="images/iceweb.cn_06_03.gif" width="69" height="33" /></td>
                <td width="64%" background="images/iceweb.cn_06_04.gif"><table width="100%" border="0" cellspacing="0" cellpadding="0">
                  <tr>
                    <td width="61%">&nbsp;</td>
                    <td width="39%" height="20">首页-留言板<%if request("t")<>"" then response.Write("-"&request("t")) end if%></td>
                    </tr>
                </table></td>
                <td width="1%"><img src="images/iceweb.cn_06_06.gif" width="15" height="33" /></td>
              </tr>
            </table></td>
          </tr>
          <tr>
            <td><a href="write.asp"><img src="bn1/feedback.gif" height="66" border="0" /></a></td>
          </tr>
          <tr>
            <td background="images/iceweb.cn_09_bg.gif" height="300" valign="top"><p>&nbsp;</p>
            <form action="?action=save" method="post" name="boon" onsubmit="return checkname();">
              <table width="90%" border="0" align="center" cellpadding="0" cellspacing="0">
              <tr>
                <td width="21%" height="20" align="right">留言标题：</td>
                <td width="79%" height="20"><label>
                  <input name="title" type="text" id="title" maxlength="30" />
                </label></td>
              </tr>
              <tr>
                <td height="20" align="right">姓&nbsp;&nbsp;&nbsp; 名：</td>
                <td height="20"><input name="name" type="text" id="name" value="<%=session("user")%>" maxlength="10" readonly="readonly" /></td>
              </tr>
              <tr>
                <td height="20" align="right">性&nbsp;&nbsp;&nbsp; 别：</td>
                <td height="20"><label>
                  <input name="sex" type="radio" id="radio" value="boy" checked="checked" />
                男 <input type="radio" name="sex" id="radio" value="gril" />女</label></td>
              </tr>
              <tr>
                <td height="20" align="right">来&nbsp;&nbsp;&nbsp; 自：</td>
                <td height="20">
                <select name="address" class="Guest_01" id="address">
                <option value="" selected="selected">请选择省份</option>
                  <option value="湖南">湖南</option>
                  <option value="北京">北京</option>
                  <option value="天津">天津</option>
                  <option value="河南">河南</option>
                  <option value="河北">河北</option>
                  <option value="江苏">江苏</option>
                  <option value="江西">江西</option>
                  <option value="云南">云南</option>
                  <option value="上海">上海</option>
                  <option value="湖北">湖北</option>
                  <option value="广东">广东</option>
                  <option value="山西">山西</option>
                  <option value="辽宁">辽宁</option>
                  <option value="吉林">吉林</option>
                  <option value="浙江">浙江</option>
                  <option value="安徽">安徽</option>
                  <option value="福建">福建</option>
                  <option value="山东">山东</option>
                  <option value="内蒙古">内蒙古</option>
                  <option value="黑龙江">黑龙江</option>
                  <option value="广西">广西</option>
                  <option value="海南">海南</option>
                  <option value="四川">四川</option>
                  <option value="重庆">重庆</option>
                  <option value="台湾">台湾</option>
                  <option value="贵州">贵州</option>
                  <option value="西藏">西藏</option>
                  <option value="陕西">陕西</option>
                  <option value="甘肃">甘肃</option>
                  <option value="青海">青海</option>
                  <option value="宁夏">宁夏</option>
                  <option value="新疆">新疆</option>
                  <option value="香港">香港</option>
                  <option value="澳门">澳门</option>
                </select></td>
              </tr>
              <tr>
                <td height="20" align="right">内&nbsp;&nbsp;&nbsp; 容：</td>
                <td height="20"><label>
                  <textarea name="content" id="content" cols="45" rows="5"></textarea>
                </label></td>
              </tr>
              <tr>
                <td height="20">&nbsp;</td>
                <td height="20"><label>
                  <input type="submit" name="button" id="button" value=" 提  交 " />
                </label></td>
              </tr>
            </table>
            </form></td>
          </tr>
          <tr>
            <td height="20" background="images/iceweb.cn_09_bg.gif">&nbsp;</td>
          </tr>
          <tr>
            <td height="20" background="images/iceweb.cn_09_bg.gif">&nbsp;</td>
          </tr>
          <tr>
            <td><table width="100%" border="0" cellspacing="0" cellpadding="0">
              <tr>
                <td width="74%"><img src="images/iceweb_r1_c1.gif" width="402" height="41" /></td>
                <td width="9%"><a href="javascript:window.print()"><img src="images/iceweb_r1_c2.gif" width="73" height="41" border="0" /></a></td>
                <td width="17%"><a href="#top"><img src="images/iceweb_r1_c3.gif" width="70" height="41" border="0" /></a></td>
              </tr>
            </table></td>
          </tr>
        </table></td>
      </tr>
    </table></td>
  </tr>
</table>
<!--#include file="footer.asp"-->