<%@ page language="C#" autoeventwireup="true" inherits="bbs_newtopic, ZKCMS" maintainscrollpositiononpostback="true" enableviewstatemac="false" enableEventValidation="false" viewStateEncryptionMode="Never" %>

<%@ Register Assembly="WM_DropDownList" Namespace="WM_DropDownList" TagPrefix="uc" %>
<%@ Register TagName="meta" TagPrefix="UC" Src="~/s/include/meta.ascx" %>
<%@ Register TagName="head" TagPrefix="UC" Src="~/s/include/head.ascx" %>
<%@ Register TagName="tip_bar_time" TagPrefix="UC" Src="~/s/include/tip_bar_time.ascx" %>
<%@ Register TagName="foot" TagPrefix="UC" Src="~/s/include/foot.ascx" %>
<!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 runat="server">
    <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
    <meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
    <title><%=ZK.config("bbstitle")%><%=ZK.config("sitetitle") %></title>
    <meta name="keywords" content="<%=ZK.config("sitekeywords") %>" />
    <meta name="description" content="<%=ZK.config("sitedescription") %>" />
    <UC:meta ID="meta1" runat="server" />
    <link type="text/css" rel="stylesheet" href="/bbs/skin/style.css" />
</head>
<body>
    <div class="wrap">
        <a name="pagetop" id="pagetop"></a>
        <UC:head ID="head1" runat="server" />
        <div class="box">
            <div class="tip_bar mt5">
                <table width="100%" border="0" cellspacing="0" cellpadding="0">
                    <tr>
                        <td>
                            <div class="path"><strong>您当前的位置：</strong><span><a href="/">网站首页</a></span><span><a href="/bbs/"><%=ZK.config("bbsshorttitle")%></a></span><asp:Literal ID="Literal_pathclass" runat="server"></asp:Literal></div>
                        </td>
                        <td align="right"><UC:tip_bar_time ID="tip_bar_time1" runat="server" /></td>
                    </tr>
                </table>
            </div>
        </div>
        <form id="form1" runat="server">
        <div class="box">
            <div class="c2 mt5">
                <div class="b">
                    <div class="fl"></div>
                    <div class="con"><asp:Literal ID="Literal1" runat="server">发表帖子</asp:Literal></div>
                    <div class="fr"></div>
                    <div class="clear"></div>
                </div>
                <div class="v">
                    <div style="padding: 10px">
                        <script type="text/javascript">
                            function self_check1(){
                            var title=document.getElementById("TextBox1").value;
                            var vc=document.getElementById("TextBox2").value;
                            if(title==""){alert("请输入帖子标题！");return false;}
                            if(!ifHasChn(title)){alert("帖子标题不符合规范！");return false;}
                              <asp:Literal ID="Literal3" runat="server">if(vc==""){alert("请输入验证码！");return false;}</asp:Literal>
                            }
                        </script>
                        <div>
                            <asp:Panel ID="Panel2" runat="server" Visible="false" style="padding-bottom:10px"><uc:SmartDropDownList ID="SmartDropDownList1" runat="server" CssClass="s14" style="width:300px; color:#666" ToolTip="选择所属类别"></uc:SmartDropDownList></asp:Panel>
                            <table border="0" cellpadding="0" cellspacing="0">
                                <tr>
                                    <td><asp:TextBox ID="TextBox1" runat="server" CssClass="inp4" Width="400" MaxLength="120" autocomplete="off"></asp:TextBox></td>
                                    <td style="color: #999; padding-left: 10px">请输入帖子主题，标题最多为60个字符。</td>
                                </tr>
                            </table>
                        </div>
                        <div class="pt5">
                            <%@ register assembly="FredCK.FCKeditorV2" namespace="FredCK.FCKeditorV2" tagprefix="FCKeditorV2" %>
                            <FCKeditorV2:FCKeditor ID="FCKeditor1" runat="server" BasePath="~/s/tool/fck/" Height="500" Width="928" ToolbarSet="Edit1_fontsize"></FCKeditorV2:FCKeditor>
                        </div>
                        <div class="pt5" id="vc_box">
                            <table border="0" cellpadding="0" cellspacing="0">
                                <tr>
                                    <td><asp:TextBox ID="TextBox2" runat="server" CssClass="inp4" Width="60" MaxLength="4"></asp:TextBox></td>
                                    <td style="padding-left: 5px">
                                        <div style="padding-top: 1px">
                                            <img src="/s/tool/fun/ValidateCode.aspx?type=en&len=4&height=24&str=&cookie=vc_bbs_do" alt="点击刷新验证码" onclick="this.src='/s/tool/fun/ValidateCode.aspx?type=en&len=4&height=24&str=&cookie=vc_bbs_do&rd'+Math.random()" style="cursor: pointer" />
                                        </div>
                                    </td>
                                </tr>
                            </table>
                        </div>
                        <asp:Literal ID="JS1" runat="server"></asp:Literal>
                        <asp:Panel ID="Panel1" runat="server" CssClass="pt5" Visible="false">
                            <table border="0" cellpadding="0" cellspacing="0">
                                <tr>
                                    <td class="str" style="color: #666">用户帐号：</td>
                                    <td style="padding-left: 2px"><asp:TextBox ID="bbs_u" runat="server" CssClass="inp4" Width="100" MaxLength="30"></asp:TextBox></td>
                                    <td class="str" style="color: #666">&nbsp;&nbsp;用户密码：</td>
                                    <td style="padding-left: 2px"><asp:TextBox ID="bbs_p" runat="server" TextMode="Password" CssClass="inp4" Width="100" MaxLength="30"></asp:TextBox></td>
                                </tr>
                            </table>
                        </asp:Panel>
                        <div class="pt5">
                            <table border="0" cellpadding="0" cellspacing="0">
                                <tr>
                                    <td><asp:Button ID="Button1" runat="server" Text="发帖" CssClass="but3" onmouseover="hover(this,0.8)" onmouseout="hover(this,1)" OnClick="Button1_OnClick" OnClientClick="return self_check1()" /></td>
                                    <td style="padding-left: 8px"><asp:Label ID="msg" runat="server" CssClass="red"></asp:Label></td>
                                </tr>
                            </table>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        </form>
        <UC:foot ID="foot1" runat="server" />
    </div>
</body>
</html>
