<%@ control language="VB" autoeventwireup="false" inherits="RCC_O365_CC_O365Teams, MachSol.MachPanel.Web" %>


<%@ Register Assembly="MachSol.MachPanel.Utility" Namespace="MachSol.MachPanel.Utility" TagPrefix="EM" %>
<%@ Register Src="~/Template/CC/Selectable_Selected_LBX.ascx" TagName="AddSelectableSelected" TagPrefix="EM" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="EM" %>
<%@ Register Src="~/Template/GVPager.ascx" TagName="Pager" TagPrefix="EM" %>

<div class="col-xs-12">
    <div class="row">
        <div class="products-step">

            <span id="div_Teams" runat="server" nowrap="true" class="label label-success">
                <asp:LinkButton ID="lb_Teams" runat="server" CausesValidation="false"
                    Text='<%$ Resources:Content, strTeams %>' />
            </span>

            <span id="div_Channels" runat="server" nowrap="true" class="label label-default">
                <asp:LinkButton ID="lb_Channels" runat="server" CausesValidation="false"
                    Text='<%$ Resources:Content, strChannels %>' />
            </span>

        </div>
    </div>
</div>


<asp:Panel ID="Pnl_Teams" runat="server">
    <div class="row">
        <div class="col-xs-12">
            <asp:Panel ID="Pnl_TeamsListing" runat="server">

                <div class="Row Div_OpsRow" id="Div_TeamsOptions" runat="server">
                    <div class="card">
                        <div class="header">
                            <h3>
                                <%= Resources.Content.SMI0423%>                                                                                                                                 
                            </h3>
                        </div>
                        <div class="body">
                            <div class="clearfix">
                                <asp:Button ID="Btn_AddTeam" class="btn btn-primary waves-effect btnAction" runat="server" Text='<%$ Resources:Content,strAddTeam %>' />
                             
                                <asp:Button ID="Btn_SyncAll" class="btn btn-primary waves-effect btnAction" runat="server" Text='<%$ Resources:Content,strSyncAllTeams %>' />
                                <asp:Button ID="btn_Export" class="btn btn-primary waves-effect btnAction" runat="server" Text='<%$ Resources:Content,strExport %>' />
                                <asp:Button ID="btn_Import" class="btn btn-primary waves-effect btnAction" runat="server" Text='<%$ Resources:Content,strImport %>' />
                                   <asp:Button ID="Btn_RemoveSelectedTeams" runat="server" Custom1="Custom" Style="display: none" Text="<%$ Resources:Content,GN0000278%>" CssClass="btn btn-primary waves-effect btnAction" />
                                <EM:ConfirmButtonExtender ID="CBE_RemoveSelectedTeams" ConfirmText="<%$ Resources:Content,DGN1119974%>" TargetControlID="Btn_RemoveSelectedTeams" runat="server">
                                </EM:ConfirmButtonExtender>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="row">
                    <div class="col-xs-12"></div>
                </div>
                <div class="Row" id="Div_TeamFilters" runat="server">
                    <%-- <div class="col-xs-12">--%>
                    <asp:Panel ID="Pnl_Btn_ApplyFilter" runat="server" CssClass="row" DefaultButton="Btn_ApplyFilter_Teams">
                        <div class="panel-group search-panel" id="AS_Teams" role="tablist" aria-multiselectable="true">
                            <div class="col-xs-12" role="tab" id="SH_Teams">

                                <div class="card">
                                    <div class="header" role="button" data-toggle="collapse" data-parent="#AS_Teams" href="#<%= CSB_Teams.ClientID%>" aria-expanded="true" aria-controls="SH_Teams">
                                        <h3>
                                            <%= Resources.Content.GN0000395%>
                                        </h3>
                                    </div>

                                    <div id="CSB_Teams" runat="server" class="body panel-collapse collapse" role="tabpanel" aria-labelledby="SH_Teams" aria-expanded="false">
                                        <div class="row">

                                            <div class="col-md-3 col-sm-6 col-xs-12">
                                                <div class="form-group form-float">
                                                    <div class="form-line">
                                                        <asp:TextBox ID="TxBx_SrchName" runat="server"></asp:TextBox>
                                                        <asp:Label ID="Label1" runat="server" class="form-label" EnableViewState="false" Text="<%$ Resources:Content,strName%>"></asp:Label>
                                                    </div>

                                                </div>

                                            </div>
                                            <div class="col-md-3 col-sm-6 col-xs-12">
                                                <div class="form-group form-float">
                                                    <div class="form-line">
                                                        <asp:TextBox ID="TxBx_SearchDescription" runat="server"></asp:TextBox>
                                                        <asp:Label ID="Label2" runat="server" class="form-label" EnableViewState="false" Text="<%$ Resources:Content,GN0000597%>"></asp:Label>
                                                    </div>

                                                </div>
                                            </div>
                                            <div class="col-md-3 col-sm-6 col-xs-12">
                                                <div class="form-group form-float">
                                                    <div class="form-line">
                                                        <asp:TextBox ID="TxBx_SearchOwner" runat="server"></asp:TextBox>
                                                        <asp:Label ID="Label3" runat="server" class="form-label" EnableViewState="false" Text="<%$ Resources:Content,strOwner%>"></asp:Label>
                                                    </div>

                                                </div>
                                            </div>
                                            <div class="col-md-3 col-sm-6 col-xs-12">
                                                <div class="form-group form-float">
                                                    <div class="form-line">
                                                        <asp:TextBox ID="TxBx_SearchMember" runat="server"></asp:TextBox>
                                                        <asp:Label ID="Label4" runat="server" class="form-label" EnableViewState="false" Text="<%$ Resources:Content,strMember%>"></asp:Label>
                                                    </div>

                                                </div>
                                            </div>
                                            <div class="col-md-3 col-sm-6 col-xs-12">
                                                <div class="form-group form-float">

                                                    <asp:Button ID="Btn_ApplyFilter_Teams" class="btn btn-primary waves-effect" runat="server" Text="<%$ Resources:Content,GN0000391%>" />
                                                    <asp:Button ID="Btn_ClearFilter_Teams" class="btn btn-primary waves-effect" Visible="false" runat="server" Text="<%$ Resources:Content,String289 %>" />

                                                </div>
                                            </div>

                                        </div>
                                    </div>
                                </div>

                            </div>
                        </div>
                    </asp:Panel>
                    <%--  </div>--%>
                </div>

                <div class="Row" id="Div_TeamsListing" runat="server">
                    <%-- <div class="col-xs-12">--%>
                    <EM:MPGridView ID="GV_TeamsListing" CssClass="table table-bordered table-striped table-hover" AllowSorting="false" AllowPaging="true"
                        EmptyDataText='<%$ Resources:Content, GN00001375 %>' runat="server" AutoGenerateColumns="False">
                        <Columns>
                            <asp:TemplateField ItemStyle-HorizontalAlign="Center" HeaderStyle-CssClass="col-xs-1" HeaderText='<%$ Resources:Content,GN0000370 %>'>
                                <HeaderTemplate>
                                    <asp:CheckBox class="option-menu" ID="ChkBx_All" runat="server" Text=" " onclick="SetCheckedHeader(this.checked, this,'All');" />
                                </HeaderTemplate>
                                <ItemTemplate>
                                    <asp:CheckBox class="option-menu" ID="ChkBx_Item" onclick="SetCheckedHeader(this.checked, this,'1');" Text="&nbsp;" runat="server"></asp:CheckBox>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderStyle-CssClass="col-xs-2" HeaderText='<%$ Resources:Content, strStatus %>'>
                                <ItemTemplate>
                                    <asp:Label ID="LB_Status" runat="server" Text="" />
                                </ItemTemplate>
                            </asp:TemplateField>

                            <asp:TemplateField SortExpression="Name" HeaderStyle-CssClass="col-xs-2" HeaderText='<%$ Resources:Content, strName %>'>
                                <ItemTemplate>
                                    <asp:Label ID="LB_Name" runat="server" Text="" />
                                </ItemTemplate>
                            </asp:TemplateField>

                            <asp:TemplateField SortExpression="Description" HeaderText="<%$ Resources:Content,GN0000597%>" HeaderStyle-CssClass="col-xs-2">
                                <ItemTemplate>
                                    <asp:Label ID="LB_Description" runat="server" />
                                </ItemTemplate>
                            </asp:TemplateField>


                            <asp:TemplateField HeaderText="<%$ Resources:Content,LastSync%>" HeaderStyle-CssClass="col-xs-2">
                                <ItemTemplate>
                                    <asp:Label ID="LB_LastSync" runat="server" />
                                </ItemTemplate>
                            </asp:TemplateField>

                            <asp:TemplateField HeaderText='<%$ Resources:Content, GN0000360 %>' HeaderStyle-CssClass="col-xs-2">
                                <ItemTemplate>


                                    <asp:Button ID="btn_Edit" runat="server" Text="<%$ Resources:Content,strEdit %>"
                                        CssClass="btn btn-primary waves-effect" CommandName="EditTeam" />

                                    <asp:Button ID="Btn_RemoveTeam" runat="server" Text="<%$ Resources:Content,strRemove %>"
                                        CssClass="btn btn-primary waves-effect btnAction" CommandName="RemoveTeam" />

                                    <EM:ConfirmButtonExtender ID="CBE_RemoveTeam" runat="server" ConfirmText="<%$Resources:Content,strRemoveConfirmation%>"
                                        TargetControlID="Btn_RemoveTeam">
                                    </EM:ConfirmButtonExtender>

                                    <asp:Button ID="btn_Sync" runat="server" Text="<%$ Resources:Content,strSync %>"
                                        CssClass="btn btn-primary waves-effect btnAction" CommandName="SyncTeam" />

                                    <asp:Button ID="btn_Channels" runat="server" Text="<%$ Resources:Content,strChannels %>"
                                        CssClass="btn btn-primary waves-effect " CommandName="TeamChannels" />

                                </ItemTemplate>

                            </asp:TemplateField>
                        </Columns>
                        <PagerTemplate>
                            <EM:Pager ID="Pager" runat="server" />
                        </PagerTemplate>
                    </EM:MPGridView>
                    <%--</div>--%>
                </div>

            </asp:Panel>

            <asp:Panel ID="Pnl_Team" runat="server" Visible="false">
                <div class="card">
                    <div class="header">
                        <h3>
                            <%= Resources.Content.strTeams %>                                                                                                                                 
                        </h3>
                    </div>
                    <div class="body">
                        <div class="row">
                            <div class="col-sm-3 col-xs-12 row-label">
                                *<asp:Literal ID="Literal48" runat="server" Text='<%$ Resources:Content,strName %>' />:
                            </div>
                            <div class="col-sm-4 col-xs-12">
                                <div class="form-group">
                                    <div class="form-line">
                                        <asp:TextBox ID="TxBx_Name" runat="server"></asp:TextBox>
                                    </div>
                                </div>
                                <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server"
                                    ControlToValidate="TxBx_Name"
                                    Display="None" ValidationGroup="AddTeam" SetFocusOnError="True"></asp:RequiredFieldValidator>

                            </div>
                        </div>

                        <div class="row">
                            <div class="col-sm-3 col-xs-12 row-label">
                                <asp:Literal ID="Literal1" runat="server" Text='<%$ Resources:Content,strDescription %>' />:
                            </div>
                            <div class="col-sm-4 col-xs-12">
                                <div class="form-group">
                                    <div class="form-line">
                                        <asp:TextBox ID="TxBx_Description" runat="server"></asp:TextBox>
                                    </div>
                                </div>
                            </div>
                        </div>

                        <div class="row">
                            <div class="col-sm-3 col-xs-12 row-label">
                                <asp:Literal ID="Literal2" runat="server" Text='<%$ Resources:Content,Type %>' />:
                            </div>
                            <div class="col-sm-4 col-xs-12">
                                <asp:RadioButton ID="RB_Public" runat="server" Text="<%$ Resources:Content,VPS990 %>" GroupName="Type" Checked="true"></asp:RadioButton>
                                <asp:RadioButton ID="RB_Private" runat="server" Text="<%$ Resources:Content,VPS991 %>" GroupName="Type"></asp:RadioButton>
                            </div>
                        </div>



                        <div class="row">
                            <div class="col-sm-3 col-xs-12 row-label">
                                <asp:Literal ID="Literal11" runat="server" Text='<%$ Resources:Content,strGiphyContentRating %>' />:
                            </div>
                            <div class="col-sm-4 col-xs-12">
                                <asp:RadioButton ID="RB_Strict" runat="server" Text="<%$ Resources:Content,strStrict %>" GroupName="GiphyContentRating" Checked="true"></asp:RadioButton>
                                <asp:RadioButton ID="RB_Moderate" runat="server" Text="<%$ Resources:Content,strModerate %>" GroupName="GiphyContentRating"></asp:RadioButton>
                            </div>
                        </div>

                        <div class="row">
                            <div class="col-sm-3 col-xs-12">
                            </div>
                            <div class="col-sm-3 col-xs-12">
                                <asp:CheckBox ID="ChBx_AllowUserEditMessages" Checked="true" runat="server" Text='<%$ Resources:Content,strAllowUserEditMessages %>'></asp:CheckBox>
                            </div>
                            <div class="col-sm-3 col-xs-12">
                                <asp:CheckBox ID="ChBx_AllowUserDeleteMessages" Checked="true" runat="server" Text='<%$ Resources:Content,strAllowUserDeleteMessages %>'></asp:CheckBox>
                            </div>
                            <div class="col-sm-3 col-xs-12">
                                <asp:CheckBox ID="ChBx_AllowOwnerDeleteMessages" Checked="true" runat="server" Text='<%$ Resources:Content,strAllowOwnerDeleteMessages %>'></asp:CheckBox>
                            </div>

                            <div class="col-sm-3 col-xs-12">
                            </div>
                            <div class="col-sm-3 col-xs-12">
                                <asp:CheckBox ID="ChBx_AllowCreateUpdateChannels" Checked="true" runat="server" Text='<%$ Resources:Content,strAllowCreateUpdateChannels %>'></asp:CheckBox>
                            </div>
                            <div class="col-sm-3 col-xs-12">
                                <asp:CheckBox ID="ChBx_AllowDeleteChannels" Checked="true" runat="server" Text='<%$ Resources:Content,strAllowDeleteChannels %>'></asp:CheckBox>
                            </div>
                            <div class="col-sm-3 col-xs-12">
                                <asp:CheckBox ID="ChBx_AllowAddRemoveApps" Checked="true" runat="server" Text='<%$ Resources:Content,strAllowAddRemoveApps %>'></asp:CheckBox>
                            </div>

                            <div class="col-sm-3 col-xs-12">
                            </div>
                            <div class="col-sm-3 col-xs-12">
                                <asp:CheckBox ID="ChBx_AllowCreateUpdateRemoveTabs" Checked="true" runat="server" Text='<%$ Resources:Content,strAllowCreateUpdateRemoveTabs %>'></asp:CheckBox>
                            </div>
                            <div class="col-sm-3 col-xs-12">
                                <asp:CheckBox ID="ChBx_AllowCreateUpdateRemoveConnectors" Checked="true" runat="server" Text='<%$ Resources:Content,strAllowCreateUpdateRemoveConnectors %>'></asp:CheckBox>
                            </div>
                            <div class="col-sm-3 col-xs-12">
                                <asp:CheckBox ID="ChBx_AllowTeamMentions" runat="server" Checked="true" Text='<%$ Resources:Content,strAllowTeamMentions %>'></asp:CheckBox>
                            </div>

                            <div class="col-sm-3 col-xs-12">
                            </div>
                            <div class="col-sm-3 col-xs-12">
                                <asp:CheckBox ID="ChBx_AllowChannelMentions" Checked="true" runat="server" Text='<%$ Resources:Content,strAllowChannelMentions %>'></asp:CheckBox>
                            </div>
                            <div class="col-sm-3 col-xs-12">
                                <asp:CheckBox ID="ChBx_AllowGiphy" Checked="true" runat="server" Text='<%$ Resources:Content,strAllowGiphy %>'></asp:CheckBox>
                            </div>
                            <div class="col-sm-3 col-xs-12">
                                <asp:CheckBox ID="ChBx_AllowStickersAndMemes" Checked="true" runat="server" Text='<%$ Resources:Content,strAllowStickersAndMemes %>'></asp:CheckBox>
                            </div>

                            <div class="col-sm-3 col-xs-12">
                            </div>
                            <div class="col-sm-3 col-xs-12">
                                <asp:CheckBox ID="ChBx_AllowCustomMemes" Checked="true" runat="server" Text='<%$ Resources:Content,strAllowCustomMemes %>'></asp:CheckBox>
                            </div>

                        </div>

                        <div class="row">
                            <div class="col-sm-3 col-xs-12 row-label">
                                <asp:Literal ID="Literal3" runat="server" Text='<%$ Resources:Content,strOwners %>' />:
                            </div>
                            <div class="col-xs-12">
                                <EM:AddSelectableSelected ID="UCOwners" runat="server" SortByValue="false" />
                            </div>
                        </div>

                        <div class="row">
                            <div class="col-sm-3 col-xs-12 row-label">
                                <asp:Literal ID="Literal10" runat="server" Text='<%$ Resources:Content,strMembers %>' />:
                            </div>
                            <div class="col-xs-12">
                                <EM:AddSelectableSelected ID="UCMembers" runat="server" SortByValue="false" />
                            </div>
                        </div>


                        <div class="row">
                            <div class="col-xs-12">
                                <%--                                <asp:HiddenField ID="HF_AddPhoneNumber" Value="0" runat="server" />--%>
                                <asp:ValidationSummary ID="ValidationSummary3" runat="server" ShowMessageBox="true" ShowSummary="false"
                                    ValidationGroup="AddTeam" HeaderText="<%$ Resources:Content,EM000001%>" />
                                <asp:Button ID="Btn_Save_Team" class="btn btn-primary waves-effect btnAction" ValidationGroup="AddTeam" CausesValidation="true" runat="server" Text='<%$ Resources:Content,GN0000281 %>' />
                                <asp:Button ID="Btn_Cancel_Team" CausesValidation="false" runat="server" Text='<%$ Resources:Content,GN0000572 %>' class="btn btn-primary waves-effect" />
                            </div>
                        </div>
                    </div>
                </div>

            </asp:Panel>

            <div class="card" id="Pnl_TeamImport" runat="server" visible="false">
                <div class="header">
                    <h3><%= Resources.Content.strBulkImportTeams%></h3>
                </div>
                <div class="body">

                    <div class="row">
                        <div class="col-sm-3 col-xs-12 row-label">
                            <label>
                                <asp:Literal ID="Ltl_BrowseFile" runat="server" Text="<%$ Resources:Content,selectExcelFileToImport %>"></asp:Literal>:</label>
                        </div>
                        <div class="col-sm-1 col-xs-12">
                            <div class="form-group">
                                <div class="form-group">
                                    <div class="fileupload fileupload-new" data-provides="fileupload">
                                        <span class="btn btn-primary btn-file"><span class="fileupload-new"><%= Resources.Content.strSelectFile%></span>
                                            <span class="fileupload-exists"><%= Resources.Content.GN0000385%></span>
                                            <asp:FileUpload ID="FU_BrowseFile" runat="server" />
                                        </span>
                                        <span class="fileupload-preview"></span>
                                        <a href="#" class="close fileupload-exists" data-dismiss="fileupload" style="float: none">×</a>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <div class="col-sm-1 col-xs-12">
                            <asp:LinkButton ID="LB_DownloadSample"  runat="server" Text="<%$ Resources:Content,DownloadSampleFile %>" class="btn btn-primary waves-effect"></asp:LinkButton>
                        </div>
                    </div>
                    <div class="row">
                        <div class="col-xs-12">
                            <asp:RadioButton ID="rdbCreate" runat="server" Text="<%$ Resources:Content,CreateNew %>" GroupName="Import" Checked="true"></asp:RadioButton><br />
                            <asp:RadioButton ID="rdbCreateUpdate" runat="server" Text="<%$ Resources:Content,strCreateNewUpdateExisting %>" GroupName="Import"></asp:RadioButton>
                        </div>
                    </div>
                    <div class="row">
                        <div class="col-xs-12">
                            <asp:Button ID="Btn_ImportFromFile" runat="server" Text="<%$ Resources:Content,StrImportTeams%>" class="btn btn-primary waves-effect btnAction" />
                            <asp:Button ID="Btn_CancelImport" runat="server" Text="<%$ Resources:Content,GN0000572%>" class="btn btn-primary waves-effect" />
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</asp:Panel>

<asp:Panel ID="Pnl_Channels" runat="server" Visible="false">
    <div class="row">
        <div class="col-xs-12">
            <asp:Panel ID="Pnl_ChannelListing" runat="server">
                <div class="Row Div_OpsRow" id="DivChannelOption" runat="server">
                    <div class="card">
                        <div class="header">
                            <h3>
                                <%= Resources.Content.SMI0423%>                                                                                                                                 
                            </h3>
                        </div>
                        <div class="body">
                            <div class="clearfix">
                                <asp:Button ID="btn_AddChannel" class="btn btn-primary waves-effect btnAction" runat="server" Text='<%$ Resources:Content,strAddChannel %>' />
                           
                                <asp:Button ID="btn_SyncAllChannels" class="btn btn-primary waves-effect btnAction" runat="server" Text='<%$ Resources:Content,strSyncAllChannels %>' />
                                <asp:Button ID="btn_ChannelExport" class="btn btn-primary waves-effect btnAction" runat="server" Text='<%$ Resources:Content,strExport %>' />
                                <asp:Button ID="btn_ChannelImport" class="btn btn-primary waves-effect btnAction" runat="server" Text='<%$ Resources:Content,strImport %>' />
                                     <asp:Button ID="Btn_RemoveSelectedChannels" runat="server" Custom1="Custom" Style="display: none" Text="<%$ Resources:Content,GN0000278%>" CssClass="btn btn-primary waves-effect btnAction" />
                                <EM:ConfirmButtonExtender ID="CBE_RemoveSelectedChannels" ConfirmText="<%$ Resources:Content,DGN1119974%>" TargetControlID="Btn_RemoveSelectedChannels" runat="server">
                                </EM:ConfirmButtonExtender>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="row">
                    <div class="col-xs-12"></div>
                </div>
                <div class="Row" id="Div_ChannelFilter" runat="server">

                    <asp:Panel ID="Pnl_Btn_ApplyFilterChannel" runat="server" CssClass="row" DefaultButton="Btn_ApplyFilter_Channel">
                        <div class="panel-group search-panel" id="AS_Channel" role="tablist" aria-multiselectable="true">
                            <div class="col-xs-12" role="tab" id="SH_Channel">

                                <div class="card">
                                    <div class="header" role="button" data-toggle="collapse" data-parent="#AS_Channel" href="#<%= CSB_Channel.ClientID%>" aria-expanded="true" aria-controls="SH_Channel">
                                        <h3>
                                            <%= Resources.Content.GN0000395%>
                                        </h3>
                                    </div>

                                    <div id="CSB_Channel" runat="server" class="body panel-collapse collapse" role="tabpanel" aria-labelledby="SH_Channel" aria-expanded="false">
                                        <div class="row">

                                            <div class="col-md-3 col-sm-6 col-xs-12">
                                                <div class="form-group form-float">

                                                    <asp:DropDownList ID="ddl_TeamSearch" runat="server"></asp:DropDownList>

                                                </div>
                                            </div>

                                            <div class="col-md-3 col-sm-6 col-xs-12">
                                                <div class="form-group form-float">
                                                    <div class="form-line">
                                                        <asp:TextBox ID="TxBx_srchChannelName" runat="server"></asp:TextBox>
                                                        <asp:Label ID="Label5" runat="server" class="form-label" EnableViewState="false" Text="<%$ Resources:Content,strName%>"></asp:Label>
                                                    </div>
                                                </div>
                                            </div>

                                            <div class="col-md-3 col-sm-6 col-xs-12">
                                                <div class="form-group form-float">
                                                    <div class="form-line">
                                                        <asp:TextBox ID="TxBx_srchChannelDescription" runat="server"></asp:TextBox>
                                                        <asp:Label ID="Label6" runat="server" class="form-label" EnableViewState="false" Text="<%$ Resources:Content,GN0000597%>"></asp:Label>
                                                    </div>
                                                </div>
                                            </div>

                                            <div class="col-md-3 col-sm-6 col-xs-12">
                                                <div class="form-group form-float">

                                                    <asp:DropDownList ID="ddl_Type" runat="server">
                                                    </asp:DropDownList>

                                                </div>
                                            </div>

                                            <%--<div class="col-md-3 col-sm-6 col-xs-12">
                                                <div class="form-group form-float">
                                                    <div class="form-line">
                                                        <asp:TextBox ID="TxBx_srchChannelOwner" runat="server"></asp:TextBox>
                                                        <asp:Label ID="Label7" runat="server" class="form-label" EnableViewState="false" Text="<%$ Resources:Content,strOwner%>"></asp:Label>
                                                    </div>
                                                </div>
                                            </div>

                                            <div class="col-md-3 col-sm-6 col-xs-12">
                                                <div class="form-group form-float">
                                                    <div class="form-line">
                                                        <asp:TextBox ID="TxBx_srchChannelMember" runat="server"></asp:TextBox>
                                                        <asp:Label ID="Label8" runat="server" class="form-label" EnableViewState="false" Text="<%$ Resources:Content,strMember%>"></asp:Label>
                                                    </div>

                                                </div>
                                            </div>--%>
                                            <div class="col-md-3 col-sm-6 col-xs-12">
                                                <div class="form-group form-float">

                                                    <asp:Button ID="Btn_ApplyFilter_Channel" class="btn btn-primary waves-effect" runat="server" Text="<%$ Resources:Content,GN0000391%>" />
                                                    <asp:Button ID="btn_Clear_Channel" class="btn btn-primary waves-effect" Visible="false" runat="server" Text="<%$ Resources:Content,String289 %>" />

                                                </div>
                                            </div>

                                        </div>
                                    </div>
                                </div>

                            </div>
                        </div>
                    </asp:Panel>
                </div>

                <div class="Row" id="Div_ChannelListing" runat="server">
                    <%-- <div class="col-xs-12">--%>
                    <EM:MPGridView ID="GV_ChannelListing" CssClass="table table-bordered table-striped table-hover" AllowSorting="false" AllowPaging="true"
                        EmptyDataText='<%$ Resources:Content, GN00001375 %>' runat="server" AutoGenerateColumns="False">
                        <Columns>
                            <asp:TemplateField ItemStyle-HorizontalAlign="Center" HeaderStyle-CssClass="col-xs-1" HeaderText='<%$ Resources:Content,GN0000370 %>'>
                                <HeaderTemplate>
                                    <asp:CheckBox class="option-menu" ID="ChkBx_All" runat="server" Text=" " onclick="SetCheckedHeader(this.checked, this,'All');" />
                                </HeaderTemplate>
                                <ItemTemplate>
                                    <asp:CheckBox class="option-menu" ID="ChkBx_Item" onclick="SetCheckedHeader(this.checked, this,'1');" Text="&nbsp;" runat="server"></asp:CheckBox>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderStyle-CssClass="col-xs-2" HeaderText='<%$ Resources:Content, strStatus %>'>
                                <ItemTemplate>
                                    <asp:Label ID="LB_Status" runat="server" Text="" />
                                </ItemTemplate>
                            </asp:TemplateField>

                            <asp:TemplateField SortExpression="Name" HeaderStyle-CssClass="col-xs-2" HeaderText='<%$ Resources:Content, strName %>'>
                                <ItemTemplate>
                                    <asp:Label ID="LB_Name" runat="server" Text="" />
                                </ItemTemplate>
                            </asp:TemplateField>

                            <asp:TemplateField SortExpression="Description" HeaderText="<%$ Resources:Content,GN0000597%>" HeaderStyle-CssClass="col-xs-2">
                                <ItemTemplate>
                                    <asp:Label ID="LB_Description" runat="server" />
                                </ItemTemplate>
                            </asp:TemplateField>

                            <asp:TemplateField SortExpression="Type" HeaderStyle-CssClass="col-xs-2" HeaderText='<%$ Resources:Content, Type %>'>
                                <ItemTemplate>
                                    <asp:Label ID="LB_Type" runat="server" Text="" />
                                </ItemTemplate>
                            </asp:TemplateField>

                            <asp:TemplateField HeaderText="<%$ Resources:Content,strTeam%>" HeaderStyle-CssClass="col-xs-2">
                                <ItemTemplate>
                                    <asp:Label ID="LB_Team" runat="server" />
                                </ItemTemplate>
                            </asp:TemplateField>

                            <asp:TemplateField HeaderText="<%$ Resources:Content,LastSync%>" HeaderStyle-CssClass="col-xs-2">
                                <ItemTemplate>
                                    <asp:Label ID="LB_LastSync" runat="server" />
                                </ItemTemplate>
                            </asp:TemplateField>

                            <%--     <asp:TemplateField HeaderText="<%$ Resources:Content,strOwners%>" HeaderStyle-CssClass="col-xs-2">
                                <ItemTemplate>
                                    <asp:Label ID="LB_Owners" runat="server" />
                                </ItemTemplate>
                            </asp:TemplateField>

                            <asp:TemplateField HeaderText="<%$ Resources:Content,strMembers%>" HeaderStyle-CssClass="col-xs-2">
                                <ItemTemplate>
                                    <asp:Label ID="LB_Members" runat="server" />
                                </ItemTemplate>
                            </asp:TemplateField>--%>

                            <asp:TemplateField HeaderText='<%$ Resources:Content, GN0000360 %>' HeaderStyle-CssClass="col-xs-2">
                                <ItemTemplate>
                                    <asp:Button ID="btn_Edit" runat="server" Text="<%$ Resources:Content,strEdit %>"
                                        CssClass="btn btn-primary waves-effect" CommandName="EditChannel" />

                                    <asp:Button ID="Btn_RemoveChannel" runat="server" Text="<%$ Resources:Content,strRemove %>"
                                        CssClass="btn btn-primary waves-effect btnAction" CommandName="RemoveChannel" />

                                    <EM:ConfirmButtonExtender ID="CBE_RemoveChannel" runat="server" ConfirmText="<%$Resources:Content,strRemoveConfirmation%>"
                                        TargetControlID="Btn_RemoveChannel">
                                    </EM:ConfirmButtonExtender>

                                    <asp:Button ID="btn_Sync" runat="server" Text="<%$ Resources:Content,strSync %>"
                                        CssClass="btn btn-primary waves-effect btnAction" CommandName="SyncChannel" />

                                </ItemTemplate>

                            </asp:TemplateField>
                        </Columns>
                        <PagerTemplate>
                            <EM:Pager ID="Pager" runat="server" />
                        </PagerTemplate>
                    </EM:MPGridView>
                    <%--</div>--%>
                </div>
            </asp:Panel>

            <asp:Panel ID="pnl_Channel" runat="server" Visible="false">
                <div class="card">
                    <div class="header">
                        <h3>
                            <%= Resources.Content.strChannels %>                                                                                                                                 
                        </h3>
                    </div>
                    <div class="body">

                        <div class="row">
                            <div class="col-sm-3 col-xs-12 row-label">
                                <asp:Literal ID="Literal8" runat="server" Text='<%$ Resources:Content,strTeam %>' />:
                            </div>
                            <div class="col-sm-4 col-xs-12">
                                <div class="form-group">
                                    <div class="form-line">
                                        <asp:DropDownList ID="ddl_Teams" runat="server"></asp:DropDownList>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <div class="row">
                            <div class="col-sm-3 col-xs-12 row-label">
                                *<asp:Literal ID="Literal4" runat="server" Text='<%$ Resources:Content,strName %>' />:
                            </div>
                            <div class="col-sm-4 col-xs-12">
                                <div class="form-group">
                                    <div class="form-line">
                                        <asp:TextBox ID="TxBx_ChannelName" runat="server"></asp:TextBox>
                                    </div>
                                </div>
                                <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server"
                                    ControlToValidate="TxBx_ChannelName"
                                    Display="None" ValidationGroup="AddChannel" SetFocusOnError="True"></asp:RequiredFieldValidator>

                            </div>
                        </div>

                        <div class="row">
                            <div class="col-sm-3 col-xs-12 row-label">
                                <asp:Literal ID="Literal5" runat="server" Text='<%$ Resources:Content,strDescription %>' />:
                            </div>
                            <div class="col-sm-4 col-xs-12">
                                <div class="form-group">
                                    <div class="form-line">
                                        <asp:TextBox ID="TxBx_ChannelDesc" runat="server"></asp:TextBox>
                                    </div>
                                </div>
                            </div>
                        </div>

                        <div class="row">
                            <div class="col-sm-3 col-xs-12 row-label">
                                <asp:Literal ID="Literal6" runat="server" Text='<%$ Resources:Content,Type %>' />:
                            </div>
                            <div class="col-sm-4 col-xs-12">
                                <asp:RadioButton ID="rdbPublicChannel" runat="server" Text="<%$ Resources:Content,SPLA05 %>" GroupName="ChannelType" Checked="true" AutoPostBack="true"></asp:RadioButton>
                                <asp:RadioButton ID="rdbPrivateChannel" runat="server" Text="<%$ Resources:Content,VPS991 %>" GroupName="ChannelType" AutoPostBack="true"></asp:RadioButton>
                            </div>
                        </div>
                        <div class="row" runat="server" id="divChlOwner" visible="false">
                            <div class="col-sm-3 col-xs-12 row-label">
                                <asp:Literal ID="Literal16" runat="server" Text='<%$ Resources:Content,strOwners %>' />:
                            </div>
                            <div class="col-xs-12">
                                <EM:AddSelectableSelected ID="UCChannelOwners" runat="server" SortByValue="false" />
                            </div>
                        </div>

                        <div class="row" runat="server" id="divChlMember" visible="false">
                            <div class="col-sm-3 col-xs-12 row-label">
                                <asp:Literal ID="Literal7" runat="server" Text='<%$ Resources:Content,strUsers %>' />:
                            </div>
                            <div class="col-xs-12">
                                <EM:AddSelectableSelected ID="UCChannelMembers" runat="server" SortByValue="false" />
                            </div>
                        </div>


                        <div class="row">
                            <div class="col-xs-12">
                                <%-- <asp:HiddenField ID="HF_AddPhoneNumber" Value="0" runat="server" />--%>
                                <asp:ValidationSummary ID="ValidationSummary1" runat="server" ShowMessageBox="true" ShowSummary="false"
                                    ValidationGroup="AddChannel" HeaderText="<%$ Resources:Content,EM000001%>" />
                                <asp:Button ID="Btn_SaveChannel" class="btn btn-primary waves-effect btnAction" ValidationGroup="AddChannel" CausesValidation="true" runat="server" Text='<%$ Resources:Content,GN0000281 %>' />
                                <asp:Button ID="Btn_CancelChannel" CausesValidation="false" runat="server" Text='<%$ Resources:Content,GN0000572 %>' class="btn btn-primary waves-effect" />
                            </div>
                        </div>
                    </div>
                </div>
            </asp:Panel>

            <div class="card" id="Pnl_ChannelImprt" runat="server" visible="false">
                <div class="header">
                    <h3><%= Resources.Content.strBulkImportChannels%></h3>
                </div>
                <div class="body">

                    <div class="row">
                        <div class="col-sm-3 col-xs-12 row-label">
                            <label>
                                <asp:Literal ID="Literal9" runat="server" Text="<%$ Resources:Content,selectExcelFileToImport %>"></asp:Literal>:</label>
                        </div>
                        <div class="col-sm-1 col-xs-12">
                            <div class="form-group">
                                <div class="form-group">
                                    <div class="fileupload fileupload-new" data-provides="fileupload">
                                        <span class="btn btn-primary btn-file"><span class="fileupload-new"><%= Resources.Content.strSelectFile%></span>
                                            <span class="fileupload-exists"><%= Resources.Content.GN0000385%></span>
                                            <asp:FileUpload ID="FU_BrowseFileChannel" runat="server" />
                                        </span>
                                        <span class="fileupload-preview"></span>
                                        <a href="#" class="close fileupload-exists" data-dismiss="fileupload" style="float: none">×</a>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <div class="col-sm-1 col-xs-12">
                            <asp:LinkButton ID="LB_DownloadSampleChannel" runat="server" Text="<%$ Resources:Content,DownloadSampleFile %>" class="btn btn-primary waves-effect"></asp:LinkButton>
                        </div>
                    </div>
                    <div class="row">
                        <div class="col-xs-12">
                            <asp:RadioButton ID="rdbCreateChannel" runat="server" Text="<%$ Resources:Content,CreateNew %>" GroupName="Import" Checked="true"></asp:RadioButton><br />
                            <asp:RadioButton ID="rdbCreateUpdateChannel" runat="server" Text="<%$ Resources:Content,strCreateNewUpdateExisting %>" GroupName="Import"></asp:RadioButton>
                        </div>
                    </div>
                    <div class="row">
                        <div class="col-xs-12">
                            <asp:Button ID="Btn_ImportChannel" runat="server" Text="<%$ Resources:Content,StrImportChannels%>" class="btn btn-primary waves-effect btnAction" />
                            <asp:Button ID="Btn_ImportChannelCancel" runat="server" Text="<%$ Resources:Content,GN0000572%>" class="btn btn-primary waves-effect" />
                        </div>
                    </div>
                </div>
            </div>
        </div>

    </div>
</asp:Panel>

