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

<!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>
       <form id="form1" runat="server"> 
       <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 id="H2_GroupName" runat="server"></span></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=<%# 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>
                                    <li class="current"><a href="javascript:;">创建群组</a></li>
                                </ul>
                            </div>        
                     </div>   
                     
                     <div class="body_sec_all">
                        <div class="content-reshow pstr">
                           <%if(Request.QueryString["m"]=="1"){ %> 
                                创建群组第一步（共三步）：<span class="reshow"><a href="Creat_base.aspx?GroupID=<%=Request.QueryString["GroupID"] %>&m=<%=Request.QueryString["m"] %>">填写基本信息</a></span> &raquo; <a href="Creat_pic.aspx?GroupID=<%=Request.QueryString["GroupID"] %>&m=<%=Request.QueryString["m"] %>">社群群图片</a> &raquo; <a href="Creat_member.aspx?GroupID=<%=Request.QueryString["GroupID"] %>&m=<%=Request.QueryString["m"] %>">群成员设置</a>
                           <%}else{ %>
                                创建群组第一步（共三步）：<span class="reshow">填写基本信息</span> &raquo; 社群群图片 &raquo; 群成员设置
                                <%} %>
                                &nbsp; <a href="Group.aspx?GroupID=<%=Request.QueryString["GroupID"] %>">返回群组</a>  &nbsp; <a href="Group-m.aspx?GroupID=<%=Request.QueryString["GroupID"] %>">返回讨论区</a>
                        </div>
                          <div class="spline"></div>           
                        <div class="msg-succ" id="div_Suc" runat="server" style="display:none;"></div>
                        <div class="msg-error" id="div_Error" runat="server" style="display:none;"></div>
                        <div class="content nl">
                            <div class="nl">
                                    <div class="pstr">你可以从右边的列表里选择你的朋友邀请他们加入。</div>
                                     <ul class="w450" id="inviter_pendding"></ul>
                                    <div class="pstr bold font14">邀请附言（可选）</div> 
                                    <div class="pstr">
                                        <textarea id="msg" runat="server" class="f-text w300 height80"></textarea>
                                    </div>
                                     <div class="pstr">
                                            <input type="button" class="f-button"  value="发起群组邀请" runat="server" id="Button1" onserverclick="Button1_ServerClick" />
                                     </div>
                                    
                                    <div class="pstr">
                                            <div class="hdtitle w450">
                                                显示：
                                                <select name="viewtype" id="viewtype" onchange="getGroupMemberList(document.getElementById('showfolk_t'),this.value,document.form1.Hid_GroupID.value);">
                                                    <option value="0">所有成员</option>
                                                    <option value="2">管理员</option>
                                                    <option value="1">受邀请但未加入</option>
                                                </select>
                                            </div>
                                            <div class="pstr w450" id="showfolk_t" >
                                            </div>
                                    </div> 
                            </div>
                           <div class="nr w260 padding10  groupmember">
                                <div class="bold cpstr shenlan">选择要邀请朋友</div>
                                <div class="pstr">
                                        <input type="text" class="f-text" title="输入姓名，支持模糊搜索" id="gfsearch" style="width: 120px;" onchange="getFriendMemberFroGroup(document.getElementById('FriendList'),this.value,document.form1.Hid_GroupID.value);" />
                                        <asp:HiddenField ID="Hid_GroupID" runat="server" />
                                        <asp:HiddenField ID="Hid_FriendID" runat="server" />
                                        <div class="cpstr" id="FriendList" runat="server">
                                        </div>
                                </div>
                                
                                
                                
                           </div> 
                        </div>
                     
                     </div>
                     </div>
                       <!--底部-->
                     <div class="divbottom">
                      <%=this.GetHtmlFoot()%>
                      </div>                         
                     </div>
                     </div>
           </form>
      </div>
                     
</body>
</html>
<script language="javascript" type="text/javascript">
getGroupMemberList(document.getElementById('showfolk_t'),document.form1.viewtype.value,document.form1.Hid_GroupID.value);
</script>
