<%@ LANGUAGE=VBScript %> <% '---------------------------------------------------------------------------------------------------------------------------------------------------------------------' ' Do Not Cache this Page and turn on the Response Buffer Response.AddHeader "cache-control", "private" Response.AddHeader " pragma", "no-cache" Response.buffer=true '---------------------------------------------------------------------------------------------------------------------------------------------------------------------' '------- Include The Configuration Variables -- The Following Include is Required on each Page that needs Protection -------' %> <% '---------------------------------------------------------------------------------------------------------------------------------------------------------------------' '------ (Start Required variables for Pages) The Following Variables are Required on each Page that needs Protection --------' MyLoginGroup = "None" 'If the page uses Group Access Change "None" to Group Name MyLoginIndividualAccess = 1 'if the Page uses individual Access Change 1 to the Access Level '----------------------------------------------- (End Required variables for Pages) --------------------------------------------------------------------' '---------------------------------------------------------------------------------------------------------------------------------------------------------------------' '---------------------------------------------------------------------------------------------------------------------------------------------------------------------' ' Check for individual Page Access Security If Session("MyLoginGroup") = "None" Then If Session("MyLoginIndividualAccess") > MyLoginIndividualAccess Then Session("MyLoginUserValidated") = "" Session("MyLoginGroup") = "" Session("MyLoginIndividualAccess") = "" End If Else If Not Session("MyLoginGroup") = MyLoginGroup Then Session("MyLoginUserValidated") = "" Session("MyLoginGroup") = "" Session("MyLoginIndividualAccess") = "" End If End If '---------------------------------------------------------------------------------------------------------------------------------------------------------------------' ' Used for This page only! Redisplay = "No" '---------------------------------------------------------------------------------------------------------------------------------------------------------------------' ' Logoff Current User If Request.Form("rectype") = "Clear" Then Session("MyLoginUserValidated") = "" Session("MyLoginGroup") = "" Session("MyLoginIndividualAccess") = "" Session("MyLoginUserName") = "" Session("MyLoginNickName") = "" Session("MyLoginUserCode") = "" Session("MyLoginID") = "" End If '---------------------------------------------------------------------------------------------------------------------------------------------------------------------' ' Validate the User/Password Login Form If Request.Form("rectype") = "Validate" Then If Len(Request.Form("UserCode")) <1 or Len(Request.Form("Password")) < 1 Then Session("MyLoginUserValidated") = "No" Else Set MyConn=Server.CreateObject("ADODB.Connection") MyConn.Open "PROVIDER=MSDASQL;" & "DRIVER={Microsoft Access Driver (*.mdb)}; " & "DBQ=" & MyLoginDB MySQL="Select * from UserData Where UserCode = '" & Request.Form("UserCode") & "' and Password = '" & Request.Form("Password") & "'" Set MyRs=MyConn.Execute(MySQL) If MyRs.BOF or MyRs.EOF Then Session("MyLoginUserValidated") = "No" Else If MyLoginGroup = "None" Then If MyRs("IndividualAccess") = MyLoginIndividualAccess or MyRs("IndividualAccess") < MyLoginIndividualAccess Then theDate = MyRs("ExpirationDate") DateCheck = DateDiff("d", Now, theDate) If DateCheck < 1 Then Session("MyLoginUserValidated") = "Expired" Session("MyLoginGroup") = "None" Session("MyLoginIndividualAccess") = "" Session("MyLoginUserName") = "" Session("MyLoginNickName") = "" Session("MyLoginUserCode") = "" Session("MyLoginID") = "" Else Session("MyLoginUserValidated") = "Yes" Session("MyLoginGroup") = "None" Session("MyLoginIndividualAccess") = MyRs("IndividualAccess") Session("MyLoginName") = MyRs("Name") Session("MyLoginNickName") = MyRs("NickName") Session("MyLoginUserCode") = MyRs("UserCode") Session("MyLoginID") = MyRs("ID") End If Else Session("MyLoginUserValidated") = "Almost" Session("MyLoginGroup") = "None" Session("MyLoginIndividualAccess") = "" Session("MyLoginUserName") = "" Session("MyLoginNickName") = "" Session("MyLoginUserCode") = "" Session("MyLoginID") = "" End If Else If MyRs("aGroup") = MyLoginGroup Then theDate = MyRs("ExpirationDate") DateCheck = DateDiff("d", Now, theDate) If DateCheck > 0 Then Session("MyLoginUserValidated") = "Yes" Session("MyLoginGroup") = MyRs("aGroup") Session("MyLoginIndividualAccess") = "" Session("MyLoginUserName") = "" Session("MyLoginNickName") = "" Session("MyLoginUserCode") = "" Session("MyLoginID") = "" Else Session("MyLoginUserValidated") = "Almost" Session("MyLoginGroup") = "None" Session("MyLoginIndividualAccess") = "" Session("MyLoginUserName") = "" Session("MyLoginNickName") = "" Session("MyLoginUserCode") = "" Session("MyLoginID") = "" End If End If End If End If MyRs.close Set MyRs= Nothing MyConn.Close set MyConn=nothing End If End If '---------------------------------------------------------------------------------------------------------------------------------------------------------------------' ' Start the HTML Page Response.Write ("") Response.Write ("") Response.Write ("Administración de Clientes") Response.Write ("") Response.Write ("") Response.Write ("") '---------------------------------------------------------------------------------------------------------------------------------------------------------------------' ' Process The Delete Verification If Request.Form("rectype") = "DeleteVerified" and Session("MyLoginUserValidated") = "Yes" Then If Request.form("ID") > 1 Then Set MyConn=Server.CreateObject("ADODB.Connection") MyConn.Open "PROVIDER=MSDASQL;" & "DRIVER={Microsoft Access Driver (*.mdb)}; " & "DBQ=" & MyLoginDB MySQL="Delete from UserData Where UserData.ID = " & Request.Form("ID") Set MyRs=MyConn.Execute(MySQL) MyConn.Close set MyConn=nothing Redisplay = "Yes" End If Redisplay = "Yes" End If '---------------------------------------------------------------------------------------------------------------------------------------------------------------------' ' Proceso para añadir nuevo registro o cliente If Request.Form("rectype") = "InsertRec" and Session("MyLoginUserValidated") = "Yes" Then theErrors = 0 Set MyConn=Server.CreateObject("ADODB.Connection") MyConn.Open "PROVIDER=MSDASQL;" & "DRIVER={Microsoft Access Driver (*.mdb)}; " & "DBQ=" & MyLoginDB MySQL="Select UserCode from UserData Where UserCode = '" & Request.form("UserCode") & "'" Set MyRs=MyConn.Execute(MySQL) If MyRs.BOF or MyRs.EOF Then theOtherErrors = 0 Else theOtherErrors = 1 End If MyRs.close Set MyRs= Nothing MyConn.Close set MyConn=nothing theGroups = 0 ' If Len(Request.Form("Group") ) < 1 Then ' If Len(Request.Form("IndividualAccess")) < 1Then ' theGroups = 1 ' ElseIf Request.Form("IndividualAccess") < 1 Then ' theGroups = 1 ' End If ' End If ' If Len(Request.Form("Group") ) > 0 Then ' If Len(Request.Form("IndividualAccess")) > 0 Then ' If Request.Form("IndividualAccess") > 0 Then ' theGroups = 2 ' End If ' End If ' End If ' Error de datos al actualizar el registro If (Len(Request.Form("Password")) < 1) or (Len(Request.Form("Name")) < 1) or (theGroups > 0) or (theOtherErrors = 1) Then ' Response.Write ("

") ' Response.Write ("

") ' Response.Write ("MyLogin Error Report") ' Response.Write ("
") ' Response.Write ("") ' Response.Write ("

") ' Response.Write ("

") Texto= "ERROR DE DATOS" HeaderBar Response.Write ("
") Response.Write("") Response.Write("
ERROR DE REGISTRO

") Response.Write("") End If If theOtherErrors = 1 Then theErrors = 1 Response.Write("Este Usuario ya existe, elija otro por favor") End If If theOtherErrors = 0 Then If Len(Request.Form("UserCode")) < 1 Then theErrors = 1 Response.Write("Falta el LOGIN
") End If If Len(Request.Form("Password")) < 1 Then theErrors = 1 Response.Write("Falta el PASSWORD
") End If If Len(Request.Form("Name")) < 1 Then theErrors = 1 Response.Write("Falta la EMPRESA
") End If ' If theGroups = 1 Then ' theErrors = 1 ' Response.Write("Group Access or Individual Access Level Required
") ' End If ' If theGroups = 2 Then ' theErrors = 1 ' Response.Write("Select only 1 option Group Access or Individual Access") ' End If End If If theErrors = 1 Then Response.Write("
") Response.Write ("

") Response.Write("

") Response.Write("") Response.Write("") Response.End Else Set MyConn=Server.CreateObject("ADODB.Connection") MyConn.Open "PROVIDER=MSDASQL;" & "DRIVER={Microsoft Access Driver (*.mdb)}; " & "DBQ=" & MyLoginDB '-------- Build Fields to be inserted into SQL Statement) -------' MySQL="Insert into UserData (UserCode, Password" If Len(Request.Form("Group")) > 0 Then MySQL = MySQL & ", aGroup" End If If Len(Request.Form("URL")) > 0 Then MySQL = MySQL & ", RedirectUrl" End If If Len(Request.Form("IndividualAccess")) > 0 Then MySQL = MySQL & ", IndividualAccess" End If MySQL = MySQL & ", Name" If Len(Request.Form("NickName")) > 0 Then MySQL = MySQL & ", NickName" End If If Len(Request.Form("Email")) > 0 Then MySQL = MySQL & ", Email" End If If Len(Request.Form("ExpirationDate")) > 0 Then MySQL = MySQL & ", ExpirationDate)" Else MySQL = MySQL & ")" End If '-------- Build Data to be inserted into SQL Statement) -------' MySQL = MySQL & " VALUES (" MySQL = MySQL & "'" & Request.Form("UserCode") & "'" MySQL = MySQL & ", '" & Request.Form("Password") & "'" If Len(Request.Form("Group")) > 0 Then MySQL = MySQL & ", '" & Request.Form("Group") & "'" End If If Len(Request.Form("URL")) > 0 Then MySQL = MySQL & ", '" & Request.Form("URL") & "'" End If If Len(Request.Form("IndividualAccess")) > 0 Then MySQL = MySQL & ", " & Request.Form("IndividualAccess") End If MySQL = MySQL & ", '" & Request.Form("Name") & "'" If Len(Request.Form("NickName")) > 0 Then MySQL = MySQL & ", '" & Request.Form("NickName") & "'" End If If Len(Request.Form("Email")) > 0 Then MySQL = MySQL & ", '" & Request.Form("Email") & "'" End If If Len(Request.Form("ExpirationDate")) < 1 Then MySQL = MySQL & ")" Else tmpDate = Request.Form("ExpirationDate") theYear = Year(tmpDate) theMonth = Month(tmpDate) theDay = Day(tmpDate) theDate = theMonth & "/" & theDay & "/" & theYear MySQL = MySQL & ", '" MySQL = MySQL & theDate MySQL = MySQL & "')" End If Set MyRs=MyConn.Execute(MySQL) MyConn.Close set MyConn=nothing Redisplay = "Yes" End If End If '----------------------------------------------------------------------------------------------------------------------------------------------------------------------' ' Proceso para actualizar registros If Request.Form("rectype") = "Actualizar" and Session("MyLoginUserValidated") = "Yes" Then theErrors = 0 Set MyConn=Server.CreateObject("ADODB.Connection") MyConn.Open "PROVIDER=MSDASQL;" & "DRIVER={Microsoft Access Driver (*.mdb)}; " & "DBQ=" & MyLoginDB MySQL="Select UserCode from UserData Where UserCode = '" & Request.form("UserCode") & "'" Set MyRs=MyConn.Execute(MySQL) If MyRs.BOF or MyRs.EOF Then theOtherErrors = 0 Else theOtherErrors = 1 End If MyRs.close Set MyRs= Nothing MyConn.Close set MyConn=nothing theGroups = 0 ' If Len(Request.Form("Group") ) < 1 Then ' If Len(Request.Form("IndividualAccess")) < 1Then ' theGroups = 1 ' ElseIf Request.Form("IndividualAccess") < 1 Then ' theGroups = 1 ' End If ' End If ' If Len(Request.Form("Group") ) > 0 Then ' If Len(Request.Form("IndividualAccess")) > 0 Then ' If Request.Form("IndividualAccess") > 0 Then ' theGroups = 2 ' End If ' End If ' End If If (Len(Request.Form("Password")) < 1) or (Len(Request.Form("Name")) < 1) or (theGroups > 0) or (theOtherErrors = 1) Then ' Response.Write ("

") ' Response.Write ("

") ' Response.Write ("MyLogin Error Report") ' Response.Write ("
") ' Response.Write ("") ' Response.Write ("

") ' Response.Write ("

") Texto= "ERROR" HeaderBar Response.Write ("
") Response.Write("
Listado de Errores

") Response.Write("") End If If theOtherErrors = 1 Then theErrors = 1 Response.Write("El Login ya esta en usuo, Seleccione otro por favor
") End If If theOtherErrors = 0 Then If Len(Request.Form("Password")) < 1 Then theErrors = 1 Response.Write("Falta el Password
") End If If Len(Request.Form("Name")) < 1 Then theErrors = 1 Response.Write("User Name Missing
") End If If theGroups = 1 Then theErrors = 1 Response.Write("Group Access or Individual Access Level Required
") End If If theGroups = 2 Then theErrors = 1 Response.Write("Select only 1 option Group Access or Individual Access") End If End If If theErrors = 1 Then Response.Write("
") Response.Write("

Use your Back Button to return tddddddddddddo the Form") Response.Write("

") Response.Write("

") Response.Write("") Response.Write("") Response.End Else Set MyConn=Server.CreateObject("ADODB.Connection") MyConn.Open "PROVIDER=MSDASQL;" & "DRIVER={Microsoft Access Driver (*.mdb)}; " & "DBQ=" & MyLoginDB MySQL="UPDATE UserData SET " MySQL = MySQL & "UserData.Name = '" & Request.Form("Name") & "', " MySQL = MySQL & "UserData.NickName = '" & Request.Form("NickName") & "', " MySQL = MySQL & "UserData.Password = '" & Request.Form("Password") & "', " MySQL = MySQL & "UserData.Email = '" & Request.Form("Email") & "', " MySQL = MySQL & "UserData.aGroup = '" & Request.Form("Group") & "', " If Len(Request.Form("URL")) > 0 Then MySQL = MySQL & "UserData.RedirectUrl = '" & Request.Form("URL") & "', " End If If Len(Request.Form("IndividualAccess")) > 0 Then MySQL = MySQL & "UserData.IndividualAccess = " & Request.Form("IndividualAccess") & ", " Else MySQL = MySQL & "UserData.IndividualAccess = " & 0 & ", " End If tmpDate = Request.Form("ExpirationDate") theYear = Year(tmpDate) theMonth = Month(tmpDate) theDay = Day(tmpDate) theDate = theMonth & "/" & theDay & "/" & theYear If Len(Request.Form("ExpirationDate")) > 0 Then MySQL = MySQL & "UserData.ExpirationDate = '" & theDate & "' " End If MySQL = MySQL & "Where UserData.ID = " & Request.Form("ID") Set MyRs=MyConn.Execute(MySQL) MyConn.Close set MyConn=nothing Redisplay = "Yes" End If End If '---------------------------------------------------------------------------------------------------------------------------------------------------------------------' ' Pide login y clave para entrar If Not Session("MyLoginUserValidated") = "Yes" Then %>
5 Estrellas es una marca registradaEtiqueta negra es una marca registrada


 Copyright (c)  Mariscos Arnoso S.L.
<% Response.Write ("
") Response.Write ("
") Response.Write ("") Response.Write ("") Response.Write ("") Response.Write ("") Response.Write ("") Response.Write ("") Response.Write ("") Response.Write ("") Response.Write ("") Response.Write ("") Response.Write ("") Response.Write ("") Response.Write ("
Cliente: 
Password: 
") Response.Write ("") Response.Write ("
") Response.Write ("
") If Session("MyLoginUserValidated") = "Almost" Then Response.Write ("Nivel de Seguridad Insuficiente

") End If If Session("MyLoginUserValidated") = "No" Then Response.Write ("Login/Password Incorrectos

") End If If Session("MyLoginUserValidated") = "Expired" Then Response.Write ("Su Acceso a Caducado

") End If End If '---------------------------------------------------------------------------------------------------------------------------------------------------------------------' ' Muestra la Base de Datos de clientes If (Request.Form("rectype") = "" and Session("MyLoginUserValidated") = "Yes") or (Request.Form("rectype") = "Validate" and Session("MyLoginUserValidated") = "Yes") or Redisplay = "Yes" Then If session("MyLoginUserCode") = "elias" then Texto= "CLIENTES" HeaderBar ' Response.Write ("

") ' Response.Write ("

") ' Response.Write ("Listado de Clientes") ' Response.Write ("
") ' Response.Write ("") ' Response.Write ("

") ' Response.Write ("

") ' HeaderBar Set MyConn=Server.CreateObject("ADODB.Connection") MyConn.Open "PROVIDER=MSDASQL;" & "DRIVER={Microsoft Access Driver (*.mdb)}; " & "DBQ=" & MyLoginDB MySQL="Select ID, UserData.Name, UserData.NickName, UserData.UserCode, UserData.Email,UserData.Compras from UserData Where UserData.ID > " & 0 & " Order by UserData.Name" Set MyRs=MyConn.Execute(MySQL) Response.Write ("") ' howmanyfilds= numero de campos a mostrar menos uno para la de la fecha de caducidad howmanyfields=MyRs.fields.count -1 ' Response.Write ("") ' Response.Write ("") 'ENCABEZADO DEL LISTADO DE REGISTROS O CLIENTES ' for i=0 to howmanyfields ' If I > 0 Then ' Response.Write ("") ' End If ' next Response.Write ("") Response.Write ("") Response.Write ("") Response.Write ("") Response.Write ("") Response.Write ("") Response.Write ("") Response.Write ("") do while not MyRs.eof Response.Write ("") Response.Write ("") Response.Write ("") Response.Write ("") Response.Write ("") Response.Write ("") Response.Write ("") for i = 0 to howmanyfields If I > 0 Then ThisRecord = MyRs(I) If Len(ThisRecord) < 1 Then ThisRecord = "  " end if If I < howmanyfields Then Response.Write ("") Else Response.Write ("") End If End If next MyRs.movenext loop Response.Write ("") Response.Write ("
  " & MyRs(i).name & " Empresa Nombre Login Email Compras
") Response.Write (" ") Response.Write ("") ' Response.Write ("") Response.Write ("") Response.Write ("
") Response.Write ("") Response.Write ("") ' Response.Write ("") Response.Write ("") Response.Write ("" & Thisrecord & "" & Thisrecord & "
") MyRs.close Set MyRs= Nothing MyConn.Close set MyConn=nothing Response.Write("

 
") Response.Write ("") Response.Write ("") Response.Write ("") Response.Write ("") Response.Write ("") Response.Write ("") Response.Write ("
") Response.Write ("") Response.Write ("

") Response.Write ("

") else ' Aqui va la pagina del cliente que tiene que mostrar.... Texto= "FICHA DE CLIENTE" ' CabezaDeCliente numero=Session("MyLoginID") ' Para saber el numero del regitro del cliente Set MyConn=Server.CreateObject("ADODB.Connection") MyConn.Open "PROVIDER=MSDASQL;" & "DRIVER={Microsoft Access Driver (*.mdb)}; " & "DBQ=" & MyLoginDB ' MySQL="Select ID, UserData.Name, UserData.NickName, UserData.direccion, UserData.telefono,UserData.Compras from UserData Where UserData.ID = " & NUMERO & " " MySQL="Select * from UserData Where UserData.ID = " & NUMERO & " " Set MyRs=MyConn.Execute(MySQL) Session("NombreCliente")=MyRs(5) ' Para saber cual es la empresa y mandar el formulario Response.Write ("
") Response.Write ("") Response.Write ("") Response.Write ("
   Cliente: " & MyRs(5) & "   



") %>

Realizar COMPRAS

Consultar DATOS

Ver ACUMULADO
MyRs.close Set MyRs= Nothing MyConn.Close set MyConn=nothing Response.Write("

 
") end if End If '---------------------------------------------------------------------------------------------------------------------------------------------------------------------' ' Datos de Acualizacion de REgistros If Request.Form("rectype") = "Editar" and Session("MyLoginUserValidated") = "Yes" Then ' Response.Write ("

") ' Response.Write ("

") ' Response.Write ("MyLogin User Update") ' Response.Write ("
") ' Response.Write ("") ' Response.Write ("
") ' Response.Write ("

") Texto= "ACTUALIZACIÓN" HeaderBar Set MyConn=Server.CreateObject("ADODB.Connection") MyConn.Open "PROVIDER=MSDASQL;" & "DRIVER={Microsoft Access Driver (*.mdb)}; " & "DBQ=" & MyLoginDB MySQL="Select RedirectUrl,UserData.ID, UserData.Name, NickName, UserData.UserCode, UserData.Password, UserData.Email, UserData.aGroup, UserData.IndividualAccess, UserData.ExpirationDate from UserData Where UserData.ID = " & Request.Form("ID") Set MyRs=MyConn.Execute(MySQL) Response.Write ("

") Response.Write ("") Response.Write ("") Response.Write ("") Response.Write ("") Response.Write ("") Response.Write ("") Response.Write ("") Response.Write ("") Response.Write ("") Response.Write ("") Response.Write ("") Response.Write ("") Response.Write ("") Response.Write ("") Response.Write ("") Response.Write ("") Response.Write ("") Response.Write ("") Response.Write ("") Response.Write ("") Response.Write ("") Response.Write ("") Response.Write ("") Response.Write ("") Response.Write ("") Response.Write ("") Response.Write ("") Response.Write ("") Response.Write ("") Response.Write ("") Response.Write ("") Response.Write ("") Response.Write ("") Response.Write ("") Response.Write ("") Response.Write ("") Response.Write ("") Response.Write ("") theDate = MyRs("ExpirationDate") theMonth = Month(theDate) theDay = Day(theDate) theYear = Year(theDate) theDate = theMonth & "/" & theDay & "/" & theYear Response.Write ("") Response.Write ("") Response.Write ("") Response.Write ("") Response.Write ("") Response.Write ("
Empresa: Requerido
Nombre:
Login: " & MyRs("UserCode") & "
Password: Requerido
Email:
Grupo:
Acceso Individual: (Numerico - 1 Administrador 2,3,4... Varios Accesos)
Url Redirecionada:
Fecha Caducidad: (mm/dd/aaaa) en Blanco o 12/31/4000 para no Caducar
") Response.Write ("") Response.Write ("") Response.Write ("") Response.Write ("
") MyRs.close Set MyRs= Nothing MyConn.Close set MyConn=nothing Response.Write ("

 

") Response.Write ("
") Response.Write ("") Response.Write ("") Response.Write ("") Response.Write ("") Response.Write ("") Response.Write ("") Response.Write ("") Response.Write ("
Current Groups UsedCurrent Individual Access Used
") Set MyConn=Server.CreateObject("ADODB.Connection") MyConn.Open "PROVIDER=MSDASQL;" & "DRIVER={Microsoft Access Driver (*.mdb)}; " & "DBQ=" & MyLoginDB MySQL="Select Distinct aGroup from UserData Where ID > 0 And Len(aGroup) > 0 Order by aGroup" Set MyRs=MyConn.Execute(MySQL) If MyRs.BOF or MyRS.EOF Then Response.Write ("No Groups Assigned") End If do while not MyRs.eof Response.Write (MyRs("aGroup") & "
") MyRs.movenext Loop MyRs.close Set MyRs= Nothing MyConn.Close set MyConn=nothing Response.Write ("
") Set MyConn=Server.CreateObject("ADODB.Connection") MyConn.Open "PROVIDER=MSDASQL;" & "DRIVER={Microsoft Access Driver (*.mdb)}; " & "DBQ=" & MyLoginDB MySQL="Select Distinct IndividualAccess from UserData Where IndividualAccess > 0 And Len(IndividualAccess) > 0 Order by IndividualAccess" Set MyRs=MyConn.Execute(MySQL) If MyRs.BOF or MyRS.EOF Then Response.Write ("No Individual Access Levels Assigned") End If do while not MyRs.eof Response.Write (MyRs("IndividualAccess") & "
") MyRs.movenext Loop MyRs.close Set MyRs= Nothing MyConn.Close set MyConn=nothing Response.Write ("
") Response.Write ("
") End If '---------------------------------------------------------------------------------------------------------------------------------------------------------------------' ' Mostrar ventana de añadir clientes If Request.Form("rectype") = "Add" and Session("MyLoginUserValidated") = "Yes" Then Response.Write("") Texto= "CLIENTE NUEVO" HeaderBar Response.Write ("") Response.Write ("
") Response.Write ("") Response.Write ("") Response.Write ("") Response.Write ("") Response.Write ("") Response.Write ("") Response.Write ("") Response.Write ("") Response.Write ("") Response.Write ("") Response.Write ("") Response.Write ("") Response.Write ("") Response.Write ("") Response.Write ("") Response.Write ("") Response.Write ("") Response.Write ("") Response.Write ("") Response.Write ("") Response.Write ("") Response.Write ("") Response.Write ("") Response.Write ("") Response.Write ("") Response.Write ("") Response.Write ("") Response.Write ("") Response.Write ("") Response.Write ("") Response.Write ("") Response.Write ("") Response.Write ("") Response.Write ("") Response.Write ("") Response.Write ("") Response.Write ("") Response.Write ("") Response.Write ("") Response.Write ("") Response.Write ("") Response.Write ("") Response.Write ("
Empresa: Required
Nombre:
Login: Required
Password: Required
Email:
Grupo:
Individual Access: (Numeric - 1 for admin 2,3,4... Lesser rights!)
Redirect Url:
Fecha Caducidad: (mm/dd/yyyy) Blank or 12/31/4000 for Never Expires
") Response.Write ("") Response.Write ("") ' Response.Write ("
") ' Response.Write ("

 

") ' Response.Write ("
") ' Response.Write ("") ' Response.Write ("") ' Response.Write ("") ' Response.Write ("") ' Response.Write ("") ' Response.Write ("") ' Response.Write ("") Response.Write ("
Current Groups UsedCurrent Individual Access Used
") Set MyConn=Server.CreateObject("ADODB.Connection") MyConn.Open "PROVIDER=MSDASQL;" & "DRIVER={Microsoft Access Driver (*.mdb)}; " & "DBQ=" & MyLoginDB MySQL="Select Distinct aGroup from UserData Where ID > 0 And Len(aGroup) > 0 Order by aGroup" Set MyRs=MyConn.Execute(MySQL) If MyRs.BOF or MyRS.EOF Then Response.Write ("No Groups Assigned") End If do while not MyRs.eof Response.Write (MyRs("aGroup") & "
") MyRs.movenext Loop MyRs.close Set MyRs= Nothing MyConn.Close set MyConn=nothing Response.Write ("
") Set MyConn=Server.CreateObject("ADODB.Connection") MyConn.Open "PROVIDER=MSDASQL;" & "DRIVER={Microsoft Access Driver (*.mdb)}; " & "DBQ=" & MyLoginDB MySQL="Select Distinct IndividualAccess from UserData Where IndividualAccess > 0 And Len(IndividualAccess) > 0 Order by IndividualAccess" Set MyRs=MyConn.Execute(MySQL) If MyRs.BOF or MyRS.EOF Then Response.Write ("No Individual Access Levels Assigned") End If do while not MyRs.eof Response.Write (MyRs("IndividualAccess") & "
") MyRs.movenext Loop MyRs.close Set MyRs= Nothing MyConn.Close set MyConn=nothing Response.Write ("
") Response.Write ("
") End If '---------------------------------------------------------------------------------------------------------------------------------------------------------------------' ' Display the Single User Data Form For Verifying the Delete Process If Request.Form("rectype") = "Borrar" and Session("MyLoginUserValidated") = "Yes" Then ' Response.Write ("

") ' Response.Write ("

") ' Response.Write ("MyLogin Delete User") ' Response.Write ("
") ' Response.Write ("") ' Response.Write ("
") ' Response.Write ("

") Texto= "ELIMINAR CLIENTES" HeaderBar Set MyConn=Server.CreateObject("ADODB.Connection") MyConn.Open "PROVIDER=MSDASQL;" & "DRIVER={Microsoft Access Driver (*.mdb)}; " & "DBQ=" & MyLoginDB MySQL="Select ID, UserData.Name, NickName, UserData.UserCode, UserData.Password, UserData.Email, UserData.aGroup, UserData.IndividualAccess, UserData.ExpirationDate from UserData Where UserData.ID = " & Request.Form("ID") Set MyRs=MyConn.Execute(MySQL) Response.Write ("

") Response.Write ("") Response.Write ("") Response.Write ("") Response.Write ("") Response.Write ("") Response.Write ("") Response.Write ("") Response.Write ("") Response.Write ("") Response.Write ("") Response.Write ("") Response.Write ("") Response.Write ("") Response.Write ("") Response.Write ("") Response.Write ("") Response.Write ("") Response.Write ("") Response.Write ("") Response.Write ("") Response.Write ("") Response.Write ("") Response.Write ("") Response.Write ("") Response.Write ("") Response.Write ("") Response.Write ("") Response.Write ("") Response.Write ("") Response.Write ("") Response.Write ("") Response.Write ("") theDate = MyRs("ExpirationDate") theMonth = Month(theDate) theDay = Day(theDate) theYear = Year(theDate) theDate = theMonth & "/" & theDay & "/" & theYear Response.Write ("") Response.Write ("") Response.Write ("") Response.Write ("") Response.Write ("") Response.Write ("") Response.Write ("") Response.Write ("") Response.Write ("") Response.Write ("") Response.Write ("") Response.Write ("") Response.Write ("") Response.Write ("
User Name: " & MyRs("Name") & "
Nick Name: " & MyRs("NickName") & "
User Code: " & MyRs("UserCode") & "
Password: " & MyRs("Password") & "
Email: " & MyRs("Email") & "
Group: " & MyRs("aGroup") & "
Individual Access: " & MyRs("IndividualAccess") & "
Expiration Date: " & theDate & "

 

 

") Response.Write ("
") MyRs.close Set MyRs= Nothing MyConn.Close set MyConn=nothing End If '---------------------------------------------------------------------------------------------------------------------------------------------------------------------' ' Complete the HTML Page 'Response.Write ("
") 'Response.Write("

 

") 'Response.Write ("Written By Alan L. Warchuck") 'Response.Write("") 'Response.Write ("
") 'Response.Write ("") 'Response.Write ("") '---------------------------------------------------------------------------------------------------------------------------------------------------------------------' 'Header Bar Subroutine Sub HeaderBar() thegreetingname = Session("MyLoginName") ' thegreetingname = Session("MyLoginUserCode") ' If Len(Session("MyLoginNickName")) < 1 Then ' thegreetingname = Session("MyLoginName") ' Else ' thegreetingname = Session("MyLoginNickName") ' End If theHour = Hour(Now) If theHour < 12 Then greeting = "Buenos Dias: " ElseIf theHour < 20 Then greeting = "Buenas Tardes: " Else greeting = "Buenas Noches: " End If Response.Write("") Response.Write("") Response.Write("") Response.Write("") Response.Write("") Response.Write("") Response.Write(" ") Response.Write("") Response.Write ("") Response.Write("") Response.Write("") Response.Write("
" & greeting & " " &thegreetingname & "Fecha: " & Date() & "" & TEXTO & "     
") Response.Write("") Response.Write("
") Response.Write("

") End Sub '---------------------------------------------------------------------------------------------------------------------------------------------------------------------' 'Encabezado de Ficha de Cliente Sub CabezaDeCliente() thegreetingname = Session("MyLoginName") theHour = Hour(Now) If theHour < 12 Then greeting = "Buenos Dias: " ElseIf theHour < 20 Then greeting = "Buenas Tardes: " Else greeting = "Buenas Noches: " End If Response.Write("") Response.Write("") Response.Write("") Response.Write("") Response.Write("") Response.Write("") Response.Write(" ") Response.Write("") Response.Write ("") Response.Write("") Response.Write("") Response.Write("
" & greeting & " " &thegreetingname & "Fecha: " & Date() & "" & TEXTO & "     
") Response.Write("") Response.Write("
") Response.Write("


") End Sub '---------------------------------------------------------------------------------------------------------------------------------------------------------------------' ' Clear out everything (Just in Case!) Response.End %>