<%
'-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#
' Loja Exemplo Locaweb
' Versão: 6.5
' Data: 12/09/06
' Arquivo: conta_usuario_cadastro.asp
' Versão do arquivo: 0.0
' Data da ultima atualização: 19/06/07
'
'-----------------------------------------------------------------------------
' Licença Código Livre: http://comercio.Locaweb.com.br/gpl/gpl.txt
'-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-

page = "conta_usuario_cadastrado"
rodape = "no"

'Checa se o usuário está autenticado
If Session("logado") = "" Then
    Response.Redirect "autentica.asp?lang="&Request("lang")&"&tipo_acesso=conta"
End if
%>
<!--#INCLUDE FILE="funcoes/funcoes_usuario.asp" -->
<!--#INCLUDE FILE="funcoes/funcoes_endereco.asp" -->
<!--#INCLUDE FILE="funcoes/funcoes_mail.asp" -->
<!--#INCLUDE FILE="funcoes/funcoes_uteis.asp" -->
<!--#INCLUDE FILE="funcoes/funcoes_md5.asp"-->

<table height="100%" width="100%" border="0" cellspacing="0" cellpadding="0">
    <tr>
        <td colspan="3" valign="top" height="30"><!--#INCLUDE FILE="cabecalho.asp" --></td>
    </tr>
    <tr>
        <td valign="top" height="10%" width="10%" class="TBLlatesquerda"><!--#INCLUDE FILE="menu.asp" --></td>
        <td valign="top" height="95%">
            <form method="post" action="" name="Endereco" onsubmit="return valida_cadastro(this,'CadUsuario','SEM FRETE')">
            <input type="hidden" name="acao" value="alterar">
            <input type="hidden" name="tipo_login" value="<%= Request.form("tipo_login")%>">
            <table cellspacing="0" cellpadding="10" width="100%">
                <tr>
                    <td>
                        <table width="100%" border=0 align="center" cellpadding="0" cellspacing="0"  bgcolor="#FFFFFF" id="dadostable">
                            <tr>
                                <td colspan="6" height="20"><a href="conta_usuario.asp?lang=<%=varLang%>" class="textos_infos"><%=Application("GblTxtVoltar")%></a></td>
                            </tr>
                            <%
                            If Request("acao") = "alterar" Then
                            Grava_Session()
                            Call CarregaGrava_dados_pedido(vazio,vazio,vazio,"alterar")
                            %>
                            <tr bgcolor="#FFFF00">
                                <td colspan="6" align="center" height="18" valign="middle"><B><FONT COLOR="#000000"><%=Application("CtuscadTxtTitDadosAtualizados")%></FONT></B></td>
                            </tr>
                            <%
                            End if
                            %>
                            <tr class="FUNDOTABtopico">
                                <td colspan="6" align="center" height="18" valign="middle"><B><span class="TXTTABtopico"><%=Application("CtuscadTxtTitDadosCobranca")%></span></B></td>
                            </tr>
                            <tr bgcolor="#FFFFFF">
                                <td align="center"  valign="top">
                                    <table width="100%" border=0 align="center" cellpadding="4" cellspacing="1" bgcolor="#CCCCCC">
                                        <tr bgcolor="#EFEFEF">        
                                            <td align="center"><%Call Mostra_Endereco("cobranca")%></td>
                                        </tr>
                                    </table>
                                </td>
                            </tr>
                            <script>
                            checkTipCad('cobranca');
                            </script>
                            <tr class="FUNDOTABtopico">
                                <td colspan="6" align="center" height="18" valign="middle"><B><span class="TXTTABtopico"><%=Application("CtuscadTxtTitDadosEntrega")%></span></B></td>
                            </tr>
                            <tr bgcolor="#FFFFFF">
                                <td align="center"  valign="top">
                                    <table width="100%" border=0 align="center" cellpadding="4" cellspacing="1" bgcolor="#CCCCCC">
                                        <tr bgcolor="#EFEFEF">        
                                            <td align="center"><%Call Mostra_Endereco("entrega")%></td>
                                        </tr>
                                    </table>
                                </td>
                            </tr>
                            <script>
                            checkTipCad('entrega');
                            </script>
                            <tr bgcolor="#FFFFFF">
                                <td height="40" align="center"><input TYPE="submit" value="registrar dados" class="BTTN1"></td>
                            </tr>
                        </table>
                    </td>
                </tr>
            </table>
            </form>
        </td>
        <td valign="top" height="10%" width="10%" class="TBLlatdireita"><!--#INCLUDE FILE="lateral_servicos.asp" --></td>
    </tr>
    <tr>
        <td colspan="3" valign="top"><!--#INCLUDE FILE="rodape.htm" --></td>
    </tr>
</table>