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

<%@ Register Assembly="Pager" Namespace="Wuqi.Webdiyer" TagPrefix="DataPager" %>
<%@ 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><asp:Literal ID="Literal1" runat="server"></asp:Literal></title>
    <asp:Literal ID="Literal_keywords" runat="server"></asp:Literal>
    <asp:Literal ID="Literal_description" runat="server"></asp:Literal>
    <UC:meta ID="meta1" runat="server" />
    <link type="text/css" rel="stylesheet" href="/bbs/skin/style.css" />
    <asp:Literal ID="LiteralForumCSS" runat="server"></asp:Literal>
</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">
        <asp:Literal ID="JS1" runat="server"></asp:Literal>
        <div class="none" style="padding-top:5px" id="bbs_gg_1"><asp:Literal ID="AD_bbs_gg1" runat="server" Text=""></asp:Literal></div><script type="text/javascript">if(document.getElementById("bbs_gg_1").innerHTML.length>0)document.getElementById("bbs_gg_1").className="box";</script>
        <div class="box"><asp:Literal ID="Literal_bbsrulegg" runat="server"></asp:Literal>
        <asp:Panel ID="Panel2" runat="server" CssClass="c2 mt5" Visible="false">
          <div class="b">
            <div class="fl"></div>
            <div class="con" style="width:500px"><asp:Literal ID="Literal_ruletitle" runat="server"></asp:Literal></div>
            <div class="fr"></div>
            <div class="clear"></div>
          </div>
          <div class="v">
              <asp:Literal ID="Literal_rulecontent" runat="server"></asp:Literal>
          </div>
        </asp:Panel>
            <asp:Panel ID="Panel_Turn" runat="server" Visible="false">
                <table border="0" cellspacing="0" cellpadding="0" width="100%">
                    <tr>
                        <td><a href="newtopic.htm?classid=<%=WM.RQ("classid") %>"><img alt="" class="block" style="margin-top: 5px" src="skin/newtopic.gif" onmouseover="hover(this,0.8)" onmouseout="hover(this,1)" /></a></td>
                        <td class="ar">
                            <div id="DataPager">
                                <table border="0" cellspacing="0" cellpadding="0" align="right">
                                    <tr>
                                        <td>
                                            <DataPager:AspNetPager ID="Pager1" runat="server" OnPageChanged="Pager1_PageChanged"
                                                UrlPagingTarget="_self" PageSize="20" UrlPaging="true" FirstPageText="最前页" PrevPageText="上一页"
                                                NextPageText="下一页" LastPageText="最后页" PagingButtonSpacing="0" CssClass="turn"
                                                CurrentPageButtonClass="turn_on" SubmitButtonClass="pager_but" PageIndexBoxClass="pager_inp"
                                                SubmitButtonText="转到" ShowPageIndexBox="Auto" ShowBoxThreshold="0" ShowDisabledButtons="false"
                                                NumericButtonCount="6" FirstLastButtonsClass="turn_flpn" PrevNextButtonsClass="turn_flpn">
                                            </DataPager:AspNetPager>
                                        </td>
                                    </tr>
                                </table>
                                <div class="clear"></div>
                            </div>
                        </td>
                    </tr>
                </table>
            </asp:Panel>
            <div class="c2 mt5">
                <div class="b">
                    <div class="fl"></div>
                    <div class="con" style="width:500px"><asp:Literal ID="Literal2" runat="server"></asp:Literal></div>
                    <div class="fr"></div>
                    <div class="clear"></div>
                </div>
                <div class="v">
                    <div class="v1">
                        <asp:Panel ID="Panel_Nodata" runat="server" Visible="false">
                            <div class="tip_nodata" id="tip_nodata" style="background-position: 12px 13px">No data!&nbsp;</div>
                        </asp:Panel>
                        <asp:Panel ID="Panel_List" runat="server">
                            <asp:Repeater ID="Repeater1" runat="server">
                                <HeaderTemplate>
                                    <div class="forum_list">
                                        <table border="0" cellpadding="0" cellspacing="0" width="100%" id="bbs_forum_table">
                                            <tr>
                                                <th></th>
                                                <th>帖子标题</th>
                                                <th>&nbsp;</th>
                                                <th>作者</th>
                                                <th>回复/查看</th>
                                                <th><div class="ar">最后发表</div></th>
                                            </tr>
                                </HeaderTemplate>
                                <ItemTemplate>
                                    <tr onmouseover="this.className='tr1'" onmouseout="this.className=''">
                                        <td class="td1">
                                            <a href="<%#Eval("id") %>.htm"><%#get1(Eval("id").ToString(), Eval("istop").ToString(), Eval("time").ToString())%></a>
                                        </td>
                                        <td class="td2">
                                            <%#WMcompare.IsEqual(Eval("istop").ToString(), "True", "<img alt=\"置顶\" align=\"absmiddle\" style=\"margin-right:6px;\" src=\"/bbs/skin/istop.gif\" />", "")%><a href="<%#Eval("id") %>.htm" target="_blank"><%#get4(WM.cut(Eval("title").ToString().Trim(), 60, ".."), Eval("isred").ToString())%></a><%#get3(Eval("content").ToString()) %>
                                        </td>
                                        <td class="td6"><div><a href="/space/?uid=<%#Eval("uid") %>" target="_blank"><img alt="" src="<%#ZK.m_face(Eval("uid").ToString(),"50")%>" /></a></div></td>
                                        <td class="td3">
                                            <div class="con1"><a href="/space/?uid=<%#Eval("uid") %>" target="_blank"><%#WM.cut(ZK.m_u(Eval("uid").ToString()), 14, "..")%></a></div>
                                            <div class="con2"><%#WMtime.FormatDateTime(Eval("time").ToString(),"yyyy-MM-dd HH:mm")%></div>
                                        </td>
                                        <td class="td4">
                                            <div class="con1"><%#WM.DoCount("bbs_pl", "where fid=" + Eval("id").ToString())%></div>
                                            <div class="con2"><%#Eval("click")%></div>
                                        </td>
                                        <td class="td5"><%#get2(Eval("id").ToString()) %></td>
                                    </tr>
                                </ItemTemplate>
                                <AlternatingItemTemplate>
                                   <tr onmouseover="this.className='tr1'" onmouseout="this.className=''" style="background-color:#f8f8f8">
                                        <td class="td1">
                                            <a href="<%#Eval("id") %>.htm"><%#get1(Eval("id").ToString(), Eval("istop").ToString(), Eval("time").ToString())%></a>
                                        </td>
                                        <td class="td2">
                                            <%#WMcompare.IsEqual(Eval("istop").ToString(), "True", "<img alt=\"置顶\" align=\"absmiddle\" style=\"margin-right:6px;\" src=\"/bbs/skin/istop.gif\" />", "")%><a href="<%#Eval("id") %>.htm" target="_blank"><%#get4(WM.cut(Eval("title").ToString().Trim(), 60, ".."), Eval("isred").ToString())%></a><%#get3(Eval("content").ToString()) %>
                                        </td>
                                        <td class="td6"><div><a href="/space/?uid=<%#Eval("uid") %>" target="_blank"><img alt="" src="<%#ZK.m_face(Eval("uid").ToString(),"50")%>" /></a></div></td>
                                        <td class="td3">
                                            <div class="con1"><a href="/space/?uid=<%#Eval("uid") %>" target="_blank"><%#WM.cut(ZK.m_u(Eval("uid").ToString()), 14, "..")%></a></div>
                                            <div class="con2"><%#WMtime.FormatDateTime(Eval("time").ToString(),"yyyy-MM-dd HH:mm")%></div>
                                        </td>
                                        <td class="td4">
                                            <div class="con1"><%#WM.DoCount("bbs_pl", "where fid=" + Eval("id").ToString())%></div>
                                            <div class="con2"><%#Eval("click")%></div>
                                        </td>
                                        <td class="td5"><%#get2(Eval("id").ToString()) %></td>
                                    </tr>
                                </AlternatingItemTemplate>
                                <FooterTemplate>
                                        </table>
                                        <script type="text/javascript">function self_fun1(){var TB = document.getElementById("bbs_forum_table");for (i=0;i<TB.rows.length;i++){if(TB.rows[i].cells[5].innerHTML.indexOf("<")==-1)TB.rows[i].cells[5].innerHTML=TB.rows[i].cells[3].innerHTML;}}self_fun1();</script>
                                    </div>
                                </FooterTemplate>
                            </asp:Repeater>
                        </asp:Panel>
                    </div>
                </div>
            </div>
            <table border="0" cellspacing="0" cellpadding="0" width="100%" id="paerbox2">
                <tr>
                    <td><a href="newtopic.htm?classid=<%=WM.RQ("classid") %>"><img alt="" class="block" style="margin-top: 5px" src="skin/newtopic.gif" onmouseover="hover(this,0.8)" onmouseout="hover(this,1)" /></a></td>
                    <td class="ar">
                        <div id="DataPagerCopy">
                            <table border="0" cellspacing="0" cellpadding="0" align="right">
                                <tr>
                                    <td>
                                        <DataPager:AspNetPager ID="Pager2" CloneFrom="Pager1" runat="server" OnPageChanged="Pager1_PageChanged"
                                            UrlPagingTarget="_self" PageSize="20" UrlPaging="true" FirstPageText="最前页" PrevPageText="上一页"
                                            NextPageText="下一页" LastPageText="最后页" PagingButtonSpacing="0" CssClass="turn"
                                            CurrentPageButtonClass="turn_on" SubmitButtonClass="pager_but" PageIndexBoxClass="pager_inp"
                                            SubmitButtonText="转到" ShowPageIndexBox="Auto" ShowBoxThreshold="0" ShowDisabledButtons="false"
                                            NumericButtonCount="6" FirstLastButtonsClass="turn_flpn" PrevNextButtonsClass="turn_flpn">
                                        </DataPager:AspNetPager>
                                    </td>
                                </tr>
                            </table>
                            <div class="clear"></div>
                        </div>
                    </td>
                </tr>
            </table>
            <div class="c2 mt5">
                <div class="b">
                    <div class="fl"></div>
                    <div class="con">快速发帖</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;}
                            if(vc==""){alert("请输入验证码！");return false;}
                            }  
                            function showVC(){if(document.getElementById("TextBox1").value!="")document.getElementById("vc_box").className="pt5";}
                        </script>
                        <div>
                            <table border="0" cellpadding="0" cellspacing="0">
                                <tr>
                                    <td><asp:TextBox ID="TextBox1" runat="server" CssClass="inp4" Width="400" MaxLength="120" onblur="showVC()" autocomplete="off"></asp:TextBox></td>
                                    <td style="color: #ccc;padding-left:6px;">请输入帖子主题，标题最多为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="200" Width="800" ToolbarSet="Edit1_fontsize"></FCKeditorV2:FCKeditor>--%>
                            <link rel="stylesheet" href="/s/tool/editor/themes/default/default.css" />
                            <link rel="stylesheet" href="/s/tool/editor/plugins/code/prettify.css" />
                            <script charset="utf-8" src="/s/tool/editor/kindeditor.js"></script>
                            <script charset="utf-8" src="/s/tool/editor/lang/zh_CN.js"></script>
                            <script charset="utf-8" src="/s/tool/editor/plugins/code/prettify.js"></script>
	                        <script>
		                        KindEditor.ready(function(K) {
			                        var editor1 = K.create('#Content1', {
				                        cssPath : '/s/tool/editor/plugins/code/prettify.css',
				                        uploadJson : '/s/tool/editor/asp.net/upload_json.ashx',
				                      
				                        fileManagerJson : '/s/tool/editor/asp.net/file_manager_json.ashx',
				                        items : [<%=EditorSource%>'fontname', 'fontsize', '|', 'forecolor', 'hilitecolor', 'bold', 'italic', 'underline','removeformat', '|', 'justifyleft', 'justifycenter', 'justifyright', 'insertorderedlist','insertunorderedlist', '|', 'emoticons', 'image','flash', 'link'],
				                        allowFileManager : true,
				                        resizeType : 2,
				                        afterCreate : function() {
					                        var self = this;					                   
					                        K.ctrl(self.edit.doc, 13, function() {
						                        self.sync();
						                        document.getElementById("Button1").click();
					                        });
				                        }
			                        });
			                        prettyPrint();
		                        });
	                        </script>
                            <asp:TextBox ID="Content1" runat="server" style="width:626px;height:180px;visibility:hidden;"></asp:TextBox>
                        </div>
                        <div class="none" 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>
                        <script type="text/javascript">if(document.getElementById("TextBox1").value!=""){document.getElementById("vc_box").className="";}showVC();</script>
                        <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 style="padding-top:10px;">
                            <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" Text="Ctrl+Enter"></asp:Label></td>
                                </tr>
                            </table>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        </form>
        <UC:foot ID="foot1" runat="server" />
    </div>
</body>
</html>
<script type="text/javascript" src="/skin/public/jquery-1.8.3.min.js"></script>
<script type="text/javascript">$(function(){ $.getScript('/bbs/skin/PageTop_960.js',function(){});});</script>