<!--#include file="Connection.asp"-->
<!--#include file="admin/system/WebConfig.asp"-->
<!--#include file="admin/system/Check_SI.asp"-->
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link rel="stylesheet" href="Style.css" type="text/css">
<title><%=webname%>--意见反馈</title>
</head>
<body>
<SCRIPT LANGUAGE="JavaScript">
<!--
function checkspace(checkstr) {
  var str = '';
  for(i = 0; i < checkstr.length; i++) {
    str = str + ' ';
  }
  return (str == checkstr);
}

function checkfk()
{
   if(checkspace(document.fkinfo.fksubject.value)) {
	document.fkinfo.fksubject.focus();
    alert("您没有填写主题！");
	return false;
  }
   if(checkspace(document.fkinfo.fkusername.value)) {
	document.fkinfo.fkusername.focus();
    alert("请填写您的姓名！");
	return false;
  }
   if(checkspace(document.fkinfo.fklaizi.value)) {
	document.fkinfo.fklaizi.focus();
    alert("请填写您来自哪里！");
	return false;
  }
     if(checkspace(document.fkinfo.fkcontent.value)) {
	document.fkinfo.fkcontent.focus();
    alert("请填写反馈信息内容！");
	return false;
  }
  
  if(document.fkinfo.fkemail.value.length!=0)
  {
    if (document.fkinfo.fkemail.value.charAt(0)=="." ||        
         document.fkinfo.fkemail.value.charAt(0)=="@"||       
         document.fkinfo.fkemail.value.indexOf('@', 0) == -1 || 
         document.fkinfo.fkemail.value.indexOf('.', 0) == -1 || 
         document.fkinfo.fkemail.value.lastIndexOf("@")==document.fkinfo.fkemail.value.length-1 || 
         document.fkinfo.fkemail.value.lastIndexOf(".")==document.fkinfo.fkemail.value.length-1)
     {
      alert("Email地址格式不正确！");
      document.fkinfo.fkemail.focus();
      return false;
      }
   }
 else
  {
   alert("Email不能为空！");
   document.fkinfo.fkemail.focus();
   return false;
   }

}
//-->
</script> 
<TABLE width="770" border=0 align="center" cellPadding=0 cellSpacing=0>
  <TBODY>
    <TR>
      <TD width="35%" height="81" align=left 
                  bgColor=#ffffff ><div align="center"><img src="<%=weblogo%>"></div></TD>
      <TD width="65%" align=middle vAlign=center  
                bgColor=#ffffff ><div align="center"><img src="<%=webbanner%>"></div></TD>
    </TR>
    <TR vAlign=middle bgcolor="#0F77B1">
      <TD height=27 
                colSpan=2 align=left ><TABLE width="100%" height="100%" border=0 
                  align=center cellPadding=0 cellSpacing=0 >
          <TBODY>
            <TR>
              <TD align=left vAlign=middle background="images/top_bar.gif" >
                <div align="center"><FONT color=#ffffff><a href="default.htm"><FONT color=#ffffff>首页</Font></a> | <a href="News.asp"><FONT color=#ffffff>新闻动态</Font></a> | <a href="xl.html"><FONT color=#ffffff>度假产品</FONT></a> | <a href="hotel.html"><FONT color=#ffffff>酒店预定</FONT></a> |<a href="ticket.asp"><font color="#FFFFFF"> 机票预定</font></a> | <a href="guide.asp"><font color="#FFFFFF">导游推荐</font></a> | <a href="pic.asp"><font color="#FFFFFF">美图欣赏</font></a> | <a href="Gbook.asp"><font color="#FFFFFF">留下意见</font></a> | <a href="userInfo/userInfo.asp"><font color="#FFFFFF">会员中心</font></a> | <a href="Help.asp"><font color="#FFFFFF">在线帮助</font></a></FONT> <img src="images/b_start.gif" width=122 height=16 border=0 align="absmiddle"></div></TD>
            </TR>
          </TBODY>
      </TABLE></TD>
    </TR>
  </TBODY>
</TABLE>
<TABLE width="770" border=0  align=center cellPadding=0 cellSpacing=0 background="images/top_nav_menu.gif">
  <TBODY>
    <TR bgColor=#ffffff>
      <TD colSpan=3 height=2></TD>
    </TR>
    <TR>
      <TD width="44" height=25 align=right><img src="images/arrow3.gif" width="29" height="11"></TD>
      <TD width="715"><FONT color=#333333>&nbsp;您的位置：&nbsp;</FONT><a href="default.htm">网站的首页</a> &gt;&gt; 意见反馈</TD>
      <TD width="11">&nbsp;</TD>
    </TR>
  </TBODY>
</TABLE>
<table width="770" align="center" border="0" cellspacing="0" cellpadding="0" class="table-zuoyou" bordercolor="#CCCCCC">
  <tr>
    <td width="185" height="427" valign="top" bordercolor="#FFFFFF" bgcolor="#f6f6f6"  style="BORDER-left: #d8d8d8 1px solid;BORDER-right: #d8d8d8 1px solid"><TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
      <TBODY>
        <TR>
          <TD height="40">
            <TABLE cellSpacing=0 cellPadding=0 width="183" border=0>
              <TBODY>
                <TR>
                  <TD width="183" height=40 background="Images/t-1.gif">&nbsp;</TD>
                </TR>
              </TBODY>
          </TABLE></TD>
        </TR>
        <TR>
          <TD height=117 valign="top">
            <%sql="select top 8 id,c_name from Hotelb order by id desc"
Set rs=Server.CreateObject("ADODB.RecordSet") 
rs.open sql,conn,1,1

if rs.eof then
response.write "暂时还没有任何信息!"
Else
do while not rs.eof%>
            <table width="93%"  border="0" align="center" cellpadding="0" cellspacing="0">
              <tr>
                <td height="18"> <font color="#666666"><a href="Hotel/Hotel_<%=rs("id")%>.html">
                  <%if len(rs("c_name"))>13 then%>
                  <%=left(rs("c_name"),13)%>...
                  <%else%>
                  <%=rs("c_name")%>
                  <%end if%>
                </a></font></td>
              </tr>
            </table>
            <%
rs.movenext                                                 
loop
end if
rs.close%></TD>
        </TR>
        <TR>
          <TD></TD>
        </TR>
        <TR>
          <TD></TD>
        </TR>
        <TR>
          <TD background=Img/homedhbg.gif><TABLE cellSpacing=0 cellPadding=0 width="183" border=0>
              <TBODY>
                <TR>
                  <TD width="183" height=40 background="Images/t-2.gif">&nbsp;</TD>
                </TR>
              </TBODY>
          </TABLE></TD>
        </TR>
        <TR>
          <TD height="117" vAlign=top>
            <%sql="select top 8 id,x_name from xianlu order by id desc"
Set rs=Server.CreateObject("ADODB.RecordSet") 
rs.open sql,conn,1,1

if rs.eof then
response.write "暂时还没有任何信息!"
Else
do while not rs.eof%>
            <table width="93%"  border="0" align="center" cellpadding="0" cellspacing="0">
              <tr>
                <td height="18"> <font color="#666666"><a href="xl/xl_<%=rs("id")%>.html">
                  <%if len(rs("x_name"))>13 then%>
                  <%=left(rs("x_name"),13)%>...
                  <%else%>
                  <%=rs("x_name")%>
                  <%end if%>
                </a> </font></td>
              </tr>
            </table>
            <%
rs.movenext                                                 
loop
end if
rs.close%></TD>
        </TR>
        <TR>
          <TD></TD>
        </TR>
        <TR>
          <TD background=Img/homedhbg.gif>
            <TABLE cellSpacing=0 cellPadding=0 width="183" border=0>
              <TBODY>
                <TR>
                  <TD width="183" height=40 background="Images/t-3.gif">&nbsp;</TD>
                </TR>
              </TBODY>
          </TABLE></TD>
        </TR>
        <TR>
          <TD height="117" vAlign=top><!--#include file="toupiaoinfo.asp" --></TD>
        </TR>
        <TR>
          <TD></TD>
        </TR>
        <TR>
          <TD></TD>
        </TR>
        <TR>
          <TD height="7"></TD>
        </TR>
      </TBODY>
    </TABLE></td>
    <td bordercolor="#FFFFFF" bgcolor="#FFFFFF" style="BORDER-right: #d8d8d8 1px solid">
<%dim action
action=request.QueryString("action")
select case action
case ""
%>
<table border="0" align="center" cellpadding="0" cellspacing="0" width="480">
      <tr>
        <td height="30" align="center"><font color="#ff0000">尊敬的客户，请在这里将您们的宝贵建议反馈给我们，我们会及时回复，谢谢 ！</font>            </td>
      </tr>
      <tr>
        <td align="center" valign="top"><table border="0" cellspacing="2" cellpadding="1" align="center" width="500">
          <form name="fkinfo" method="post" action="gbook.asp?action=save">
            <tr>
              <td width="22%" align="right">类　型：</td>
              <td style="padding-left:10px" width="78%"><div align="left">
                <select name="fkleixing" id="select2">
                      <option value="1">简单的留言</option>
                      <option value="2">对网站的意见</option>
                      <option value="3">对公司的建议</option>
                      <option value="4">具有合作意向</option>
                      <option value="5">产品投诉</option>
                      <option value="6">服务投诉</option>
                  </select>
              </div></td>
            </tr>
            <tr>
              <td align="right">主　题：</td>
              <td style="padding-left:10px"><div align="left">
                <input name="fksubject" type="text" id="fksubject">
              </div></td>
            </tr>
            <tr>
              <td align="right">姓　名：</td>
              <td style="padding-left:10px"><div align="left">
                <input name="fkusername" type="text" id="fkusername">
              </div></td>
            </tr>
            <tr>
              <td align="right">e-mail：</td>
              <td style="padding-left:10px"><div align="left">
                <input name="fkemail" type="text" id="fkemail" size="50">
              </div></td>
            </tr>
            <tr>
              <td align="right">地　址：</td>
              <td style="padding-left:10px"><div align="left">
                <input name="fklaizi" type="text" id="fklaizi" size="50">
              </div></td>
            </tr>
            <tr>
              <td align="right">电　话：</td>
              <td style="padding-left:10px"><div align="left">
                <input name="fktel" type="text" id="fktel">
              </div></td>
            </tr>
            <tr>
              <td align="right">信　息：</td>
              <td style="padding-left:10px"><div align="left">
                <textarea name="fkcontent" cols="50" rows="8" id="fkcontent"></textarea>
              </div></td>
            </tr>
            <tr>
              <td></td>
              <td height="30" style="padding-left:10px"><div align="left">
              <input class="go-wenbenkuang" name="submit" value=提交信息 type=submit onClick="return checkfk();">
          [请注意适当使用<font color="#FF0000">Enter</font>键来换行] </div></td>
            </tr>
          </form>
        </table></td>
      </tr>
    </table>
<%
case "save"
	  if session("fkfk")=minute(now) then
	  response.write "<script language=javascript>alert('对不起，您不可以重复提交信息，请稍后再试！');history.go(-1);</script>"
	  response.End
	  end if
	  function HTMLEncode2(fString)
	fString = Replace(fString, CHR(13), "")
	fString = Replace(fString, CHR(10) & CHR(10), "</P><P>")
	fString = Replace(fString, CHR(10), "<BR>")
	HTMLEncode2 = fString
    end function
set rs=server.CreateObject("adodb.recordset")
rs.open "select * from Gbook",conn,1,3
rs.addnew
rs("fksubject")=trim(request("fksubject"))
rs("fkleixing")=request("fkleixing")
rs("fkcontent")=htmlencode2(trim(request("fkcontent")))
rs("fkusername")=trim(request("fkusername"))
rs("fkemail")=trim(request("fkemail"))
rs("fktel")=trim(request("fktel"))
rs("fklaizi")=trim(request("fklaizi"))
rs("fkdate")=now
rs("fkip")=Request.ServerVariables("remote_addr")
rs.update
rs.close
set rs=nothing
session("fkfk")=minute(now)
response.write "<br><br><center>您的信息反馈已成功提交，感谢您的参与！<br><br><a href=Default.htm>返回首页</a></center>"
end select%></td>
  </tr>
</table>
<TABLE width="770" border=0 align="center" cellPadding=0 cellSpacing=0>
  <TBODY>
    <TR>
      <TD width="1" rowspan="2" align=middle vAlign=bottom bgcolor="#CCCCCC"></TD>
      <TD 
height=25 align=middle background=images/foot_patt01.gif><a href=Default.htm>网站首页</a> | <a href=about.asp?action=about >关于我们</a> | <a href=about.asp?action=lxwm >业务联系</a> | <a href=help.asp?action=shiyongfalv >版权声明</a> | <a href=help.asp?action=fukuan >付款方式</a> | <a href=gbook.asp >留言/建议/投诉</a></TD>
      <TD width="1" rowspan="2" align=middle vAlign=bottom bgcolor="#CCCCCC"></TD>
    </TR>
    <TR>
      <TD height=60><div align="center">
          <%dim endtime
endtime=timer()
response.Write "　公司地址："&dizhi&"　邮政编码："&youbian&"<br>"
response.Write "　客服邮箱：<a href=mailto:"&webemail&">"&webemail&"</a>　客服电话："&dianhua&"<br>　"
response.Write "  <font color=#000000><b>"&weburl&"</b></font> &copy; <font color=red> "&copyright&" </font>"
response.Write "　页面执行时间："&FormatNumber((endtime-startime)*1000,3)&" 毫秒"
%>
      </div></TD>
    </TR>
  </TBODY>
</TABLE></Body></Html>