<%@ Page Language="C#" MasterPageFile="~/masterpages/eGeneralNoTimer.master" AutoEventWireup="true" Inherits="RecoverPasswordNew" Title="Brightstar Device Protection: Recover Password" CodeBehind="RecoverPasswordNew.aspx.cs" %>

<%@ Register Src="~/Controls/ResetUserPassword.ascx" TagName="ResetUserPassword" TagPrefix="uc" %>

<asp:Content ID="Content1" ContentPlaceHolderID="eContent" runat="Server">

    <%--<asp:UpdatePanel ID="updatePanelForgotPassword" runat="server" EnableViewState="True" UpdateMode="Conditional">
        <ContentTemplate>--%>
    <asp:Panel ID="pnlForgotPassword" runat="server" DefaultButton="butNext">
        <table cellspacing="0" cellpadding="1" border="0" style="border-collapse: collapse;">
            <tr>
                <td>
                    <table cellpadding="0" border="0" style="height: 100px; width: 100%;">
                        <tr>
                            <td align="left" colspan="2" style="font-weight: bold; height: 20px;">
                                <asp:Literal ID="Literal2" runat="server" Text="<%$ Resources : Default,LabelForgotPassword %>" /></td>
                        </tr>
                        <tr>
                            <td align="center" colspan="2"></td>
                        </tr>
                        <tr>
                            <td colspan="2" valign="middle"></td>
                        </tr>
                        <tr>
                            <td align="left">
                                <asp:Label ID="lblUserName" runat="server" AssociatedControlID="txtUserName"></asp:Label>
                                <asp:Literal ID="Literal3" runat="server" Text="<%$ Resources : Default,UserNameLabelText %>" />
                            </td>
                            <td align="left">
                                <asp:TextBox ID="txtUserName" runat="server"></asp:TextBox><asp:RequiredFieldValidator ID="UserNameRequired" runat="server" ControlToValidate="txtUserName"
                                    ErrorMessage="<%$ Resources : Default,UserNameRequiredErrorMessage %>" ToolTip="<%$ Resources : Default,UserNameRequiredErrorMessage %>" Display="Dynamic">*</asp:RequiredFieldValidator>
                            </td>
                        </tr>
                        <tr>
                            <td colspan="2">
                                <asp:Label ID="lblAlreadyChangedPw" runat="server" style="color:red;" Visible="false"></asp:Label>
                            </td>
                        </tr>
                    </table>
                </td>
            </tr>
        </table>
        <div style="display: none;">
            <asp:Button ID="butNext" runat="server" CommandName="Next" Text="<%$ Resources : Default,ButtonNext %>" Width="67px" OnClick="butNext_Click" />
        </div>
    </asp:Panel>
    <div>
        <asp:Panel ID="pnlForgotPasswordButtons" runat="server">
            <table cellpadding="0" border="0" style="width: 15%;">
                <tr>
                    <td align="right" colspan="2">
                        <asp:Button ID="butNext2" runat="server" CommandName="Next" Text="<%$ Resources : Default,ButtonNext %>" Width="67px" OnClick="butNext_Click" /></td>
                    <td align="center" colspan="2">
                        <asp:Button ID="butCancel" runat="server" CommandName="Cancel" Text="<%$ Resources : Default,ButtonCancel %>" OnClick="butCancel_Click" CausesValidation="false" /></td>
                </tr>
            </table>
        </asp:Panel>
    </div>
    <div style="color: red">
        <asp:Literal ID="FailureText" runat="server" EnableViewState="False">
        </asp:Literal>
    </div>
    <asp:Panel runat="server" ID="pnlSecurityQuestion" DefaultButton="butConfirm">
        <div align="left">
            <table cellpadding="0" border="0" style="height: 150px; width: 40%;">
                <tr>
                    <td>
                        <asp:Label ID="lblSecurityQuestionHeader" runat="server" Text="<%$ Resources: UsersManagement, SecurityQuestionHeaderText %>" Font-Bold="True" />
                    </td>
                </tr>
                <tr>
                    <td colspan="2" valign="middle"></td>
                </tr>
                <tr>
                    <td colspan="2" valign="middle"></td>
                </tr>
                <tr>
                    <td colspan="2" valign="middle"></td>
                </tr>
                <tr>
                    <td>
                        <asp:Label ID="Label1" runat="server" Text="<%$ Resources: UsersManagement, LabelSecurityQuestion %>" Font-Bold="false" />
                    </td>
                    <td>
                        <asp:Label ID="lblSecurityQuestion" runat="server" Text="" Font-Bold="false" />
                    </td>
                </tr>

                <tr>
                    <td>
                        <asp:Label ID="Label3" runat="server" Text="<%$ Resources: UsersManagement, LabelSecurityAnswer %>" Font-Bold="false" />
                    </td>
                    <td>
                        <asp:TextBox ID="m_txtSecurityAnswer" runat="server" Width="370px" MaxLength="50" TextMode="Password"></asp:TextBox><asp:RequiredFieldValidator ID="m_rfvSecurityAnswer" runat="server"
                            ErrorMessage="<%$ Resources: UsersManagement, ErrorMessageSecurityAnswerIsRequired %>"
                            Display="Dynamic"
                            ToolTip="<%$ Resources: UsersManagement, ToolTipSecurityAnswerIsRequired %>"
                            ControlToValidate="m_txtSecurityAnswer"></asp:RequiredFieldValidator></td>
                </tr>
                <tr>
                    <td colspan="2" valign="middle"></td>
                </tr>
                <tr>
                    <td colspan="2" valign="middle"></td>
                </tr>
            </table>
        </div>
        <div style="display: none;">
            <asp:Button ID="butConfirm" runat="server" CommandName="Confirm" Text="<%$ Resources : Default,ButtonConfirm %>" Width="67px" OnClick="butConfirm_Click" />
        </div>

    </asp:Panel>
    <div>
        <asp:Panel ID="pnlSecurityQuestionButtons" runat="server">
            <table cellpadding="0" border="0" style="width: 30%;">
                <tr>
                    <td align="right" colspan="2">
                        <asp:Button ID="butConfirm2" runat="server" CommandName="Confirm" Text="<%$ Resources : Default,ButtonConfirm %>" Width="67px" OnClick="butConfirm_Click" UseSubmitBehavior="false" /></td>
                    <td align="center" colspan="2">
                        <asp:Button ID="butSecurityQuestionCancel" runat="server" CommandName="Cancel" Text="<%$ Resources : Default,ButtonCancel %>" Width="67px" OnClick="butSecurityQuestionCancel_Click" CausesValidation="false" UseSubmitBehavior="False" /></td>
                </tr>
            </table>
        </asp:Panel>
    </div>
    <div style="color: red">
        <asp:Literal ID="litErrorText" runat="server" EnableViewState="False"></asp:Literal>
    </div>
    <asp:Panel runat="server" ID="pnlResetPassword" DefaultButton="ResetPasswordPushButton">
        <div align="left">
            <table cellpadding="0" border="0" style="height: 150px; width: 100%;">
                <tr>
                    <td>
                        <asp:Label ID="Label2" runat="server" Text="<%$ Resources: UsersManagement, PasswordResetHeaderText %>" Font-Bold="True" />
                        <uc:ResetUserPassword ID="ResetUserPasswordControl" runat="server" />
                    </td>
                </tr>
            </table>
            <div style="display: none;">
                <asp:Button ID="ResetPasswordPushButton" runat="server" CommandName="ResetPassword" OnClick="ResetPasswordPushButton_Click" Text="<%$ Resources: Default, ButtonTextResetPassword %>" ValidationGroup="ResetPassword" />
            </div>
        </div>
    </asp:Panel>
    <div>
        <asp:Panel ID="pnlResetPasswordButtons" runat="server">
            <table cellpadding="0" border="0" style="width: 15%;">
                <tr>
                    <td align="right" colspan="2">
                        <asp:Button ID="ResetPasswordPushButton2" runat="server" CommandName="ResetPassword" OnClick="ResetPasswordPushButton_Click" Text="<%$ Resources: Default, ButtonTextResetPassword %>" ValidationGroup="ResetPassword" />
                    </td>
                    <td align="center" colspan="2">
                        <asp:Button ID="CancelPushButton" runat="server" CausesValidation="False" CommandName="Cancel" OnClick="CancelPushButton_Click" Text="<%$ Resources: Default, ButtonCancel %>" /></td>
                </tr>
            </table>
        </asp:Panel>
    </div>
    <div style="color: red">
        <asp:Literal ID="litResetFailureText" runat="server" EnableViewState="False"></asp:Literal>
    </div>
    <asp:Panel ID="pnlResetPasswordSuccess" runat="server">
        <div>
            <asp:Label ID="lblPassSuccessRecover" runat="server" Text="" />
        </div>
        <caption>
            <br />
            <div>
                <asp:HyperLink ID="hlnkLogin1" runat="server" NavigateUrl="~/Default.aspx" Text="Login" />
            </div>
        </caption>
    </asp:Panel>
    <asp:Panel ID="pnlSendEmail" runat="server">
        <div align="left">
            <table cellpadding="0" border="0" style="height: 150px; width: 50%;">
                <tr>
                    <td style="width: 262px">
                        <asp:Label ID="lblSendEmail" runat="server" Text="<%$ Resources : UsersManagement, SendEmailHeaderText %>" Font-Bold="True" />
                    </td>
                </tr>
                <div>
                    <tr>
                        <td colspan="2" valign="middle"></td>
                    </tr>
                </div>
                <tr>
                    <td colspan="2" valign="middle"></td>
                </tr>
                <tr>
                    <td align="center" colspan="3">
                        <asp:Literal ID="litSendEmailText" runat="server" EnableViewState="False" Text=""></asp:Literal></td>
                </tr>
                <tr>
                    <td align="center" colspan="3">
                        <asp:Literal ID="litStatusMessage" runat="server" EnableViewState="False" Text=""></asp:Literal></td>
                </tr>
                <tr>
                    <td colspan="2" valign="middle"></td>
                </tr>
                <tr>
                    <td align="right" colspan="1" style="width: 262px">
                        <asp:Button ID="butSendEmail" runat="server" CommandName="Send Email" Text="<%$ Resources : Default,ButtonSendEmail %>" OnClick="butSendEmail_Click" UseSubmitBehavior="true" /></td>
                    <td align="left" colspan="1" style="width: 262px">
                        <asp:Button ID="butClose" runat="server" CommandName="Close" Text="<%$ Resources : Default,ButtonClose %>" OnClick="butClose_Click" /></td>
                </tr>
            </table>
        </div>
    </asp:Panel>
    <%--     </ContentTemplate>
    </asp:UpdatePanel>--%>
</asp:Content>

