<%@ page language="VB" autoeventwireup="false" masterpagefile="~/Template/Master.master" inherits="RCC_Exchange_PSTExportsImports, MachSol.MachPanel.Web" %>

<%@ Register TagPrefix="EM" TagName="AccessTemplate" Src="~/RCC/Clients/CC/AccessTemplate.ascx" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="EM" %>
<%@ Register Src="~/Template/GVPager.ascx" TagName="Pager" TagPrefix="EM" %>
<%@ Register Src="~/PCC/Exchange/CC/PSTSettings.ascx" TagName="PSTSettings" TagPrefix="UC" %>
<%@ Register Src="~/Template/GeneralFileManager.ascx" TagName="GeneralFileManager" TagPrefix="UC" %>
<%@ Register Src="~/Template/CC/Selectable_Selected_LBX.ascx" TagName="AddSelectableSelected" TagPrefix="EM" %>

<%@ Register TagPrefix="cc1" Namespace="System.Web.UI" Assembly="System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" %>
<asp:Content ID="Content4" ContentPlaceHolderID="CPH_Content" runat="Server">


    <div class="col-xs-12">
        <EM:TabContainer ID="TC_PSTImportExport" runat="server" OnClientActiveTabChanged="loadTabPanel">
            <EM:TabPanel ID="Tab_Configuration" runat="server" HeaderText="<%$ Resources:Content,String483 %>">
                <ContentTemplate>
                    <asp:Button ID="Btn_Tab0" runat="server" CssClass="btn-dummy" />
                    <asp:Panel ID="Pnl_TabContent0" runat="server">
                        <div class="card">
                            <div class="body">
                                <div class="row">
                                    <div class="col-xs-12">
                                        <asp:GridView ID="GV_ServerGroups" CssClass="table table-bordered table-striped table-hover" AllowSorting="true" AllowPaging="true"
                                            EmptyDataText='<%$ Resources:Content, GN00001375 %>' runat="server" AutoGenerateColumns="False">
                                            <Columns>
                                                <asp:TemplateField HeaderText='<%$ Resources:Content, GN0000971 %>' SortExpression="ServerGrouPName" HeaderStyle-CssClass="col-xs-2" ItemStyle-CssClass="col-xs-2">
                                                    <ItemTemplate>
                                                        <asp:LinkButton ID="LB_SGName" runat="server" CommandName="ListServers" CommandArgument='<%# DataBinder.Eval(Container, "DataItem.ServerGroupID") %>'
                                                            Text='<%# DataBinder.Eval(Container, "DataItem.ServerGroupName") %>' />
                                                    </ItemTemplate>
                                                </asp:TemplateField>
                                                <asp:TemplateField HeaderText='<%$ Resources:Content, strUNCPathForImport %>' HeaderStyle-CssClass="col-xs-4" ItemStyle-CssClass="col-xs-4">
                                                    <ItemTemplate>
                                                        <asp:Label ID="Lbl_UNCImportPath" runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.UNCPathForPSTImport") %>' />
                                                    </ItemTemplate>
                                                </asp:TemplateField>
                                                <asp:TemplateField HeaderText='<%$ Resources:Content, strUNCPathForExport %>' HeaderStyle-CssClass="col-xs-4" ItemStyle-CssClass="col-xs-4">
                                                    <ItemTemplate>
                                                        <asp:Label ID="Lbl_UNCExportPath" runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.UNCPathForPSTDownload") %>' />
                                                    </ItemTemplate>
                                                </asp:TemplateField>
                                                <asp:TemplateField HeaderText='<%$ Resources:Content, String385 %>' HeaderStyle-CssClass="col-xs-1" ItemStyle-CssClass="col-xs-1">
                                                    <ItemTemplate>
                                                        <asp:Label ID="Img_SGStatus" runat="server" />
                                                    </ItemTemplate>
                                                </asp:TemplateField>
                                                <asp:TemplateField HeaderText='<%$ Resources:Content, GN0000360 %>' HeaderStyle-CssClass="col-xs-1" ItemStyle-CssClass="col-xs-1">
                                                    <ItemTemplate>
                                                        <asp:LinkButton ID="LB_PSTSetting" CommandName="PSTSetting"
                                                            CommandArgument='<%# DataBinder.Eval(Container, "DataItem.ServerGroupID") %>'
                                                            runat="server" Text="<%$ Resources:Content,DGN1110331%>" />
                                                    </ItemTemplate>
                                                </asp:TemplateField>
                                            </Columns>
                                            <%--PagerTemplate Start--%>
                                            <PagerTemplate>
                                                <EM:Pager ID="Pager1" runat="server" />
                                            </PagerTemplate>
                                            <%--PagerTemplate End--%>
                                        </asp:GridView>
                                        <UC:PSTSettings ID="PSTSettings1" runat="server" Visible="false" />
                                    </div>
                                </div>
                            </div>
                        </div>
                    </asp:Panel>
                </ContentTemplate>
            </EM:TabPanel>
            <EM:TabPanel ID="Tab_PSTImports" runat="server" HeaderText="<%$ Resources:Content,strPSTImports %>">
                <ContentTemplate>
                    <asp:Button ID="Btn_Tab1" runat="server" CssClass="btn-dummy" />
                    <asp:Panel ID="Pnl_TabContent1" runat="server" Visible="false">
                        <div class="card">

                            <div class="body">
                                <div class="row Div_OpsRow" id="Pnl_ImportOperationsBox" runat="server">
                                    <div class="col-xs-12">
                                        <div class="card">
                                            <div class="header">
                                                <h3>
                                                    <%= Resources.Content.GN00001320%>                   
                                                </h3>
                                            </div>
                                            <div class="body">
                                                <asp:Button ID="Btn_NewImportJob" runat="server" class="btn btn-primary waves-effect btnAction" Text="<%$ Resources:Content,NewPSTImport%>" />
                                            </div>
                                        </div>
                                    </div>
                                </div>

                                <div id="Pnl_ImportRequestDetails" runat="server" visible="false">
                                    <div class="card">
                                        <div class="header">
                                            <h3>
                                                <%= Resources.Content.ImportantNote%>                   
                                            </h3>
                                        </div>
                                        <div class="body">
                                            <asp:Panel ID="Pnl_Note" runat="server" CssClass="helpBox">
                                                <strong>
                                                    <asp:Label ID="Label6" runat="server" Text="<%$ Resources:Content, PreRequisites %>" />:</strong>
                                                <div style="height: 3px;"></div>
                                                <ul>
                                                    <li style="list-style: circle">
                                                        <asp:Literal ID="Literal5" runat="server" Text="<%$ Resources:Content,TheFolder %>" EnableViewState="false"></asp:Literal>
                                                        '<asp:Label ID="Lbl_PSTFolder" runat="server" Text="{IMPORTPSTFILES}"></asp:Label>' 
                                                        <asp:Literal ID="Literal7" runat="server" Text="<%$ Resources:Content,MustContainPST %>" EnableViewState="false"></asp:Literal>
                                                    <li style="list-style: circle">
                                                        <asp:Literal ID="Literal8" runat="server" Text="<%$ Resources:Content,PSTFileNameAsUPN %>" EnableViewState="false"></asp:Literal></li>
                                                    <li style="list-style: circle">
                                                        <asp:Literal ID="Literal9" runat="server" Text="<%$ Resources:Content,ImportPSTNote3 %>" EnableViewState="false"></asp:Literal></li>
                                                </ul>
                                            </asp:Panel>
                                        </div>
                                    </div>
                                    <div style="height: 5px;"></div>
                                    <div class="card">
                                        <div class="header">
                                            <h3>
                                                <%= Resources.Content.NewPSTImport%>                   
                                            </h3>
                                        </div>
                                        <div class="body">
                                            <%--<div class="row">
                                            <div class="col-xs-12">
                                                <asp:Literal ID="Literal5" runat="server" Text="Text='<%# String.Format("{0} [{1}]", Eval("DisplayName"),Eval("UPN")) %>'" EnableViewState="false"></asp:Literal>
                                                The folder {{IMPORTPSTFILES}} must contain PST files for organization. The PST file name must match mailbox UPN.
                                            </div>
                                        </div>--%>
                                            <div class="row">
                                                <div class="col-sm-4 col-xs-12 row-label">
                                                    <asp:Literal ID="Literal6" runat="server" Text="<%$ Resources:Content,strSelectOrganization %>" EnableViewState="false"></asp:Literal>:
                                                </div>
                                                <div class="col-sm-4 col-xs-12">
                                                    <asp:DropDownList ID="Ddl_SelectImportOrganization" runat="server" AutoPostBack="true"></asp:DropDownList>
                                                </div>
                                            </div>
                                            <%--<div class="row">
                                            <div class="col-sm-4 col-xs-12 row-label">
                                                <asp:Literal ID="Literal8" runat="server" Text="<%$ Resources:Content,SelectMailbox%>" EnableViewState="false"></asp:Literal>:
                                            </div>
                                            <div class="col-sm-4 col-xs-12">
                                                <asp:DropDownList ID="Ddl_SelectImportMailbox" runat="server" AutoPostBack="true"></asp:DropDownList>
                                            </div>
                                        </div>
                                        <div class="row">
                                            <div class="col-sm-4 col-xs-12 row-label">
                                                <asp:Literal ID="Literal5" runat="server" Text="<%$ Resources:Content,SelectPSTFolder%>" EnableViewState="false"></asp:Literal>:
                                            </div>
                                            <div class="col-sm-4 col-xs-12">
                                                <asp:LinkButton ID="Lbtn_SelectPSTFile" runat="server" Text="<%$Resources:Content,strSelectPSTFile %>"></asp:LinkButton>
                                                <br />
                                                <asp:Label ID="Lbl_SelectedImportFile" runat="server"></asp:Label>
                                                <asp:Button ID="Btn_DummySelectPSTFile" runat="server" CssClass="btn-dummy" />
                                            </div>
                                            <EM:ModalPopupExtender runat="server" ID="MPE_SelectPSTFile" BackgroundCssClass="modalBackground"
                                                DropShadow="false" PopupControlID="Pnl_SelectPSTFile" TargetControlID="Btn_DummySelectPSTFile"
                                                CancelControlID="Btn_CancelSelectPSTFile" OkControlID="Btn_CancelSelectPSTFile">
                                            </EM:ModalPopupExtender>
                                            <asp:Panel ID="Pnl_SelectPSTFile" 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.DGN1110431%></h3>
                                                            <span>
                                                                <button type="button" class="close" onclick="$find('<%=MPE_SelectPSTFile.ClientID%>').hide();">&times;</button>
                                                            </span>
                                                        </div>
                                                        <div class="body">
                                                            <div class="row">
                                                                <div class="col-xs-12">
                                                                    <UC:GeneralFileManager ID="GeneralFileManager1" runat="server" AllowedFileExtensions=".pst" AllowToSelectFile="true"></UC:GeneralFileManager>
                                                                </div>
                                                            </div>
                                                            <div class="row">
                                                                <div class="col-xs-12">
                                                                    <asp:Button class="btn btn-primary waves-effect" ID="Btn_CancelSelectPSTFile" runat="server" Text='<%$ Resources:Content,Cancel%>' />
                                                                </div>
                                                            </div>
                                                        </div>
                                                    </div>
                                                </div>
                                            </asp:Panel>
                                        </div>--%>

                                            <div class="row">
                                                <div class="col-sm-4 col-xs-12 row-label">
                                                    <label>
                                                        <asp:Literal ID="Literal12" runat="server" Text='<%$ Resources:Content,strBadItemsLimit %>'></asp:Literal>:</label>
                                                </div>
                                                <div class="col-sm-4 col-xs-12">
                                                    <div class="form-group">
                                                        <div class="form-line">
                                                            <asp:TextBox ID="TxBx_ImportBadItemsLimit" runat="server" MaxLength="3" Text="0"></asp:TextBox>
                                                            <EM:FilteredTextBoxExtender ID="FTE_BadItemsLimit" runat="server" TargetControlID="TxBx_ImportBadItemsLimit" FilterType="Numbers"></EM:FilteredTextBoxExtender>
                                                        </div>
                                                    </div>
                                                </div>
                                            </div>

                                            <div class="row">
                                                <div class="col-sm-4 col-xs-12 row-label">
                                                    <label>
                                                        <asp:Literal ID="Literal3" runat="server" Text='<%$ Resources:Content,strLargeItemsLimit %>'></asp:Literal>:</label>
                                                </div>
                                                <div class="col-sm-4 col-xs-12">
                                                    <div class="form-group">
                                                        <div class="form-line">
                                                            <asp:TextBox ID="TxBx_LargeItemsLimit" runat="server" MaxLength="3" Text="0"></asp:TextBox>
                                                            <EM:FilteredTextBoxExtender ID="FTE_LargeItemsLimit" runat="server" TargetControlID="TxBx_LargeItemsLimit" FilterType="Numbers"></EM:FilteredTextBoxExtender>
                                                        </div>
                                                    </div>
                                                </div>
                                            </div>
                                            <div class="row">
                                                <div class="col-sm-4 col-xs-12 row-label">
                                                    <label>
                                                        <asp:Literal ID="Literal4" runat="server" Text='Target Root Folder'></asp:Literal>:</label>
                                                </div>
                                                <div class="col-sm-4 col-xs-12">
                                                    <div class="form-group">
                                                        <div class="form-line">
                                                            <asp:TextBox ID="TxBx_TargetRootFolder" runat="server" MaxLength="999"></asp:TextBox>
                                                        </div>
                                                    </div>
                                                </div>
                                            </div>
                                            <div class="row">
                                                <div class="col-xs-offset-4 col-sm-4 col-xs-12">
                                                    <asp:Button ID="Btn_AddToBatch" runat="server" ValidationGroup="EmailClient" class="btn btn-primary waves-effect"
                                                        Text='<%$ Resources:Content, PreviewMBPST %>' />
                                                </div>
                                            </div>

                                            <div class="row">
                                                <div class="col-xs-12">
                                                    <asp:GridView ID="GV_ImportBatch" AutoGenerateColumns="false"
                                                        EmptyDataText='<%$ Resources:Content, strNoItemInBatch %>' CssClass="table table-bordered table-striped table-hover"
                                                        runat="server">
                                                        <Columns>
                                                            <asp:TemplateField HeaderStyle-CssClass="col-xs-4" ItemStyle-CssClass="col-xs-4" HeaderText="<%$ Resources:Content,USM0191 %>">
                                                                <ItemTemplate>
                                                                    <asp:HiddenField ID="HF_MailboxId" runat="server" Value='<%# Eval("MailboxId") %>' />
                                                                    <asp:Literal ID="Ltrl_Mailbox" runat="server" Text='<%# String.Format("{0} [{1}]",Eval("DisplayName"),Eval("UPN")) %>'></asp:Literal>
                                                                </ItemTemplate>
                                                            </asp:TemplateField>
                                                            <asp:TemplateField HeaderStyle-CssClass="col-xs-4" ItemStyle-CssClass="col-xs-4" HeaderText="<%$ Resources:Content,strUNCPathForImport %>">
                                                                <ItemTemplate>
                                                                    <asp:Literal ID="Ltrl_UNCPath" runat="server" Text='<%# Eval("UNCPstPath") %>'></asp:Literal>
                                                                    <asp:HiddenField ID="HF_BaseUNCPath" runat="server" Value='<%# Eval("BaseUNCPath") %>' />
                                                                </ItemTemplate>
                                                            </asp:TemplateField>
                                                            <asp:TemplateField HeaderStyle-CssClass="col-xs-4" ItemStyle-CssClass="col-xs-4" HeaderText="<%$ Resources:Content,GN0000360 %>">
                                                                <ItemTemplate>
                                                                    <asp:LinkButton ID="Lbtn_Remove" runat="server" Text="<%$ Resources:Content,Remove %>" CommandName="remove" CssClass="btnAction"
                                                                        CommandArgument='<%# Eval("RowId") %>'></asp:LinkButton>
                                                                </ItemTemplate>
                                                            </asp:TemplateField>
                                                        </Columns>
                                                    </asp:GridView>
                                                </div>
                                            </div>
                                            <div class="row">
                                                <div class="col-xs-offset-4 col-sm-4 col-xs-12">
                                                    <asp:Button ID="Btn_SaveImportRequest" Enabled="false" runat="server" class="btn btn-primary waves-effect btnAction" Text="<%$ Resources:Content,GN0000281 %>" />
                                                    &nbsp;
                                        <asp:Button ID="Btn_CancelImportRequestSave" runat="server" class="btn btn-primary waves-effect" Text="<%$ Resources:Content,GN0000572 %>" />
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                </div>

                                <div id="Pnl_EditImportJob" runat="server" visible="false">
                                    <div class="card">
                                        <div class="header">
                                            <h3>
                                                <%= Resources.Content.EditPSTImportJob%>               
                                            </h3>
                                        </div>
                                        <div class="body">
                                            <div class="row">
                                                <div class="col-sm-3 col-xs-12 row-label">
                                                    <label>
                                                        <asp:Literal ID="Literal13" runat="server" Text='<%$ Resources:Content,strMailbox %>'></asp:Literal>:</label>
                                                </div>
                                                <div class="col-sm-7 col-xs-12">
                                                    <asp:Label ID="Lb_Mailbox" runat="server"></asp:Label>
                                                    <asp:HiddenField ID="Hf_SGMemberId" runat="server" />
                                                </div>
                                            </div>
                                            <div class="row">
                                                <div class="col-sm-3 col-xs-12 row-label">
                                                    <label>
                                                        <asp:Literal ID="Literal10" runat="server" Text='<%$ Resources:Content,strBadItemsLimit %>'></asp:Literal>:</label>
                                                </div>
                                                <div class="col-sm-4 col-xs-12">
                                                    <div class="form-group">
                                                        <div class="form-line">
                                                            <asp:TextBox ID="TxBx_ImportBadItemsLimitEdit" runat="server" MaxLength="3" Text="0"></asp:TextBox>
                                                            <EM:FilteredTextBoxExtender ID="FTE_BadItemsLimitEdit" runat="server" TargetControlID="TxBx_ImportBadItemsLimitEdit" FilterType="Numbers"></EM:FilteredTextBoxExtender>
                                                        </div>
                                                    </div>
                                                </div>
                                            </div>

                                            <div class="row">
                                                <div class="col-sm-3 col-xs-12 row-label">
                                                    <label>
                                                        <asp:Literal ID="Literal11" runat="server" Text='<%$ Resources:Content,strLargeItemsLimit %>'></asp:Literal>:</label>
                                                </div>
                                                <div class="col-sm-4 col-xs-12">
                                                    <div class="form-group">
                                                        <div class="form-line">
                                                            <asp:TextBox ID="TxBx_LargeItemsLimitEdit" runat="server" MaxLength="3" Text="0"></asp:TextBox>
                                                            <EM:FilteredTextBoxExtender ID="FTE_LargeItemsLimitEdit" runat="server" TargetControlID="TxBx_LargeItemsLimitEdit" FilterType="Numbers"></EM:FilteredTextBoxExtender>
                                                        </div>
                                                    </div>
                                                </div>
                                            </div>

                                            <div class="row">
                                                <div class="col-xs-offset-3 col-sm-3 col-xs-12">
                                                    <asp:Button ID="Btn_EditImportJob" runat="server" class="btn btn-primary waves-effect btnAction" Text="<%$ Resources:Content,GN0000281 %>" />
                                                    &nbsp;
                                        <asp:Button ID="Btn_CancelEditImportJob" runat="server" class="btn btn-primary waves-effect" Text="<%$ Resources:Content,GN0000572 %>" />
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                </div>

                                <asp:Panel ID="Pnl_ImportsListing" runat="server">

                                    <asp:Panel ID="Pnl_SearchImports" runat="server" CssClass="row" DefaultButton="Btn_SearchImports">
                                        <div class="panel-group search-panel" id="AS_PSTImports" role="tablist" aria-multiselectable="true">
                                            <div class="col-xs-12" role="tab" id="SH_PSTImports">
                                                <div class="card">
                                                    <div class="header" role="button" data-toggle="collapse" data-parent="#AS_PSTImports" href="#<%= CSB_PSTImports.ClientID%>" aria-expanded="true" aria-controls="SH_PSTImports">
                                                        <h3>
                                                            <%= Resources.Content.GN0000395%>
                                                        </h3>
                                                    </div>
                                                    <div id="CSB_PSTImports" runat="server" class="body panel-collapse collapse" role="tabpanel" aria-labelledby="SH_PSTImports" aria-expanded="false">
                                                        <div class="row">
                                                            <div class="col-md-3 col-sm-6 col-xs-12" runat="server" id="div_Owner_search_imports">
                                                                <div class="form-group form-float">
                                                                    <asp:DropDownList ID="DDl_SearchImports_Owner" runat="server" onchange="setOwnerCookie(this)"></asp:DropDownList>
                                                                </div>
                                                            </div>
                                                            <div class="col-md-3 col-sm-6 col-xs-12" id="div_Customer_search_imports" runat="server">
                                                                <div class="form-group form-float">
                                                                    <div class="form-line">
                                                                        <asp:TextBox ID="TxBx_SearchImports_Customer" runat="server"></asp:TextBox>
                                                                        <asp:Label ID="Label3" runat="server" EnableViewState="false" Text="<%$ Resources:Content,GN0000850%>" 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_SearchImports_Organization" runat="server" MaxLength="200"></asp:TextBox>
                                                                        <asp:Label ID="Label4" runat="server" EnableViewState="false" Text="<%$ Resources:Content,DGN1110357%>" 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_SearchImports_Mailbox" runat="server" MaxLength="128"></asp:TextBox>
                                                                        <asp:Label ID="Label5" runat="server" EnableViewState="false" Text="<%$ Resources:Content,strMailbox%>" 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_SearchImports_Status" runat="server">
                                                                        <asp:ListItem Text="<%$ Resources:Content, SelectStatus %>" Value="" Selected="True"></asp:ListItem>
                                                                        <asp:ListItem Text="<%$ Resources:Content, Queued %>" Value="0"></asp:ListItem>
                                                                        <asp:ListItem Text="<%$ Resources:Content, InProcess %>" Value="1"></asp:ListItem>
                                                                        <asp:ListItem Text="<%$ Resources:Content, Completed %>" Value="2"></asp:ListItem>
                                                                        <asp:ListItem Text="<%$ Resources:Content, Failed %>" Value="3"></asp:ListItem>
                                                                        <asp:ListItem Text="<%$ Resources:Content, Suspended %>" Value="4"></asp:ListItem>
                                                                        <asp:ListItem Text="<%$ Resources:Content, Synced %>" Value="5"></asp:ListItem>
                                                                        <asp:ListItem Text="<%$ Resources:Content, CompletedWithWarning %>" Value="6"></asp:ListItem>
                                                                        <asp:ListItem Text="<%$ Resources:Content, CompletionInProgress %>" Value="7"></asp:ListItem>
                                                                        <asp:ListItem Text="<%$ Resources:Content, None %>" Value="8"></asp:ListItem>
                                                                        <asp:ListItem Text="<%$ Resources:Content, AutoSuspeneded %>" Value="9"></asp:ListItem>
                                                                        <asp:ListItem Text="<%$ Resources:Content, Cancelled %>" Value="10"></asp:ListItem>
                                                                        <asp:ListItem Text="<%$ Resources:Content, InProgress %>" Value="11"></asp:ListItem>
                                                                    </asp:DropDownList>
                                                                </div>
                                                            </div>
                                                            <div class="col-xs-12">
                                                                <div class="form-group">
                                                                    <asp:Button ID="Btn_SearchImports" runat="server" CssClass="btn btn-primary waves-effect" Text="<%$ Resources:Content,GN0000391%>" />
                                                                    <asp:Button ID="Btn_ClearImports" Visible="false" CssClass="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_PSTImports" AllowPaging="true" AllowSorting="true" runat="server" AutoGenerateColumns="False"
                                                DataKeyNames="CompanyId">
                                                <Columns>
                                                    <asp:TemplateField SortExpression="OrganizationName" HeaderStyle-CssClass="col-xs-2" HeaderText='<%$ Resources:Content, DGN1110357 %>'>
                                                        <ItemTemplate>
                                                            <asp:HyperLink ID="LB_Organization" runat="server"></asp:HyperLink>
                                                        </ItemTemplate>
                                                    </asp:TemplateField>
                                                    <asp:TemplateField HeaderStyle-CssClass="col-xs-2" SortExpression="MailboxDisplayName" HeaderText="<%$ Resources:Content, strMailbox %>">
                                                        <ItemTemplate>
                                                            <asp:HyperLink ID="Lbl_Mailbox" runat="server"></asp:HyperLink>
                                                        </ItemTemplate>
                                                    </asp:TemplateField>
                                                    <asp:TemplateField HeaderStyle-CssClass="col-xs-2" SortExpression="CustomerName"
                                                        HeaderText="<%$ Resources:Content, GN0000850 %>">
                                                        <ItemTemplate>
                                                            <asp:HyperLink ID="LB_Customer" runat="server"></asp:HyperLink>
                                                        </ItemTemplate>
                                                    </asp:TemplateField>
                                                    <asp:TemplateField HeaderStyle-CssClass="col-xs-2" HeaderText="<%$ Resources:Content, SPT002811 %>">
                                                        <ItemTemplate>
                                                            <asp:HyperLink ID="Lbl_Owner" runat="server"></asp:HyperLink>
                                                        </ItemTemplate>
                                                    </asp:TemplateField>
                                                    <asp:TemplateField HeaderStyle-CssClass="col-xs-1" HeaderText="<%$ Resources:Content, String385 %>">
                                                        <ItemTemplate>
                                                            <asp:LinkButton ID="LB_Status" runat="server" CommandName="PSTStatus" />
                                                            <asp:HyperLink ID="HL_PSTDownloadLink" Text='<%$ Resources:Content,Downloaded %>' runat="server" Target="_blank"></asp:HyperLink>
                                                        </ItemTemplate>
                                                    </asp:TemplateField>
                                                    <asp:TemplateField SortExpression="LastUpdated" HeaderStyle-CssClass="col-xs-2" HeaderText="<%$ Resources:Content, DGN1110197%>">
                                                        <ItemTemplate>
                                                            <asp:Label ID="Lbl_LastUpdated" runat="server" Text='<%#DataBinder.Eval(Container, "DataItem.LastUpdated")%>' />
                                                        </ItemTemplate>
                                                    </asp:TemplateField>
                                                    <asp:TemplateField HeaderText="<%$ Resources:Content, GN0000360 %>" HeaderStyle-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" id="UL_OptionMenu" runat="server">
                                                                        <li>
                                                                            <asp:LinkButton ID="Lbtn_Edit" runat="server" Text="<%$Resources:Content,GN0000276 %>" CommandArgument='<%#DataBinder.Eval(Container, "DataItem.JobId")%>' Visible="false" CommandName="PSTEdit"></asp:LinkButton>
                                                                        </li>
                                                                        <li>
                                                                            <asp:LinkButton ID="Lbtn_Suspend" CssClass="btnAction" runat="server" Text="<%$Resources:Content,String601 %>"
                                                                                CommandArgument='<%#DataBinder.Eval(Container, "DataItem.JobId")%>' CommandName="Suspend"></asp:LinkButton></li>

                                                                        <li>
                                                                            <asp:LinkButton ID="Lbtn_Resume" CssClass="btnAction" runat="server" Text="<%$Resources:Content,String602 %>"
                                                                                CommandArgument='<%#DataBinder.Eval(Container, "DataItem.JobId")%>' CommandName="Resume"></asp:LinkButton></li>
                                                                        <li>
                                                                            <asp:LinkButton ID="Lbtn_Delete" CssClass="btnAction" Text="<%$ Resources:Content,GN0000377%>"
                                                                                CommandArgument='<%#DataBinder.Eval(Container, "DataItem.JobId")%>' CommandName="Remove" runat="server" />
                                                                        </li>
                                                                        <EM:ConfirmButtonExtender ID="CBE_Remove" runat="server" ConfirmText="<%$Resources:Content,String605%>"
                                                                            TargetControlID="Lbtn_Delete">
                                                                        </EM:ConfirmButtonExtender>
                                                                    </ul>
                                                                </li>
                                                            </ul>
                                                        </ItemTemplate>
                                                    </asp:TemplateField>
                                                </Columns>
                                                <%--PagerTemplate Start--%>
                                                <PagerTemplate>
                                                    <EM:Pager ID="Pager1" runat="server" />
                                                </PagerTemplate>
                                                <%--PagerTemplate End--%>
                                            </asp:GridView>
                                        </div>
                                    </div>

                                </asp:Panel>
                            </div>
                        </div>
                    </asp:Panel>
                </ContentTemplate>
            </EM:TabPanel>
            <EM:TabPanel ID="Tab_PSTIExports" runat="server" HeaderText="<%$ Resources:Content,strPSTExports %>">
                <ContentTemplate>
                    <asp:Button ID="Btn_Tab2" runat="server" CssClass="btn-dummy" />
                    <asp:Panel ID="Pnl_TabContent2" runat="server" Visible="false">
                        <div class="card">
                            <div class="body">
                                <div class="row Div_OpsRow" id="Div_ExportPSTJob" runat="server">
                                    <div class="col-xs-12">
                                        <div class="card">
                                            <div class="header">
                                                <h3>
                                                    <%= Resources.Content.GN00001320%>                   
                                                </h3>
                                            </div>
                                            <div class="body">
                                                <asp:Button ID="Btn_AddExportPSTJob" runat="server" class="btn btn-primary waves-effect btnAction" Text="<%$ Resources:Content,strAddExportPSTJob%>" />
                                            </div>
                                        </div>
                                    </div>
                                </div>

                                <asp:Panel ID="Pnl_SearchExports" runat="server" CssClass="row" DefaultButton="Btn_SearchExports">
                                    <div class="panel-group search-panel" id="AS_PSTExports" role="tablist" aria-multiselectable="true">
                                        <div class="col-xs-12" role="tab" id="SH_PSTExports">
                                            <div class="card">
                                                <div class="header" role="button" data-toggle="collapse" data-parent="#AS_PSTExports" href="#<%= CSB_PSTExports.ClientID%>" aria-expanded="true" aria-controls="SH_PSTExports">
                                                    <h3>
                                                        <%= Resources.Content.GN0000395%>
                                                    </h3>
                                                </div>
                                                <div id="CSB_PSTExports" runat="server" class="body panel-collapse collapse" role="tabpanel" aria-labelledby="SH_PSTExports" aria-expanded="false">
                                                    <div class="row">
                                                        <div class="col-md-3 col-sm-6 col-xs-12" runat="server" id="div_Owner_search">
                                                            <div class="form-group form-float">
                                                                <asp:DropDownList ID="DDl_SearchExports_Owner" runat="server" onchange="setOwnerCookie(this)"></asp:DropDownList>
                                                            </div>
                                                        </div>
                                                        <div class="col-md-3 col-sm-6 col-xs-12" id="div_Customer_search" runat="server">
                                                            <div class="form-group form-float">
                                                                <div class="form-line">
                                                                    <asp:TextBox ID="TxBx_SearchExports_Customer" runat="server"></asp:TextBox>
                                                                    <asp:Label ID="Label1" runat="server" EnableViewState="false" Text="<%$ Resources:Content,GN0000850%>" 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_SearchExports_Organization" runat="server" MaxLength="200"></asp:TextBox>
                                                                    <asp:Label ID="Label2" runat="server" EnableViewState="false" Text="<%$ Resources:Content,DGN1110357%>" 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_SearchExports_Mailbox" runat="server" MaxLength="128"></asp:TextBox>
                                                                    <asp:Label ID="Label7" runat="server" EnableViewState="false" Text="<%$ Resources:Content,strMailbox%>" 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_SearchExports_Status" runat="server">
                                                                    <asp:ListItem Text="<%$ Resources:Content, SelectStatus %>" Value="" Selected="True"></asp:ListItem>
                                                                    <asp:ListItem Text="<%$ Resources:Content, Queued %>" Value="0"></asp:ListItem>
                                                                    <asp:ListItem Text="<%$ Resources:Content, InProcess %>" Value="1"></asp:ListItem>
                                                                    <asp:ListItem Text="<%$ Resources:Content, Downloaded %>" Value="2"></asp:ListItem>
                                                                    <asp:ListItem Text="<%$ Resources:Content, Failed %>" Value="3"></asp:ListItem>
                                                                    <asp:ListItem Text="<%$ Resources:Content, Suspended %>" Value="4"></asp:ListItem>
                                                                    <asp:ListItem Text="<%$ Resources:Content, Synced %>" Value="5"></asp:ListItem>
                                                                    <asp:ListItem Text="<%$ Resources:Content, CompletedWithWarning %>" Value="6"></asp:ListItem>
                                                                    <asp:ListItem Text="<%$ Resources:Content, CompletionInProgress %>" Value="7"></asp:ListItem>
                                                                    <asp:ListItem Text="<%$ Resources:Content, None %>" Value="8"></asp:ListItem>
                                                                    <asp:ListItem Text="<%$ Resources:Content, AutoSuspeneded %>" Value="9"></asp:ListItem>
                                                                    <asp:ListItem Text="<%$ Resources:Content, Cancelled %>" Value="10"></asp:ListItem>
                                                                    <asp:ListItem Text="<%$ Resources:Content, InProgress %>" Value="11"></asp:ListItem>
                                                                </asp:DropDownList>
                                                            </div>
                                                        </div>
                                                        <div class="col-xs-12">
                                                            <div class="form-group">
                                                                <asp:Button ID="Btn_SearchExports" runat="server" CssClass="btn btn-primary waves-effect" Text="<%$ Resources:Content,GN0000391%>" />
                                                                <asp:Button ID="Btn_ClearExports" Visible="false" CssClass="btn btn-primary waves-effect" runat="server"
                                                                    Text="<%$ Resources:Content,String289 %>" />
                                                            </div>
                                                        </div>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                </asp:Panel>

                                <asp:GridView CssClass="table table-bordered table-striped table-hover"
                                    EmptyDataText="<%$ Resources:Content, GN00001375 %>"
                                    ID="GV_PSTExports" AllowPaging="true" AllowSorting="true" runat="server" AutoGenerateColumns="False"
                                    DataKeyNames="CompanyId">
                                    <Columns>
                                        <asp:TemplateField SortExpression="OrganizationName" HeaderStyle-CssClass="col-xs-2" HeaderText='<%$ Resources:Content, DGN1110357 %>'>
                                            <ItemTemplate>
                                                <asp:HyperLink ID="LB_Organization" runat="server"></asp:HyperLink>
                                            </ItemTemplate>
                                        </asp:TemplateField>
                                        <asp:TemplateField HeaderStyle-CssClass="col-xs-2" SortExpression="MailboxDisplayName" HeaderText="<%$ Resources:Content, strMailbox %>">
                                            <ItemTemplate>
                                                <asp:HyperLink ID="Lbl_Mailbox" runat="server"></asp:HyperLink>
                                            </ItemTemplate>
                                        </asp:TemplateField>
                                        <asp:TemplateField HeaderStyle-CssClass="col-xs-2" SortExpression="CustomerName"
                                            HeaderText="<%$ Resources:Content, GN0000850 %>">
                                            <ItemTemplate>
                                                <asp:HyperLink ID="LB_Customer" runat="server"></asp:HyperLink>
                                            </ItemTemplate>
                                        </asp:TemplateField>
                                        <asp:TemplateField HeaderStyle-CssClass="col-xs-2" HeaderText="<%$ Resources:Content, SPT002811 %>">
                                            <ItemTemplate>
                                                <asp:HyperLink ID="Lbl_Owner" runat="server"></asp:HyperLink>
                                            </ItemTemplate>
                                        </asp:TemplateField>
                                        <asp:TemplateField HeaderStyle-CssClass="col-xs-1" HeaderText="<%$ Resources:Content, String385 %>">
                                            <ItemTemplate>
                                                <asp:LinkButton ID="LB_Status" runat="server" CommandName="PSTStatus" />
                                                <asp:HyperLink ID="HL_PSTDownloadLink" Text='<%$ Resources:Content, Downloaded %>' runat="server" Target="_blank"></asp:HyperLink>
                                            </ItemTemplate>
                                        </asp:TemplateField>
                                        <asp:TemplateField SortExpression="LastUpdated" HeaderStyle-CssClass="col-xs-2" HeaderText="<%$ Resources:Content, DGN1110197%>">
                                            <ItemTemplate>
                                                <asp:Label ID="Lbl_LastUpdated" runat="server" Text='<%#DataBinder.Eval(Container, "DataItem.LastUpdated")%>' />
                                            </ItemTemplate>
                                        </asp:TemplateField>
                                        <asp:TemplateField HeaderText="<%$ Resources:Content, GN0000360 %>" HeaderStyle-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" id="UL_OptionMenu" runat="server">
                                                            <li>
                                                                <asp:LinkButton ID="Lbtn_Suspend" CssClass="btnAction" runat="server" Text="<%$Resources:Content,String601 %>"
                                                                    CommandArgument='<%#DataBinder.Eval(Container, "DataItem.JobId")%>' CommandName="Suspend"></asp:LinkButton></li>

                                                            <li>
                                                                <asp:LinkButton ID="Lbtn_Resume" CssClass="btnAction" runat="server" Text="<%$Resources:Content,String602 %>"
                                                                    CommandArgument='<%#DataBinder.Eval(Container, "DataItem.JobId")%>' CommandName="Resume"></asp:LinkButton></li>
                                                            <li>
                                                                <asp:LinkButton ID="Lbtn_Delete" CssClass="btnAction" Text="<%$ Resources:Content,GN0000377%>"
                                                                    CommandArgument='<%#DataBinder.Eval(Container, "DataItem.JobId")%>' CommandName="Remove" runat="server" />
                                                            </li>
                                                            <EM:ConfirmButtonExtender ID="CBE_Remove" runat="server" ConfirmText="<%$Resources:Content,String605%>"
                                                                TargetControlID="Lbtn_Delete">
                                                            </EM:ConfirmButtonExtender>
                                                        </ul>
                                                    </li>
                                                </ul>
                                            </ItemTemplate>
                                        </asp:TemplateField>
                                    </Columns>
                                    <%--PagerTemplate Start--%>
                                    <PagerTemplate>
                                        <EM:Pager ID="Pager1" runat="server" />
                                    </PagerTemplate>
                                    <%--PagerTemplate End--%>
                                </asp:GridView>


                                <%--Add Export PST Job --%>
                                <div class="row" id="Pnl_ExportPSTJob" runat="server" visible="false">
                                    <div class="col-xs-12">
                                        <div class="card">
                                            <div class="header">
                                                <h3>
                                                    <asp:Literal ID="Literal89" runat="server" EnableViewState="false" Text="<%$ Resources:Content,strAddPSTExportjobs%>" /></h3>
                                            </div>

                                            <div class="body">
                                                <div class="row" runat="server">
                                                    <div class="col-sm-3 col-xs-12 row-label">
                                                        <asp:Literal ID="Literal90" runat="server" EnableViewState="false" Text="<%$ Resources:Content,strOrganization %>"></asp:Literal>:
                                                    </div>
                                                    <div class="col-sm-4 col-xs-12">
                                                        <asp:DropDownList ID="Ddl_SelectOrganization" runat="server" AutoPostBack="true"></asp:DropDownList>
                                                    </div>
                                                </div>

                                                <div class="row">
                                                    <div class="col-xs-12 row-label">
                                                        <label>
                                                            <asp:Literal ID="Literal91" runat="server" EnableViewState="false" Text="<%$ Resources:Content,strSelectMailboxes%>"></asp:Literal>:</label>
                                                    </div>
                                                    <div class="col-xs-12">
                                                        <EM:AddSelectableSelected ID="UCOrgMailBoxes" runat="server" IsSelectedRequired="true" ClientSideOptimized="true" data-label="Mailboxes" />
                                                    </div>
                                                </div>

                                                <div class="row">
                                                    <div class="col-sm-4 col-xs-12 row-label">
                                                        <asp:Literal ID="Literal92" runat="server" Text="<%$Resources:Content,EmailaddressforPSTdownloadlink%>" EnableViewState="false"></asp:Literal>:
                                                    </div>
                                                    <div class="col-sm-8 col-xs-12">
                                                        <asp:TextBox ID="Txt_EmailaddressforPST" 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="Literal93" 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="Txt_BadLimitExportPST" runat="server" MaxLength="250" onkeyup="numbersOnly(this)"></asp:TextBox>
                                                            </div>
                                                        </div>
                                                    </div>
                                                </div>

                                                <div class="row">
                                                    <div class="col-sm-4 col-xs-12 row-label">
                                                        <asp:Literal ID="Literal96" runat="server" Text="<%$Resources:Content,GN0001300%>" EnableViewState="false"></asp:Literal>:
                                                    </div>
                                                    <div class="col-sm-2 col-xs-12">
                                                        <asp:DropDownList ID="ddl_Priority" runat="server">
                                                            <asp:ListItem Text="Lower" Value="Lower"></asp:ListItem>
                                                            <asp:ListItem Text="Low" Value="Low"></asp:ListItem>
                                                            <asp:ListItem Text="Normal" Value="Normal"></asp:ListItem>
                                                            <asp:ListItem Text="High" Value="High"></asp:ListItem>
                                                            <asp:ListItem Text="Higher" Value="Higher"></asp:ListItem>
                                                            <asp:ListItem Text="Highest" Value="Highest"></asp:ListItem>
                                                            <asp:ListItem Text="Emergency" Value="Emergency"></asp:ListItem>
                                                        </asp:DropDownList>
                                                    </div>
                                                </div>

                                                <div class="row">
                                                    <div class="col-xs-12">
                                                        <asp:Button ID="Btn_SavePSTExportBulk" runat="server" CausesValidation="false" CssClass="btn btn-primary waves-effect"
                                                            Text="<%$ Resources:Content,strSave%>" />
                                                        <asp:Button ID="btn_ClosePSTExportBulk" runat="server" CausesValidation="false" CssClass="btn btn-primary waves-effect"
                                                            Text="<%$ Resources:Content,GN000150%>" />
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                </div>


                            </div>
                        </div>
                    </asp:Panel>
                </ContentTemplate>
            </EM:TabPanel>
        </EM:TabContainer>

    </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_PSTStatus" BackgroundCssClass="modalBackground"
        DropShadow="false" CancelControlID="Btn_Close" PopupControlID="Pnl_ExportPSTStatus" TargetControlID="Button1"
        OkControlID="Button2">
    </EM:ModalPopupExtender>

    <asp:Panel ID="Pnl_ExportPSTStatus" 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">
                        <asp:Label ID="Lbl_StatusHeader" Text="<%$ Resources:Content,ExportPST %>" runat="server"></asp:Label>
                    </h3>
                    <span>
                        <button type="button" class="close" onclick="$find('<%=MPE_PSTStatus.ClientID%>').hide();">&times;</button>
                    </span>
                </div>
                <div class="body">
                    <div class="row">
                        <div class="col-sm-3 col-xs-12">
                            <asp:Literal ID="Literal1" runat="server" Text='<%$ Resources:Content,String385 %>'></asp:Literal>:
                        </div>
                        <div class="col-sm-9 col-xs-12">
                            <div class="form-group">
                                <asp:Label ID="Lbl_PSTJobStatus" runat="server"></asp:Label>
                            </div>
                        </div>
                    </div>
                    <div class="row">
                        <div class="col-sm-3 col-xs-12">
                            <asp:Literal ID="Literal14" runat="server" Text='<%$ Resources:Content,GN0001300 %>'></asp:Literal>:
                        </div>
                        <div class="col-sm-9 col-xs-12">
                            <div class="form-group">
                                <asp:Label ID="Lbl_Priority" runat="server" Text="Normal"></asp:Label>
                            </div>
                        </div>
                    </div>
                    <div class="row">
                        <div class="col-sm-3 col-xs-12">
                            <label>
                                <asp:Literal ID="Literal2" runat="server" Text='<%$ Resources:Content,GN0000843 %>'></asp:Literal>:</label>
                        </div>
                        <div class="col-sm-9 col-xs-12">
                            <div class="form-group break-word-all break-word-all">
                                <div id="PSTDetailMessage" runat="server"></div>
                            </div>
                        </div>
                    </div>
                    <div class="row">
                        <div class="col-xs-12">
                            <asp:Button ID="Btn_Close" CausesValidation="false" runat="server" Text='<%$ Resources:Content,GN000150 %>'
                                CssClass="btn btn-primary waves-effect" />
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </asp:Panel>
</asp:Content>

