<%@ page language="VB" masterpagefile="~/Template/Master.master" autoeventwireup="false" inherits="RCC_Exchange_MailboxManager, 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" %>

<asp:Content ID="Content4" ContentPlaceHolderID="CPH_Content" runat="Server">
    <div class="col-xs-12">
        <div class="card">
            <div class="header">
                <h3>
                    <%= Resources.Content.MailboxManager%> 
                </h3>
            </div>
            <div class="body">
                <div class="row Div_OpsRow" id="Div_OpsRow" runat="server">
                    <div class="col-xs-12">
                        <%--Add Button--%>
                        <div class="card" id="tbl_Operations" runat="server">
                            <div class="header">
                                <h3>
                                    <asp:Literal ID="Literal1" runat="server" Text="<%$ Resources:Content,GN00001320%>" EnableViewState="false" />
                                </h3>
                            </div>
                            <div class="body">
                                <asp:Button ID="Btn_AddNewMailbox" runat="server" Text="<%$ Resources:Content,DGN1110425%>" class="btn btn-primary waves-effect btnAction" />
                                <asp:Button ID="Btn_DisableAllMailboxes" runat="server" Custom1="Custom" Style="display: none"
                                    Text="<%$ Resources:Content,GN00001025%>" class="btn btn-primary waves-effect btnAction" />
                                <asp:Button ID="Btn_EnableAllMailboxes" runat="server" Custom1="Custom" Style="display: none"
                                    Text="<%$ Resources:Content,GN00001024%>" class="btn btn-primary waves-effect btnAction" />
                                <asp:Button ID="Btn_ExportMailboxExcel" class="btn btn-primary waves-effect btnAction" runat="server" Text='<%$ Resources:Content,Ex001 %>' />
                                <asp:Button ID="Btn_RemoveAllMailboxes" runat="server" Custom1="Custom" Style="display: none"
                                    Text="<%$ Resources:Content,GN0000377%>" SkinID="cancelButton" class="btn btn-primary waves-effect btnAction" />
                                <EM:ConfirmButtonExtender ID="CBE_RemoveAll" runat="server" TargetControlID="Btn_RemoveAllMailboxes" />
                            </div>
                        </div>
                    </div>
                </div>
                <%--Search Option--%>
                <asp:Panel ID="Pnl_Search" runat="server" DefaultButton="Btn_SrchMB">
                    <div class="row">
                        <div class="panel-group search-panel" id="AS_Mailboxes" role="tablist" aria-multiselectable="true">
                            <div class="col-xs-12" role="tab" id="SH_Mailboxes">
                                <div class="card">
                                    <div class="header" role="button" data-toggle="collapse" data-parent="#AS_Mailboxes" href="#<%= CSB_Mailboxes.ClientID%>" aria-expanded="true" aria-controls="SH_Mailboxes">
                                        <h3>
                                            <%= Resources.Content.GN0000395%>
                                        </h3>
                                    </div>
                                    <div id="CSB_Mailboxes" runat="server" class="body panel-collapse collapse in" role="tabpanel" aria-labelledby="SH_Mailboxes" aria-expanded="true">
                                        <div class="row">
                                            <div class="col-md-3 col-sm-6 col-xs-12" runat="server" id="td_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_OrgName" runat="server" MaxLength="200"></asp:TextBox>
                                                        <asp:Label ID="Label1" runat="server" EnableViewState="false" Text="<%$ Resources:Content,DGN1110608%>" 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_MailDOmain" runat="server" MaxLength="200"></asp:TextBox>
                                                        <asp:Label ID="Label2" runat="server" EnableViewState="false" Text="<%$ Resources:Content,DGN1110516%>" 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_CustomerID" runat="server"></asp:TextBox>
                                                        <asp:Label ID="Label3" runat="server" EnableViewState="false" Text="<%$ Resources:Content,GN0000715%>" 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_CustomerName" runat="server" MaxLength="200"></asp:TextBox>
                                                        <asp:Label ID="Label4" 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">
                                                    <div class="form-line">
                                                        <asp:TextBox ID="TxBx_CompanyName" runat="server" MaxLength="200"></asp:TextBox>
                                                        <asp:Label ID="Label6" runat="server" EnableViewState="false" Text="<%$ Resources:Content,GN00001077%>" 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_DisplayName" runat="server" MaxLength="200"></asp:TextBox>
                                                        <asp:Label ID="Label32" runat="server" EnableViewState="false" Text="<%$ Resources:Content,GN00001113%>" 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_UPN" runat="server" MaxLength="100"></asp:TextBox>
                                                        <asp:Label ID="Label34" runat="server" EnableViewState="false" Text="<%$ Resources:Content,strUPNEmailAlias%>" 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_SAM" runat="server" MaxLength="100"></asp:TextBox>
                                                        <asp:Label ID="Label35" runat="server" EnableViewState="false" Text="<%$ Resources:Content,strSAMAccountName%>" 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_Address" runat="server" MaxLength="200"></asp:TextBox>
                                                        <asp:Label ID="Label36" runat="server" EnableViewState="false" Text="<%$ Resources:Content,strAddress%>" 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_City" runat="server" MaxLength="70"></asp:TextBox>
                                                        <asp:Label ID="Label37" runat="server" EnableViewState="false" Text="<%$ Resources:Content,GN0000880%>" 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">
                                                        <td>
                                                            <asp:TextBox ID="TxBx_State" runat="server" MaxLength="70"></asp:TextBox>
                                                            <asp:Label ID="Lbl_State" runat="server" EnableViewState="false" Text="<%$ Resources:Content,DEV1130%>" 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_Zip" runat="server" MaxLength="40"></asp:TextBox>
                                                        <asp:Label ID="Label38" runat="server" EnableViewState="false" Text="<%$ Resources:Content,GN00001081%>" 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_Phone" runat="server" MaxLength="80"></asp:TextBox>
                                                        <asp:Label ID="Label40" runat="server" EnableViewState="false" Text="<%$ Resources:Content,GN00012%>" 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_JobTitle" runat="server" MaxLength="80"></asp:TextBox>
                                                        <asp:Label ID="Label5" runat="server" EnableViewState="false" Text="<%$ Resources:Content,DGN1110358%>" 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_Company" runat="server" MaxLength="80"></asp:TextBox>
                                                        <asp:Label ID="Label7" runat="server" EnableViewState="false" Text="<%$ Resources:Content,GN00001134%>" 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_Department" runat="server" MaxLength="80"></asp:TextBox>
                                                        <asp:Label ID="Label17" runat="server" EnableViewState="false" Text="<%$ Resources:Content,GN0000374%>" 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_Office" runat="server" MaxLength="80"></asp:TextBox>
                                                        <asp:Label ID="Label19" runat="server" EnableViewState="false" Text="<%$ Resources:Content,DGN1110359%>" 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_MailboxTemplate" runat="server" MaxLength="80"></asp:TextBox>
                                                        <asp:Label ID="Label8" runat="server" EnableViewState="false" Text="<%$ Resources:Content,Exch806%>" 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">
                                                    <asp:DropDownList ID="Ddl_Country" runat="server"></asp:DropDownList>
                                                </div>
                                            </div>

                                            <div class="col-md-3 col-sm-6 col-xs-12">
                                                <div class="form-group form-float">
                                                    <asp:DropDownList ID="DDL_MailboxStatus" runat="server">
                                                        <asp:ListItem Text="<%$ Resources:Content, SelectStatus %>" Value="0" Selected="True"></asp:ListItem>
                                                        <asp:ListItem Text="<%$ Resources:Content,GN0000222%>" Value="1"></asp:ListItem>
                                                        <asp:ListItem Text="<%$ Resources:Content,USM0165%>" Value="2"></asp:ListItem>
                                                        <asp:ListItem Text="<%$ Resources:Content,GN0000860%>" Value="3"></asp:ListItem>
                                                        <asp:ListItem Text="<%$ Resources:Content,M0125%>" Value="4"></asp:ListItem>
                                                        <%-- <asp:ListItem Text="<%$ Resources:Content,GN00001546%>" Value="5"></asp:ListItem>
                                                                            <asp:ListItem Text="<%$ Resources:Content,GN0000861%>" Value="6"></asp:ListItem>--%>
                                                    </asp:DropDownList>
                                                </div>
                                            </div>
                                            <div class="col-md-3 col-sm-6 col-xs-12">
                                                <div class="form-group form-float">
                                                    <asp:DropDownList ID="DDL_MailboxType" runat="server">
                                                        <asp:ListItem Text="<%$ Resources:Content, Lync033 %>" Value="-1" Selected="True"></asp:ListItem>
                                                        <asp:ListItem Text="<%$ Resources:Content,DGN1110618%>" Value="User mailbox"></asp:ListItem>
                                                        <asp:ListItem Text="<%$ Resources:Content,FAM00204%>" Value="Linked mailbox"></asp:ListItem>
                                                        <asp:ListItem Text="<%$ Resources:Content,strSharedmailbox%>" Value="Shared mailbox"></asp:ListItem>
                                                        <asp:ListItem Text="<%$ Resources:Content,DGN1110619%>" Value="Room mailbox"></asp:ListItem>
                                                        <asp:ListItem Text="<%$ Resources:Content,DGN1110620%>" Value="Equipment mailbox"></asp:ListItem>
                                                        <asp:ListItem Text="<%$ Resources:Content,O365Mailbox%>" Value="O365 mailbox"></asp:ListItem>
                                                    </asp:DropDownList>
                                                </div>
                                            </div>
                                            <div class="col-md-3 col-sm-6 col-xs-12">
                                                <div class="form-group form-float">
                                                    <asp:DropDownList ID="DDL_litigationHold" runat="server">
                                                        <asp:ListItem Text="<%$ Resources:Content, SelectLititgationHold %>" Value="-1" Selected="True"></asp:ListItem>
                                                        <asp:ListItem Text="<%$ Resources:Content,GN000195%>" Value="1"></asp:ListItem>
                                                        <asp:ListItem Text="<%$ Resources:Content,GN0000860%>" Value="0"></asp:ListItem>
                                                    </asp:DropDownList>
                                                </div>
                                            </div>
                                            <div class="col-md-3 col-sm-6 col-xs-12">
                                                <div class="form-group form-float">
                                                    <asp:DropDownList ID="DDL_HideFromAL" runat="server">
                                                        <asp:ListItem Text="<%$ Resources:Content, SelectHiddenFromAddressList %>" Value="-1" Selected="True"></asp:ListItem>
                                                        <asp:ListItem Text="<%$ Resources:Content,GN000195%>" Value="1"></asp:ListItem>
                                                        <asp:ListItem Text="<%$ Resources:Content,GN0000860%>" Value="0"></asp:ListItem>
                                                    </asp:DropDownList>
                                                </div>
                                            </div>
                                            <div class="col-md-3 col-sm-6 col-xs-12">
                                                <div class="form-group form-float">
                                                    <asp:DropDownList ID="DDL_AutoDisableDuration" runat="server">
                                                        <asp:ListItem Text="<%$ Resources:Content,LastLoggedIn%>" Value="-1"></asp:ListItem>
                                                        <asp:ListItem Text="<%$ Resources:Content,OneMonthAgo%>" Value="1"></asp:ListItem>
                                                        <asp:ListItem Text="<%$ Resources:Content,TwoMonthsAgo%>" Value="2"></asp:ListItem>
                                                        <asp:ListItem Text="<%$ Resources:Content,ThreeMonthsAgo%>" Value="3"></asp:ListItem>
                                                        <asp:ListItem Text="<%$ Resources:Content,FourMonthsAgo%>" Value="4"></asp:ListItem>
                                                        <asp:ListItem Text="<%$ Resources:Content,FiveMonthsAgo%>" Value="5"></asp:ListItem>
                                                        <asp:ListItem Text="<%$ Resources:Content,SixMonthsAgo%>" Value="6"></asp:ListItem>
                                                    </asp:DropDownList>
                                                </div>
                                            </div>
                                            <div class="col-xs-12">
                                                <div class="form-group form-float">
                                                    <asp:Button ID="Btn_SrchMB" runat="server" class="btn btn-primary waves-effect" Text="<%$ Resources:Content,GN0000391%>" />
                                                    <asp:Button ID="Btn_ClearSearchMB" Visible="false" class="btn btn-primary waves-effect" runat="server" OnClick="Btn_ClearSearchMB_Click"
                                                        Text="<%$ Resources:Content,String289 %>" />
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </asp:Panel>




                <div class="card" id="Pnl_Listing" runat="server">

                    <div class="body">
                        <div class="row">

                            <div class="col-lg-1 col-md-2 col-sm-12 col-xs-12">
                                <label class="row-label">
                                    <asp:Literal ID="Literal14" runat="server" Text="<%$ Resources:Content,strSortBy%>" EnableViewState="false" />:
                                </label>
                            </div>
                            <div class="col-md-3 col-sm-12 col-xs-12">
                                <div class="form-group form-float">
                                    <asp:DropDownList ID="DDL_SortBy" runat="server">
                                        <asp:ListItem Text="<%$ Resources:Content,GN00001113%>" Value="DisplayName"></asp:ListItem>
                                        <%--<asp:ListItem Text="<%$ Resources:Content,GN00001525%>" Value="Primary Email"></asp:ListItem>--%>
                                        <asp:ListItem Text="<%$ Resources:Content,strUserPincipalName%>" Value="UPN"></asp:ListItem>
                                        <asp:ListItem Text="<%$ Resources:Content,String385%>" Value="Status"></asp:ListItem>
                                        <asp:ListItem Text="<%$ Resources:Content,GN0000673%>" Value="MailboxType"></asp:ListItem>
                                        <asp:ListItem Text="<%$ Resources:Content,SPT001003%>" Value="CurrentUsage"></asp:ListItem>
                                        <asp:ListItem Text="<%$ Resources:Content,strHiddenfromAddressList%>" Value="HideFromOtherALs"></asp:ListItem>
                                        <asp:ListItem Text="<%$ Resources:Content,Exch806%>" Value="MailboxTemplateId"></asp:ListItem>
                                        <asp:ListItem Text="<%$ Resources:Content,Exch0903%>" Value="LitigationHold"></asp:ListItem>
                                    </asp:DropDownList>
                                </div>
                            </div>
                            <div class="col-md-2 col-sm-12 col-xs-12">
                                <div class="form-group form-float">
                                    <asp:DropDownList ID="DDL_SortDirection" runat="server">
                                        <asp:ListItem Text="<%$ Resources:Content, strAscending %>" Value="Asc" Selected="True"></asp:ListItem>
                                        <asp:ListItem Text="<%$ Resources:Content,strDescending%>" Value="Desc"></asp:ListItem>
                                    </asp:DropDownList>
                                </div>
                            </div>
                            <div class="col-xs-12 col-md-3">
                                <div class="form-group form-float">
                                    <asp:Button ID="Btn_SortMB" runat="server" CssClass="btn btn-primary waves-effect" Text="<%$ Resources:Content,GN0000647%>" />
                                </div>
                            </div>
                            <div class="col-xs-12">
                                <%--Listing--%>
                                <asp:GridView CssClass="table table-bordered table-striped table-hover" EmptyDataText="<%$ Resources:Content, GN00001375 %>"
                                    ID="GV_MailBoxes" AllowPaging="True" runat="server" AutoGenerateColumns="false"
                                    AllowSorting="true" DataKeyNames="ADDomainID">

                                    <Columns>
                                        <asp:TemplateField HeaderText='<%$ Resources:Content,GN0000370 %>' HeaderStyle-CssClass="col-xs-1" ItemStyle-CssClass="col-xs-1">
                                            <HeaderTemplate>
                                                <asp:CheckBox CssClass="option-menu" runat="server" ID="ChkBx_All" onclick="SetCheckedHeader(this.checked, this, 'All');"
                                                    Text=" " />
                                            </HeaderTemplate>
                                            <ItemTemplate>
                                                <asp:CheckBox ID="ChkBx_All" runat="server" onclick="SetCheckedHeader(this.checked, this,'1');" Text=" " CssClass="option-menu" />
                                            </ItemTemplate>
                                        </asp:TemplateField>
                                        <asp:TemplateField HeaderText="<%$ Resources:Content,GN00001113%>" HeaderStyle-CssClass="col-xs-2" ItemStyle-CssClass="col-xs-2">
                                            <ItemTemplate>
                                                <asp:HyperLink ID="LB_Name" runat="server" Target="_blank"></asp:HyperLink>
                                            </ItemTemplate>
                                        </asp:TemplateField>
                                        <asp:TemplateField HeaderText="<%$ Resources:Content,GN00001525%>" HeaderStyle-CssClass="col-xs-3" ItemStyle-CssClass="col-xs-3">
                                            <ItemTemplate>
                                                <asp:HyperLink ID="LB_Email" runat="server" Target="_blank"></asp:HyperLink>
                                                <asp:Literal ID="Ltl_UPN" runat="server" Visible="false" />
                                                <asp:Label ID="Lbl_DomainUserName" runat="server" Visible="false" />
                                            </ItemTemplate>
                                        </asp:TemplateField>
                                        <asp:TemplateField HeaderText="<%$ Resources:Content,DGN1110431%>" HeaderStyle-CssClass="col-xs-5" ItemStyle-CssClass="col-xs-5">
                                            <ItemTemplate>
                                                <table class="table small">
                                                    <tr>
                                                        <td class="row-label"><%= Resources.Content.String385%>:</td>
                                                        <td>

                                                            <asp:Literal ID="LB_Status" runat="server"></asp:Literal>
                                                        </td>
                                                        <td class="row-label"><%= Resources.Content.SPT001003%>:</td>
                                                        <td>
                                                            <asp:Label ID="Lbl_Size" runat="server" Text=" "></asp:Label>
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td class="row-label"><%= Resources.Content.GN0000673%>:</td>
                                                        <td>
                                                            <asp:Label ID="Lbl_Type" runat="server" Text='<%#DataBinder.Eval(Container, "DataItem.MailBoxType")%>'></asp:Label>
                                                        </td>
                                                        <td class="row-label"><%= Resources.Content.Exch806%>:</td>
                                                        <td>
                                                            <asp:Literal ID="Ltl_MBTemplateName" runat="server" />
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td colspan="2" class="row-label">
                                                            <%= Resources.Content.DGN1110608%>:
                                                        </td>
                                                        <td colspan="2">
                                                            <asp:HyperLink ID="LB_OrgName" runat="server" Target="_blank"></asp:HyperLink>
                                                        </td>
                                                    </tr>
                                                </table>
                                            </ItemTemplate>
                                        </asp:TemplateField>
                                        <asp:TemplateField HeaderText="<%$ Resources:Content,GN0000360%> " HeaderStyle-CssClass="col-xs-1" ItemStyle-CssClass="col-xs-1">
                                            <ItemTemplate>

                                                <ul class="option-menu">
                                                    <li class="dropdown">
                                                        <a href="javascript:void(0);" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">
                                                            <i class="material-icons">menu</i>
                                                        </a>
                                                        <ul class="dropdown-menu pull-right">
                                                            <li>
                                                                <asp:LinkButton ID="LB_LitigationHold" runat="server" CssClass="btnAction" /></li>
                                                            <li>
                                                                <asp:LinkButton ID="LB_Disable" runat="server" CssClass="btnAction" CommandName="Disable_MB" /></li>
                                                            <li>
                                                                <asp:LinkButton ID="LB_Delete" runat="server" CssClass="btnAction" Text="<%$ Resources:Content,GN0000377%>" CommandName="Delete_MB" /></li>
                                                            <li>
                                                                <asp:HyperLink ID="LB_ChangePassword" runat="server" CssClass="btnAction" Text="<%$ Resources:Content,M0087%>" Target="_blank"></asp:HyperLink></li>
                                                            <li>
                                                                <asp:HyperLink ID="LB_ManageAliases" runat="server" CssClass="btnAction" Text="<%$ Resources:Content,ManageAliases%>" Target="_blank"></asp:HyperLink></li>
                                                            <li>
                                                                <asp:LinkButton ID="Lbtn_ADUserEnable" runat="server" CssClass="btnAction"></asp:LinkButton></li>


                                                            <li>
                                                                <asp:LinkButton ID="Lbtn_ExportPST" CommandName="ExportPST"
                                                                    CssClass="btnAction" runat="server" Text="<%$ Resources:Content,ExportPST%>" />
                                                            </li>
                                                            <li>
                                                                <asp:LinkButton ID="LBtn_OutlookDownload" CommandName="OutlookDownload" runat="server" Text="<%$ Resources:Content,USM0044%>" CssClass="btnAction" />
                                                            </li>
                                                            <EM:ConfirmButtonExtender ID="CBE_Disable" ConfirmText="<%$ Resources:Content,DGN1119974%>"
                                                                TargetControlID="LB_Disable" runat="server">
                                                            </EM:ConfirmButtonExtender>
                                                            <EM:ConfirmButtonExtender ID="CBE_Remove" ConfirmText='<%$ Resources:Content,CBE001 %>'
                                                                TargetControlID="LB_Delete" runat="server">
                                                            </EM:ConfirmButtonExtender>
                                                        </ul>
                                                    </li>
                                                </ul>
                                                <ul class="option-menu" id="Div_DownloadProfile" runat="server">
                                                    <li class="dropdown">
                                                        <a href="javascript:void(0);" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">
                                                            <i class="material-icons">file_download</i>
                                                        </a>
                                                        <ul class="dropdown-menu pull-right">
                                                            <li id="divOutlook2007" runat="server">
                                                                <asp:LinkButton ID="LB_Outlook2007" runat="server" CommandName="Outlook2007" Text="<%$ Resources:Content,String384%>" /></li>
                                                            <li>
                                                                <asp:LinkButton ID="LB_Outlook2010" runat="server" CommandName="Outlook2010" Text="<%$ Resources:Content,String437%>" /></li>
                                                            <li>
                                                                <asp:LinkButton ID="LB_Outlook2013" runat="server" CommandName="Outlook2013" Text="<%$ Resources:Content,Exch009012%>" /></li>
                                                        </ul>
                                                    </li>
                                                </ul>

                                            </ItemTemplate>
                                        </asp:TemplateField>
                                    </Columns>
                                    <%--PagerTemplate Start--%>
                                    <PagerTemplate>
                                        <EM:Pager ID="Pager2" runat="server" />
                                    </PagerTemplate>
                                    <%--PagerTemplate End--%>
                                </asp:GridView>
                            </div>
                        </div>

                    </div>
                </div>

                <asp:Panel CssClass="row" ID="Pnl_AddMailbox" DefaultButton="Btn_OK" runat="server" Visible="false">
                    <div class="col-xs-12">
                        <div class="card">
                            <div class="header">
                                <h3>
                                    <asp:Literal ID="Literal3" runat="server" Text="<%$ Resources:Content,DGN1110425%>" EnableViewState="false" />
                                </h3>
                            </div>
                            <div class="body">
                                <div class="row">
                                    <div class="col-sm-3 col-xs-12 row-label">
                                        <label>
                                            <asp:Literal ID="Ltrl_DGN1110617" runat="server"
                                                Text="<%$ Resources:Content,DGN1110617%>" EnableViewState="false"></asp:Literal>:</label>
                                    </div>
                                    <div class="col-sm-4 col-xs-12">
                                        <div class="form-group">
                                            <asp:DropDownList ID="ddl_MBType" runat="server" />
                                        </div>
                                    </div>
                                </div>
                                <div class="row">
                                    <div class="col-sm-3 col-xs-12 row-label">
                                        <label>
                                            <asp:Literal ID="Literal2" runat="server"
                                                Text="<%$ Resources:Content,DGN1110567%>" EnableViewState="false"></asp:Literal>:</label>
                                    </div>
                                    <div class="col-sm-4 col-xs-12">
                                        <div class="form-group">
                                            <asp:DropDownList ID="DDL_Orgs" runat="server" />
                                        </div>
                                    </div>
                                </div>
                                <div class="row">
                                    <div class="col-xs-12">
                                        <asp:Button ID="Btn_OK" runat="server" Text="<%$ Resources:Content,GN0000858%>" class="btn btn-primary waves-effect" />
                                        <asp:Button ID="Btn_Cancel" runat="server" Text="<%$ Resources:Content,GN0000572%>" class="btn btn-primary waves-effect" />
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </asp:Panel>
            </div>
        </div>
    </div>



    <asp:Button ID="Button1" runat="server" CssClass="btn-dummy" />
    <asp:Button ID="Button2" runat="server" CssClass="btn-dummy" />
    <EM:ModalPopupExtender runat="server" ID="MPE_ExportPST" BackgroundCssClass="modalBackground"
        DropShadow="false" CancelControlID="Btn_Close" PopupControlID="Pnl_ExportPST" TargetControlID="Button1"
        OkControlID="Button2">
    </EM:ModalPopupExtender>

    <asp:Panel ID="Pnl_ExportPST" runat="server" CssClass="width-modal-popup-auto" Style="display: none">
        <div class="col-xs-12">
            <div class="card">
                <div class="header container-fluid">
                    <h3 class="pull-left"><%= Resources.Content.ExportPST%></h3>
                    <span>
                        <button type="button" class="close" onclick="$find('<%=MPE_ExportPST.ClientID%>').hide();">&times;</button>
                    </span>
                </div>
                <div class="body">
                    <asp:HiddenField ID="HF_JobID" runat="server" />
                    <asp:HiddenField ID="HF_MailboxID" runat="server" />

                    <div id="Div_AddPST" runat="server">
                        <div class="row">
                            <div class="col-sm-4 col-xs-12 row-label">
                                <asp:Literal ID="Literal4" runat="server" Text="<%$Resources:Content,DGN1110339%>" EnableViewState="false"></asp:Literal>:
                            </div>
                            <div class="col-sm-8 col-xs-12">
                                <label>
                                    <asp:Literal ID="Lbl_Mailbox" runat="server" /></label>
                            </div>
                        </div>
                        <div class="row">
                            <div class="col-sm-4 col-xs-12 row-label">
                                <asp:Literal ID="Literal8" runat="server" Text="<%$Resources:Content,EmailaddressforPSTdownloadlink%>" EnableViewState="false"></asp:Literal>:
                            </div>
                            <div class="col-sm-8 col-xs-12">
                                <asp:TextBox ID="TxBx_EmailaddressforPSTdownloadlink" runat="server" TextMode="MultiLine" Rows="3" CssClass="col-xs-12" MaxLength="250"></asp:TextBox>
                                <label>(<%=Resources.Content.String597%>)</label>
                            </div>
                        </div>
                        <div class="row">
                            <div class="col-sm-4 col-xs-12"></div>
                            <div class="col-sm-8 col-xs-12">
                                <label><b><%=Resources.Content.ExportPSTNote%></b></label>
                            </div>
                        </div>

                        <div class="row">
                            <div class="col-sm-4 col-xs-12 row-label">
                                <asp:Literal ID="Literal38" runat="server" Text="<%$Resources:Content,String599%>" EnableViewState="false"></asp:Literal>:
                            </div>
                            <div class="col-sm-2 col-xs-12">
                                <div class="form-group">
                                    <div class="form-line">
                                        <asp:TextBox ID="TxBx_BadItemLimit" runat="server" MaxLength="250" onkeyup="numbersOnly(this)"></asp:TextBox>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>

                    <div id="Div_UpdatePST" runat="server" style="display: none;">
                        <div class="row">
                            <div class="col-sm-4 col-xs-12 row-label">
                                <asp:Literal ID="Literal12" runat="server" Text="<%$Resources:Content,DGN1110339%>" EnableViewState="false"></asp:Literal>:
                            </div>
                            <div class="col-sm-8 col-xs-12">
                                <asp:Literal ID="Literal33" runat="server" />
                            </div>
                        </div>

                        <div class="row">
                            <div class="col-sm-4 col-xs-12 row-label">
                                <asp:Literal ID="Literal13" runat="server" Text="<%$Resources:Content,EmailaddressforPSTdownloadlink%>" EnableViewState="false"></asp:Literal>:
                            </div>

                            <div class="col-sm-8 col-xs-12">
                                <p class="break-word-all">
                                    <asp:Literal ID="Lbl_EmailaddressforPSTdownloadlink" runat="server" />
                                </p>
                            </div>
                        </div>
                        <div class="row">
                            <div class="col-sm-4 col-xs-12 row-label">
                                <asp:Literal ID="Literal31" runat="server" Text="<%$Resources:Content,String385%>" EnableViewState="false"></asp:Literal>:
                            </div>
                            <div class="col-sm-8 col-xs-12">
                                <asp:Literal ID="Lbl_PSTJobStatus" runat="server" />&nbsp;
                                    <asp:LinkButton runat="server" ID="Btn_CancelPSTJob" CssClass="btnAction"
                                        Text='<%$ Resources:Content,CancelJob %>'></asp:LinkButton>&nbsp;
                                    <asp:LinkButton runat="server" ID="Btn_ResumePSTJob" CssClass="btnAction"
                                        Text='<%$ Resources:Content,String602 %>'></asp:LinkButton>&nbsp;
                                    <asp:LinkButton runat="server" ID="Btn_SuspendPSTJob" CssClass="btnAction"
                                        Text='<%$ Resources:Content,String601 %>'></asp:LinkButton>
                            </div>
                        </div>
                        <div class="row">
                            <div class="col-sm-4 col-xs-12 row-label">
                                <asp:Literal ID="Literal17" runat="server" Text="<%$Resources:Content,String600%>" EnableViewState="false"></asp:Literal>:
                            </div>
                            <div class="col-sm-8 col-xs-12">
                                <label>
                                    <asp:Literal ID="Lbl_StatusDetail" runat="server" /></label>
                            </div>
                        </div>
                    </div>
                    <div class="row">
                        <div class="col-xs-12">
                            <asp:Button ID="Btn_SavePST" runat="server" class="btn btn-primary waves-effect btnAction" Text='<%$ Resources:Content,GN0000281%>' />
                            <asp:Button ID="Btn_Close" CausesValidation="false" runat="server" Text='<%$ Resources:Content,GN000150 %>'
                                class="btn btn-primary waves-effect" />
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </asp:Panel>

    <asp:Panel ID="Pnl_OutlookDownload" CssClass="width-modal-popup-auto" runat="server" Style="display: none">
        <div class="col-xs-12">
            <div class="card">
                <div class="header container-fluid">
                    <span>
                        <button type="button" class="close" onclick="$find('<%=MPE_OutlookDownload.ClientID%>').hide();">&times;</button>
                    </span>
                    <button data-toggle="dropdown" class="btn btn-primary dropdown-toggle width-full pull-left" role="button">
                        <asp:Label ID="Lbl_outlookdownload" runat="server" Text="<%$ Resources:Content,USM0044%>" />&nbsp;&nbsp;
                                                            
                    </button>



                </div>
                <div class="body">
                    <div class="width-full">

                        <ul class="width-full">
                            <asp:Repeater ID="Rep_OutlookDownload" runat="server">
                                <ItemTemplate>
                                    <li style="padding: 5px">
                                        <asp:LinkButton ID="lbtn_outlookdownload" Style="cursor: hand" runat="server" CausesValidation="false"
                                            Text='<%# Eval("DisplayName")%>' CommandName="outlookdownload" CommandArgument='<%# MachSol.MachPanel.Utility.Utility.Encrypt(Eval("URL"))%>'></asp:LinkButton>
                                    </li>
                                </ItemTemplate>
                            </asp:Repeater>

                        </ul>
                    </div>
                </div>
            </div>
        </div>
    </asp:Panel>
    <asp:Button ID="Btn_TargetDownloadOutlook" runat="server" Text="<%$ Resources:Content,SMI0007%>"
        Style="display: none;" />
    <asp:Button ID="Btn_OkDownloadOutlook" runat="server" Text="<%$ Resources:Content,SMI0007%>"
        Style="display: none;" />
    <EM:ModalPopupExtender runat="server" ID="MPE_OutlookDownload" BackgroundCssClass="modalBackground"
        DropShadow="false" PopupControlID="Pnl_OutlookDownload" TargetControlID="Btn_TargetDownloadOutlook"
        OkControlID="Btn_OkDownloadOutlook">
    </EM:ModalPopupExtender>

</asp:Content>
