<?php
  session_start();
  $_SESSION['CurrentUser'] = '';
  $_SESSION['CurrentIdUser'] = -1;
  $_SESSION['CurrentPortal'] = '';

  include_once('conn.php');

  if (isset($_SESSION['CurrentIdUser']) && ($_SESSION['CurrentIdUser'] != -1)) {header("Location: index.php");}
?>
<!DOCTYPE html>
<html>
  <head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <title>Log in | Central de Información</title>
    <!-- Tell the browser to be responsive to screen width -->
    <meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
    <!-- Bootstrap 3.3.7 -->
    <link rel="stylesheet" href="bower_components/bootstrap/dist/css/bootstrap.min.css">
    <!-- Font Awesome -->
    <link rel="stylesheet" href="bower_components/font-awesome/css/font-awesome.min.css">
    <link rel="stylesheet" href="dist/css/jquery-confirm.css" type="text/css">
  
    <!-- Theme style -->
    <link rel="stylesheet" href="dist/css/style.css">
    <!-- iCheck -->
    <link rel="stylesheet" href="plugins/iCheck/square/blue.css">
    <!-- Favico -->
    <link rel="icon" type="image/png" href="imagenes/fav.png" />
    <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
    <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
    <!--[if lt IE 9]>
    <script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
    <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
    <![endif]-->
    <!-- Google Font -->
    <link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,600,700,300italic,400italic,600italic">
  </head>
  <body class="hold-transition login-page">
    <div class="login-logo">
      <img class="logo-empresa" src="imagenes/logos/empresa.png" alt="Smiley face" height="100" width="100">
      <p class="central">Central de Información</p>
    </div>
    <div class="login-box" style="    margin-top: 58px ">
      
      <!-- /.login-logo -->
      <div class="login-box-body">
        <p class="login-box-msg2">INICIO DE SESION</p>
        <p class="login-box-msg" id='conteMsgLogin'>Ingrese su usuario y contraseña para poder acceder</p>
        <form action="../../index2.html" method="post">
          <div style="padding-right: 0 !important;    padding-left: 0 !important" class="form-group has-feedback">
            <input type="email" class="form-control" id="firstname" placeholder="Usuario">
            <span class="glyphicon glyphicon-user form-control-feedback"></span>
          </div>
          <div style="padding-right: 0 !important;    padding-left: 0 !important" class="form-group has-feedback">
            <input type="password" class="form-control" id="lastname" placeholder="Contraseña">
            <span class="glyphicon glyphicon-lock form-control-feedback"></span>
          </div>
          <div class="row">
            <div class="col-xs-8">
              <div class="checkbox icheck">
                <label>
                  <input id='recordarme' type="checkbox"> Recordarme
                </label>
              </div>
            </div>
            <!-- /.col -->
            <div class="col-xs-4">
              <a href="#;" onclick="validarUsuario();" class="btn btn-primary btn-block btn-flat">Ingresar</a>
            </div>
            <!-- /.col -->
          </div>
        </form>
        <!-- <div class="social-auth-links text-center">
          <p>- OR -</p>
          <a href="#" class="btn btn-block btn-social btn-facebook btn-flat"><i class="fa fa-facebook"></i> Logear usando Facebook/a>
            <a href="#" class="btn btn-block btn-social btn-google btn-flat"><i class="fa fa-google-plus"></i> Logear usango Google+</a>
          </div> -->
          <!-- /.social-auth-links -->
          <a data-toggle="modal" data-target="#recuperar_modal" href="#">Olvid&eacute; mi contraseña</a><br>
          
        </div>
        <!-- /.login-box-body -->
      </div>

      <!-- Modal-Recuperar Contraseña -->

<div class="modal fade" id="recuperar_modal" tabindex="-1" role="dialog" aria-labelledby="favoritos_modalLabel">
  <div class="modal-dialog" role="document">
    <div class="modal-content">
      <div class="modal-header">
        <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
        <h4 class="titulos modal-title" id="intervaloLabel">Recuperar Contraseña</h4>
      </div>
      <div class="modal-body">
        <div style="padding-top: 30px;padding-bottom: 30px;max-width: 300px;margin: auto;" class="form-group">
       <div class="input-group">
                <span class="input-group-addon">@</span>
                <input type="text" class="form-control" placeholder="Usuario o Correo Electrónico">
              </div>
          
          
        </div>
      </div>
      <div class="modal-footer">
        <button type="button" class="btn btn-primary">Aceptar</button>
        <button type="button" class="btn btn-default" data-dismiss="modal">Cancelar</button>
        
      </div>
    </div>
  </div>
</div>

      <!-- /.login-box -->
      <footer  class="main-footer" style="position: fixed;">
        <div class="container">
          
          <div style="font-weight: 300; font-size: 12px; text-transform: uppercase; text-align: center; font-family: 'Roboto', sans-serif !important; color: #9297a9;">
            
          <img src="imagenes/logo.png"  alt="" style="width:80px; padding-left: 10px; padding-right: 10px; "> </div>
        </div>
        <!-- /.container -->
      </footer>
      <!-- jQuery 3 -->
      <script src="bower_components/jquery/dist/jquery.min.js"></script>
      <!-- Bootstrap 3.3.7 -->
      <script src="bower_components/bootstrap/dist/js/bootstrap.min.js"></script>
      <script src="dist/js/jquery-confirm.js" type="text/javascript"></script>
      <!-- iCheck -->
      <script src="plugins/iCheck/icheck.min.js"></script>
      <script src="js/login.js"></script>
      <script> 
      $(function () {
      $('input').iCheck({
      checkboxClass: 'icheckbox_square-blue',
      radioClass: 'iradio_square-blue',
      increaseArea: '20%' // optional
      });
      });
      </script>
    </body>
  </html>