<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Dd_feedback.aspx.cs" Inherits="HteamDd.Web.Web.Dd_feedback" %>

<!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>意见反馈|海客轻微博</title>
    <link rel="stylesheet" type="text/css" href="/css/public.css" />   
    <link href="/css/FeedBack.css" rel="stylesheet" type="text/css" />
    <script src="/jscript/jquery-1.4.2.js" type="text/javascript"></script>
    <script src="/jscript/Dd_image_deal.js" type="text/javascript"></script>
    <script type="text/javascript" language="javascript">
        var jq = jQuery.noConflict();
        jq(document).ready(function () {
            var user = "";
            var cookie_info = ' <%=user_Mes%>';
            if (cookie_info != "") {
                user = cookie_info.split(',');
                blogname.innerHTML = user[1];
                img_user(user[0], "2"); //处理个人图片问题
            }
            //退出时，进行session和cookie的清空
            jq("#uer_Exit").click(function () {
                jq.ajax({
                    type: "post",
                    url: '/ashx/Dd_userExit.ashx',
                    data: { type: "exit", time: new Date().getDate() },
                    success: function (data) {
                        if (data == "1") {
                            window.location.href = "/Dd_login.aspx";
                        }
                    }
                });
            });

            jq("#feedback-submiting-tip").css("display", "none");
            jq("#feedback-submit").click(function () {
                if (document.getElementById("feedback-textarea").value.replace(/(^\s*)|(\s*$)/g, "") == "") {
                    alert("请填上你的宝贵意见，谢谢合作~~~");
                }
                else {
                    jq("#feedback-submiting-tip").css("display", "");
                    jq.ajax({
                        type:"post",
                        url: '/ashx/Dd_suggest.ashx',
                        data: { userID: user[0],
                                url: jq("#feedback-textarea").val(), 
                                time: new Date().getTime() },
                        success: function (back) {
                            if (back == "1") {
                                alert("您的意见已提交，谢谢您的合作~");
                                window.location.href = "/Default.aspx";
                            }
                        },
                        error: function () {
                            alert("提交失败~~~");
                            jq("#feedback-submiting-tip").css("display", "none");
                        }
                    });
                }
            });
        });  
    </script>
       <style type="text/css">
       #feedback-textarea
        {
            width:559px;
            height:200px;
            margin-bottom:10px;
            font-size:14px;
            border-bottom-color:#aebacd;
            border-top-color:#aebacd;
            border-right-color:#aebacd;
            border-left-color:#aebacd;
            }
             .blue-button
            {
                    height:36px;
                    padding-top:0px;
                    padding-right:20px;
                    font-size:14px;
                    background-image:url("/iamges/blue-button_$1310.png");
                    background-repeat:repeat-x;
                    cursor:pointer;
                    border:1px solid #787878;
                    line-height:32px;
                }
                .blue-button:hover{ background-color:#006DAB;}
                #feedback-submit{float:right;}   
                #feedback-submiting-tip {
                    background: url("/images/small-round-loading.$886.gif") no-repeat scroll left center transparent;
                    color: #666666;
                    float: right;
                    font-size: 12px;
                    height: 38px;
                    line-height: 38px;
                    margin-right: 15px;
                    padding-left: 20px;
                }
                #feedback-desc {
                    margin: -15px 0 15px;
                }
                .activity-tip {
                background-color: #FEFFE0;
                border: 1px solid #E2DA6D;
                color: #444444;
                margin-bottom: 20px;
                padding: 10px;
            }
            a, a:link, a:visited, a:active, a:hover {
                color: #324F65;
                cursor: pointer;
            }
</style>
</head>
<body>
<div id="wrap">
        <div id="header" class="clearfix">
        <div id="logo">
            <a href="/Default.aspx">海客网</a>
        </div>
        <ul id="nav">
            <li id="nav-index" class="active">
                <a class="nav-item" href="/Default.aspx">首页</a>
                <a id="new-feed-count" class="header-pop-notice" style="display:none"></a>
            </li>
            <li>
                <a id="nav-explore" class="nav-item" href="/Web/Dd_discover/Dd_FerverTag.aspx">发现</a>
            </li>
        </ul>
        <ul id="sub-nav">
            <li>
                <a href="/Dd_login.aspx" id="uer_Exit">退出</a>
            </li>
            <li>
                <a href="/Web/Dd_setting.aspx">设置</a>
            </li>
            <li>
                <a href="/Web/Dd_Intro_Master/Dd_aboutme.aspx">关于</a>
            </li>
           <%-- <li>
                <a href="#">手机</a>
            </li>
            <li>
                <a href="#">邀请</a>
            </li>--%>
        </ul>
        <ul id="nav-blog-list" class="clearfix">
            <li id="nav-blog-8500453" >
                <a href="Dd_private_index.aspx">
                    <span class="nav-blog-avatar">
                        <img width="20" height="20" id="img_personal" src="/images/avatar_30_30.$1095.png" alt=""/>
                    </span>
                    <span class="nav-blog-name" id="blogname"></span>

                </a>
            </li>
        </ul>
        <div id="content">
        <div id="main">
            <h2 id="main-title">给我们提建议</h2>
            <p id="feedback-desc">如果您在使用海客过程中遇到问题，或者有任何的意见或建议，
            欢迎随时向我们反馈。我们会尽快回答您的问题，并依据您的反馈，不断完善网站。</p>
            <p class="activity-tip">
            如果你有关于哈根达斯或者电影票的疑问，请发邮件至&nbsp;
                <a href="mailto:haitianruanjian@126.com" target="_blank">haitianruanjian@126.com</a>
            </p>
            <div id="feedback">
                <textarea id="feedback-textarea"></textarea>
            </div>
            <div id="feedback-action">
                <a class="blue-button" id="feedback-submit">发送反馈</a>
                <span id="feedback-submiting-tip" >正在发送...</span>
            </div>
        </div>
        <div id="aside">
            <ul id="about-list">
                <li class="about-item about"><a href="/Web/Dd_Intro_Master/Dd_aboutme.aspx">关于我们</a></li>
                <hr class="separator"/>
                <li class="about-item contact"><a href="/Web/Dd_Intro_Master/Dd_contact.aspx">联系我们</a></li>
                <hr class="separator"/>
                <li class="about-item jobs"><a href="/Web/Dd_Intro_Master/Dd_jobs.aspx">招贤纳士</a></li>
                <hr class="separator"/>
                <li class="about-item service"><a href="/Web/Dd_Intro_Master/Dd_service.aspx">服务条款</a></li>
                <hr class="separator"/>
                <li class="about-item privacy"><a href="/Web/Dd_Intro_Master/Dd_privacy.aspx">隐私政策</a></li>
                <hr class="separator"/>
                <li class="about-item feedback current"><a href="/Web/Dd_feedback.aspx">意见反馈</a></li>
                <hr class="separator"/>
                <li class="about-item blog"><a href="http://www.haitianruanjian.com" target="_blank">官方网站</a></li>
            </ul>
        </div>
        </div>
    </div>
    </div>
</body>
</html>