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

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="EM" %>
<%@ Register Src="~/RCC/Exchange/CC/AddEditMBTemplate.ascx" TagName="AddEditMBTemplate" TagPrefix="UC" %>
<%@ Register Src="~/Template/CC/Selectable_Selected_LBX.ascx" TagName="AddSelectableSelected" TagPrefix="EM" %>

<script type="text/javascript">
    $(document).ready(function () {

        $("#" + $(".currentSection").val()).css("display", "block");
        $("a[href='" + $(".currentSection").val() + "']").parent().addClass("current");

        $(".O365-detail-content").not("#" + $(".currentSection").val()).css("display", "none");

        $(".O365-Operations a").click(function (event) {
            event.preventDefault();
            $(this).parent().addClass("current");
            $(this).parent().siblings().removeClass("current");
            var tab = $(this).attr("href");
            $(".currentSection").val(tab);
            $(".O365-detail-content").not("#" + tab).css("display", "none");
            $("#" + tab).fadeIn();
            return false;
        });

        $(".Rbtn-Show-Role").click(function () {

            $(".select-role").show();
        });

        $(".Rbtn-Hide-Role").click(function () {

            $(".select-role").hide();
        });

        //if (update != undefined)
        //    update();

        setTimeout(function () { $("input[type='checkbox'], input[type='radio']").trigger("change"); /*$("input[type='checkbox']").trigger("click");*/ }, 300);

    });

</script>

<div class="row">
    <div class="col-xs-12">
        <div class="card">
            <div class="header">
                <h3>
                    <asp:Literal ID="Literal3" runat="server" Text="<%$ Resources:Content,ADUsers%>"
                        EnableViewState="false">
                    </asp:Literal>:</h3>
            </div>
            <div class="body" id="Tbl_AllUsers" runat="server">
                <div class="row">
                    <div class="col-sm-5 col-xs-12 row-label">
                        <label>
                            <asp:Literal ID="Ltrl_OU" runat="server" Text="<%$Resources:Content,strSelectOrganization %>"></asp:Literal>:</label>
                    </div>
                    <div class="col-sm-4 col-xs-12">
                        <div class="form-group">
                            <asp:DropDownList ID="DDL_OU" runat="server" AutoPostBack="true" />
                        </div>
                    </div>
                </div>

                <div class="row">
                    <div class="col-xs-12 row-label">
                        <%= Resources.Content.SelectUserForBulkOp %>
                    </div>
                </div>                

                <div class="row">
                    <div class="col-xs-12">
                        <EM:AddSelectableSelected ID="UCUsers" runat="server" />
                    </div>
                </div>
            </div>
        </div>
        <br />
        <div class="card">
            <div class="header">
                <h3>
                    <asp:Literal ID="Literal4" runat="server" Text="<%$ Resources:Content,GN00001320%>" EnableViewState="false" />
                </h3>
            </div>
            <div class="body">
                <asp:Button ID="Btn_Delete" class="btn btn-primary waves-effect btnAction" runat="server" Text="<%$ Resources:Content,GN0000278%>" />
                <asp:Button ID="Btn_Disable" CssClass="btn btn-primary waves-effect  btnAction" runat="server" Text='<%$ Resources:Content,GN00001025%>' />
                <asp:Button ID="Btn_Enable" CssClass="btn btn-primary waves-effect  btnAction" runat="server" Text='<%$ Resources:Content,GN00001024%>' />
                <asp:Button ID="Btn_UnLock" class="btn btn-primary waves-effect  btnAction" runat="server" Text="<%$ Resources:Content,GN0000630%>" />
            </div>
        </div>
        <br />
        <div class="row">
            <div class="col-xs-12 ">
                <div class="col-xs-12 col-sm-3 no-padding">
                    <div id="Pnl_Operations" runat="server" class="O365-Operations">

                        <input type="hidden" id="HF_CurrentSection" runat="server" class="currentSection" />
                        <div class="O365-Operations-Links">
                            <ul class="nav-pills nav-stacked">
                                <li><a href="GeneralInformation">
                                    <asp:Literal ID="CSB_GeneralInformation" runat="server" Text="<%$ Resources:Content,GN000183%>"
                                        EnableViewState="false" /></a></li>
                                <li><a href="GeneralSettings">
                                    <asp:Literal ID="AD_GeneralSettings" runat="server" Text="<%$ Resources:Content,SM400028%>"
                                        EnableViewState="false" /></a></li>
                                <li id="li_passwordsettings" runat="server"><a href="PasswordSettings">
                                    <asp:Literal ID="AD_PasswordSettings" runat="server" Text="<%$ Resources:Content,PasswordSettings%>"
                                        EnableViewState="false" /></a></li>
                                <li id="Li_GroupMembership" runat="server"><a href="GroupMembership">
                                    <asp:Literal ID="AD_GroupMembership" runat="server" Text="<%$ Resources:Content,GroupMembership%>"
                                        EnableViewState="false" />
                                </a></li>

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

                <div class="col-xs-12 col-sm-9">
                    <%--GeneralInformation--%>

                    <div id="GeneralInformation" class="card O365-detail-content">
                        <div class="header">
                            <h3>
                                <asp:Label
                                    ID="Label25" runat="server" Text='<%$Resources:Content, GN000183%>' EnableViewState="false" />
                            </h3>
                        </div>
                        <div class="body">
                            <div class="row">
                                <div class="col-sm-3 col-xs-12 row-label">
                                    <asp:Literal ID="Literal41" runat="server" EnableViewState="false" Text="<%$ Resources:Content,GN0000374%>" />
                                    :
                                </div>
                                <div class="col-sm-5 col-xs-12">
                                    <div class="form-group">
                                        <div class="form-line">
                                            <asp:TextBox ID="TxBx_Departement" runat="server" disabled="true"></asp:TextBox>
                                        </div>
                                    </div>
                                </div>
                                <div class="col-sm-4 col-xs-12">
                                    <asp:CheckBox ID="CB_UpdateDepartment" runat="server" Text="<%$ Resources:Content,GN0000654 %>" />
                                </div>
                            </div>
                            <div class="row">
                                <div class="col-sm-3 col-xs-12 row-label">
                                    <asp:Literal ID="Literal5" runat="server" EnableViewState="false" Text="<%$ Resources:Content,GN00001134%>" />
                                    :
                                </div>
                                <div class="col-sm-5 col-xs-12">
                                    <div class="form-group">
                                        <div class="form-line">
                                            <asp:TextBox ID="TxBx_Company" runat="server" disabled="true"></asp:TextBox>
                                        </div>
                                    </div>
                                </div>
                                <div class="col-sm-4 col-xs-12">
                                    <asp:CheckBox ID="CB_UpdateCompany" runat="server" Text="<%$ Resources:Content,GN0000654 %>" />
                                </div>
                            </div>
                            <div class="row">
                                <div class="col-sm-3 col-xs-12 row-label">
                                    <asp:Literal ID="Lbl_Office" runat="server" EnableViewState="false" Text="<%$ Resources:Content,DGN1110359%>" />:
                                </div>
                                <div class="col-sm-5 col-xs-12">
                                    <div class="form-group">
                                        <div class="form-line">
                                            <asp:TextBox ID="TxBx_Office" runat="server" disabled="true"></asp:TextBox>
                                        </div>
                                    </div>
                                </div>
                                <div class="col-sm-4 col-xs-12">
                                    <asp:CheckBox ID="CB_UpdateOffice" runat="server" Text="<%$ Resources:Content,GN0000654 %>" />
                                </div>
                            </div>
                            <div class="row">
                                <div class="col-sm-3 col-xs-12 row-label">
                                    <asp:Literal ID="Lbl_BusinessPhone" runat="server" EnableViewState="false" Text="<%$ Resources:Content,DGN1110537%>" />:
                                </div>
                                <div class="col-sm-5 col-xs-12">
                                    <div class="form-group">
                                        <div class="form-line">
                                            <asp:TextBox ID="TxBx_BusinessPhone" runat="server" disabled="true"></asp:TextBox>
                                        </div>
                                    </div>
                                </div>
                                <div class="col-sm-4 col-xs-12">
                                    <asp:CheckBox ID="CB_UpdateBusinessPhone" runat="server" Text="<%$ Resources:Content,GN0000654 %>" />
                                </div>
                            </div>
                            <div class="row">
                                <div class="col-sm-3 col-xs-12 row-label">
                                    <asp:Literal ID="Literal32" runat="server" EnableViewState="false" Text="<%$ Resources:Content,GN0000886%>" />:
                                </div>
                                <div class="col-sm-5 col-xs-12">
                                    <div class="form-group">
                                        <div class="form-line">
                                            <asp:TextBox ID="TxBx_Fax" runat="server" disabled="true"></asp:TextBox>
                                        </div>
                                    </div>
                                </div>
                                <div class="col-sm-4 col-xs-12">
                                    <asp:CheckBox ID="CB_UpdateFax" runat="server" Text="<%$ Resources:Content,GN0000654 %>" />
                                </div>
                            </div>
                            <div class="row">
                                <div class="col-sm-3 col-xs-12 row-label">
                                    <asp:Literal ID="Literal26" runat="server" EnableViewState="false" Text="<%$ Resources:Content,DGN1110530%>" />:
                                </div>
                                <div class="col-sm-5 col-xs-12">
                                    <div class="form-group">
                                        <div class="form-line">
                                            <asp:TextBox ID="TxBx_StrAddress" runat="server" disabled="true" Columns="3" MaxLength="500"></asp:TextBox>
                                        </div>
                                    </div>
                                </div>
                                <div class="col-sm-4 col-xs-12">
                                    <asp:CheckBox ID="CB_UpdateStrAddress" runat="server" Text="<%$ Resources:Content,GN0000654 %>" />
                                </div>
                            </div>
                            <div class="row">
                                <div class="col-sm-3 col-xs-12 row-label">
                                    <asp:Literal ID="Literal27" runat="server" EnableViewState="false" Text="<%$ Resources:Content,GN0000880%>" />:
                                </div>
                                <div class="col-sm-5 col-xs-12">
                                    <div class="form-group">
                                        <div class="form-line">
                                            <asp:TextBox ID="TxBx_City" runat="server" disabled="true"></asp:TextBox>
                                        </div>
                                    </div>
                                </div>
                                <div class="col-sm-4 col-xs-12">
                                    <asp:CheckBox ID="CB_UpdateCity" runat="server" Text="<%$ Resources:Content,GN0000654 %>" />
                                </div>
                            </div>
                            <div class="row">
                                <div class="col-sm-3 col-xs-12 row-label">
                                    <asp:Literal ID="Literal28" runat="server" EnableViewState="false" Text="<%$ Resources:Content,GN00001313%>" />:
                                </div>
                                <div class="col-sm-5 col-xs-12">
                                    <div class="form-group">
                                        <div class="form-line">
                                            <asp:TextBox ID="TxBx_State" runat="server" disabled="true"></asp:TextBox>
                                        </div>
                                    </div>
                                </div>
                                <div class="col-sm-4 col-xs-12">
                                    <asp:CheckBox ID="CB_UpdateState" runat="server" Text="<%$ Resources:Content,GN0000654 %>" />
                                </div>
                            </div>
                            <div class="row">
                                <div class="col-sm-3 col-xs-12 row-label">
                                    <asp:Literal ID="Literal29" runat="server" EnableViewState="false" Text="<%$ Resources:Content,GN00001522%>" />:
                                </div>
                                <div class="col-sm-5 col-xs-12">
                                    <div class="form-group">
                                        <div class="form-line">
                                            <asp:TextBox ID="TxBx_zipCode" runat="server" disabled="true"></asp:TextBox>
                                        </div>
                                    </div>
                                </div>
                                <div class="col-sm-4 col-xs-12">
                                    <asp:CheckBox ID="CB_UpdateZipCode" runat="server" Text="<%$ Resources:Content,GN0000654 %>" />
                                </div>
                            </div>
                            <div class="row">
                                <div class="col-sm-3 col-xs-12 row-label">
                                    <asp:Literal ID="Literal30" runat="server" EnableViewState="false" Text="<%$ Resources:Content,FAM0058%>" />:
                                </div>
                                <div class="col-sm-5 col-xs-12">
                                    <%--<div class="form-group">
                                                <div class="form-line">
                                                    <asp:TextBox ID="TxBx_CountryRegion" runat="server" disabled="true"></asp:TextBox>
                                                </div>
                                            </div>--%>
                                    <asp:DropDownList ID="DDLCountries" runat="server" disabled="true">
                                    </asp:DropDownList>
                                </div>
                                <div class="col-sm-4 col-xs-12">
                                    <asp:CheckBox ID="CB_UpdateCountryRegion" runat="server" Text="<%$ Resources:Content,GN0000654 %>" />
                                </div>
                            </div>

                            <hr />
                            <div class="row">
                                <div class="col-sm-3 col-xs-12 row-label">
                                    <asp:Literal ID="Literal6" runat="server" EnableViewState="false" Text="<%$ Resources:Content,AccountExpiry%>"></asp:Literal>:
                                </div>
                                <div class="col-sm-5 col-xs-12">
                                    <div class="col-xs-12">
                                        <asp:RadioButton ID="RB_Never" runat="server" Checked="true" GroupName="AccountExpiry" Text="<%$ Resources:Content,Never%>" />
                                    </div>
                                    <div class="col-xs-12">                                    
                                    <asp:RadioButton ID="RB_EndOf" runat="server" GroupName="AccountExpiry" Text="<%$ Resources:Content,EndOf%>" />&nbsp;
                                    
                                    <span id="Div_EndOf" runat="server" style="display: none;">

                                        <div class="form-group display-date-input">
                                            <div class="form-line">
                                                <asp:TextBox ID="TxBx_EndOf" runat="server" Enabled="true"></asp:TextBox>
                                            </div>
                                        </div>

                                        <i runat="server" id="A_EndOf" class="material-icons icon-calendar col-calendar"></i>
                                        <EM:CalendarExtender ID="CE_EndOf" runat="server" TargetControlID="TxBx_EndOf"
                                            Format="<%# System.Threading.Thread.CurrentThread.CurrentCulture.DateTimeFormat.ShortDatePattern %>"
                                            PopupButtonID="A_EndOf" CssClass="date__calendar">
                                        </EM:CalendarExtender>

                                        <EM:CalendarExtender ID="CE_StartDate" runat="server" TargetControlID="TxBx_EndOf"
                                            Format="<%# System.Threading.Thread.CurrentThread.CurrentCulture.DateTimeFormat.ShortDatePattern %>"
                                            PopupButtonID="img_StartDate" CssClass="date__calendar">
                                        </EM:CalendarExtender>
                                    </span></div>
                                </div>
                                <div class="col-sm-4 col-xs-12">
                                    <asp:CheckBox ID="CB_UpdateAccountExpiry" runat="server" Text="<%$ Resources:Content,GN0000654 %>" />
                                </div>
                            </div>

                            <div class="row">
                                <div class="col-xs-12">
                                    <asp:Button ID="Btn_SaveGeneralInfo" runat="server" CssClass="btn btn-primary waves-effect btnAction" Text="<%$ Resources:Content,GN0000281 %>" />
                                </div>
                            </div>
                        </div>
                    </div>

                    <%--GeneralSettings--%>
                    <div id="GeneralSettings" class="card O365-detail-content">
                        <%--runat="server" class="panel-collapse collapse" role="tabpanel" aria-labelledby="headingThree_3" aria-expanded="false" style="height: 0px;"--%>
                        <div class="panel-body">
                            <asp:Panel ID="Pnl_GeneralSettings" runat="server" DefaultButton="Btn_SaveLogonHoursTemplate">
                                <div class="row">
                                    <div class="col-sm-3 col-xs-12 row-label">
                                        <asp:Literal ID="Literal1" runat="server" EnableViewState="false" Text="<%$ Resources:Content,strSelectLogOnHoursTemplate%>"></asp:Literal>:
                                    </div>
                                    <div class="col-sm-4 col-xs-12">
                                        <div class="form-group">
                                            <asp:DropDownList ID="DDL_LogonHoursTemplate" runat="server" />
                                        </div>
                                    </div>
                                    <div class="col-xs-12 col-sm-5">
                                        <asp:Button class="btn btn-primary waves-effect btnAction" ID="Btn_SaveLogonHoursTemplate" runat="server"
                                            Text="<%$ Resources:Content,GN0000281%>" />
                                    </div>
                                </div>
                            </asp:Panel>
                        </div>
                    </div>

                    <%--PasswordSettigs--%>
                    <div id="PasswordSettings" class="card O365-detail-content">
                        <%--runat="server" class="panel-collapse collapse" role="tabpanel" aria-labelledby="headingOne_1" aria-expanded="false" style="height: 0px;"--%>
                        <div class="panel-body">
                            <asp:Panel ID="Pnl_PasswordSettings" runat="server" DefaultButton="Btn_SavePasswordSettings">
                                <div class="row">
                                    <div class="col-sm-3 col-xs-12 row-label">
                                        <asp:Literal ID="Literal2" runat="server" EnableViewState="false" Text="<%$ Resources:Content,GN0000360%>"></asp:Literal>:
                                    </div>
                                    <div class="col-sm-9 col-xs-12">
                                        <div class="col-xs-12">
                                            <div class="form-group">
                                                <asp:CheckBox ID="CB_MustChange" Text="<%$ Resources:Content,UserMustChangePassword%>" runat="server" />
                                            </div>
                                        </div>
                                        <div class="col-xs-12">
                                            <div class="form-group">
                                                <asp:CheckBox ID="CB_CantChange" Text="<%$ Resources:Content,UserCantChangePassword%>" runat="server" />
                                            </div>
                                        </div>
                                        <div class="col-xs-12">
                                            <div class="form-group">
                                                <asp:CheckBox ID="CB_NeverExpires" Text="<%$ Resources:Content,PasswordNeverExpires%>" Checked="true" runat="server" />
                                            </div>
                                        </div>
                                    </div>
                                </div>
                                <div class="row">
                                    <div class="col-xs-12">
                                        <asp:Button class="btn btn-primary waves-effect btnAction" ID="Btn_SavePasswordSettings" runat="server"
                                            Text="<%$ Resources:Content,GN0000281%>" />
                                    </div>
                                </div>
                            </asp:Panel>
                        </div>
                    </div>

                    <%--GroupMembership--%>
                    <div id="GroupMembership" class="card O365-detail-content">
                        <%--runat="server" class="panel-collapse collapse" role="tabpanel" aria-labelledby="headingTwo_1" aria-expanded="false" style="height: 0px;"--%>
                        <div class="panel-body">
                            <asp:Panel ID="Pnl_GroupMembership" runat="server" DefaultButton="Btn_UpdateGroupMembership">
                                <div class="row">
                                    <div class="col-xs-12 row-label">
                                        <label>
                                            <asp:Label ID="Label2" runat="server" Text="<%$ Resources:Content,strSelectGroupMembership %>" />:</label>
                                    </div>
                                    <div class="col-xs-12">
                                        <ajax:UpdatePanel ID="UP_GroupMemberShip" runat="server">
                                            <ContentTemplate>
                                                <EM:AddSelectableSelected ID="UCGroupMemberShip" runat="server" />
                                            </ContentTemplate>
                                        </ajax:UpdatePanel>
                                    </div>
                                </div>
                                <div class="row">
                                    <div class="col-xs-12">
                                        <asp:Button class="btn btn-primary waves-effect btnAction" ID="Btn_UpdateGroupMembership" runat="server"
                                            Text="<%$ Resources:Content,GN0000281%>" />
                                    </div>
                                </div>
                            </asp:Panel>
                        </div>
                    </div>


                </div>

            </div>
        </div>
        <%--  <div class="panel-group" id="accordion_1" role="tablist" aria-multiselectable="true">
            <div class="panel panel-primary" id="AP_PasswordSettings" runat="server">
                <div class="panel-heading" role="tab" id="headingOne_1">
                    <h2 class="panel-title">
                        <a role="button" id="A_PasswordSettings" data-toggle="collapse" data-parent="#accordion_1" href="#<%= CSB_PasswordSettings.ClientID%>" aria-expanded="false" aria-controls="collapseOne_1" class="collapsed">
                            <%= Resources.Content.PasswordSettings%>
                        </a>
                    </h2>
                </div>

            </div>
            <div class="panel panel-primary" id="AP_GroupMembership" runat="server">
                <div class="panel-heading" role="tab" id="headingTwo_1">
                    <h4 class="panel-title">
                        <a class="collapsed" id="A_GroupMembership" role="button" data-toggle="collapse" data-parent="#accordion_1" href="#<%= CSB_GroupMembership.ClientID%>" aria-expanded="false" aria-controls="collapseTwo_1">
                            <%= Resources.Content.GroupMembership%>
                        </a>
                    </h4>
                </div>
                
            </div>
            <div class="panel panel-primary" id="AP_GeneralSettings" runat="server">
                <div class="panel-heading" role="tab" id="headingThree_3">
                    <h2 class="panel-title">
                        <a role="button" id="A_GeneralSettings" data-toggle="collapse" data-parent="#accordion_1" href="#<%= CSB_GeneralSettings.ClientID%>" aria-expanded="false" aria-controls="collapseThree_3" class="collapsed">
                            <%= Resources.Content.SM400028%>
                        </a>
                    </h2>
                </div>
               
            </div>
        </div>--%>
    </div>
</div>
