home *** CD-ROM | disk | FTP | other *** search
Wrap
<% @ LANGUAGE="VBScript" lcid="1036" %> <!--#include file="include.asp"--> <% Nom2=Replace(request.form("Nom"), "'", "''") Passe2=Replace(request.form("Passe"), "'", "''") %> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=windows-1252"> <meta name="GENERATOR" content="Microsoft FrontPage 4.0"> <meta name="ProgId" content="FrontPage.Editor.Document"> <title>ABB</title> <style type="text/css"> <!-- A:link{text-decoration: none; color: <% =EnvironnementRes("envlnk") %>;} A:visited{text-decoration: none; color: <% =EnvironnementRes("envlnk") %>;} A:active{text-decoration: underline; color: <% =EnvironnementRes("envvlnk") %>;} A:hover{text-decoration: underline; color: <% =EnvironnementRes("envvlnk") %>;} --> </style> </head> <body bgcolor="<% =EnvironnementRes("envback") %>" text="<% =EnvironnementRes("envtxt") %>" link="<% =EnvironnementRes("envlnk") %>" vlink="<% =EnvironnementRes("envvlnk") %>"> <p align="center"><font face="Arial"> <a href="default.asp"><img border="0" src="<% =EnvironnementRes("envlogo") %>" alt="Retour α la page principale"></a> <b>Modifier votre profil</b></font> <% If len(Nom2) > 0 Then strAutSQL = "SELECT * FROM Utilisateur WHERE usrlogin='" & Nom2 & "' " set AutRes=ConnectionBD.Execute(strAutSQL) If AutRes.EOF=false Then Passe3=Passe2 longeur1=Len(Nom2) longeur2=Len(Passe2) J=1 For I=1 To longeur2 char1=Mid(Nom2,J,1) char2=Mid(Passe2,I,1) char3=Mid(Passe2,I,1) code1=Asc(char1) code2=Asc(char2) code2=code2+code1 If code2>255 Then code2=code2-255 End If char2=Chr(code2) Passe2=Replace(Passe2,char3,char2,1,1) J=J+1 If J>longeur1 Then J=1 End If Next 'Cryptage du mot de passe If AutRes("usrpass") = Passe2 Then strStatSQL = "SELECT * FROM Statut WHERE statid=" & AutRes("usrstatu") & " " set StatRes=ConnectionBD.Execute(strStatSQL) %> <p align="center"> <p align="center"><font face="Arial" size="2">Merci, Votre identitΘ est confirmΘe : <% =AutRes("usrlogin") %> (<% =StatRes("statdesc") %>)</font> <p align="center"><font face="Arial" size="2">Vous pouvez modifier les informations suivantes :<br> (les champs marquΘs par * sont obligatoires)</font> <form method="POST" action="doprofiledit.asp" name="FrontPage_Form1"> <div align="center"> <center> <table border="0" cellpadding="3" cellspacing="1" width="95%"> <tr> <td width="50%" bgcolor="<% =EnvironnementRes("envcol1") %>"><font face="Arial" size="2"><b>*Adresse E-mail :</b></font></td> <td width="50%" bgcolor="<% =EnvironnementRes("envcol1") %>"><font face="Arial" size="2"><input type="text" name="Email" size="30" value="<% =AutRes("usrmail") %>"></font></td> </tr> <tr> <td width="50%" bgcolor="<% =EnvironnementRes("envcol2") %>"><font face="Arial" size="2"><b>*Mot de passe :</b></font></td> <td width="50%" bgcolor="<% =EnvironnementRes("envcol2") %>"><font face="Arial" size="2"><input type="text" name="Passe" size="30" value="<% =Passe3 %>"></font></td> </tr> <% If EnvironnementRes("envfacul1")<>"" Then %> <tr> <td width="50%" bgcolor="<% =EnvironnementRes("envcol1") %>"><font face="Arial" size="2"><b><% =EnvironnementRes("envfacul1") %></b></font></td> <td width="50%" bgcolor="<% =EnvironnementRes("envcol1") %>"><font face="Arial" size="2"><input type="text" name="Facul1" size="30" value="<% =AutRes("usrfacul1") %>"></font></td> </tr> <% End If %> <% If EnvironnementRes("envfacul2")<>"" Then %> <tr> <td width="50%" bgcolor="<% =EnvironnementRes("envcol2") %>"><font face="Arial" size="2"><b><% =EnvironnementRes("envfacul2") %></b></font></td> <td width="50%" bgcolor="<% =EnvironnementRes("envcol2") %>"><font face="Arial" size="2"><input type="text" name="Facul2" size="30" value="<% =AutRes("usrfacul2") %>"></font></td> </tr> <% End If %> <% If EnvironnementRes("envfacul3")<>"" Then %> <tr> <td width="50%" bgcolor="<% =EnvironnementRes("envcol1") %>"><font face="Arial" size="2"><b><% =EnvironnementRes("envfacul3") %></b></font></td> <td width="50%" bgcolor="<% =EnvironnementRes("envcol1") %>"><font face="Arial" size="2"><input type="text" name="Facul3" size="30" value="<% =AutRes("usrfacul3") %>"></font></td> </tr> <% End If %> <% If EnvironnementRes("envfacul4")<>"" Then %> <tr> <td width="50%" bgcolor="<% =EnvironnementRes("envcol2") %>"><font face="Arial" size="2"><b><% =EnvironnementRes("envfacul4") %></b></font></td> <td width="50%" bgcolor="<% =EnvironnementRes("envcol2") %>"><font face="Arial" size="2"><input type="text" name="Facul4" size="30" value="<% =AutRes("usrfacul4") %>"></font></td> </tr> <% End If %> <% If EnvironnementRes("envfacul5")<>"" Then %> <tr> <td width="50%" bgcolor="<% =EnvironnementRes("envcol1") %>"><font face="Arial" size="2"><b><% =EnvironnementRes("envfacul5") %></b></font></td> <td width="50%" bgcolor="<% =EnvironnementRes("envcol1") %>"><font face="Arial" size="2"><input type="text" name="Facul5" size="30" value="<% =AutRes("usrfacul5") %>"></font></td> </tr> <% End If %> <tr> <td width="50%" bgcolor="<% =EnvironnementRes("envcol1") %>"><font face="Arial" size="2"><b>Site Internet :</b></font></td> <td width="50%" bgcolor="<% =EnvironnementRes("envcol1") %>"><font face="Arial" size="2"><input type="text" name="Internet" size="30" value="<% =AutRes("usrweb") %>"></font></td> </tr> <tr> <td width="50%" bgcolor="<% =EnvironnementRes("envcol2") %>"><font face="Arial" size="2"><b>Occupation :</b></font></td> <td width="50%" bgcolor="<% =EnvironnementRes("envcol2") %>"><font face="Arial" size="2"><input type="text" name="Occupation" size="30" value="<% =AutRes("usrocc") %>"></font></td> </tr> <tr> <td width="50%" bgcolor="<% =EnvironnementRes("envcol1") %>"><font face="Arial" size="2"><b>Ville, Pays :</b></font></td> <td width="50%" bgcolor="<% =EnvironnementRes("envcol1") %>"><font face="Arial" size="2"><input type="text" name="Location" size="30" value="<% =AutRes("usrloc") %>"></font></td> </tr> <tr> <td width="50%" bgcolor="<% =EnvironnementRes("envcol2") %>"><font face="Arial" size="2"><b>IntΘrΩts :</b></font></td> <td width="50%" bgcolor="<% =EnvironnementRes("envcol2") %>"><font face="Arial" size="2"><input type="text" name="Interets" size="50" value="<% =AutRes("usrint") %>"></font></td> </tr> <% If EnvironnementRes("envicq")=true Then %> <tr> <td width="50%" bgcolor="<% =EnvironnementRes("envcol1") %>"><font face="Arial" size="2"><b>NumΘro ICQ :</b></font></td> <td width="50%" bgcolor="<% =EnvironnementRes("envcol1") %>"><font face="Arial" size="2"><input type="text" name="ICQ" size="20" value="<% =AutRes("usricq") %>"></font></td> </tr> <% End If %> <tr> <td width="50%" bgcolor="<% =EnvironnementRes("envcol2") %>" valign="top"><font face="Arial" size="2"><b>Signature :</b></font></td> <td width="50%" bgcolor="<% =EnvironnementRes("envcol2") %>"><font face="Arial" size="2"><textarea rows="4" name="Signature" cols="30" wrap="virtual"><% =AutRes("usrsign") %></textarea></font></td> </tr> <tr> <td width="50%" bgcolor="<% =EnvironnementRes("envcol1") %>"><font face="Arial" size="2"><b>Sauvegarder le nom d'utilisateur et mot de passe dans un cookie ?<br> </b></font><font face="Arial" size="1">(Attention, ne pas utiliser les cookies vous obligera α entrer votre nom et mot de passe α chaque fois, pour en savoir plus sur les cookies, <a href="faq.asp#Les cookies" target="_blank">cliquez ici</a>)</font></td> <td width="50%" bgcolor="<% =EnvironnementRes("envcol1") %>"><font face="Arial" size="2"><input type="radio" name="cookie" value="Non" checked> Oui</font> <p><font face="Arial" size="2"><input type="radio" value="Oui" name="cookie"> Non</font></td> </tr> </table> <input type="hidden" name="Id" value="<% =AutRes("usrid") %>"> <input type="hidden" name="Nom" value="<% =Nom2 %>"> <p align="center"><input type="submit" value="Envoyer les modifications" name="Envoyer"><input type="reset" value="Effacer tous les champs" name="Effacer"></p> </center> </div></form> <p align="center"> <% Else %> <p align="center"> <font face="Arial" size="2"><b>Ce n'est pas le bon mot de passe. <% temps=Now() While DateDiff("s",temps,Now())<3 Wend %> <script language="javascript"> history.back(); </script> <% End If Else %> <p align="center"> <font face="Arial" size="2"><b> Entrez un nom d'utilisateur valide. <br> <br> <a href="subscribe.asp">Si vous n'Ωtes pas encore inscrit, cliquez ici.</a> <% temps=Now() While DateDiff("s",temps,Now())<10 Wend %> <script language="javascript"> history.back(); </script> <% End If Else %> <p align="center"> <font face="Arial" size="2"><b> Entrez un nom d'utilisateur valide. <br> <br> <a href="subscribe.asp">Si vous n'Ωtes pas encore inscrit, cliquez ici.</a> <% temps=Now() While DateDiff("s",temps,Now())<10 Wend %> <script language="javascript"> history.back(); </script> <% End If %> </b> </font> <!--#include file="basdepage.asp"--> </body> </html>