<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="WstWeb.TemplateFile.Tel010.LeaveMsg.Default" %>
<%@ Register src="../UserControl/LeftCommonClass.ascx" tagname="LeftCommonClass" tagprefix="uc1" %>
<%@ Register src="../UserControl/WeHead.ascx" tagname="WeHead" tagprefix="uc2" %>
<%@ Register src="../UserControl/WebFoot.ascx" tagname="WebFoot" tagprefix="uc3" %>
<%@ Register src="../UserControl/LeftLinkUs.ascx" tagname="LeftLinkUs" tagprefix="uc4" %>
<%@ Register Src="../UserControl/Link.ascx" TagName="Link" TagPrefix="uc5" %>
<!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>
<title><%=SeoTitle %></title>
<meta name="keywords" content="<%=SeoKey %>" >
<meta name="description" content="<%=SeoDesc %>">
 <uc5:Link ID="Link1" runat="server" />
<script type="text/javascript">
    //获取radiobutton 的选择项
    function GetRadioCheckedValue(groupName) {
        var obj = document.getElementsByName(groupName);
        var result = "";
        if (obj.length) {
            for (var i = 0; i < obj.length; i++) {
                if (obj[i].checked) {
                    result = obj[i].value; break;
                }
            }
        }
        return result;
    }


    function SaveData() {

        var person = $.trim($("#txtPerson").val());
        var content = $.trim($("#txtContent").val());
        var tel = $.trim($("#txtTel").val());
        var code = $.trim($("#txtCode").val());
        if (person == "") { alert("联系人不能为空"); return false; }
        if (tel == "") { alert("联系电话不能为空"); return false; }
        if (content == "") { alert("内容不能为空"); return false; }
        if (code == "") { alert("验证码不能为空"); return false; }
        $.ajax({
            type: "POST", //URL方式为POST
            url: "/UserControl/DoPostSaveData.aspx?action=savemsg",
            data: { Person: person, Content: "[" + GetRadioCheckedValue("radiobutton1") + "]" + content, Code: code, Tel: tel },
            success: function (v_data) {
                if (v_data == "ok") {
                    alert("保存成功");
                    document.getElementById("vimg").src = "/UserControl/VCode.aspx?Rnd=" + Math.random();
                    $("#txtPerson").val("");
                    $("#txtContent").val("");
                }
                else alert("提交成失败");
            }
        });

    }
    
</script>
</head>
<body>
 
    <form id="form1" runat="server">
    
    <uc2:WeHead ID="WeHead1" CurrentChannelId="10" runat="server" />
       <div class='clear'></div>
    <div class="wrap">
      <!-- content -->
  <div class='content'>
    
   <div class="left">
      <div class="second ">
          <div class="biat">企业信息</div>
          <div class="cl100"></div>       
          <div class="erlei">        
                      <!--读取企业分类-->
                    
                    <uc1:LeftCommonClass ID="LeftCommonClass1" TableName="CorpClass" runat="server" />           
          </div>
      </div>
    <!-- <div class="telall"><img src="/images/rex.gif" /></div>-->
  </div>	 
	<!-- 右边内容 -->
   <div id='boxhr' class='flort listboxr'>
       <p class='map lineh30'>当前位置： <a href='/'>首页</a> 》<a href='/LeaveMsg/'><%=CurrentPageName%></a></p>
	<div class='greenline clear1'></div>
	 <div class="zxly">
  <h5>您的参与将帮助我们改进产品和服务</h5>
  <div class="zxinput">
  <div class="zxleftbox flolt">
   <div class="zxwel">
    非常感谢您使用！如果您有任何建议与意见，欢迎留言告诉我们。
对于您在产品过程中发生问题，您可以选择举报或投诉，将尽力协调旅行社来为您解决。
   </div> 
   <div  class="zxorder">
   <table class="zxform" width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td><strong>我要</strong></td>
    <td align="left" valign="middle">
      <input type="radio" checked="checked" name="radiobutton1" value="留言" />
      留言
	  <input type="radio" name="radiobutton1" value="举报" />
      举报
	  <input type="radio" name="radiobutton1" value="投诉" />
      投诉
    </td>
  </tr>

  <tr>
    <td width="80">姓名</td>
    <td align="left" valign="middle"><input type="text" id="txtPerson" /></td>
  </tr>
  <tr>
    <td>电话</td>
    <td align="left" valign="middle"><input type="text" id="txtTel" /></td>
  </tr>
    <tr>
    <td>内容</td>
    <td align="left" valign="middle"><textarea class="set1" id="txtContent"></textarea></td>
  </tr>
    <tr>
    <td>验证码</td>
    <td align="left" valign="middle"><input type="text" id="txtCode" />
    <img name="vimg" id="vimg" onclick="javascript:document.all('vimg').src='../UserControl/VCode.aspx?Rnd='+Math.random();" />
            <script type="text/javascript">                document.getElementById("vimg").src = "../UserControl/VCode.aspx?Rnd=" + Math.random();</script>
    </td>
  </tr>
  <tr>
    <td>&nbsp;</td>
    <td height="50" align="left" valign="middle"><input class="qrtj" name=""  onclick="SaveData()" value=""type="button" /></td>
  </tr>
</table>
   </div>
</div>
  <div class="zxboxr flort">
   <img src="../images/index_47.png" /> <span class="color3"><b>提示:</b></span><br />


留言的分类需正确选择，以便系统分配给相关的负责人来跟进；留言内容请尽量描述得具体一点。

我们收到留言后会在24小时内处理并反馈，出现内容不客观不规范以及联系方式无效等情况不予回复。</div>
  <div class="clear"></div>
  </div>
 </div>
	 </div> 
	    <div class='clear'></div>
	 </div>

    
       </div>   <uc3:WebFoot ID="WebFoot1" runat="server" />
    </form>
</body>
</html>
