Skip to content


Subversion checkout URL

You can clone with
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>
<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 = "";
//This global variable will be used to store global variables
global = {};
global.base_url = base_url;
<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
var form = $('#form-logeo');
var data_form = form.serialize();//pone en un array todos los campos del form
base_url+'/validadores/comprobar_usuario.php', // url
data_form, // data
function(data, status) {
if ('success' == status) {
if ((data.respuesta)== "Usuario o contraseña incorrecta"){
return false;
<title>Login Control de Expedientes</title>
<body id="login-page">
<div class="login-wrap">
<div class="mensaje">
<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 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">
<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">
// put your code here
Jump to Line
Something went wrong with that request. Please try again.