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

<!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>
<script language="javascript" type="text/javascript" src="../../js/ajax.js"></script>
<script language="javascript" type="text/javascript" src="../../js/public.js"></script>
<link href="../../template/<% Response.Write(JuSNS.Config.UiConfig.SkinStyle); %>/css/base.css" id="skinpath" type="text/css" rel="stylesheet" />
</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/friend.gif" align="absmiddle" /> <span class="shenlan bold font14 ocolor">朋友列表</span></div>
                                <div class="r"><a href="javascript:window.history.back();" title="返回上一页">返回上一页</a></div>
                                <div class="c"></div>
                            </div>
            		       
                            <div class="nav-menu">
                                <ul>
                                 <li><a href="../friend">朋友列表</a></li>
                                 <li class="current"><a href="../friend/group.aspx">朋友分组管理</a></li>
                                 <li><a href="../friend/online.aspx">在线好友</a></li>
                                 <li><a href="../friend/myrelationperson.aspx">可能认识的人</a></li>
                                 <li><a href="../friend/in.aspx">谁来看过我</a></li>
                                 <li><a href="../friend/out.aspx">我去看过谁</a></li>
                                 <li><a href="../friend/find-friend.aspx">找朋友</a></li>
                                 <li><a href="../friend/invite.aspx">邀请朋友</a></li>
                                 </ul>
                            </div>        
                     </div>     
                     
                     <div class="body_sec_all">
                        <asp:Panel ID="Panel1" runat="server" Visible="false">
                            <div class="msg-succ">删除分组成功！</div>
                         </asp:Panel>                        
                        <asp:Panel ID="Panel4" runat="server" Visible="false">
                            <div class="msg-succ">添加分组成功！</div>
                         </asp:Panel>                        
                         <asp:Panel ID="Panel3" runat="server" Visible="false">
                            <div class="msg-error">请正确填写分组名称！</div>
                         </asp:Panel>
                        <div class="content-reshow">
                            好友分组管理，把您的好友分组管理！编辑分组，请在好友里表中修改。
                        </div>
                         
                        <div>
                        <div id="Friendgroup" runat="server">
                        
                        </div>
                        <div class="pstr">
                            <a href="group.aspx?a=add"><span class="reshow">增加分组</span></a>
                        </div>
                        <asp:Panel ID="Panel2" runat="server" Visible="false">
                            <form id="form1" runat="server">
                                <asp:TextBox ID="CName" CssClass="f-text" runat="server"></asp:TextBox>
                                <asp:Button ID="Button1" CssClass="f-button" runat="server" Text="增加分组" OnClick="Button1_Click" />
                            </form>
                         </asp:Panel>                        
                         </div>
                     </div>
                     
                     </div>
            <!--底部-->
             <div class="divbottom">
              <%=this.GetHtmlFoot()%>
              </div>
              
             </div>
            </div>
            </div>
                                 
</body>
</html>
<script type="text/javascript">
function delf(fid,c)
{
    if(c==0)
   { 
         if(window.confirm("您确定要删除此分组吗？"))
         {
            window.top.location.href="group.aspx?a=del&id="+fid;
         }
   }
   else
   {
         if(window.confirm("此好友分组目录下有好友，您确定要删除吗？\n删除后好友分组将设置为未分组"))
         {
            window.top.location.href="group.aspx?a=del&id="+fid;
         }
   }
 }
</script>