home *** CD-ROM | disk | FTP | other *** search
- <% @ LANGUAGE="VBScript" lcid="1036" %>
- <!--#include file="include.asp"-->
- <%
- Nom3=Replace(request.QueryString("Noma"), "'", "''")
- Passe2=Replace(request.QueryString("Passe"), "'", "''")
-
- quoi2=Replace(request.form("quoi"), "'", "''")
- %>
- <html>
-
- <head>
- <meta http-equiv="Content-Language" content="fr">
- <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"><b>
- <%
- If quoi2 = "modif" Then
- Statut2=Replace(request.form("Statut"), "'", "''")
- Nb2=Replace(request.form("Nb"), "'", "''")
- Suppr2=Replace(request.form("Suppr"), "'", "''")
- Statid2=Replace(request.form("Statid"), "'", "''")
-
- If Suppr2 <> "ON" Then
- SQLStmt = "UPDATE Statut "
- SQLStmt = SQLStmt & "SET statdesc = ('" & Statut2 & "'), statnbpost = (" & Nb2 & ") "
- SQLStmt = SQLStmt & "WHERE statid=" & Statid2 & " "
- Set RS = ConnectionBD.Execute(SQLStmt)
- %>
- Modification effectuΘe
- <%
- Else
- SQLStmt = "UPDATE Statut "
- SQLStmt = SQLStmt & "SET statnbpost = (0) "
- SQLStmt = SQLStmt & "WHERE statid=" & Statid2 & " "
- Set RS = ConnectionBD.Execute(SQLStmt)
- %>
- Statut supprimΘ
- <%
- End If
- Else
- Statut2=Replace(request.form("Statut"), "'", "''")
- Nb2=Replace(request.form("Nb"), "'", "''")
-
- If Statut2<>"" and Nb2<>"" Then
-
- SQLStmt18 = "INSERT INTO Statut (statdesc,statnbpost) "
- SQLStmt18 = SQLStmt18 & "VALUES ('" & Statut2 & "'," & Nb2 & ")"
- Set RS18=ConnectionBD.Execute(SQLStmt18)
- %>
- Statut ajoutΘ
- <% Else %>
- Vous n'avez pas remplis tous les champs...
- <%
- temps=Now()
- While DateDiff("s",temps,Now())<3
- Wend
- %>
- <script language="javascript">
- history.back();
- </script>
- <% End If
- End If %>
- </b></font>
- <p align="center">
-
- </p>
- <%
- longeur1=Len(Nom3)
- longeur2=Len(Passe2)
-
- J=1
- For I=1 To longeur2
- char1=Mid(Nom3,J,1)
- char2=Mid(Passe2,I,1)
- char3=Mid(Passe2,I,1)
- code1=Asc(char1)
- code2=Asc(char2)
- code2=code2-code1
- If code2<0 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
- 'DΘ-Cryptage du mot de passe
- %>
- <p align="center"><font face="Arial" size="2"><b><a href="doadmincheck.asp?Nom=<% =Nom3 %>&Passe=<% =Passe2 %>">Retour au menu d'administration</a>
- </b></font></p>
- <p align="center">
- <font face="Arial"><b>
- <script language="javascript">
- parent.abbdown.location="default.asp";
- </script>
- <!--#include file="basdepage.asp"-->
- </b></font>
- </p>
- </body>
-
- </html>
-