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

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="EM" %>
<%@ Register Src="~/Template/GVPager.ascx" TagName="Pager" TagPrefix="EM" %>
<%@ Register Assembly="MachSol.MachPanel.Utility" Namespace="MachSol.MachPanel.Utility"
    TagPrefix="EM" %>
<%@ Register Assembly="System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" Namespace="System.Web.UI" TagPrefix="cc1" %>
<%@ Register Src="~/Template/CC/Selectable_Selected_LBX.ascx" TagName="AddSelectableSelected" TagPrefix="EM" %>

<asp:Content ID="Content5" ContentPlaceHolderID="CPH_Content" runat="Server">

    <div class="col-xs-12">
        <div class="card" id="ListingFilterParentCard" runat="server">
            <div class="header">
                <h3>
                    <%= Resources.Content.PublicFolderMailbox%>
                </h3>
            </div>
            <div class="body">
                <%--Start Search box--%>
                <asp:Panel ID="Pnl_Filter" runat="server" DefaultButton="Btn_Filter">
                    <div class="row">
                        <div class="panel-group search-panel" id="AS_PublicFolder" role="tablist" aria-multiselectable="true">
                            <div class="col-xs-12" role="tab" id="SH_PublicFolder">
                                <div class="card">
                                    <div class="header" role="button" data-toggle="collapse" data-parent="#AS_PublicFolder" href="#<%= CSB_PublicFolder.ClientID%>" aria-expanded="true" aria-controls="SH_PublicFolder">
                                        <h3>
                                            <%= Resources.Content.GN0000395%>
                                        </h3>
                                    </div>
                                    <div id="CSB_PublicFolder" runat="server" class="body panel-collapse collapse" role="tabpanel" aria-labelledby="SH_PublicFolder" aria-expanded="false">
                                        <div class="row">
                                            <div class="col-md-3 col-sm-6 col-xs-12">
                                                <div class="form-group form-float">
                                                    <asp:DropDownList ID="DDL_ServerGroup" runat="server"></asp:DropDownList>
                                                </div>
                                            </div>
                                            <div class="col-xs-12">
                                                <div class="form-group form-float">
                                                    <asp:Button ID="Btn_Filter" runat="server" class="btn btn-primary waves-effect" Text="<%$ Resources:Content,GN0000391%>" />
                                                    <asp:Button ID="Btn_clear" Visible="false" class="btn btn-primary waves-effect" runat="server"
                                                        Text="<%$ Resources:Content,String289 %>" />
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </asp:Panel>
                <%--End search box--%>
                <%--Start button--%>
                <div class="row" id="Pnl_Listing" runat="server">
                    <div class="col-xs-12 Div_OpsRow" id="Div_OpsRow" runat="server">
                        <div class="card">
                            <div class="header">
                                <h3><%= Resources.Content.GN00001320%></h3>
                            </div>
                            <div class="body">
                                <asp:Button ID="BTN_AddPFM" class="btn btn-primary waves-effect btnAction" runat="server" Text='<%$ Resources:Content,GN0000659 %>' />
                            </div>
                        </div>
                    </div>
                    <%--end button--%>
                    <div class="col-xs-12">
                        <asp:GridView ID="GV_PFM" CssClass="table table-bordered table-striped table-hover" AllowSorting="false" AllowPaging="false"
                            EmptyDataText='<%$ Resources:Content, GN00001375 %>' runat="server" AutoGenerateColumns="False">

                            <Columns>
                                <asp:TemplateField HeaderText='<%$ Resources:Content, GN000170 %>' HeaderStyle-CssClass="col-xs-6" ItemStyle-CssClass="col-xs-6">
                                    <ItemTemplate>
                                        <asp:Label ID="LB_Name" runat="server"></asp:Label>
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText='<%$ Resources:Content, DGN1110357 %>' HeaderStyle-CssClass="col-xs-4" ItemStyle-CssClass="col-xs-4">
                                    <ItemTemplate>
                                        <asp:Label ID="LB_Org" runat="server"></asp:Label>
                                    </ItemTemplate>
                                </asp:TemplateField>

                                <asp:TemplateField HeaderText='<%$ Resources:Content, GN0000360 %>' HeaderStyle-CssClass="col-xs-2" ItemStyle-CssClass="col-xs-2">
                                    <ItemTemplate>
                                        <asp:LinkButton ID="LB_Manage" class="btn btn-primary waves-effect" CommandName="Manage" runat="server" Text="<%$ Resources:Content,GN0000276%>" />
                                        <asp:LinkButton ID="LB_Remove" class="btn btn-primary waves-effect btnAction" CommandName="RemovePFM" runat="server" Text="<%$ Resources:Content,GN0000278%>" />
                                        <EM:ConfirmButtonExtender ID="CBE_Remove" ConfirmText="<%$ Resources:Content,CBE001%>"
                                            TargetControlID="LB_Remove" runat="server">
                                        </EM:ConfirmButtonExtender>
                                    </ItemTemplate>
                                </asp:TemplateField>
                            </Columns>
                            <%--PagerTemplate Start--%>
                            <PagerTemplate>
                                <EM:Pager ID="Pager1" runat="server" />
                            </PagerTemplate>
                            <%--PagerTemplate End--%>
                        </asp:GridView>
                    </div>
                </div>
            </div>
        </div>

        <div class="row" id="Pnl_AddPFM" runat="server" visible="false">
            <div class="col-xs-12">
                <div class="card">
                    <div class="header">
                        <h3><%= Resources.Content.PublicFolderMailbox %></h3>
                    </div>
                    <div class="body">
                        <div class="row">
                            <div class="col-sm-3 col-xs-12 row-label">
                                <label>
                                    *<asp:Label ID="Label5" runat="server" Text="<%$ Resources:Content,strSelectOption %>" />:</label>
                            </div>
                            <div class="col-sm-4 col-xs-12">
                                <asp:RadioButtonList ID="RBL_Org" runat="server" RepeatDirection="Horizontal" AutoPostBack="true" data-label="PF Mailbox Type">
                                    <asp:ListItem Selected="True" Text="<%$ Resources:Content,DGN1110596 %>" Value="1"></asp:ListItem>
                                    <asp:ListItem Text="<%$ Resources:Content,DGN1110595 %>" Value="0"></asp:ListItem>
                                </asp:RadioButtonList>
                            </div>
                        </div>
                        <div class="row" id="Tr_PFMName" runat="server" visible="false">
                            <div class="col-sm-3 col-xs-12 row-label">
                                <label>
                                    *<asp:Label ID="Lbl_PFMName" runat="server" Text="<%$ Resources:Content,GN000170 %>" />:</label>
                            </div>
                            <div class="col-sm-4 col-xs-12">
                                <div class="form-group">
                                    <div class="form-line">
                                        <asp:TextBox ID="TxBx_PFMName" runat="server" data-label="PF Mailbox Name" />
                                        <asp:RequiredFieldValidator ControlToValidate="TxBx_PFMName" ID="REQ_TxBx_DBName" SetFocusOnError="True" runat="server"
                                            Display="None" ValidationGroup="AddPFMDB"></asp:RequiredFieldValidator>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <div class="row">
                            <div class="col-sm-3 row-label">
                                <label>
                                    <asp:Label ID="Label4" runat="server" Text="<%$ Resources:Content,DGN1110357 %>" />:</label>
                            </div>
                            <div id="Div_Orgs" runat="server" class="col-sm-4 col-xs-12">
                                <asp:DropDownList ID="DDL_Org" runat="server" data-label="Organization"></asp:DropDownList>
                                <div id="Tbl_orgs" runat="server" visible="false">
                                    <EM:AddSelectableSelected ID="UCOrgs" runat="server" ClientSideOptimized="true" data-label="Organization" />
                                </div>
                            </div>

                        </div>
                        <div class="row">
                            <div class="col-sm-3 col-xs-12 row-label">
                                <label>*<asp:Label ID="Label22" runat="server" Text="<%$ Resources:Content,strSelectDB %>" />:</label>
                            </div>
                            <div class="col-sm-4 col-xs-12">
                                <div class="form-group">
                                    <asp:DropDownList ID="DDL_DB" runat="server" data-label="Database" />
                                </div>
                            </div>
                        </div>
                        <div>
                            <div class="row">
                                <div class="col-sm-3 col-xs-12 row-label">
                                    <label>
                                        <asp:Literal ID="Literal21c" runat="server" Text="<%$ Resources:Content,DGN1110373%>"
                                            EnableViewState="false" />:</label>
                                </div>
                                <div class="col-sm-4 col-xs-12">
                                    <div class="form-group">
                                        <div class="form-line">
                                            <asp:TextBox ID="Txt_IssueWarning" runat="server" MaxLength="7" data-label="Issue Warning At (MB)"></asp:TextBox>
                                            <asp:RegularExpressionValidator ID="REV_Txt_IssueWarning" runat="server" ControlToValidate="Txt_IssueWarning"
                                                ValidationExpression="([0-9])*" ErrorMessage="'Issue warning' is not valid."
                                                Display="None" SetFocusOnError="true" ValidationGroup="AdvanceSettings"></asp:RegularExpressionValidator>
                                        </div>
                                    </div>
                                </div>
                                <div class="col-sm-4 col-xs-12">
                                    <asp:CheckBox ID="ChBx_IssueWarningAt" Checked="true" runat="server" Text="<%$ Resources:Content,GN0000908%>" data-label="Issue Warning At (Unlimited)" />
                                    <asp:Label Visible="false" Text="*" runat="server" ForeColor="red" ID="Lbl_IssueWarningAt" />
                                </div>
                            </div>
                            <div class="row">
                                <div class="col-sm-3 col-xs-12 row-label">
                                    <label>
                                        <asp:Literal ID="Literal22" runat="server" Text="<%$ Resources:Content,DGN1110374%>"
                                            EnableViewState="false" />:</label>
                                </div>
                                <div class="col-sm-4 col-xs-12">
                                    <div class="form-group">
                                        <div class="form-line">
                                            <asp:TextBox ID="Txt_ProhibitedSend" runat="server" MaxLength="7" data-label="Prohibit Send At (MB)"></asp:TextBox>
                                            <asp:RegularExpressionValidator ID="REV_Txt_ProhibitedSend" runat="server" ControlToValidate="Txt_ProhibitedSend"
                                                ValidationExpression="([0-9])*" ErrorMessage="'Prohibit send' is not valid."
                                                Display="None" SetFocusOnError="true" ValidationGroup="AdvanceSettings"></asp:RegularExpressionValidator>
                                        </div>
                                    </div>
                                </div>
                                <div class="col-sm-4 col-xs-12">
                                    <asp:CheckBox ID="ChBx_ProhibitSend" Checked="true" runat="server" Text="<%$ Resources:Content,GN0000908%>" data-label="Prohibit Send At (Unlimited)" />
                                    <asp:Label Visible="false" ID="Lbl_ProhibitSend" runat="server" ForeColor="red" Text="*"></asp:Label>
                                </div>
                            </div>
                            <div class="row">
                                <div class="col-sm-3 col-xs-12 row-label">
                                    <label>
                                        <asp:Literal ID="Literal23" runat="server" Text="<%$ Resources:Content,DGN1110375%>"
                                            EnableViewState="false" />:</label>
                                </div>
                                <div class="col-sm-4 col-xs-12">
                                    <div class="form-group">
                                        <div class="form-line">
                                            <asp:TextBox ID="Txt_ProhibitedSend_Receive" runat="server" MaxLength="7" data-label="Prohibit Send And Receive At (MB)"></asp:TextBox>
                                            <asp:RegularExpressionValidator ID="REV_Txt_ProhibitedSend_Receive" runat="server"
                                                ControlToValidate="Txt_ProhibitedSend_Receive" ValidationExpression="([0-9])*"
                                                ErrorMessage="'Prohibit send and receive' is not valid." Display="None" SetFocusOnError="true"
                                                ValidationGroup="AdvanceSettings"></asp:RegularExpressionValidator>
                                        </div>
                                    </div>
                                </div>
                                <div class="col-sm-4 col-xs-12">
                                    <asp:CheckBox ID="ChBx_ProhibitSendrec" Checked="true" runat="server" Text="<%$ Resources:Content,GN0000908%>" data-label="Prohibit Send And Receive At (Unlimited)" />
                                    <asp:Label ID="Lbl_ProhibitSendrec" runat="server" ForeColor="red" Text="*" Visible="false">
                                    </asp:Label>
                                </div>
                            </div>
                        </div>

                        <div class="row">
                            <div class="col-xs-12">
                                <asp:ValidationSummary ID="VS" runat="server" ShowMessageBox="true" ShowSummary="false"
                                    ValidationGroup="AddPFMDB" HeaderText="<%$ Resources:Content,EM000001%>" />
                                <asp:Button ID="Btn_PFMAdd" runat="server" ValidationGroup="AddPFMDB" CausesValidation="True"
                                    class="btn btn-primary waves-effect btnAction" Text="<%$ Resources:Content,GN0000281%>" />
                                <asp:Button ID="Btn_PFMAddClose" runat="server" CausesValidation="false" class="btn btn-primary waves-effect"
                                    Text="<%$ Resources:Content,GN0000572%>" />
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <div class="row" id="Pnl_EditDB" runat="server" visible="false">
            <div class="col-xs-12">
                <div class="card">
                    <div class="header">
                        <h3><%= Resources.Content.PublicFolderMailbox %></h3>
                    </div>
                    <div class="body">
                        <div class="row">
                            <div class="col-sm-3 col-xs-12 row-label">
                                <asp:Label ID="Label9" runat="server" Text="<%$ Resources:Content,GN000170 %>" />:
                            </div>
                            <div class="col-sm-9 col-xs-12" id="TD_PFMNameEdit" runat="server"></div>
                        </div>
                        <div class="row">
                            <div class="col-sm-3 col-xs-12 row-label">
                                <asp:Label ID="Label2" runat="server" Text="<%$ Resources:Content,GN0000652 %>" />:
                                <asp:HiddenField ID="HF_Email" runat="server" />
                            </div>
                            <div class="col-sm-5 col-xs-12">
                                <div class="form-group">
                                    <div class="form-line">
                                        <asp:TextBox ID="TxBx_Email" runat="server" />
                                        <asp:RequiredFieldValidator ControlToValidate="TxBx_Email" ID="RequiredFieldValidator1" SetFocusOnError="True" runat="server"
                                            Display="None" ValidationGroup="EditPFMDB"></asp:RequiredFieldValidator>
                                        <%--<asp:RegularExpressionValidator ID="RegularExpressionValidator1" ValidationGroup="EditPFMDB" ControlToValidate="TxBx_Email" runat="server" ValidationExpression="<%$ Resources:MPRegex,EmailAddress%>" Display="None" SetFocusOnError="True" ErrorMessage='<%$ Resources:Content,GN0000592 %>'></asp:RegularExpressionValidator>--%>
                                    </div>
                                </div>
                            </div>
                        </div>

                        <div class="row" id="Div_EditOrgs" runat="server">
                            <div class="col-xs-12 row-label">
                                <label>
                                    <asp:Label ID="Label1" runat="server" Text="<%$ Resources:Content,DGN1110357 %>" />:</label>
                            </div>
                            <div class="col-xs-12">
                                <EM:AddSelectableSelected ID="UCOrgsEdit" runat="server" ClientSideOptimized="true" />

                            </div>
                        </div>
                        <div>

                            <div class="row">
                                <div class="col-sm-3 col-xs-12 row-label">
                                    <label>*<asp:Label ID="Label3" runat="server" Text="<%$ Resources:Content,strSelectDB %>" />:</label>
                                </div>
                                <div class="col-sm-4 col-xs-12">
                                    <div class="form-group">
                                        <asp:DropDownList ID="ddl_DBNameEdit" runat="server" />
                                    </div>
                                </div>
                                <div class="col-sm-5 col-xs-12">
                                    <asp:Label ID="Label6" runat="server" ForeColor="red" Text="<%$ Resources:Content,strNoteForDBChangeinPublicFolderMailbox%>" />
                                </div>
                            </div>

                            <div class="row">
                                <div class="col-sm-3 col-xs-12 row-label">
                                    <label>
                                        <asp:Literal ID="Literal1" runat="server" Text="<%$ Resources:Content,DGN1110373%>"
                                            EnableViewState="false" />:</label>
                                </div>
                                <div class="col-sm-4 col-xs-12">
                                    <div class="form-group">
                                        <div class="form-line">
                                            <asp:TextBox ID="Txt_IssueWarningEdit" runat="server" MaxLength="7"></asp:TextBox>
                                            <asp:RegularExpressionValidator ID="REV_Txt_IssueWarningEdit" runat="server" ControlToValidate="Txt_IssueWarningEdit"
                                                ValidationExpression="([0-9])*" ErrorMessage="'Issue warning' is not valid."
                                                Display="None" SetFocusOnError="true" ValidationGroup="AdvanceSettings"></asp:RegularExpressionValidator>
                                        </div>
                                    </div>
                                </div>
                                <div class="col-sm-4 col-xs-12">
                                    <asp:CheckBox ID="ChBx_IssueWarningAtEdit" Checked="true" runat="server" Text="<%$ Resources:Content,GN0000908%>" />
                                    <asp:Label Visible="false" Text="*" runat="server" ForeColor="red" ID="Lbl_IssueWarningAtEdit" />
                                </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,DGN1110374%>"
                                            EnableViewState="false" />:</label>
                                </div>
                                <div class="col-sm-4 col-xs-12">
                                    <div class="form-group">
                                        <div class="form-line">
                                            <asp:TextBox ID="Txt_ProhibitedSendEdit" runat="server" MaxLength="7"></asp:TextBox>
                                            <asp:RegularExpressionValidator ID="REV_Txt_ProhibitedSendEdit" runat="server" ControlToValidate="Txt_ProhibitedSendEdit"
                                                ValidationExpression="([0-9])*" ErrorMessage="'Prohibit send' is not valid."
                                                Display="None" SetFocusOnError="true" ValidationGroup="AdvanceSettings"></asp:RegularExpressionValidator>
                                        </div>
                                    </div>
                                </div>
                                <div class="col-sm-4 col-xs-12">
                                    <asp:CheckBox ID="ChBx_ProhibitSendEdit" Checked="true" runat="server" Text="<%$ Resources:Content,GN0000908%>" />
                                    <asp:Label Visible="false" ID="Lbl_ProhibitSendEdit" runat="server" ForeColor="red" Text="*"></asp:Label>
                                </div>
                            </div>
                            <div class="row">
                                <div class="col-sm-3 col-xs-12 row-label">
                                    <label>
                                        <asp:Literal ID="Literal3" runat="server" Text="<%$ Resources:Content,DGN1110375%>"
                                            EnableViewState="false" />:</label>
                                </div>
                                <div class="col-sm-4 col-xs-12">
                                    <div class="form-group">
                                        <div class="form-line">
                                            <asp:TextBox ID="Txt_ProhibitedSend_ReceiveEdit" runat="server" MaxLength="7"></asp:TextBox>
                                            <asp:RegularExpressionValidator ID="REV_Txt_ProhibitedSend_ReceiveEdit" runat="server"
                                                ControlToValidate="Txt_ProhibitedSend_ReceiveEdit" ValidationExpression="([0-9])*"
                                                ErrorMessage="'Prohibit send and receive' is not valid." Display="None" SetFocusOnError="true"
                                                ValidationGroup="AdvanceSettings"></asp:RegularExpressionValidator>
                                        </div>
                                    </div>
                                </div>
                                <div class="col-sm-4 col-xs-12">
                                    <asp:CheckBox ID="ChBx_ProhibitSendRecEdit" Checked="true" runat="server" Text="<%$ Resources:Content,GN0000908%>" />
                                    <asp:Label ID="Lbl_ProhibitSendrecEdit" runat="server" ForeColor="red" Text="*" Visible="false">
                                    </asp:Label>
                                </div>
                            </div>
                        </div>

                        <div class="row">
                            <div class="col-xs-12">
                                <asp:ValidationSummary ID="ValidationSummary1" runat="server" ShowMessageBox="true" ShowSummary="false"
                                    ValidationGroup="EditPFMDB" HeaderText="<%$ Resources:Content,EM000001%>" />
                                <asp:Button ID="Btn_EditPFM" runat="server" ValidationGroup="EditPFMDB" CausesValidation="True"
                                    class="btn btn-primary waves-effect btnAction" Text="<%$ Resources:Content,GN0000281%>" />
                                <asp:Button ID="Btn_EditPFMAddClose" runat="server" CausesValidation="false" class="btn btn-primary waves-effect"
                                    Text="<%$ Resources:Content,GN0000572%>" />
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>

        <asp:ValidationSummary ID="ValidationSummary3" runat="server" ShowMessageBox="true"
            ShowSummary="false" ValidationGroup="AdvanceSettings" />

    </div>

</asp:Content>

