<%@ page language="C#" autoeventwireup="true" inherits="ask_PostQuestion, App_Web_k4nthjel" enableEventValidation="false" %>
<%@ Register src="~/inc/PageHead.ascx" tagname="PageHead" tagprefix="uc1" %>
<%@ Register src="~/inc/PageSearchBox.ascx" tagname="PageSearchBox" tagprefix="uc2" %>
<%@ Register src="~/inc/PageFooter.ascx" tagname="PageFooter" tagprefix="uc3" %>
<%@ Register src="~/inc/NewsRight.ascx" tagname="NewsRight" tagprefix="uc4" %>
<%@ Register src="~/inc/ParamPageNavigator.ascx" tagname="ParamPageNavigator" tagprefix="uc5" %>
<%@ Register src="~/inc/NewsTopAds.ascx" tagname="NewsTopAds" tagprefix="uc6" %>
<%@ Register src="Searchbox.ascx" tagname="Searchbox" tagprefix="uc7" %>
<%@ Register src="LeftCategorys.ascx" tagname="LeftCategorys" tagprefix="uc8" %>
<%@ Register assembly="FredCK.FCKeditorV2" namespace="FredCK.FCKeditorV2" tagprefix="FCKeditorV2" %>
<!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 id="Head1">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
    <meta name="description" content="" />
    <meta name="keywords" content="" />
    
    <title>问答 - 详细</title>
    <link href="/css/style.css" rel="stylesheet" type="text/css" />
    <link href="/css/front.css" rel="stylesheet" type="text/css" />
    <link href="/fsk/style.css" rel="stylesheet" type="text/css" />
    <style type="text/css"></style>
    <script type="text/javascript" src="/Js/jquery.js"></script>
    <script type="text/javascript" src="/Js/utils.js"></script>
    <script type="text/javascript" src="/Js/_effect.js"></script>
    <script type="text/javascript" src="/js/ajax.js"></script>
    <script type="text/javascript" src="/js/data.js"></script>
</head>
<body>
    <form id="form1" runat="server">
    <div class="wrapper askbody doask">
            <uc1:PageHead ID="PageHead1" runat="server" />
            
            <div class="topnavs">
                <div class="left"><a href="/fsk/">婚嫁问答</a> > 提问</div>
                <div class="right"><a href="#"></a></div>
            </div>
            <div class="clear"></div>
            
            <div class="opts">
                <div class="tit">提问</div>
                <div class="bg">
                <ul>
                    <li class="a">
                        <div class="left">问题标题：<span class="sd">*</span></div>
                        <div class="right">
                            <asp:TextBox ID="txtSubject" runat="server" CssClass="txt" MaxLength="100"></asp:TextBox> <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ErrorMessage="请输入问题标题" ControlToValidate="txtSubject" ForeColor="#404040" CssClass="err" Display="Dynamic"></asp:RequiredFieldValidator> 
                        </div>
                    </li>
                    <li class="b">
                        <div class="left">详细描述：<span class="sd">*</span></div>
                        <div class="right">
                            <FCKeditorV2:FCKeditor ID="editContent" runat="server" Width="513" Height="300" ToolbarSet="Basic"></FCKeditorV2:FCKeditor>
                        </div>
                    </li>
                    <li class="a">
                        <div class="left">关键字：</div>
                        <div class="right">
                            <asp:TextBox ID="txtKeywords" runat="server" MaxLength="50"></asp:TextBox> 关键字用逗号或空格分隔，便于搜索
                        </div>
                    </li>
                    <li class="c">
                        <div class="left">选择分类：</div>
                        <div class="right">
                        <asp:HiddenField ID="cIds" runat="server" />
                        <script type="text/javascript">new DropdownLists(arrAskCategorys, "<%= cIds.ClientID %>");</script></div>
                    </li>
                    <li class="c">
                        <div class="left">悬赏分数：</div>
                        <div class="right">
                            <asp:DropDownList ID="ddlStore" runat="server">
                                <asp:ListItem Text="不悬赏" Value="0"></asp:ListItem>
                                <asp:ListItem Text="20分" Value="20"></asp:ListItem>
                                <asp:ListItem Text="50分" Value="50"></asp:ListItem>
                                <asp:ListItem Text="100分" Value="100"></asp:ListItem>
                            </asp:DropDownList>
                        </div>
                    </li>
                    <li class="c">
                        <div class="left">匿名提问：</div>
                        <div class="right">
                            <asp:CheckBox ID="chkNick" runat="server" Text="匿名" />
                        </div>
                    </li>
                    <li class="c">
                        <div class="left">验证码：<span class="sd">*</span></div>
                        <div class="right">
                            <asp:TextBox ID="txtValidateCode" runat="server" Width="60"></asp:TextBox> &nbsp;
                                      <span id="validateimg"><img src="/inc/aspx/ValidateCode.aspx?" style="cursor:pointer;" /></span>
                                      <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ErrorMessage="请输入验证码" ControlToValidate="txtValidateCode" ForeColor="#404040" CssClass="err" Display="Dynamic"></asp:RequiredFieldValidator>
                        </div>
                    </li>
                    <li class="d">
                        <div class="left"></div>
                        <div class="right">
                            <asp:Button ID="btnSubmit" runat="server" Text="提交问题"  CssClass="btnn" onclick="btnSubmit_Click"/>
                        </div>
                    </li>
                </ul>
                    <div class="clear"></div>
                </div>
                    <div class="clear"></div>
            </div>
            
            <!-- 主要内容结束 -->
            <uc3:PageFooter ID="PageFooter1" runat="server" />
        </div>
    </form>
    <script type="text/javascript">
        $(document).ready(function() {
            $("#validateimg").bind("click", function() {
                $("#validateimg img").attr("src","/inc/aspx/ValidateCode.aspx?t=" + new Date().getTime());
            });
        });
    </script>
</body>
</html>
