    <%@ Page Language="C#" MasterPageFile="~/masterpages/eDashboard.master" AutoEventWireup="true"
    Theme="eMain" Inherits="site_HITS_User_MyProfile"
    Title="Brightstar Device Protection: My Profile" Culture="auto" 
    UICulture="auto" Codebehind="MyProfile.aspx.cs" %>

<%@ Register Src="~/Controls/PhoneNumber.ascx" TagName="PhoneNumber" TagPrefix="uc1" %>
<%@ Register Src="~/Controls/ChildHeader.ascx" TagName="ChildHeader" TagPrefix="uc" %>
<%@ Register Src="~/Controls/PersistNav.ascx" TagName="PersistNav" TagPrefix="uc" %>
<%@ Register Assembly="eSecuritel.HITS.UI.Components" Namespace="eSecuritel.HITS.UI.Components"
    TagPrefix="cc1" %>
<%@ Register TagPrefix="eSecuritelHITSControls" Namespace="WebSite.Controls" Assembly="WebSite" %>

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

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

    <script src="../../../script/eSetFormControls.js" type="text/javascript"></script>

    <cc1:ExtendedValidationSummary ID="m_extValidationSummaryTop" runat="server" HeaderText="<%$ Resources: UsersManagement, HeaderMessageFollowingItemsReviewedBeforeUpadating %>"
         />
    <table width="100%" border="0" cellpadding="0" cellspacing="0">
        <tr>
            <td>
                <h1>
                    <asp:Localize ID = "Localize4" runat = "server" Text = "<%$ Resources: UsersManagement, LabelMyProfile %>" />
                </h1>
            </td>
            <td valign="top">
                <uc:PersistNav ID="PersistNav1" runat="server" />
            </td>
        </tr>
    </table>
    <uc:ChildHeader ID="ChildHeader1" runat="server" OnSendEmailClicked="SendEmail_Clicked" />
    <h2>
        <asp:Literal ID="m_litGeneralInfo" runat="server" Text="<%$ Resources: UsersManagement, LabelGeneralInformation %>" />
        <asp:Label ID="lblStatus" runat="server" />
    </h2>
    <div class="greyblock">
        <b><span style="color: #ff0000">* </span></b>
        <asp:Literal ID="m_litRequired" runat="server" Text="<%$ Resources: Default, LabelIndicatesRequiredField %>"></asp:Literal>
        <table border="0" cellpadding="0" cellspacing="0" class="gvTable">
            <tr>
                <td align="right" nowrap>
                    <asp:Localize ID = "Localize5" runat = "server" Text = "<%$ Resources: OrganizationManagement, LabelOrganizationColon %>" />
                </td>
                <td nowrap>
                    <asp:Label ID = "lblOrganization" runat = "server" />                    
                </td>              
            </tr>
         
            <asp:Panel ID="m_pnlUserDetails" runat="server">
                <tr>
                    <td align="right">
                        <asp:Localize ID = "Localize6" runat = "server" Text = "<%$ Resources: OrganizationManagement, OrganizationUnitLabel %>" />
                    </td>
                    <td colspan = "3">
                        <asp:Label ID = "lblOrganizationUnit" runat = "server" />
                    </td>
                    
                </tr>
                <tr>
                    <td align="right">
                        <asp:Localize ID = "Localize7" runat = "server" Text = "<%$ Resources: UsersManagement, LabelTitle %>" />
                        <b><span style="color: #ff0000">*</span></b>
                    </td>
                    <td>
                        <asp:TextBox ID="m_txtTitle" runat="server" Width="200px"></asp:TextBox>
                        <asp:RequiredFieldValidator ID="m_rfvTitle" runat="server" Text="<%$ Resources:Default, ValidatorText %>"
                            ErrorMessage="<%$ Resources: UsersManagement, ErrorMessageTitleIsRequired %>" ToolTip="<%$ Resources: UsersManagement, ToolTipTitleIsRequired %>" ControlToValidate="m_txtTitle"
                            ></asp:RequiredFieldValidator>
                    </td>
                    
                    <td align="right" style="width: 125px" nowrap="nowrap">
                        <asp:Label ID="TimeZoneLabel" runat="server" Text="<%$ Resources: OrganizationManagement, LabelTimeZoneColon %>" Width="75px" />
                    </td>
                    <td>
                        <asp:DropDownList ID="ddlTimeZone" runat="server" />
                    </td>


                </tr>
                <tr>
                    <td align="right">
                        <asp:Localize ID = "Localize8" runat = "server" Text = "<%$ Resources: UsersManagement, LabelUserFirstName %>" />
                        <b><span style="color: #ff0000">*</span></b>
                    </td>
                    <td>
                        <asp:TextBox ID="m_txtFirstName" runat="server" Width="200px"></asp:TextBox>
                        <asp:RequiredFieldValidator ID="m_rfvFirstName" runat="server" Text="<%$ Resources:Default, ValidatorText %>"
                            ErrorMessage="<%$ Resources: UsersManagement, ErrorMessageFirstNameIsRequired %>" ToolTip="<%$ Resources: UsersManagement, ToolTipFirstNameIsRequired %>" ControlToValidate="m_txtFirstName"
                            ></asp:RequiredFieldValidator>
                    </td>
                    <td align="right">
                        <asp:Localize ID = "Localize9" runat = "server" Text = "<%$ Resources: UsersManagement, LabelUserLastName %>" />
                        <b><span style="color: #ff0000">*</span></b>
                    </td>
                    <td>
                        <asp:TextBox ID="m_txtLastName" runat="server" Width="200px"></asp:TextBox>
                        <asp:RequiredFieldValidator ID="m_rfvLastName" runat="server" Text="<%$ Resources:Default, ValidatorText %>"
                            ErrorMessage="<%$ Resources: UsersManagement, ErrorMessageLastNameIsRequired %>" ToolTip="<%$ Resources: UsersManagement, ToolTipLastNameIsRequired %>" ControlToValidate="m_txtLastName"
                            ></asp:RequiredFieldValidator>
                    </td>
                </tr>
                <tr>
                    <td align="right" nowrap>
                        <asp:Localize ID = "Localize10" runat = "server" Text = "<%$ Resources: UsersManagement, LabelWorkPhoneNumber %>" />
                    </td>
                    <td nowrap>
                        <uc1:PhoneNumber ID="m_ucPhoneNumber" runat="server" Required="false" />
                        <asp:Literal ID="m_litExtension" runat="server" Text="<%$ Resources: UsersMAnagement, LabelUserExtColon %>" />
                        <asp:TextBox ID="m_txtPhoneExtension" runat="server" Width="33px"></asp:TextBox>
                    </td>
                    <td align="right">
                        <asp:Localize ID = "Localize11" runat = "server" Text = "<%$ Resources: UsersMAnagement, LabelUserEmail %>" />
                        <b><span style="color: #ff0000">*</span></b>
                    </td>
                    <td>
                        <asp:TextBox ID="m_txtEmail" runat="server" Width="200px"></asp:TextBox>
                        <asp:RequiredFieldValidator ID="m_rfvEmailAddress" runat="server" Text="<%$ Resources:Default, ValidatorText %>"
                            ErrorMessage="<%$ Resources: UsersManagement, ErrorMessageEmailAddressIsRequired %>" ToolTip="<%$ Resources: UsersManagement, ToolTipEmailAddressIsRequired %>" 
                            ControlToValidate="m_txtEmail"></asp:RequiredFieldValidator>
                        <asp:RegularExpressionValidator ID="m_regExValEmail" runat="server" ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"
                            Text="<%$ Resources:Default, ValidatorText %>" ControlToValidate="m_txtEmail"
                            Display="Dynamic" ErrorMessage="<%$ Resources: UsersManagement, ErrorMessageEmailNotInInvalidFormat %>" ToolTip="<%$ Resources: UsersManagement, ToolTipEmailNotInInvalidFormat %>"
                            />
                    </td>
                </tr>
                <tr>
                    <td align="right">
                        <asp:Localize ID = "Localize12" runat = "server" Text = "<%$ Resources: UsersManagement, LabelUserLogin %>" />
                        <b><span style="color: #ff0000">*</span></b>
                    </td>
                    <td>
                        <asp:TextBox ID="m_txtLogin" runat="server" Width="200px"></asp:TextBox>
                        <asp:RequiredFieldValidator ID="m_rfvLogin" runat="server" Text="<%$ Resources:Default, ValidatorText %>"
                            ErrorMessage="<%$ Resources: UsersManagement, ErrorMessageLoginIsRequired %>" ToolTip="<%$ Resources: UsersManagement, ToolTipLoginIsRequired %>" ControlToValidate="m_txtLogin"
                            ></asp:RequiredFieldValidator>
                    </td>                  
                </tr>
                <tr>
                    <td align="right" nowrap>
                        <asp:Localize ID = "Localize13" runat = "server" Text = "<%$ Resources: UsersManagement, LabelUserPassword %>" />
                        <b><span style="color: #ff0000">*</span></b>
                    </td>
                    <td nowrap>
                        <asp:TextBox ID="m_txtPassword" runat="server" Width="200px" TextMode="Password"></asp:TextBox>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator7" runat="server" Text="<%$ Resources:Default, ValidatorText %>"
                            ErrorMessage="<%$ Resources: UsersManagement, ErrorMessagePasswordIsRequired %>" ToolTip="<%$ Resources: UsersManagement, ToolTipPasswordIsRequired %>" ControlToValidate="m_txtPassword"
                            ></asp:RequiredFieldValidator>
                        <asp:CustomValidator ID="cvPassword" runat="server" Text="<%$ Resources:Default, ValidatorText %>"
                            ControlToValidate="m_txtPassword" OnServerValidate="cvPassword_ServerValidate" />
                    </td>
                    <td align="right" nowrap>
                        <asp:Localize ID = "Localize14" runat = "server" Text = "<%$ Resources: UsersManagement, LabelRetypePassword %>" />
                        <b><span style="color: #ff0000">*</span></b>
                    </td>
                    <td nowrap>
                        <asp:TextBox ID="m_txtRetypePassword" runat="server" Width="200px" TextMode="Password"></asp:TextBox>
                        <asp:RequiredFieldValidator ID="m_RequiredFieldValidator8" runat="server" Text="<%$ Resources:Default, ValidatorText %>"
                            ErrorMessage="<%$ Resources: UsersManagement, ErrorMessageRetypePasswordIsRequired %>" ToolTip="<%$ Resources: UsersManagement, ToolTipRetypePasswordIsRequired %>"
                            ControlToValidate="m_txtRetypePassword" />
                        <asp:CompareValidator ID="m_compValRetypePassword" runat="server" ControlToValidate="m_txtRetypePassword"
                            ControlToCompare="m_txtPassword" Text="<%$ Resources:Default, ValidatorText %>"
                            ErrorMessage="<%$ Resources: UsersManagement, ErrorMessageBothPasswordFieldsMustMatch %>" ToolTip="<%$ Resources: UsersManagement, ToolTipBothPasswordFieldsMustMatch %>"
                            />
                    </td>
                </tr>  
                <tr>
                    <td align="right"><asp:Literal ID = "m_litLanguage" runat = "server"  Text = "<%$ Resources: Default, LabelLocationColon %>" Visible = "false" /></td>
                    <td><asp:DropDownList ID="ddlCulture" runat="server" Width="210px" AutoPostBack = "false" Visible = "false" DataValueField="LocaleId" DataTextField="Description"/></td>
                    <td></td>
                    <td></td>
                </tr>              
            </asp:Panel>
            
            
                    


        </table>
    </div>
    
    <uc:UserSecurityQuestionAnswerUpdate ID="UserSecurityQuestionAnswerUpdate" runat="server" />

    <asp:Panel ID="m_pnlButtons" runat="server">
        <div style="padding-left: 370px" nowrap>
            <asp:Button ID="m_btnUpdate" runat="server" CssClass="pagebutton" OnClick="m_btnUpdate_Click"
                Text="<%$ Resources: Default, ButtonUpdate %>" />
            <asp:Button ID="m_btnCancel" runat="server" CssClass="pagebutton" OnClick="m_btnCancel_Click"
                Text="<%$ Resources: Default, ButtonCancel %>" CausesValidation="False" />
        </div>
    </asp:Panel>
    <asp:Panel ID="pnlLoginChanged" runat="server" Width="350px">
        <asp:Panel ID="pnlLoginChangedHeader" runat="server" CssClass="modalHeader">
            <asp:Localize ID="Localize1" runat="server" Text="<%$ Resources: UsersManagement, LocalizeChangeofLoginWarning %>" />
        </asp:Panel>
        <asp:Panel ID="pnlLoginChangedContent" runat="server" CssClass="modalContent">
            <div style="margin-top: 5px;">
                <asp:Localize ID="Localize2" runat="server" Text="<%$ Resources: UsersManagement, LocalizeChangingYourCurrentLoginWillRequireYouLoginAgain %>" />
            </div>
            <div>
                <asp:Localize ID="Localize3" runat="server" Text="<%$ Resources: UsersManagement, LocalizeDoYouWishProceedQuestion %>" />
            </div>
            <div style="margin-top: 5px;">
                <asp:Button ID="btnYesChangeLogin" runat="server" Text="<%$ Resources: Default, ButtonYes %>" Width="60px" OnClick = "btnYesChangeLogin_Click" />
                <asp:Button ID="btnNoChangeLogin" runat="server" Text="<%$ Resources: Default, ButtonNo %>" Width="60px" />
            </div>
        </asp:Panel>
    </asp:Panel>
    <asp:Button runat="server" EnableViewState="false" ID="hiddenTargetControlForModalPopup" Style="display: none" />
    <eSecuritelHITSControls:HITSModalPopupExtender runat="server" ID="modalPopupLoginChanged" TargetControlID="hiddenTargetControlForModalPopup"
        PopupControlID="pnlLoginChanged" BackgroundCssClass="modalBackground" 
        PopupDragHandleControlID="pnlLoginChangedHeader" />
</asp:Content>
