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

<!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"><% if (Request.QueryString["f"] == "1"){%>随便看看：群组<%}else{ %>群组管理：<%=title %><%} %></span></div>
                                <div class="r">
                                    <form id="form2"> 
                                    <input type="text" class="f-text" id="myKey" runat="server" />
                                    <input type="button" class="f-button" value="搜索群组" onclick="self.location='list.aspx?r=<%=r %>&GroupName='+escape(document.getElementById('myKey').value);" />
                                     </form>
                                </div>
                                <div class="c"></div>
                            </div>
            		       
                            <div class="nav-menu">
                                <ul>
                            <%if (Request.QueryString["f"] == "1")
                              {%>
                                 <li><a href="../ram/net.aspx">随便看看</a></li>
                                 <li><a href="../ram">同城</a></li>
                                 <li><a href="../network?s=ram&f=0">同地区</a></li>
                                 <li><a href="../ram/day.aspx">日记</a></li>
                                 <li><a href="../ram/blog.aspx">日志</a></li>
                                 <li><a href="../ram/photo.aspx">相册</a></li>
                                 <li><a href="../ram/share.aspx">分享</a></li>
                                 <li class="current"><a href="../ram/group.aspx">群组</a></li>
                                 <li><a href="../ram/vodie.aspx">电影</a></li>
                                    <li><a href="../ask/?r=all&f=1">问答</a></li>
                           <%}
                             else
                             { %>  
                                    <li><a href="../group">最新主题</a></li>
                                    <li><a href="../group/my.aspx?r=<%# GetUserID() %>&a=join">我加入的群组</a></li>
                                    <li><a href="../group/my.aspx?r=<%# GetUserID() %>&a=creat">我创建的群组</a></li>
                                    <li id="flist" runat="server"><a href="../group/list.aspx">好友群组</a></li>
                                    <li id="alllist" runat="server"><a href="../group/list.aspx?r=all">随便看看</a></li>
                                    <%} %>
                                </ul>
                            </div>        
                     </div>   
                     
                     <div class="body_sec_all">
                         <div  class="recordnumber nl">
                                <span class="nl w610"  id="P_Result" runat="server"></span><span id="Newgroup" class="nr">&nbsp;&nbsp;<a href="Creat_base.aspx" class="shortcut-link">创建新群组</a></span>                       
                        </div>
    
                        <div class="grouplist">
                            <asp:Repeater runat="server" ID="Rpt_GroupList">
                                <HeaderTemplate>
                                    <ul id="ilgroups">
                                </HeaderTemplate>
                                <ItemTemplate>
                                    <li class="nl">
                                    <div class="group-left">
                                         <a href="group.aspx?groupID=<%# DataBinder.Eval(Container.DataItem, "GroupID")%>"><img src="<%# this.GetGroupHead(DataBinder.Eval(Container.DataItem, "Portrait"))%>" alt="<%# DataBinder.Eval(Container.DataItem, "GroupName")%>" /></a>
                                    </div>
                                    <div class="group-right nr">
                                            <div class="nl w530">
                                                <div class="bold font14">
                                                    <a href="group.aspx?GroupID=<%# DataBinder.Eval(Container.DataItem, "GroupID")%>"><%# DataBinder.Eval(Container.DataItem, "GroupName")%></a>                                            
                                                </div>
                                                <div class="c"></div>
                                                <div class="cpstr">
                                                        <div class="cpstr">
                                                           <a href="member.aspx?groupID=<%# DataBinder.Eval(Container.DataItem, "GroupID")%>"><%# DataBinder.Eval(Container.DataItem, "Members")%>名成员</a> 
                                                           <span class="pike"> |</span> <a href="group.aspx?groupID=<%# DataBinder.Eval(Container.DataItem, "GroupID")%>"><%# DataBinder.Eval(Container.DataItem, "Cnt")%>个主题</a>                                                    
                                                         </div>
                                                        <div class="time">
                                                            <%# getBulletin(DataBinder.Eval(Container.DataItem, "Bulletin"))%>
                                                       </div>
                                                </div>
                                            </div>
                                            <div class="nr">
                                                <ul class="acbg">
                                                <%# getOp(DataBinder.Eval(Container.DataItem, "GroupID"))%>
                                               </ul> 
                                            </div>
                                       </div>
                                    </li>
                                </ItemTemplate>
                                <FooterTemplate>
                                    </ul>
                                </FooterTemplate>
                            </asp:Repeater>
                            <div class="nc" runat="server" id="DivResult"></div>
                            <div class="pagination" runat="server" id="DivPage"></div>                        
                        </div>

                     </div>
                     </div>
                     
                       <!--底部-->
                     <div class="divbottom">
                      <%=this.GetHtmlFoot()%>
                      </div>                         
                     </div>
                     </div>
                     </div>
                     
                     
</body>
</html>
