<!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="Content-Type" content="text/html; charset=gb2312" />
<title>意见反馈</title>
<link rel="shortcut icon" href="{#$QISHI.main_domain#}favicon.ico" />
<meta name="author" content="骑士CMS" />
<meta name="copyright" content="74cms.com" />
<link href="{#$QISHI.site_template#}css/common.css" rel="stylesheet" type="text/css" />
<link href="{#$QISHI.site_template#}css/suggest.css" rel="stylesheet" type="text/css" />
<script src="{#$QISHI.site_template#}js/jquery.js" type="text/javascript" language="javascript"></script>
<script src="{#$QISHI.site_template#}js/jquery.validate.min.js" type='text/javascript' language="javascript"></script>
<script type="text/javascript">
//验证
$(document).ready(function() {
$("#Form1").validate({
// debug: true,
// onsubmit:false,
//onfocusout :true,
   rules:{
    feedback:{
   required: true
   },
   tel:{
   required: true
   },
   postcaptcha:{
    IScaptchastr: true,
    required: true,
    remote:{     
    url:"{#$QISHI.main_domain#}include/imagecaptcha.php",     
    type:"post",    
    data:{"postcaptcha":function (){return $("#postcaptcha").val()},"act":"verify","time":function (){return new Date().getTime()}}     
    }
     }
  },
    messages: {
      feedback: {
    required: "请输入内容"
   },
   tel: {
    required: "请输入联系方式"
   },
   postcaptcha: {
    required: "请填写验证码",
  remote: jQuery.format("验证码错误")  
   }
  },
  errorPlacement: function(error, element) {
    if ( element.is(":radio") )
        error.appendTo( element.parent().next().next() );
    else if ( element.is(":checkbox") )
        error.appendTo ( element.next());
    else
        error.appendTo(element.parent());
  }
    });
jQuery.validator.addMethod("IScaptchastr", function(value, element) {
  var str="点击获取验证码";
  var flag=true;
  if (str==value)
  {
  flag=false;
  }
  return  flag || this.optional(element) ;
  }, "请填写验证码");
function imgcaptcha(inputID,imgdiv)
{
  $(inputID).focus(function(){
    if ($(inputID).val()=="点击获取验证码")
    {
    $(inputID).val("");
    $(inputID).css("color","#333333");
    }
    $(inputID).parent("div").css("position","relative");
    //设置验证码DIV
    $(imgdiv).css({ position: "absolute", left:  $(inputID).width(), "bottom": "0px" , "z-index": "10", "background-color": "#FFFFFF", "border": "1px #A3C8DC solid","display": "none","margin-left": "15px"});
    $(imgdiv).show();
    if ($(imgdiv).html()=='')
    {
    $(imgdiv).append("<img src=\"{#$QISHI.main_domain#}include/imagecaptcha.php?t={#$random#}\" id=\"getcode\" align=\"absmiddle\"  style=\"cursor:pointer; margin:3px;\" title=\"看不请验证码？点击更换一张\"  border=\"0\"/>");
    }
    $(imgdiv+" img").click(function()
    {
      $(imgdiv+" img").attr("src",$(imgdiv+" img").attr("src")+"1");
      $(inputID).val("");
      $("#Form1").validate().element("#postcaptcha"); 
    });
    $(document).unbind().click(function(event)
    {
      var clickid=$(event.target).attr("id");
      if (clickid!="getcode" &&  clickid!="postcaptcha")
      {
      $(imgdiv).hide();
      $(inputID).parent("div").css("position","");
      $(document).unbind();
      }     
    });
  });
}
imgcaptcha("#postcaptcha","#imgdiv");
});

</script>
</head>
<body>
{#include file="header.htm"#}
<!-- 当前位置 -->
<div class="page_location link_bk">
	当前位置：<a href="{#$QISHI.website_dir#}">首页</a>>意见反馈
</div>
	<!-- 主体内容 -->
	<div class="container link_bk">
		<div class="about_left">
			{#qishi_explain_list set="列表名:explain,分类ID:1"#}
		      <h2 class="about_tit">关于我们</h2>
		      <ul>
		        {#foreach from=$explain item=list#}
		        <li><a href="{#$list.url#}" target="_blank">{#$list.title#}</a></li>
		        {#/foreach#}
				<li class="active"><a href="{#'QS_suggest'|qishi_url#}">意见反馈</a></li>
		      </ul>
		</div>
		<div class="about_right">
			<div class="about_r_tit">
				意见反馈
			</div>
			<form action="suggest_submit.php" method="post" id="Form1" >
        <input type="hidden" name="input_token" value="{#$input_token#}">
			<div class="about_r_content">
				<table>
					<tbody>
						<tr height="50">
							<td>意见类型：</td>
							<td>
								<input type="radio" name="infotype" value="1"  checked="checked"/>&nbsp;<span>建议</span>
								<input type="radio" name="infotype" value="2" />&nbsp;<span>意见</span>
								<input type="radio" name="infotype" value="3" />&nbsp;<span>求助</span>
								<input type="radio" name="infotype" value="4" />&nbsp;<span>投诉</span>
							</td>
						</tr>
						<tr>
							<td valign="top">反馈内容：</td>
							<td><textarea name="feedback" id="feedback" placeholder="所提交的错误、建议信息，尽量描述详细，以便我们更好的修改！"></textarea></td>
						</tr>
						<tr height="50">
							<td>联系方式：</td>
							<td><input type="text" name="tel" id="tel" class="input_text_500" placeholder="您的QQ、邮箱或者电话以便和您沟通，您的信息仅工作人员可见！" /></td>
						</tr>
						<tr height="50">
							<td>验证码：</td>
							<td>
								<div>
								  <div id="imgdiv"></div>
								  <input  class="input_text_300" name="postcaptcha" id="postcaptcha" type="text" value="点击获取验证码" style="color:#999999"/>
								</div>
							</td>
						</tr>
						<tr height="50">
							<td>&nbsp;</td>
							<td><input type="submit" name="Submit" value="提交" class="but150cheng" /></td>
						</tr>

					</tbody>
				</table>
			</div>
			</form>
		</div>
		<div class="clear"></div>
	</div>
	<!-- 主体内容 结束 -->
{#include file="footer.htm"#}	
</body>
</html>