<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Topic.aspx.cs" Inherits="JuSNS.Web.home.Group.Topic" %>

<!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 id="ptitle" runat="server">查看主题</title>
<link href="../../template/<% Response.Write(JuSNS.Config.UiConfig.SkinStyle); %>/css/base.css" id="skinpath" type="text/css" rel="stylesheet" />
<script language="javascript" type="text/javascript" src="../../js/ajax.js"></script>
<script language="javascript" type="text/javascript" src="../../js/public.js"></script>
<script language="javascript" type="text/javascript" src="../../js/EventLoad.js"></script>
<script type="text/javascript" src="../../inc/editor/fckeditor.js"></script>
</head>
<body  onload="HideReplyDiv();">
 <!--头部-->
<%=this.GetHtmlShort()%> 
<div id="divhead">
    <%=this.GetHtmlHead()%>
</div>

<div id="divbody">
    <div id="body_first">
        <div class="body_menu"> 
        <%=this.GetHtmlLeft()%>
        </div>
    </div>
       <div id="body_sec">
            <div id="body_mid"> 
                <div class="body_frame"> 
                    <div class="body_frame_otherinfo">
	                        <div class="title">
                                <div class="l"><a id="A_A_Return1" runat="server"><img id="Img_GroupIMG" runat="server" width="48" height="48" align="absmiddle" /></a> <span class="shenlan bold font14 ocolor" id="Span_GroupName" runat="server"></span></div>
                                <div class="r">
                                    
                                    <input type="text" class="f-text" id="myKey" runat="server" />
                                    <input type="button" class="f-button" value="搜索群组" onclick="self.location='list.aspx?GroupName='+escape(document.getElementById('myKey').value);" />
                                     
                                </div>
                                <div class="c"></div>
                            </div>
            		       
                            <div class="nav-menu">
                                <ul>
                                    <li><a href="../group">最新主题</a></li>
                                    <li><a href="../group/my.aspx?r=<%=ruser %>&a=join">我加入的群组</a></li>
                                    <li><a href="../group/my.aspx?r=<%=ruser %>&a=creat">我创建的群组</a></li>
                                    <li><a href="../group/list.aspx">好友群组</a></li>
                                    <li><a href="../group/list.aspx?r=all">随便看看</a></li>
                                    <li class="current"><a href="javascript:;">主题浏览</a></li>
                                </ul>
                            </div>        
                     </div>   
                     
                     <div class="body_sec_all">
                     <form id="form1" runat="server">
                        <div class="content">
                              <span id="P_Count" runat="server"></span>个回复 <span class="pipe">|</span><a id="A_Return" runat="server">返回群组</a> <span class="pipe">|</span> <a id="A_ReturnTop"  runat="server">返回讨论区</a>
                        </div>
                        <div class="msg-error" id="div_Error" runat="server" style="display: none;"></div>
                        <div class="msg-succ" id="div_Suc" runat="server" style="display: none;"></div>
                        <div class="content">
                                <div id="H_TopicName" runat="server" class="topictitle"></div>
                                <asp:Repeater ID="Rpt_ReList" runat="server">
                                    <ItemTemplate>
                                        <%# getContent(DataBinder.Eval(Container.DataItem, "ID"), DataBinder.Eval(Container.DataItem, "GroupID"), DataBinder.Eval(Container.DataItem, "UserID"), DataBinder.Eval(Container.DataItem, "Content"), DataBinder.Eval(Container.DataItem, "PostTime"), DataBinder.Eval(Container.DataItem, "LastModifyTime"), DataBinder.Eval(Container.DataItem, "ReplyTack"), DataBinder.Eval(Container.DataItem, "SeriesNum"), DataBinder.Eval(Container.DataItem, "State"), DataBinder.Eval(Container.DataItem, "UserName"), DataBinder.Eval(Container.DataItem, "FilePath"), DataBinder.Eval(Container.DataItem, "Name"))%>
                                    </ItemTemplate>
                                </asp:Repeater>
                        </div>
                        <div class="content">
                            <div class="nl">
                            <a id="A_ReturnTop1" runat="server">&raquo; 返回讨论区</a>
                           </div> 
                            <div id="board-topic-actions" class="nr">
                                <ul class="acbg1" id="Div_OpTopic" runat="server"></ul>
                            </div> 
                        </div>   
                        <div class="spline"></div>
                        <div class="content pagination" runat="server" id="DivPage"></div>                          
                        
                              <div class="nc" id="Div_JoinGroup" runat="server">
                                    仅群组成员可以发表新主题，随时可以加入。
                                    <div>
                                        <input type="button" class="f-button" value="加入此群组" runat="server" id="but_Join" />
                                    </div>
                                </div>
                                <%if(isGroupHead){ %>
                                <div id="Div_NewTopic" runat="server">
                                    <div id="c-post">
                                        <div class="font14 bold hdtitle s99">回复<span id="reply-to">主题</span></div>
                                        <asp:HiddenField ID="DisID" runat="server" />
                                        <asp:HiddenField ID="GroupID" runat="server" />
                                        <asp:HiddenField ID="IsReply" runat="server" Value="0" />
                                        <div id="Div_Reply" class="groupReply" style="display:none"></div>
                                       <div class="spline"></div> 
                                        <div class="content">
                                            <label for="body" class="f-label">
                                                内容</label>
                                                <script type="text/javascript" language="javascript">
                                                    window.onload = function()
                                                    {
                                                        var sBasePath = "../../inc/editor/"
                                                        var oFCKeditor = new FCKeditor('Content') ;
                                                        oFCKeditor.BasePath	= sBasePath ;
                                                        oFCKeditor.Width = '88%' ;
                                                        oFCKeditor.ToolbarSet = 'Basic';
                                                        oFCKeditor.Height = '150' ;	
                                                        oFCKeditor.ReplaceTextarea();
                                                    }
                                                 </script>
                                            <textarea runat="server" rows="10" name="Content" class="f-text" id="Content" style="width: 350px; height: 200px;display:none;"></textarea>

                                        </div>
                                        <div class="content">
                                             <label for="body" class="f-label">
                                                &nbsp;</label> 
                                            <asp:Button ID="Button1" runat="server" CssClass="f-button" Text="回复主题" OnClick="Button1_Click" />
                                        </div>
                                       <div class="spline"></div> 
                                    </div>
                                    </div>
                                     <%}else{ %>
                                    <div class="msg-warn">您需要上传了头像后，才能 <b>回复主题</b>！，现在开始<a href="../space/userheadphoto.aspx">上传头像</a></div>
                                    <%} %>
                        
                      </form>  
                     </div>
                     </div>
                       <!--底部-->
                     <div class="divbottom">
                      <%=this.GetHtmlFoot()%>
                      </div>                         
                     
                     </div>
                     </div>
                     </div>
</body>
</html>
