<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="index.aspx.cs" Inherits="JuSNS.Web.home.Group.index" %>
<!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>
</head>
<body>
 <!--头部-->
<%=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"><img src="../../template/<%Response.Write(JuSNS.Config.UiConfig.SkinStyle); %>/images/site/group.gif" align="absmiddle" /> <span class="shenlan bold font14 ocolor">群组管理：最新主题</span></div>
                                <div class="r">
                                    <form id="form2"> 
                                    <input type="text" class="f-text" id="myKey" />
                                    <input type="button" class="f-button" value="搜索群组" onclick="self.location='list.aspx?GroupName='+escape(document.getElementById('myKey').value);" />
                                     </form>
                                </div>
                                <div class="c"></div>
                            </div>
            		       
                            <div class="nav-menu">
                                <ul>
                                    <li class="current"><a href="../group">最新主题</a></li>
                                    <li><a href="../group/my.aspx?r=<%# UserID %>&a=join">我加入的群组</a></li>
                                    <li><a href="../group/my.aspx?r=<%# UserID %>&a=creat">我创建的群组</a></li>
                                    <li><a href="../group/list.aspx">好友群组</a></li>
                                    <li><a href="../group/list.aspx?r=all">随便看看</a></li>
                                </ul>
                            </div>        
                     </div>   
                     
                     <div class="body_sec_all">
                            <div class="cpstr nl"><span id="Newgroup" class="nr"><a href="Creat_base.aspx" class="shortcut-link">创建新群组</a></span></div>
                           <div class="group-content nl">
                                <asp:Repeater runat="server" ID="Rpt_DyanGroup">
                                    <HeaderTemplate>
                                            <div class="hn nl">
                                                <div class="title nl">主题</div>
                                                <div class="parent nl">群组</div>
                                                <div class="replay nl">回复数</div>
                                                <div class="author nl">作者</div>
                                                <div class="replier nl">最后发言</div>
                                            </div>
                                            <div class="c"></div>
                                    </HeaderTemplate>
                                    <ItemTemplate>
                                        <div class="cn nl">
                                            <div class="title nl">
                                                <a href="topic.aspx?disID=<%# DataBinder.Eval(Container.DataItem, "ID")%>">
                                                    <%# getIsTop(DataBinder.Eval(Container.DataItem, "TopNum"))%>
                                                    <%# DataBinder.Eval(Container.DataItem, "Topic")%>
                                                </a>
                                            </div>
                                            <div class="parent nl">
                                                <a href="group.aspx?groupID=<%# DataBinder.Eval(Container.DataItem, "GroupID")%>">
                                                    <%# DataBinder.Eval(Container.DataItem, "GroupName")%>
                                                </a>
                                            </div>
                                            <div class="replay font11 nl">
                                                <%# DataBinder.Eval(Container.DataItem, "Replys")%>
                                            </div>
                                            <div class="author nl">
                                                <a href="../../user/<%# JuSNS.Common.Public.URLWrite("","r",""+DataBinder.Eval(Container.DataItem, "UserID")+"")%>">
                                                    <%# DataBinder.Eval(Container.DataItem, "UserName")%>
                                                </a>
                                            </div>
                                            <div class="replier nl">
                                                <%# getUserName(DataBinder.Eval(Container.DataItem, "LastPoster"))%><span class="time"><%# getTime(DataBinder.Eval(Container.DataItem, "LastPostTime"),DataBinder.Eval(Container.DataItem, "ID"))%></span>
                                            </div>
                                            <div class="c"></div>
                                       </div>
                                    </ItemTemplate>
                                    <FooterTemplate>
                                    </FooterTemplate>
                                </asp:Repeater>                           
                            </div>
                     </div>
                     
                     </div>
                   <!--底部-->
                 <div class="divbottom">
                  <%=this.GetHtmlFoot()%>
                  </div>                       
             </div>
     </div>
</div>
</body>
</html>
