-
Notifications
You must be signed in to change notification settings - Fork 0
/
GUILogin.php
54 lines (43 loc) · 2.11 KB
/
GUILogin.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
<!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>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>PAGINA DE ENLACE</title>
<link rel="stylesheet" type="text/css" href="Utilitarios/Maqueta.css" />
</head>
<body background="Imagenes/zaha.jpg">
<div>
<center>
<form action="GUILogin.php" method='post'>
<BR /><BR /><BR /><BR /><BR /><BR /><BR /><BR />
<table class='gridtable' type='text/css' href='Utilitarios/Maqueta.css'>
<tr><th bgcolor=#6699FF>SISTEMA</th><th bgcolor=#6699FF>CONTROL USUARIOS</th></tr>
<tr><th bgcolor=#6699FF>LOGIN_USUARIO</th><td><input type=text name=usuario></td></tr>
<tr><th bgcolor=#6699FF>CLAVE</th> <td><input type=password name=clave></td></tr>
<tr><th bgcolor=#6699FF>INGRESO A PAGINA</th><td><input type=submit name="OK" value="Enlace"></td></tr>
<tr><th bgcolor=#6699FF>ABANDONAR PAGINA</th><td><input type=submit name="OK1" value="Salir"></td></tr>
<tr><th bgcolor='#6699FF'>========</th><th bgcolor='#6699FF'>=================</th></tr>
<tr><th bgcolor='#6699FF'>REGISTRO</th><th bgcolor='#6699FF'>NUEVO USUARIO</th></tr>
<tr><th bgcolor='#6699FF'>========</th><th bgcolor='#6699FF'>=================</th></tr>
<tr><th bgcolor='#6699FF'>REGISTRAR</th><td><input type=submit name=OK2 value='Registrar'></td></tr>
</table></form></center>
</div>
</body>
</html>
<?php
//require_once("TLogin.php");
if(isset($_POST["OK"]) && $_POST["OK"]=="Enlace")
{ $login_usuario="";//Limpiar para evitar que usuario ingrese sin id y clave
$pass_usuario="";
if(isset($_POST["usuario"]) & $_POST["usuario"]!="" )
{ $usuario=$_POST["usuario"];}
if(isset($_POST["clave"]) & $_POST["clave"]!="" )
{ $clave=$_POST["clave"];}
if($usuario!="" && $clave!="") include("TLogin.php");
}
if(isset($_POST["OK1"]) && $_POST["OK1"]=="Salir")
{exit();}
if(isset($_POST["OK2"]) && $_POST["OK2"]=="Registrar")
{ header("Location:Vision/GUILogUsuarios.php");
}
?>