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

<CC:UpdatePanelInlineScriptControl ID="UpdatePanelInlineScriptControl1" runat="server">
    <script type="text/javascript">
        //function ChangeDLabel() {

            <%--var CtrlDDL = document.getElementById('<%=Ddl_DisclaimerTo.ClientID%>');
            var CtrlApplyLabel = document.getElementById('<%=Lbl_ApplyLable.ClientID%>');

            if (CtrlDDL.value == '1') { // incoming
                CtrlApplyLabel.innerHTML = '<%= Resources.Content.ApplyRuleIfRecipientIs %>'; //"ApplyRuleIfRecipientIs";
            }
            else if (CtrlDDL.value == '2') {    // outgoing 
                CtrlApplyLabel.innerHTML = '<%= Resources.Content.strApplyThisRule %>'; // "Apply this rule if the sender is";
            }--%>

        // }       }
    </script>
</CC:UpdatePanelInlineScriptControl>

<div class="row">
    <div class="col-xs-12" id="Div_Listing" runat="server">

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

        <br />
        <div class="card">
            <div class="body">
                <div class="row">
                    <div class="col-xs-12">
                        <asp:GridView ID="GV_Signature" runat="server" AllowPaging="true" DataSourceID=""
                            CssClass="table table-bordered table-striped table-hover" AutoGenerateColumns="false" EmptyDataText="<%$ Resources:Content,GN00001375%>">
                            <Columns>
                                <asp:TemplateField HeaderText="<%$ Resources:Content,SignatureName%>" HeaderStyle-CssClass="col-xs-8" ItemStyle-CssClass="col-xs-8">
                                    <ItemTemplate>
                                        <asp:Label ID="Lbl_SignatureName" runat="server" />
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText="<%$ Resources:Content,GN0001300%>" HeaderStyle-CssClass="col-xs-1" ItemStyle-CssClass="col-xs-1">
                                    <ItemTemplate>
                                        <asp:Label ID="Lbl_Priority" runat="server" />
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText="<%$ Resources:Content,OWAOnly%>" HeaderStyle-CssClass="col-xs-1" ItemStyle-CssClass="col-xs-1">
                                    <ItemTemplate>
                                        <asp:Label ID="Lbl_OWAOnly" runat="server" />
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText="<%$ Resources:Content,GN0000360%>" HeaderStyle-CssClass="col-xs-1" ItemStyle-CssClass="col-xs-1">
                                    <ItemTemplate>
                                        <ul class="option-menu">
                                            <li class="dropdown">
                                                <a href="javascript:void(0);" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">
                                                    <i class="material-icons">menu</i>
                                                </a>
                                                <ul class="dropdown-menu pull-right">
                                                    <li>

                                                        <asp:LinkButton ID="LB_Edit" runat="server" CssClass="btnAction" CommandName="editdisc"
                                                            Text='<%$ Resources:Content, GN0000276 %>' CausesValidation="false"></asp:LinkButton>
                                                    </li>
                                                    <li>
                                                        <asp:LinkButton ID="LB_Preview" runat="server" CssClass="btnAction" CommandName="preview" Text='<%$ Resources:Content, Preview %>' CausesValidation="false"></asp:LinkButton>
                                                    </li>
                                                    <li>
                                                        <asp:LinkButton ID="LB_Clone" runat="server" CssClass="btnAction" CommandName="clone" Text='<%$ Resources:Content, DGN1110198 %>' CausesValidation="false"></asp:LinkButton>
                                                    </li>
                                                    <li>
                                                        <asp:LinkButton ID="LB_Remove" runat="server" CssClass="btnAction" CommandName="removedisc"
                                                            Text='<%$ Resources:Content, GN0000278 %>' CausesValidation="false"></asp:LinkButton>
                                                        <EM:ConfirmButtonExtender ID="CBE_Remove" runat="server" ConfirmText="<%$Resources:Content,CBE001%>"
                                                            TargetControlID="LB_Remove">
                                                        </EM:ConfirmButtonExtender>
                                                    </li>
                                                </ul>
                                            </li>
                                        </ul>

                                    </ItemTemplate>
                                </asp:TemplateField>
                            </Columns>
                            <%--PagerTemplate Start--%>
                            <PagerTemplate>
                                <EM:Pager ID="Pager1" runat="server" />
                            </PagerTemplate>
                            <%--PagerTemplate End--%>
                        </asp:GridView>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <div class="col-xs-12" id="Div_AddEdit" runat="server">
        <div class="card">
            <div class="header">
                <h3>
                    <asp:Literal ID="Ltl_Heading" runat="server" EnableViewState="false" Text="<%$ Resources:Content,AddSignature %>" />
                </h3>
            </div>
            <div class="body">
                <div class="row">
                    <div class="col-sm-3 col-xs-12 row-label">
                        <label>
                            *<asp:Literal ID="Literal57" runat="server" Text="<%$ Resources:Content,SignatureName%>"
                                EnableViewState="false" />:</label>
                    </div>
                    <div class="col-sm-4 col-xs-12">
                        <div class="form-group">
                            <div class="form-line">
                                <asp:TextBox ID="TxBx_SignatureName" runat="server" />
                            </div>
                        </div>
                        <asp:RequiredFieldValidator ControlToValidate="TxBx_SignatureName" ID="RFV_TxBx_SignatureName" runat="server"
                            Display="None" ValidationGroup="Signature"></asp:RequiredFieldValidator>
                    </div>
                </div>
                <div class="row" id="Div_ReceiverType" runat="server">
                    <div class="col-sm-3 col-xs-12 row-label">
                        <label>
                            <asp:Literal ID="Literal12" runat="server" Text="<%$ Resources:Content,ApplyWhen%>"
                                EnableViewState="false" />:</label>
                    </div>
                    <div class="col-sm-4 col-xs-12">
                        <div class="form-group">
                            <asp:RadioButtonList ID="Rbl_ReceiverType" runat="server" RepeatDirection="Horizontal">
                                <asp:ListItem Text="<%$ Resources:Content,SMI0375%>" Value="External"></asp:ListItem>
                                <asp:ListItem Text="<%$ Resources:Content,Internal%>" Value="Internal"></asp:ListItem>
                                <asp:ListItem Text="<%$ Resources:Content,L0095%>" Value="Both" Selected="True"></asp:ListItem>
                            </asp:RadioButtonList>
                        </div>
                    </div>
                </div>
                <div class="row" id="Div_Priority" runat="server">
                    <div class="col-sm-3 col-xs-12 row-label">
                        <label>
                            *<asp:Literal ID="Literal1" runat="server" Text="<%$ Resources:Content,GN0001300%>"
                                EnableViewState="false" />:</label>
                    </div>
                    <div class="col-sm-4 col-xs-12">
                        <div class="form-group">
                            <div class="form-line">
                                <asp:DropDownList ID="DDL_Priority" runat="server">
                                    <asp:ListItem Text="1" Value="1" Selected="true"></asp:ListItem>
                                    <asp:ListItem Text="2" Value="2"></asp:ListItem>
                                    <asp:ListItem Text="3" Value="3"></asp:ListItem>
                                    <asp:ListItem Text="4" Value="4"></asp:ListItem>
                                    <asp:ListItem Text="5" Value="5"></asp:ListItem>
                                    <asp:ListItem Text="6" Value="6"></asp:ListItem>
                                    <asp:ListItem Text="7" Value="7"></asp:ListItem>
                                    <asp:ListItem Text="8" Value="8"></asp:ListItem>
                                    <asp:ListItem Text="9" Value="9"></asp:ListItem>
                                    <asp:ListItem Text="10" Value="10"></asp:ListItem>
                                </asp:DropDownList>
                            </div>
                        </div>
                    </div>
                    <div class="col-sm-5 col-xs-12">
                        <asp:Literal ID="Literal2" runat="server" Text="<%$ Resources:Content,OWAPriorityLabel%>"
                            EnableViewState="false" />
                    </div>
                </div>
                <div class="row">
                    <div class="col-xs-12 row-label">
                        <label>
                            <asp:Literal ID="Literal10" runat="server" Text="<%$ Resources:Content,SignatureFor%>"
                                EnableViewState="false" />:</label>
                    </div>
                    <div class="col-xs-12">
                        <ajax:UpdatePanel ID="UP_SignatureFor" runat="server">
                            <ContentTemplate>
                                <EM:AddSelectableSelected ID="UCSignatureFor" runat="server" />
                            </ContentTemplate>
                        </ajax:UpdatePanel>
                    </div>
                </div>

                <div class="row" id="div_admin_signature_note" runat="server" style="color: #0a06c6">
                    <div class="col-xs-12">
                        <strong>
                            <asp:Label ID="Label2" runat="server" Text="<%$Resources:Content,ExMailAdminSignatureNote1 %>" /></strong>
                        <ul>
                            <li style="list-style: square;">
                                <asp:Label ID="Label3" runat="server"
                                    Text="<%$Resources:Content,ExMailAdminSignatureNote2 %>" /></li>
                            <li style="list-style: square;">
                                <asp:Label ID="Label4" runat="server"
                                    Text="<%$Resources:Content, ExMailAdminSignatureNote3 %>" /></li>
                        </ul>
                    </div>
                </div>
                <div class="panel-group" id="accordion_SignatureHtml" runat="server" role="tablist" aria-multiselectable="true">
                    <div class="panel panel-primary">
                        <div class="panel-heading" role="tab" id="heading_SignatureHtml" runat="server">
                            <h2 class="panel-title">
                                <a role="button" id="A_SignatureHtml" data-toggle="collapse" data-parent="#<%= accordion_SignatureHtml.ClientID %>" href="#<%= CSB_SignatureHtml.ClientID%>" aria-expanded="true" aria-controls="<%= CSB_SignatureHtml.ClientID%>" class="collapsed">
                                    <asp:Label ID="Lbl_SignatureHtml" Text="<%$ Resources:Content,SignatureHtml %>" runat="server"></asp:Label>
                                </a>
                            </h2>
                        </div>
                        <div id="CSB_SignatureHtml" runat="server" class="panel-collapse" role="tabpanel" aria-labelledby="<%= heading_SignatureHtml.ClientID %>" aria-expanded="false" style="height: 0px;">
                            <div class="panel-body">

                                <div class="row">
                                    <div class="col-xs-12">
                                        <obout:Editor ID="Editor_SignatureHtml" Submit="false" ShowWaitMessage="false" AjaxWait="false" runat="server" Appearance="custom" ShowQuickFormat="false">
                                            <Buttons>
                                                <obout:Select Name="FontName" />
                                                <obout:Select Name="FontSize" />
                                                <obout:HorizontalSeparator />
                                                <obout:Toggle Name="Bold" />
                                                <obout:Toggle Name="Italic" />
                                                <obout:Toggle Name="Underline" />
                                                <obout:Toggle Name="StrikeThrough" />
                                                <obout:Toggle Name="SuperScript" />
                                                <obout:Toggle Name="SubScript" />
                                                <obout:HorizontalSeparator />
                                                <obout:Method Name="ForeColor" />
                                                <obout:Method Name="ForeColorClear" />
                                                <obout:Method Name="BackColor" />
                                                <obout:Method Name="BackColorClear" />
                                                <obout:VerticalSeparator />
                                                <obout:Method Name="Redo" />
                                                <obout:Method Name="Undo" />
                                                <obout:HorizontalSeparator />
                                                <obout:Method Name="Cut" />
                                                <obout:Method Name="Copy" />
                                                <obout:Method Name="Paste" />
                                                <obout:Method Name="PasteText" />
                                                <obout:HorizontalSeparator />
                                                <obout:Method Name="Paragraph" />
                                                <obout:Method Name="GetFormat" />
                                                <obout:Method Name="ApplyFormat" />
                                                <obout:HorizontalSeparator />
                                                <obout:Method Name="JustifyLeft" />
                                                <obout:Method Name="JustifyCenter" />
                                                <obout:Method Name="JustifyRight" />
                                                <obout:Method Name="JustifyFull" />
                                                <obout:HorizontalSeparator />
                                                <obout:Method Name="OrderedList" />
                                                <obout:Method Name="BulletedList" />
                                                <obout:HorizontalSeparator />
                                                <obout:Method Name="InsertHR" />
                                                <obout:Method Name="CreateLink" />
                                                <obout:Method Name="InsertAnchor" />
                                                <obout:Method Name="InsertIMG" />
                                                <obout:HorizontalSeparator />
                                                <obout:Method Name="ClearStyles" />
                                            </Buttons>

                                        </obout:Editor>
                                    </div>
                                </div>
                                <div class="row">
                                    <div class="col-sm-5 col-xs-12">
                                        <div class="form-group">
                                            <asp:DropDownList ID="DDL_CompanyVariablesHtml" runat="server">
                                                <asp:ListItem Text="<%$ Resources:Content, FAM0056%>" Value="0" />
                                                <asp:ListItem Text="<%$ Resources:Content, GN0000880%>" Value="%%City%%" />
                                                <asp:ListItem Text="<%$ Resources:Content, GN00001077%>" Value="%%Company%%" />
                                                <asp:ListItem Text="<%$ Resources:Content, FAM0058%>" Value="%%CountryOrRegion%%" />
                                                <asp:ListItem Text="<%$ Resources:Content, GN0000374%>" Value="%%Department%%" />
                                                <asp:ListItem Text="<%$ Resources:Content, GN00001113%>" Value="%%DisplayName%%" />
                                                <%--<asp:ListItem Text="<%$ Resources:Content, DGN1110432%>" Value="%%DomainController%%" />--%>
                                                <%--<asp:ListItem Text="<%$ Resources:Content, GN0000491%>" Value="%%PrimarySmtpAddress%%" />--%>
                                                <asp:ListItem Text="<%$ Resources:Content, GN0000886%>" Value="%%Fax%%" />
                                                <asp:ListItem Text="<%$ Resources:Content, GN00001132%>" Value="%%FirstName%%" />
                                                <asp:ListItem Text="<%$ Resources:Content, DGN1110382%>" Value="%%HomePhone%%" />
                                                <%--<asp:ListItem Text="<%$ Resources:Content, FAM0057%>" Value="%%Identity%%" />--%>
                                                <asp:ListItem Text="<%$ Resources:Content, DGN1110336%>" Value="%%Initials%%" />
                                                <asp:ListItem Text="<%$ Resources:Content, GN00001133%>" Value="%%LastName%%" />
                                                <%--<asp:ListItem Text="<%$ Resources:Content, DGN1110360%>" Value="%%Manager%%" />--%>
                                                <asp:ListItem Text="<%$ Resources:Content, GN0000885%>" Value="%%MobilePhone%%" />
                                                <%--<asp:ListItem Text="<%$ Resources:Content, GN00001336%>" Value="%%Notes%%" />--%>

                                                <%--<asp:ListItem Text="<%$ Resources:Content, GN000170%>" Value="%%Name%%" />--%>
                                                <asp:ListItem Text="<%$ Resources:Content, DGN1110359%>" Value="%%Office%%" />
                                                <asp:ListItem Text="<%$ Resources:Content, DGN1110383%>" Value="%%Pager%%" />
                                                <asp:ListItem Text="<%$ Resources:Content, GN00012%>" Value="%%Phone%%" />
                                                <asp:ListItem Text="<%$ Resources:Content, GN00001522%>" Value="%%PostalCode%%" />
                                                <%--<asp:ListItem Text="<%$ Resources:Content, FAM0059%>" Value="%%PostOfficeBox%%" />--%>
                                                <%--<asp:ListItem Text="<%$ Resources:Content, FAM0060%>" Value="%%SamAccountName%%" />--%>
                                                <asp:ListItem Text="<%$ Resources:Content, GN00001313%>" Value="%%StateOrProvince%%" />
                                                <asp:ListItem Text="<%$ Resources:Content, DGN1110530%>" Value="%%StreetAddress%%" />
                                                <asp:ListItem Text="<%$ Resources:Content, GN0000280%>" Value="%%Title%%" />
                                                <asp:ListItem Text="<%$ Resources:Content, String336%>" Value="%%UserPrincipalName%%" />

                                                <%--<asp:ListItem Text="<%$ Resources:Content, GN0001120%>" Value="%%WebPage%%" />--%>
                                            </asp:DropDownList>
                                        </div>
                                    </div>
                                    <div class="col-sm-3 col-xs-12"></div>
                                    <div class="col-sm-4 col-xs-12">
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>

                <div class="panel-group" id="accordion_SignatureText" runat="server" role="tablist" aria-multiselectable="true">
                    <div class="panel panel-primary">
                        <div class="panel-heading" role="tab" id="heading_SignatureText" runat="server">
                            <h2 class="panel-title">
                                <a role="button" id="A_SignatureText" data-toggle="collapse" data-parent="#<%= accordion_SignatureText.ClientID %>" href="#<%= CSB_SignatureText.ClientID%>" aria-expanded="true" aria-controls="<%= CSB_SignatureText.ClientID%>" class="collapsed">
                                    <asp:Literal ID="Literal6" runat="server" Text="<%$ Resources:Content,SignatureText%>" />
                                </a>
                            </h2>
                        </div>
                        <div id="CSB_SignatureText" runat="server" class="panel-collapse collapse" role="tabpanel" aria-labelledby="<%= heading_SignatureText.ClientID %>" aria-expanded="false" style="height: 0px;">
                            <div class="panel-body">
                                <div class="row">
                                    <div class="col-xs-12">
                                        <div class="form-group">
                                            <asp:TextBox ID="TxBx_SignatureText" runat="server" TextMode="MultiLine" Height="150px" Width="100%" />
                                        </div>
                                    </div>
                                </div>
                                <div class="row">
                                    <div class="col-sm-5 col-xs-12">
                                        <div class="form-group">
                                            <asp:DropDownList ID="DDL_CompanyVariablesSignatureText" runat="server">
                                                <asp:ListItem Text="<%$ Resources:Content, FAM0056%>" Value="0" />
                                                <asp:ListItem Text="<%$ Resources:Content, GN0000880%>" Value="%%City%%" />
                                                <asp:ListItem Text="<%$ Resources:Content, GN00001077%>" Value="%%Company%%" />
                                                <asp:ListItem Text="<%$ Resources:Content, FAM0058%>" Value="%%CountryOrRegion%%" />
                                                <asp:ListItem Text="<%$ Resources:Content, GN0000374%>" Value="%%Department%%" />
                                                <asp:ListItem Text="<%$ Resources:Content, GN00001113%>" Value="%%DisplayName%%" />
                                                <%--<asp:ListItem Text="<%$ Resources:Content, DGN1110432%>" Value="%%DomainController%%" />--%>
                                                <%--<asp:ListItem Text="<%$ Resources:Content, GN0000491%>" Value="%%PrimarySmtpAddress%%" />--%>
                                                <asp:ListItem Text="<%$ Resources:Content, GN0000886%>" Value="%%Fax%%" />
                                                <asp:ListItem Text="<%$ Resources:Content, GN00001132%>" Value="%%FirstName%%" />
                                                <asp:ListItem Text="<%$ Resources:Content, DGN1110382%>" Value="%%HomePhone%%" />
                                                <%--<asp:ListItem Text="<%$ Resources:Content, FAM0057%>" Value="%%Identity%%" />--%>
                                                <asp:ListItem Text="<%$ Resources:Content, DGN1110336%>" Value="%%Initials%%" />
                                                <asp:ListItem Text="<%$ Resources:Content, GN00001133%>" Value="%%LastName%%" />
                                                <%--<asp:ListItem Text="<%$ Resources:Content, DGN1110360%>" Value="%%Manager%%" />--%>
                                                <asp:ListItem Text="<%$ Resources:Content, GN0000885%>" Value="%%MobilePhone%%" />
                                                <%--<asp:ListItem Text="<%$ Resources:Content, GN00001336%>" Value="%%Notes%%" />--%>

                                                <%--<asp:ListItem Text="<%$ Resources:Content, GN000170%>" Value="%%Name%%" />--%>
                                                <asp:ListItem Text="<%$ Resources:Content, DGN1110359%>" Value="%%Office%%" />
                                                <asp:ListItem Text="<%$ Resources:Content, DGN1110383%>" Value="%%Pager%%" />
                                                <asp:ListItem Text="<%$ Resources:Content, GN00012%>" Value="%%Phone%%" />
                                                <asp:ListItem Text="<%$ Resources:Content, GN00001522%>" Value="%%PostalCode%%" />
                                                <%--<asp:ListItem Text="<%$ Resources:Content, FAM0059%>" Value="%%PostOfficeBox%%" />--%>
                                                <%--<asp:ListItem Text="<%$ Resources:Content, FAM0060%>" Value="%%SamAccountName%%" />--%>
                                                <asp:ListItem Text="<%$ Resources:Content, GN00001313%>" Value="%%StateOrProvince%%" />
                                                <asp:ListItem Text="<%$ Resources:Content, DGN1110530%>" Value="%%StreetAddress%%" />
                                                <asp:ListItem Text="<%$ Resources:Content, GN0000280%>" Value="%%Title%%" />
                                                <asp:ListItem Text="<%$ Resources:Content, String336%>" Value="%%UserPrincipalName%%" />

                                                <%--<asp:ListItem Text="<%$ Resources:Content, GN0001120%>" Value="%%WebPage%%" />--%>
                                            </asp:DropDownList>
                                        </div>
                                    </div>
                                    <div class="col-sm-3 col-xs-12"></div>
                                    <div class="col-sm-4 col-xs-12">
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>

                <div class="panel-group" id="accordion_SignatureTextOnMobile" runat="server" role="tablist" aria-multiselectable="true">
                    <div class="panel panel-primary">
                        <div class="panel-heading" role="tab" id="heading_SignatureTextOnMobile" runat="server">
                            <h2 class="panel-title">
                                <a role="button" id="A_SignatureTextOnMobile" data-toggle="collapse" data-parent="#<%= accordion_SignatureTextOnMobile.ClientID %>" href="#<%= CSB_SignatureTextOnMobile.ClientID%>" aria-expanded="true" aria-controls="<%= CSB_SignatureTextOnMobile.ClientID%>" class="collapsed">
                                    <asp:Literal ID="Literal90" runat="server" Text="<%$ Resources:Content, SignatureTextOnMobile%>"
                                        EnableViewState="false" />
                                </a>
                            </h2>
                        </div>
                        <div id="CSB_SignatureTextOnMobile" runat="server" class="panel-collapse collapse" role="tabpanel" aria-labelledby="<%= heading_SignatureTextOnMobile.ClientID %>" aria-expanded="false" style="height: 0px;">
                            <div class="panel-body">
                                <div class="row">
                                    <div class="col-xs-12">
                                        <div class="form-group">
                                            <asp:TextBox ID="TxBx_SignatureTextOnMobile" runat="server" TextMode="MultiLine" Height="150px" Width="100%" />
                                        </div>
                                    </div>
                                </div>
                                <div class="row">
                                    <div class="col-sm-5 col-xs-12">
                                        <div class="form-group">
                                            <asp:DropDownList ID="DDL_CompanyVariablesOnMobile" runat="server">
                                                <asp:ListItem Text="<%$ Resources:Content, FAM0056%>" Value="0" />
                                                <asp:ListItem Text="<%$ Resources:Content, GN0000880%>" Value="%%City%%" />
                                                <asp:ListItem Text="<%$ Resources:Content, GN00001077%>" Value="%%Company%%" />
                                                <asp:ListItem Text="<%$ Resources:Content, FAM0058%>" Value="%%CountryOrRegion%%" />
                                                <asp:ListItem Text="<%$ Resources:Content, GN0000374%>" Value="%%Department%%" />
                                                <asp:ListItem Text="<%$ Resources:Content, GN00001113%>" Value="%%DisplayName%%" />
                                                <%--<asp:ListItem Text="<%$ Resources:Content, DGN1110432%>" Value="%%DomainController%%" />--%>
                                                <%--<asp:ListItem Text="<%$ Resources:Content, GN0000491%>" Value="%%PrimarySmtpAddress%%" />--%>
                                                <asp:ListItem Text="<%$ Resources:Content, GN0000886%>" Value="%%Fax%%" />
                                                <asp:ListItem Text="<%$ Resources:Content, GN00001132%>" Value="%%FirstName%%" />
                                                <asp:ListItem Text="<%$ Resources:Content, DGN1110382%>" Value="%%HomePhone%%" />
                                                <%--<asp:ListItem Text="<%$ Resources:Content, FAM0057%>" Value="%%Identity%%" />--%>
                                                <asp:ListItem Text="<%$ Resources:Content, DGN1110336%>" Value="%%Initials%%" />
                                                <asp:ListItem Text="<%$ Resources:Content, GN00001133%>" Value="%%LastName%%" />
                                                <%--<asp:ListItem Text="<%$ Resources:Content, DGN1110360%>" Value="%%Manager%%" />--%>
                                                <asp:ListItem Text="<%$ Resources:Content, GN0000885%>" Value="%%MobilePhone%%" />
                                                <%--<asp:ListItem Text="<%$ Resources:Content, GN00001336%>" Value="%%Notes%%" />--%>

                                                <%--<asp:ListItem Text="<%$ Resources:Content, GN000170%>" Value="%%Name%%" />--%>
                                                <asp:ListItem Text="<%$ Resources:Content, DGN1110359%>" Value="%%Office%%" />
                                                <asp:ListItem Text="<%$ Resources:Content, DGN1110383%>" Value="%%Pager%%" />
                                                <asp:ListItem Text="<%$ Resources:Content, GN00012%>" Value="%%Phone%%" />
                                                <asp:ListItem Text="<%$ Resources:Content, GN00001522%>" Value="%%PostalCode%%" />
                                                <%--<asp:ListItem Text="<%$ Resources:Content, FAM0059%>" Value="%%PostOfficeBox%%" />--%>
                                                <%--<asp:ListItem Text="<%$ Resources:Content, FAM0060%>" Value="%%SamAccountName%%" />--%>
                                                <asp:ListItem Text="<%$ Resources:Content, GN00001313%>" Value="%%StateOrProvince%%" />
                                                <asp:ListItem Text="<%$ Resources:Content, DGN1110530%>" Value="%%StreetAddress%%" />
                                                <asp:ListItem Text="<%$ Resources:Content, GN0000280%>" Value="%%Title%%" />
                                                <asp:ListItem Text="<%$ Resources:Content, String336%>" Value="%%UserPrincipalName%%" />

                                                <%--<asp:ListItem Text="<%$ Resources:Content, GN0001120%>" Value="%%WebPage%%" />--%>
                                            </asp:DropDownList>
                                        </div>
                                    </div>
                                    <div class="col-sm-3 col-xs-12"></div>
                                    <div class="col-sm-4 col-xs-12">
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>

                <div class="panel-group" id="accordion_SignatureOptions" runat="server" role="tablist" aria-multiselectable="true">
                    <div class="panel panel-primary">
                        <div class="panel-heading" role="tab" id="heading_SignatureOptions" runat="server">
                            <h2 class="panel-title">
                                <a role="button" id="A_SignatureOptions" data-toggle="collapse" data-parent="#<%= accordion_SignatureOptions.ClientID %>" href="#<%= CSB_SignatureOptions.ClientID%>" aria-expanded="true" aria-controls="<%= CSB_SignatureOptions.ClientID%>" class="collapsed">
                                    <%= Resources.Content.SignatureOptions%>
                                </a>
                            </h2>
                        </div>
                        <div id="CSB_SignatureOptions" runat="server" class="panel-collapse collapse" role="tabpanel" aria-labelledby="<%= heading_SignatureOptions.ClientID %>" aria-expanded="false" style="height: 0px;">
                            <div class="panel-body">
                                <div class="row">
                                    <div class="col-sm-3 col-xs-12 row-label">
                                        <label>
                                            <asp:Literal ID="Literal5" runat="server" Text="<%$ Resources:Content, AutoAddSignature%>"
                                                EnableViewState="false" />:</label>
                                    </div>
                                    <div class="col-sm-4 col-xs-12">
                                        <div class="form-group">
                                            <asp:CheckBox ID="ChBx_AutoAddSignature" runat="server" Text="&nbsp;"></asp:CheckBox>
                                        </div>
                                    </div>
                                </div>
                                <div class="row">
                                    <div class="col-sm-3 col-xs-12 row-label">
                                        <label>
                                            <asp:Literal ID="Literal9" runat="server" Text="<%$ Resources:Content,AutoAddSignatureOnMobile%>"
                                                EnableViewState="false" />:</label>
                                    </div>
                                    <div class="col-sm-4 col-xs-12">
                                        <div class="form-group">
                                            <asp:CheckBox ID="ChBx_AutoAddSignatureOnMobile" runat="server" Text=" " />
                                        </div>
                                    </div>
                                </div>
                                <div class="row">
                                    <div class="col-sm-3 col-xs-12 row-label">
                                        <label>
                                            <asp:Literal ID="Literal7" runat="server" Text="<%$ Resources:Content, AutoAddSignatureOnReply%>"
                                                EnableViewState="false" />:</label>
                                    </div>
                                    <div class="col-sm-4 col-xs-12">
                                        <div class="form-group">
                                            <asp:CheckBox ID="ChBx_AutoAddSignatureOnReply" runat="server" Text=" "></asp:CheckBox>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>

                <div class="row" id="Div_UpdateSentItem" runat="server">
                    <div class="col-sm-2 col-xs-12 row-label">
                        <label>
                            <asp:Literal ID="Literal3" runat="server" Text="<%$ Resources:Content,UpdateSentItem%>"
                                EnableViewState="false" />:</label>
                    </div>
                    <div class="col-sm-3 col-xs-12">
                        <div class="form-group">
                            <asp:CheckBox ID="Cb_UpdateSentItem" runat="server" />
                        </div>
                    </div>
                </div>
                <div class="row" id="Div_ValidForTimePeriod" runat="server">

                    <div class="col-sm-2 col-xs-12 row-label">
                        <label>
                            <asp:Literal ID="Literal4" runat="server" Text="<%$ Resources:Content,ValidForTimePeriod%>"
                                EnableViewState="false" />:</label>
                    </div>
                    <div class="col-sm-3 col-xs-12">
                        <div class="form-group">
                            <asp:CheckBox ID="Cb_ValidForTimePeriod" runat="server" />
                        </div>
                    </div>
                </div>
                <div class="row" id="Div_ValidForTimePeriodDetails" runat="server">
                    <div class="col-sm-2 col-xs-12 row-label"></div>
                    <div class="col-sm-5 col-xs-12">
                        <label>
                            <asp:Literal ID="Literal11" runat="server" Text="<%$ Resources:Content,GN0000685%>" EnableViewState="false" />:
                        </label>
                        <div class="form-group display-date-input">
                            <div class="form-line">
                                <asp:TextBox ID="TxBx_FromDate" runat="server"></asp:TextBox>
                            </div>
                        </div>
                        <i runat="server" id="A_FromDate" class="material-icons icon-calendar col-calendar"></i>
                        <EM:CalendarExtender ID="CE_FromDate" runat="server" TargetControlID="TxBx_FromDate"
                            Format="<%# System.Threading.Thread.CurrentThread.CurrentCulture.DateTimeFormat.ShortDatePattern %>"
                            PopupButtonID="A_FromDate" CssClass="date__calendar">
                        </EM:CalendarExtender>
                        <div class="display-date-input margin-left-25px">
                            <asp:DropDownList ID="Ddl_FromTime" runat="server"></asp:DropDownList>
                        </div>
                    </div>
                    <div class="col-sm-5 col-xs-12">
                        <label>
                            <asp:Literal ID="Literal8" runat="server" Text="<%$ Resources:Content,GN0000690%>" EnableViewState="false" />:
                        </label>
                        <div class="form-group display-date-input">
                            <div class="form-line">
                                <asp:TextBox ID="TxBx_ToDate" runat="server"></asp:TextBox>
                            </div>
                        </div>
                        <i runat="server" id="A_ToDate" class="material-icons icon-calendar col-calendar"></i>
                        <EM:CalendarExtender ID="CE_ToDate" runat="server" TargetControlID="TxBx_ToDate"
                            Format="<%# System.Threading.Thread.CurrentThread.CurrentCulture.DateTimeFormat.ShortDatePattern %>"
                            PopupButtonID="A_ToDate" CssClass="date__calendar">
                        </EM:CalendarExtender>
                        <div class="display-date-input margin-left-25px">
                            <asp:DropDownList ID="Ddl_ToTime" runat="server"></asp:DropDownList>
                        </div>
                    </div>
                </div>
                <div class="row">
                    <div class="col-xs-12">
                        <asp:ValidationSummary ID="VS" runat="server" ShowMessageBox="true" ShowSummary="false"
                            ValidationGroup="Signature" HeaderText="<%$ Resources:Content,EM000001%>" />
                        <asp:Button ID="Btn_Save" runat="server" ValidationGroup="Signature" Text="<%$ Resources:Content,GN0000281%>" class="btn btn-primary waves-effect btnAction" />
                        <asp:Button ID="Btn_Cancel" runat="server" Text="<%$ Resources:Content,GN0000572%>" class="btn btn-primary waves-effect"
                            CausesValidation="false" />
                    </div>
                </div>
            </div>
        </div>
    </div>

    <div class="col-xs-12">
        <asp:Button ID='Btn_Dummy' runat='server' Style='display: none;'></asp:Button>
        <asp:Panel ID="Pnl_SignaturePreview" CssClass="width-modal-popup-auto" runat="server" Style="display: none">
            <div class="row">
                <div class="col-xs-12">
                    <div class="card">
                        <div class="header container-fluid">
                            <h3 class="pull-left"><%= Resources.Content.Preview%></h3>
                            <span>
                                <button type="button" class="close" onclick="$find('<%=MPE_SignaturePreview.ClientID%>').hide();">&times;</button>
                            </span>
                        </div>
                        <div class="body" id="Div_SignaturePreview" runat="server">
                        </div>
                    </div>
                </div>
            </div>
        </asp:Panel>
        <EM:ModalPopupExtender runat="server" ID="MPE_SignaturePreview" BackgroundCssClass="modalBackground"
            DropShadow="false" PopupControlID="Pnl_SignaturePreview" TargetControlID="Btn_Dummy">
        </EM:ModalPopupExtender>
    </div>
</div>
