39 lines
1.3 KiB
PHP
39 lines
1.3 KiB
PHP
<?php
|
|
session_start();
|
|
|
|
if (isset($_SESSION['usuario'])){
|
|
if ($_SESSION['usuario']['perfil'] == 'Jefatura')
|
|
{
|
|
header('Location: sitio/admin/admin.php');
|
|
}
|
|
else if($_SESSION['usuario']['perfil'] == 'Area')
|
|
{
|
|
header('Location: sitio/usuario/usuario.php');
|
|
}
|
|
}
|
|
?>
|
|
<?php include("header.php") ?>
|
|
|
|
|
|
<div class="container" style="margin-top: 1%;">
|
|
<h1>Iniciar sesión</h1>
|
|
<br>
|
|
|
|
<div class="error alert alert-danger alert-dismissible fade show" style="display: none; text-align: center;">
|
|
<span style="font-size: 18px;">Los Datos ingresados no válidos, intentalo nuevamente.</span>
|
|
</div>
|
|
<br>
|
|
<form action="" id="formlg">
|
|
<div class="form-group" style="width: 30%;">
|
|
<label>Cuenta</label>
|
|
<input type="text" class="form-control" pattern="[A-Za-z0-9_-]{1,15}" required name="usuariolg">
|
|
</div>
|
|
<div class="form-group" style="width: 30%;">
|
|
<label>Password</label>
|
|
<input type="Password" class="form-control" required name="passlg">
|
|
</div>
|
|
<input type="submit" class="btn btn-primary botonlg" value="Iniciar Sesion">
|
|
</form>
|
|
</div>
|
|
<?php include("footer.php") ?>
|