<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="GuestBook.aspx.cs" Inherits="WAP2P.Web.PC.User.GuestBook" %>

<div class="mini-box">
    <div class="paypassword form-normal">
        <form class="js-auto js-vsum" method="post" action="<% =Request.RawUrl.UrlEncodeParam() %>" data-onsuccess="$.jSuccess('您的意见对我们很重要，感谢您的反馈。');">
            <div class="minimiddle">                
                <div class="input-big">
                    <textarea rows="5" name="detail" class="w332 ml5" placeholder="请输入反馈详情" data-vmsg="请输入反馈详情。" data-vtype="must"></textarea>
                </div>
                <div class="input-big">
                    <div class="codeinput ml5" id="js-codeinput">
                        <a href="javascript:void(0)" onclick="$('img',this).attr('src', '/User/ValidCode<% =PageExt %>?v=' + (new Date()).getTime())">
                            <img src="/User/ValidCode<% =PageExt %>?v=<% =DateTime.Now.Ticks %>" width="85" height="31" />
                            <span>看不清？<br />
                                换一张</span>
                        </a>
                        <input type="text" class="text w95" name="vcode" maxlength="6" placeholder="请输入验证码" data-vmsg="请输入验证码。" data-vtype="must" />
                    </div>
                </div>
            </div>
            <div class="minifoot">
                <input type="submit" value="提交" class="btn-nobord c-important w70" />
                <input type="button" value="取消" class="btn-nobord c-normal w70 mr20" onclick="$(document.body).dialog('destroy');" />
                <em class="m-sumtip js-vsum"></em>
            </div>
        </form>
    </div>
</div>



<script>
    function loginError() {
        var dom = $('#js-codeinput');

        $.get('/User/ValidCode<% =PageExt %>?action=isneed&v=' + (new Date()).getTime(), function (res) {
                if (res == 'yes') {
                    dom.show();
                    dom.find('a').trigger('click');
                    dom.find('input').attr('data-vtype', 'must');
                } else {
                    dom.find('input').removeAttr('data-vtype');
                }
            });
        };
</script>
