<!--#include file="conn.asp"-->
<!--#include file="webconfig.asp"-->
<html>
<head>
<title><%=webname%>--意见反馈</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link href="images/css.css" rel="stylesheet" type="text/css">
</head>
<style>
td{font-size:9pt;line-height:120%;color:#353535} 
body{font-size:9pt;line-height:120%} 

a:link          { color: #000000; text-decoration: none }
a:visited       { color: #000000; text-decoration: none }
a:active        { color: #000000; text-decoration: none }
a:hover         { color: #336699; text-decoration: none; position: relative; right: 0px; top: 1px }
</style>
<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onMouseOver="window.status='【<%=webname%>】<%=weburl%> 如果您喜欢本站,别忘了把本站介绍给您的好友哦！：）';return true">
<!--#include file="webtop.asp"-->
<%dim action
action=request.QueryString("action")%>
<table width="770" border="0" cellspacing="0" cellpadding="0" align="center">
  <tr> 
    <td> 
      <table border="0" align="center" cellpadding="0" cellspacing="0">
        <tr> 
          <td height="356" valign="top"> 
            <%select case action
	case ""
	%>
            <br>
            <div align="center"><font color="#FF0000">尊敬的客户，请在这里将您们的宝贵建议反馈给我们，我们会及时回复，谢谢 
              ！</font> <br>
              <table border="0" cellspacing="0" cellpadding="1" align="center">
                <tr> 
                  <td> 
                    <table width="100%" border="0" cellspacing="0" cellpadding="0">
                      <tr> 
                        <td rowspan="2"> 
                          <table width="100%" border="0" cellspacing="0" cellpadding="0" class="12v">
                            <tr> 
                              <td class="12v" > 
                                <table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" id="AutoNumber3" height="0" width="100%">
                                  <tr> 
                                    <td> 
                                      <table width="100%" border="0" align="center" cellpadding="1" cellspacing="1">
                                        <form name="fkinfo" method="post" action="fk.asp?action=save">
                                          <tr> 
                                            <td width="15%" style="padding-left:10px">类　型：</td>
                                            <td height="22" style="padding-left:10px"> 
                                              <select name="fkleixing" id="fkleixing">
                                                <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>
                                            </td>
                                          </tr>
                                          <tr> 
                                            <td style="padding-left:10px">主　题：</td>
                                            <td height="22" style="padding-left:10px"> 
                                              <input name="fksubject" type="text" id="fksubject" size="28">
                                            </td>
                                          </tr>
                                          <tr> 
                                            <td style="padding-left:10px">姓　名：</td>
                                            <td height="22" style="padding-left:10px"> 
                                              <input name="fkusername" type="text" id="fkusername" size="12">
                                            </td>
                                          </tr>
                                          <tr> 
                                            <td style="padding-left:10px">E-mail：</td>
                                            <td height="22" style="padding-left:10px"> 
                                              <input name="fkemail" type="text" id="fkemail" size="28">
                                            </td>
                                          </tr>
                                          <tr> 
                                            <td style="padding-left:10px">来　自：</td>
                                            <td height="22" style="padding-left:10px"> 
                                              <input name="fklaizi" type="text" id="fklaizi" size="28">
                                              如：安徽芜湖</td>
                                          </tr>
                                          <tr> 
                                            <td style="padding-left:10px">电　话：</td>
                                            <td height="22" style="padding-left:10px"> 
                                              <input name="fktel" type="text" id="fktel" size="20">
                                            </td>
                                          </tr>
                                          <tr> 
                                            <td valign="top" style="padding-left:10px">反馈信息：<br>
                                            </td>
                                            <td style="padding-left:10px">[请注意适当使用<font color="#FF0000">Enter</font>键来换行]<br>
                                              <textarea name="fkcontent" cols="52" rows="8" id="fkcontent"></textarea>
                                            </td>
                                          </tr>
                                          <tr> 
                                            <td height="28" colspan="2" style="padding-left:10px"> 
                                              <div align="center"> 
                                                <input type="submit" name="Submit3"style="height:20; font:9pt; BORDER-BOTTOM: #cccccc 1px groove; BORDER-RIGHT: #cccccc 1px groove; BACKGROUND-COLOR: #eeeeee" value="提交信息"  onClick="return checkfk();">
                                              </div>
                                            </td>
                                          </tr>
                                        </form>
                                      </table>
                                    </td>
                                  </tr>
                                </table>
                              </td>
                            </tr>
                          </table>
                        </td>
                      </tr>
                    </table>
                  </td>
                </tr>
              </table>
              <br>
            </div>
            <%
	  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 shop_fk",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=index.asp>返回首页</a></center>"
end select%>
          </td>
        </tr>
      </table>
      <br>
    </td>
  </tr>
</table>
<!--#include file="service.asp"-->
<!--#include file="copyright.asp"-->
</body>
</html>
<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> 