<%@ control language="VB" autoeventwireup="false" inherits="RCC_Exchange_CC_LH, MachSol.MachPanel.Web" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="EM" %>
<%@ Register Src="~/Template/GVPager.ascx" TagName="Pager" TagPrefix="EM" %>
<%@ Register Assembly="MachSol.MachPanel.Utility" Namespace="MachSol.MachPanel.Utility" TagPrefix="EM" %>
<%@ Register Src="~/Template/CC/Selectable_Selected_LBX.ascx" TagName="AddSelectableSelected" TagPrefix="EM" %>

<div id="Pnl_Listing" runat="server">
    <div class="row Div_OpsRow" id="Div_OpsRow" runat="server">
        <div class="col-xs-12">
            <div class="card">
                <div class="header">
                    <h3>
                        <%= Resources.Content.GN00001320%>      <%--Operations--%>
                    </h3>
                </div>
                <div class="body">
                    <asp:Button ID="Btn_EnableLitigationHold" runat="server" CssClass="btn btn-primary waves-effect btnAction" Text='<%$ Resources:Content,strEnable%>' />
                    <asp:Button ID="Btn_DisableLitigationHold" runat="server" CssClass="btn btn-primary waves-effect btnAction" Text='<%$ Resources:Content,strDisable%>'
                        Custom1="Custom" Style="display: none" />
                </div>
            </div>
        </div>
    </div>

    <%--Search Option--%>
    <asp:Panel ID="Pnl_SearchLH" runat="server" DefaultButton="Btn_SrchLH">
        <div class="row">
            <div class="panel-group search-panel" id="AS_LHs" role="tablist" aria-multiselectable="true">
                <div class="col-xs-12" role="tab" id="SH_LHs">
                    <div class="card">
                        <div class="header" role="button" data-toggle="collapse" data-parent="#AS_LHs" href="#<%= CSB_LHs.ClientID%>" aria-expanded="true" aria-controls="SH_LHs">
                            <h3>
                                <%= Resources.Content.GN0000395%>
                            </h3>
                        </div>
                        <div id="CSB_LHs" runat="server" class="body panel-collapse collapse" role="tabpanel" aria-labelledby="SH_LHs" 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_LHNameFilter" runat="server" MaxLength="1000"></asp:TextBox>
                                            <asp:Label ID="Label32" runat="server" EnableViewState="false" Text="<%$ Resources:Content,GN000170%>" CssClass="form-label"></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_LHEmailFilter" runat="server" MaxLength="1000"></asp:TextBox>
                                            <asp:Label ID="Label1" runat="server" EnableViewState="false" Text="<%$ Resources:Content,GN0000491%>" CssClass="form-label"></asp:Label>
                                        </div>
                                    </div>
                                </div>
                                <div class="col-xs-12">
                                    <div class="form-group form-float">
                                        <asp:Button ID="Btn_SrchLH" runat="server" CssClass="btn btn-primary waves-effect" Text="<%$ Resources:Content,GN0000391%>" />
                                        <asp:Button ID="Btn_ClearLH" Visible="false" CssClass="btn btn-primary waves-effect" runat="server"
                                            Text="<%$ Resources:Content,String289 %>" />
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </asp:Panel>
    <div class="row">
        <div class="col-xs-12">
            <EM:MPGridView ID="GV_LitigationHold" CurrentSortExpression="MailboxId" CurrentSortDirection="Asc" CssClass="table table-bordered table-striped table-hover"
                runat="server" AllowPaging="true" AllowSorting="true" EmptyDataText='<%$ Resources:Content, GN00001375 %>' AutoGenerateColumns="false"
                DataKeyNames='MailboxId, MailboxDisplayName'>
                <Columns>
                    <asp:TemplateField HeaderStyle-CssClass="col-xs-1" ItemStyle-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" runat="server" Text=" " onclick="SetCheckedHeader(this.checked, this,'1');" />
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="<%$ Resources:Content, GN000170 %>" SortExpression="MailboxDisplayName" HeaderStyle-CssClass="col-xs-3" ItemStyle-CssClass="col-xs-3">
                        <ItemTemplate>
                            <asp:Label ID="Lbl_Name" runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.MailboxDisplayName") %>'></asp:Label>
                            <asp:HiddenField ID="Lbl_MailboxId" runat="server" Value='<%# DataBinder.Eval(Container, "DataItem.MailboxId") %>'></asp:HiddenField>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="<%$ Resources:Content, GN0000491 %>" SortExpression="UPN" HeaderStyle-CssClass="col-xs-3" ItemStyle-CssClass="col-xs-3">
                        <ItemTemplate>
                            <asp:Label ID="Lbl_Email" runat="server"></asp:Label>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="<%$ Resources:Content, GN000195 %>" SortExpression="LitigationHold" HeaderStyle-CssClass="col-xs-1" ItemStyle-CssClass="col-xs-1">
                        <ItemTemplate>
                            <asp:Label ID="Lbl_Enabled" runat="server"></asp:Label>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="<%$ Resources:Content, FAM00122 %>" SortExpression="LitigationHoldDate" HeaderStyle-CssClass="col-xs-2" ItemStyle-CssClass="col-xs-2">
                        <ItemTemplate>
                            <asp:Label ID="Lbl_LHDate" runat="server"></asp:Label>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="<%$ Resources:Content, FAM0081 %>" SortExpression="LitigationHoldDuration" HeaderStyle-CssClass="col-xs-2" ItemStyle-CssClass="col-xs-2">
                        <ItemTemplate>
                            <asp:Label ID="Lbl_LHDuration" runat="server"></asp:Label>
                        </ItemTemplate>
                    </asp:TemplateField>
                </Columns>
                <PagerTemplate>
                    <EM:Pager ID="Pager" runat="server" />
                </PagerTemplate>
            </EM:MPGridView>
        </div>
    </div>
</div>

<asp:Panel ID="Pnl_EnableDisable" runat="server" Visible="false" DefaultButton="Btn_Save">
    <div class="row">
        <div class="col-xs-12 row-label">
            <label>
                <asp:Literal ID="Literal10" runat="server" Text="<%$ Resources:Content,DGN1110429%>"
                    EnableViewState="false" />:</label>
        </div>
        <div class="col-xs-12">
            <ajax:UpdatePanel ID="UP_Mailboxes" runat="server" UpdateMode="Conditional">
                <ContentTemplate>
                    <EM:AddSelectableSelected ID="UCMailboxes" runat="server" />
                </ContentTemplate>
            </ajax:UpdatePanel>
        </div>
    </div>
    <div id="Div_EnableInputs" runat="server">
        <div class="row">
            <div class="col-sm-3 col-xs-12 row-label">
                <label>
                    <asp:Literal ID="Literal40" runat="server" Text='<%$ Resources:Content, FAM0081 %>'
                        EnableViewState="false" />:</label>
            </div>
            <div class="col-sm-3 col-xs-12">
                <div class="form-group">
                    <div class="form-line">
                        <asp:TextBox ID="TxBx_LHDuration" Enabled="false" runat="server" />
                        <asp:RegularExpressionValidator ID="REV_TxBx_LHDuration" runat="server" ControlToValidate="TxBx_LHDuration"
                            ValidationExpression="([0-9])*" ErrorMessage="<%$ Resources:Content, FAM00123 %>" Display="None"
                            SetFocusOnError="true" ValidationGroup="LHSettings"></asp:RegularExpressionValidator>
                    </div>
                </div>
            </div>
            <div class="col-sm-5 col-xs-12">
                <asp:CheckBox ID="ChBx_LHDuration" runat="server" Checked="true" Text="<%$ Resources:Content,GN0000908%>" />
            </div>
        </div>
        <div class="row">
            <div class="col-sm-3 col-xs-12 row-label">
                <label>
                    <asp:Literal ID="Literal19" runat="server" Text='<%$ Resources:Content, FAM00122 %>'
                        EnableViewState="false" />:</label>
            </div>
            <div class="col-sm-4 col-xs-12">
                <div class="form-group display-date-input">
                    <div class="form-line">
                        <asp:TextBox ID="TxBx_LHDate" Enabled="false" runat="server"></asp:TextBox>
                    </div>
                </div>
                <i runat="server" id="A_DRangeBefore" class="material-icons icon-calendar col-calendar"></i>
                <EM:CalendarExtender ID="CE_DRangeBefore" runat="server" TargetControlID="TxBx_LHDate"
                    Format="<%# System.Threading.Thread.CurrentThread.CurrentCulture.DateTimeFormat.ShortDatePattern %>"
                    PopupButtonID="A_DRangeBefore" CssClass="date__calendar">
                </EM:CalendarExtender>
            </div>
        </div>
    </div>
    <div class="row">
        <div class="col-xs-12">
            <asp:Button ID="Btn_Save" runat="server" Text="<%$ Resources:Content,GN0000281%>"
                class="btn btn-primary waves-effect btnAction" ValidationGroup="LitigationHold" CausesValidation="true" />
            <asp:Button ID="Btn_Cancel" runat="server" Text="<%$ Resources:Content,Cancel%>"
                class="btn btn-primary waves-effect" CausesValidation="false" />
        </div>
    </div>
</asp:Panel>
