Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Tree: ee4909e58d
Fetching contributors…

Cannot retrieve contributors at this time

80 lines (74 sloc) 3.442 kB
<!--
To change this template, choose Tools | Templates
and open the template in the editor.
-->
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link href="stylescss/stylelogin.css" type="text/css" rel="stylesheet" />
<script type="text/javascript" src="js/jquery.js"></script>
<script type="text/javascript" language="javascript">
//Sets the base URL for future access in JS scripts
base_url = "http://calidad.efi.com/";
//This global variable will be used to store global variables
global = {};
global.base_url = base_url;
</script>
<script language="javascript">
$(document).ready(function() {
$('#form-logeo').submit(function() {
if($("input[name=username]").val().length < 1 || $("input[name=password]").length < 1){
alert('Debe Completar los campos del formulario');
return false; //evita que se envie el form
}else{
var form = $('#form-logeo');
var data_form = form.serialize();//pone en un array todos los campos del form
$.post(
//common/calculate
base_url+'/validadores/comprobar_usuario.php', // url
data_form, // data
function(data, status) {
if ('success' == status) {
alert(data.respuesta);
if ((data.respuesta)== "Usuario o contraseña incorrecta"){
}
else{
location=("main_page.php");
}
}
},
'json'
);
return false;
}
});
});
</script>
<title>Login Control de Expedientes</title>
</head>
<body id="login-page">
<div class="login-wrap">
<div class="mensaje">
<h2>Bienvenido!</h2>
</div>
<form id="form-logeo" class="generic" method="post">
<div id="login-user" class="field">
<label>Nombre de Usuario (Nick)</label>
<input id="login-username" type="text" class="text" name="username" placeholder="Nombre de Usuario" tabindex="1" maxlength="200">
</div>
<div id="login-pass" class="field">
<label>Contraseña <span><a href="#">(¿No puedes acceder a tu cuenta?<span style="color:#00a5f0;"> ¬_¬)</span></a></span></label>
<input id="login-password" type="password" class="text" name="password" placeholder="Contraseña" tabindex="3" maxlength="32">
</div>
<a id="registro" href="http://localhost/efiphp/registro/form.php" id="link" >Registrarse</a> <br />
<div class="btnlogeo">
<input id="login-submit" type="submit" value="Iniciar Sesión">
</div>
</form>
</div>
<?php
// put your code here
?>
</body>
</html>
Jump to Line
Something went wrong with that request. Please try again.