<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="wfRecoverPassword.aspx.cs" Inherits="Cecam.Domain.WebApp.Shared.Identity.wfRecoverPassword" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>CECAM - Consultoria Econômica Contábil e Administrativa Municipal S/S Ltda.
    </title>
    <link id="Link1" runat="server" rel="shortcut icon" href="~/favicon.ico" type="image/x-icon" />
    <link id="Link2" runat="server" rel="icon" href="~/favicon.ico" type="image/ico" />
    <link href="../../UI/css/template.css" rel="stylesheet" type="text/css" />
    <link href="../../UI/css/jquery/minified/jquery-ui.min.css" rel="stylesheet" type="text/css" />
    <link href="../../UI/css/jquery/jquery-ui.custom.css" rel="stylesheet" type="text/css" />
</head>

<body>
    <script language="javascript" src='<%=ResolveClientUrl("~/UI/js/jquery/jquery-2.1.1.min.js") %>' type='text/javascript'></script>
    <form id="frmMain" runat="server">
        <asp:ScriptManager runat="server" ID="ScriptManagerMaster" EnableScriptGlobalization="true"
            AsyncPostBackTimeout="900" EnableScriptLocalization="true" EnablePageMethods="true">
        </asp:ScriptManager>
        <asp:UpdatePanel ID="UpdatePanel1" runat="server">
            <ContentTemplate>
                <div class="meio">
                    <div class="container">
                        <div class="limite">
                            <div id="conteudo" class="fechado" runat="server">
                                <div class="cabecalho">
                                    Recuperar Senha
                                </div>
                                <asp:MultiView runat="server" ID="mtvRecuperarSenha" ActiveViewIndex="0">
                                    <asp:View runat="server" ID="vwLogar">
                                        <dx:ASPxRoundPanel ID="rpnLogar" runat="server" SkinID="Grupo" HeaderText="Informe seu Usuário">
                                            <PanelCollection>
                                                <dx:PanelContent>
                                                    <ul class="form1col">
                                                        <li>
                                                            <span class="titulo">*Usuário:</span>
                                                            <ccn:TextBox ID="txtUsuario" runat="server" Width="20%" IsRequired="true" ValidationGroup="Login" />
                                                        </li>
                                                    </ul>
                                                    <ul style="float: right">
                                                        <li>
                                                            <ccn:Button ID="btnLogin" SkinID="OK" runat="server"
                                                                ValidationGroup="Login" OnClick="btnLogin_Click" />
                                                        </li>
                                                    </ul>
                                                </dx:PanelContent>
                                            </PanelCollection>
                                        </dx:ASPxRoundPanel>
                                    </asp:View>
                                    <asp:View runat="server" ID="vwValidar" OnActivate="vwValidar_Activate">
                                        <dx:ASPxRoundPanel ID="rpnValidar" runat="server" SkinID="Grupo" HeaderText="Formas de Recuperação" Width="50%">
                                            <PanelCollection>
                                                <dx:PanelContent>
                                                    <div id="dvPergunta" runat="server">
                                                        <fieldset style="border: 1px solid #999; width: 90%; border-radius: 5px;">
                                                            <legend style="color: #999;">Pergunta e Reposta</legend>
                                                            <ul class="form1col">
                                                                <li>
                                                                    <span class="titulo">Pergunta:</span>
                                                                    <ccn:TextBox ID="txtPergunta" runat="server" SkinID="TextLabel" Width="40%" />
                                                                </li>
                                                                <li>
                                                                    <span class="titulo">*Resposta:</span>
                                                                    <ccn:TextBox ID="txtResposta" runat="server" Width="40%" IsRequired="true" ValidationGroup="Pergunta" />
                                                                </li>
                                                            </ul>
                                                            <ul style="float: right">
                                                                <li>
                                                                    <ccn:Button ID="btnPergunta" SkinID="OK" runat="server"
                                                                        ValidationGroup="Pergunta" OnClick="btnPergunta_Click" />
                                                                </li>
                                                            </ul>
                                                        </fieldset>
                                                    </div>
                                                    <br />
                                                    <div id="dvEmail" runat="server">
                                                        <fieldset style="border: 1px solid #999; width: 90%; border-radius: 5px;">
                                                            <legend style="color: #999;">Email</legend>
                                                            <ul class="form1col">
                                                                <li>
                                                                    <span class="titulo">Email:</span>
                                                                    <ccn:TextBox ID="txtEmail" runat="server" Width="20%" SkinID="TextLabel" />
                                                                </li>
                                                            </ul>
                                                            <ul style="float: right">
                                                                <li>
                                                                    <ccn:Button ID="btnEmail" SkinID="OK" runat="server"
                                                                        ValidationGroup="Email" OnClick="btnEmail_Click" />
                                                                </li>
                                                            </ul>
                                                        </fieldset>
                                                    </div>
                                                    <br />
                                                    <div id="dvToken" runat="server">
                                                        <fieldset style="border: 1px solid #999; width: 90%; border-radius: 5px;">
                                                            <legend style="color: #999;">Via Token (contate o Administrador)</legend>
                                                            <ul class="form1col">
                                                                <li>
                                                                    <span class="titulo">*Token:</span>
                                                                    <ccn:TextBox ID="txtToken" runat="server" Width="40%" IsRequired="true" ValidationGroup="Token" />
                                                                </li>
                                                            </ul>
                                                            <ul style="float: right">
                                                                <li>
                                                                    <ccn:Button ID="btnToken" SkinID="OK" runat="server"
                                                                        ValidationGroup="Token" OnClick="btnToken_Click" />
                                                                </li>
                                                            </ul>
                                                        </fieldset>
                                                    </div>
                                                    <br />
                                                    <ul style="float: right">
                                                        <li>
                                                            <ccn:Button ID="btnVoltar" SkinID="Voltar" runat="server" OnClick="btnVoltar_Click" />
                                                        </li>
                                                    </ul>
                                                </dx:PanelContent>
                                            </PanelCollection>
                                        </dx:ASPxRoundPanel>
                                    </asp:View>
                                    <asp:View runat="server" ID="vwRecuperar">
                                        <dx:ASPxRoundPanel ID="rpnRecuperar" runat="server" SkinID="Grupo" HeaderText="Nova Senha" Width="50%">
                                            <PanelCollection>
                                                <dx:PanelContent>
                                                    <ul class="form1col">
                                                        <li>
                                                            <span class="titulo">*Nova Senha:</span>
                                                            <ccn:TextBox ID="txtNovaSenha" runat="server" Width="40%" MaxLength="128" Password="true"
                                                                IsRequired="true" ValidationGroup="Recuperar" />
                                                        </li>
                                                        <li>
                                                            <span class="titulo">*Confirmar:</span>
                                                            <ccn:TextBox ID="txtConfirmarSenha" runat="server" Width="40%" MaxLength="128" Password="true"
                                                                IsRequired="true" ValidationGroup="Recuperar" />
                                                        </li>
                                                    </ul>
                                                    <ul style="float: right">
                                                        <li>
                                                            <ccn:Button ID="btnSalvar" SkinID="Salvar" runat="server"
                                                                ValidationGroup="Recuperar" OnClick="btnSalvar_Click" />
                                                        </li>
                                                    </ul>
                                                </dx:PanelContent>
                                            </PanelCollection>
                                        </dx:ASPxRoundPanel>
                                    </asp:View>
                                </asp:MultiView>
                            </div>
                        </div>
                    </div>
                </div>
                <ccn:MessageDialog ID="msdDialog" runat="server" />
                <ccn:ListMessageDialog ID="ucListMsgDialog" runat="server" />
            </ContentTemplate>
        </asp:UpdatePanel>
        <ccn:LoadingProgress ID="ldpLoading" runat="server" Width="50%" AssociatedUpdatePanelID="UpdatePanel1" Text="Aguarde..." />
    </form>
</body>
</html>