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

<%@ Register Src="~/Template/CC/Selectable_Selected_LBX.ascx" TagName="AddSelectableSelected" TagPrefix="EM" %>

<div class="row">
    <div class="col-xs-12">
        <div class="products-step">
            <span id="div_ExportMailboxAuditLog" runat="server" nowrap="true" class="label label-success">
                <asp:LinkButton ID="lb_ExportMailboxAuditLog" runat="server"
                    Text='<%$ Resources:Content, ExportMailboxAuditLog %>' />
            </span>
            <span id="div_ExportAdminAuditLog" runat="server" nowrap="true" class="label label-default">
                <asp:LinkButton ID="lb_ExportAdminAuditLog" runat="server"
                    Text='<%$ Resources:Content, ExportAdminAuditLog %>' />
            </span>
            <span id="div_CalenderPermission" runat="server" nowrap="true" class="label label-default">
                <asp:LinkButton ID="lb_CalenderPermission" runat="server"
                    Text='<%$ Resources:Content, CalendarPermissions %>' />
            </span>
        </div>
    </div>
</div>


<asp:Panel ID="Pnl_ExportMailboxAuditLog" runat="server">
    <div class="row">
        <div class="col-xs-12">
            <div class="card">
                <div class="body">
                    <div class="row">
                        <div class="col-xs-12 col-sm-3">
                            <label class="row-label">
                                <asp:Literal ID="Literal11" runat="server" Text="<%$ Resources:Content,GN00001547%>" EnableViewState="false" />:
                            </label>
                            <div class="form-group display-date-input">
                                <div class="form-line">
                                    <asp:TextBox ID="TxBx_MBStartDate" runat="server"></asp:TextBox>
                                </div>
                            </div>
                            <i runat="server" id="A_MBStartDate" class="material-icons icon-calendar col-calendar"></i>
                            <EM:CalendarExtender ID="CE_MBStartDate" runat="server" TargetControlID="TxBx_MBStartDate"
                                Format="<%# System.Threading.Thread.CurrentThread.CurrentCulture.DateTimeFormat.ShortDatePattern %>"
                                PopupButtonID="A_MBStartDate" CssClass="date__calendar">
                            </EM:CalendarExtender>
                        </div>
                        <div class="col-xs-12 col-sm-4">
                            <label class="row-label">
                                <asp:Literal ID="Literal9" runat="server" Text="<%$ Resources:Content,DGN1119986%>" EnableViewState="false" />:
                            </label>
                            <div class="form-group display-date-input">
                                <div class="form-line">
                                    <asp:TextBox ID="TxBx_MBEndDate" runat="server"></asp:TextBox>
                                </div>
                            </div>
                            <i runat="server" id="A_MBEndDate" class="material-icons icon-calendar col-calendar"></i>
                            <EM:CalendarExtender ID="CE_MBEndDate" runat="server" TargetControlID="TxBx_MBEndDate"
                                Format="<%# System.Threading.Thread.CurrentThread.CurrentCulture.DateTimeFormat.ShortDatePattern %>"
                                PopupButtonID="A_MBEndDate" CssClass="date__calendar">
                            </EM:CalendarExtender>
                        </div>
                    </div>
                    <div class="row">
                        <div class="col-sm-3 col-xs-12 row-label">
                            <asp:Literal ID="Literal1" runat="server" EnableViewState="false" Text="<%$ Resources:Content,strSelectOrganization %>"></asp:Literal>:
                        </div>
                        <div class="col-sm-4 col-xs-12">
                            <div class="form-group">
                                <asp:DropDownList ID="Ddl_Organizations" runat="server" AutoPostBack="true"></asp:DropDownList>
                            </div>
                        </div>
                    </div>
                    <div class="row">
                        <div class="col-xs-12 row-label">
                            <asp:Literal ID="Literal7" runat="server" EnableViewState="false" Text="<%$ Resources:Content,DGN1110429 %>"></asp:Literal>:
                        </div>
                        <div class="col-xs-12">
                            <EM:AddSelectableSelected ID="UCMailBoxes" runat="server" />
                        </div>
                        <div class="col-xs-12 row-label">
                            <asp:Literal ID="Literal8" runat="server" Text="<%$ Resources:Content,AuditNote %>"></asp:Literal>
                        </div>
                    </div>
                    <div class="row">
                        <div class="col-sm-3 col-xs-12 row-label">
                            <asp:Literal ID="Literal10" runat="server" Text="<%$ Resources:Content,SearchForAccessBy %>"></asp:Literal>:
                        </div>
                        <div class="col-sm-4 col-xs-12">
                            <asp:DropDownList ID="Ddl_SearchForAccessBy" runat="server">
                                <asp:ListItem Text="<%$ Resources:Content,AllNonOwners %>" Value=""></asp:ListItem>
                                <%--<asp:ListItem Text="<%$ Resources:Content,ExternalUsers %>" Value="External"></asp:ListItem>--%>
                                <asp:ListItem Text="<%$ Resources:Content,AdminAndDelegate %>" Value="Admin,Delegate"></asp:ListItem>
                                <asp:ListItem Text="<%$ Resources:Content,Administrators %>" Value="Admin"></asp:ListItem>
                            </asp:DropDownList>
                        </div>
                    </div>
                    <div class="row">
                        <div class="col-xs-12 row-label">
                            <asp:Literal ID="Literal12" runat="server" Text="<%$ Resources:Content,SendReportTo %>"></asp:Literal>: 
                        </div>
                        <div class="col-xs-12">
                            <EM:AddSelectableSelected ID="UCSendReportTo" runat="server" />
                        </div>
                    </div>
                    <div class="row">
                        <div class="col-xs-12">
                            <asp:Button ID="Btn_ExportMailboxAuditLog" runat="server" SkinID="saveButton" Text="<%$ Resources:Content,strExport%>" CssClass="btn btn-primary" />
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</asp:Panel>

<asp:Panel ID="Pnl_ExportAdminAuditLog" runat="server" Visible="false">
    <div class="row">
        <div class="col-xs-12">
            <div class="card">
                <div class="body">
                    <div class="row">
                        <div class="col-sm-3 col-xs-12 row-label">
                            <asp:Literal ID="Literal2" runat="server" EnableViewState="false" Text="<%$ Resources:Content,SelectServerGroup %>"></asp:Literal>:
                        </div>
                        <div class="col-sm-4 col-xs-12">
                            <asp:DropDownList ID="Ddl_ServerGroups" runat="server" AutoPostBack="true"></asp:DropDownList>
                        </div>
                    </div>
                    <div class="row">
                        <div class="col-sm-3 col-xs-6 row-label">
                            <asp:Literal ID="Literal16" runat="server" EnableViewState="false" Text="<%$ Resources:Content,AdminAuditLogEnabled %>"></asp:Literal>:
                        </div>
                        <div class="col-xs-6">
                            <asp:CheckBox ID="ChBx_AdminAuditLogEnabled" runat="server" Text="&nbsp;" onclick="return false;" />
                            &nbsp;&nbsp;&nbsp;
                                                                <asp:Button ID="Btn_EnableAdminAuditLog" Visible="false" runat="server" CssClass="btn btn-primary btnAction" Text="<%$ Resources:Content,GN00001024 %>" />
                            <asp:Button ID="Btn_DisableAdminAuditLog" Visible="false" runat="server" CssClass="btn btn-primary btnAction" Text="<%$ Resources:Content,GN00001025 %>" />
                        </div>
                    </div>
                    <div class="row">
                        <div class="col-xs-12 col-sm-3">
                            <label class="row-label">
                                <asp:Literal ID="Literal13" runat="server" Text="<%$ Resources:Content,GN00001547%>" EnableViewState="false" />:
                            </label>
                            <div class="form-group display-date-input">
                                <div class="form-line">
                                    <asp:TextBox ID="TxBx_AdminStartDate" runat="server"></asp:TextBox>
                                </div>
                            </div>
                            <i runat="server" id="A_AdminStartDate" class="material-icons icon-calendar col-calendar"></i>
                            <EM:CalendarExtender ID="CE_AdminStartDate" runat="server" TargetControlID="TxBx_AdminStartDate"
                                Format="<%# System.Threading.Thread.CurrentThread.CurrentCulture.DateTimeFormat.ShortDatePattern %>"
                                PopupButtonID="A_AdminStartDate" CssClass="date__calendar">
                            </EM:CalendarExtender>
                        </div>
                        <div class="col-xs-12 col-sm-4">
                            <label class="row-label">
                                <asp:Literal ID="Literal14" runat="server" Text="<%$ Resources:Content,DGN1119986%>" EnableViewState="false" />:
                            </label>
                            <div class="form-group display-date-input">
                                <div class="form-line">
                                    <asp:TextBox ID="TxBx_AdminEndDate" runat="server"></asp:TextBox>
                                </div>
                            </div>
                            <i runat="server" id="A_AdminEndDate" class="material-icons icon-calendar col-calendar"></i>
                            <EM:CalendarExtender ID="CE_AdminEndDate" runat="server" TargetControlID="TxBx_AdminEndDate"
                                Format="<%# System.Threading.Thread.CurrentThread.CurrentCulture.DateTimeFormat.ShortDatePattern %>"
                                PopupButtonID="A_AdminEndDate" CssClass="date__calendar">
                            </EM:CalendarExtender>
                        </div>
                    </div>
                    <div class="row">
                        <div class="col-sm-3 col-xs-12 row-label">
                            <asp:Literal ID="Literal15" runat="server" EnableViewState="false" Text="<%$ Resources:Content,SendAuditReportTo %>"></asp:Literal>:
                        </div>
                        <div class="col-sm-4 col-xs-12">
                            <asp:TextBox ID="TxBx_SendAuditReportTo" runat="server" TextMode="MultiLine" Rows="5" MaxLength="500"></asp:TextBox>
                            <label>(<%=Resources.Content.String597%>)</label>
                        </div>
                    </div>
                    <div class="row">
                        <div class="col-xs-12">
                            <asp:Button ID="Btn_ExportAdminAuditLog" runat="server" Text="<%$ Resources:Content,strExport%>" CssClass="btn btn-primary" />
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</asp:Panel>

<asp:Panel ID="Pnl_CalendarPermissions" runat="server" Visible="false">
    <div class="row">
        <div class="col-xs-12">
            <div class="card">
                <div class="body">
                    <asp:Panel ID="Pnl_Btn_ApplyFilter" runat="server" CssClass="row" DefaultButton="Btn_ApplyFilter">
                        <div class="panel-group search-panel" id="AS_OrgPermissions" role="tablist" aria-multiselectable="true">
                            <div class="col-xs-12" role="tab" id="SH_OrgPermissions">

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

                                    <div id="CSB_OrgPermissions" runat="server" class="body panel-collapse collapse" role="tabpanel" aria-labelledby="SH_OrgPermissions" aria-expanded="false">
                                        <div class="row">
                                            <div class="col-md-3 col-sm-6 col-xs-12" runat="server" id="Div_Owner">
                                                <div class="form-group form-float">
                                                    <asp:DropDownList ID="DDL_Owner" runat="server" onchange="setOwnerCookie(this)"></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_SrchOrganization" runat="server"></asp:TextBox>
                                                        <asp:Label ID="Label10" runat="server" EnableViewState="false" Text="<%$ Resources:Content,strOrganization%>" class="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_SrchDomainName" runat="server"></asp:TextBox>
                                                        <asp:Label ID="Label4" runat="server" EnableViewState="false" Text="<%$ Resources:Content,strDomainName%>" class="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_SrchCustomerName" runat="server"></asp:TextBox>
                                                        <asp:Label ID="Label1" runat="server" EnableViewState="false" Text="<%$ Resources:Content,GN0000268%>" class="form-label"></asp:Label>
                                                    </div>
                                                </div>
                                            </div>

                                            <div class="col-md-3 col-sm-6 col-xs-12">
                                                <div class="form-group form-float">
                                                    <asp:ValidationSummary ID="VS_Search" runat="server" ShowMessageBox="true"
                                                        ShowSummary="false" ValidationGroup="Search" />
                                                    <asp:Button ID="Btn_ApplyFilter" ValidationGroup="SearchPhoneNumbers" class="btn btn-primary waves-effect" runat="server" Text="<%$ Resources:Content,GN0000391%>" />
                                                    <asp:Button ID="Btn_ClearFilter" Visible="false" class="btn btn-primary waves-effect" runat="server" Text="<%$ Resources:Content,String289 %>" />

                                                </div>
                                            </div>

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

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

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

                            <asp:GridView CssClass="table table-bordered table-striped table-hover" EmptyDataText="<%$ Resources:Content, GN00001375 %>"
                                ID="GV_OrgPermissions" AllowPaging="False" runat="server" AutoGenerateColumns="false">

                                <Columns>
                                    <asp:TemplateField HeaderText='<%$ Resources:Content, strOrganization %>' HeaderStyle-CssClass="col-xs-2" ItemStyle-CssClass="col-xs-2">
                                        <ItemTemplate>
                                            <asp:HyperLink ID="LB_Organization" runat="server" />
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                   
                                    <asp:TemplateField HeaderText='<%$ Resources:Content, strGroups %>' HeaderStyle-CssClass="col-xs-2" ItemStyle-CssClass="col-xs-2">
                                        <ItemTemplate>
                                            <asp:Label ID="LB_Group" runat="server" />
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                    <asp:TemplateField HeaderText="<%$ Resources:Content,strPermissions%>" HeaderStyle-CssClass="col-xs-2" ItemStyle-CssClass="col-xs-2">
                                        <ItemTemplate>
                                            <asp:Label ID="LB_Permission" runat="server"></asp:Label>
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                     <asp:TemplateField HeaderText='<%$ Resources:Content, strCustomer %>' HeaderStyle-CssClass="col-xs-2" ItemStyle-CssClass="col-xs-2">
                                        <ItemTemplate>
                                            <asp:HyperLink ID="LB_Customer" runat="server" />
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                    <asp:TemplateField HeaderText='<%$ Resources:Content, strOwner %>' HeaderStyle-CssClass="col-xs-2" ItemStyle-CssClass="col-xs-2">
                                        <ItemTemplate>
                                            <asp:HyperLink ID="LB_Owner" runat="server" />
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                    <%--<asp:TemplateField HeaderText='<%$ Resources:Content, GN0000360 %>' HeaderStyle-CssClass="col-xs-2">
                                                                <ItemTemplate>
                                                                    <asp:LinkButton ID="LB_Remove" runat="server" Text="<%$ Resources:Content,strRemove %>"
                                                                        CssClass="btn btn-primary waves-effect" CommandName="RemovePermission" />
                                                                    <EM:ConfirmButtonExtender ID="CBE_Remove" runat="server" ConfirmText="<%$Resources:Content,strRemovePermissionConfirm%>"
                                                                        TargetControlID="LB_Remove">
                                                                    </EM:ConfirmButtonExtender>
                                                                </ItemTemplate>
                                                            </asp:TemplateField>--%>
                                </Columns>
                            </asp:GridView>

                        </div>
                    </div>

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

