<?php
  $ruta="";
?>
<!DOCTYPE html>
<html lang="es">
<head>
    <?php
      $hd_titulo="Ingresar al Sistema";
      include_once("includes/head_basico.php");
    ?>
    <link href="<?php echo $ruta ?>recursos/css/layouts/page-center.css" type="text/css" rel="stylesheet" media="screen,projection">
    <link href="<?php echo $ruta ?>recursos/js/plugins/prism/prism.css" type="text/css" rel="stylesheet" media="screen,projection">
    <link href="<?php echo $ruta ?>recursos/js/plugins/perfect-scrollbar/perfect-scrollbar.css" type="text/css" rel="stylesheet" media="screen,projection">
</head>
<body>
  <div id="loader-wrapper">
      <div id="loader"></div>
      <div class="loader-section section-left"></div>
      <div class="loader-section section-right"></div>
  </div>
    <div id="login-page" class="row">
    <div class="col s12 z-depth-4 card-panel">
        <div class="row">
          <div class="input-field col s12 center"><br>
            <img style="width: 250px;" src="<?php echo $ruta ?>recursos/images/logo.png" alt="">
            <p class="center login-form-text">Sistema de administracion PRO-AYUDA</p>
            <?php
              if (isset($_SESSION["faltaSistema"])) {
                if ($_SESSION["faltaSistema"]>=4) {
                    header("Location: penalizado.php");
                }
                ?>
                  <div id="card-alert" class="card orange lighten-5">
                      <div class="card-content orange-text">
                        <p>FALTA AL SISTEMA : No continue realizando faltas al sistema. 
                          Caso contrario se suspendera su cuenta y se dara aviso a las autoridades Correspondientes.</p>
                      </div>
                      <button type="button" class="close orange-text" data-dismiss="alert" aria-label="Close">
                        <span aria-hidden="true">×</span>
                      </button>
                    </div>
                <?php
              }
            ?>
          </div>
        </div>
        <form id="idform" action="return false" onsubmit="return false" method="POST">
        <div class="row margin">
            <div class="input-field col s12">
              <i class="mdi-social-person-outline prefix"></i>
              <input id="username" type="text">
              <label for="username" class="center-align">Ingrese su Usuar io</label>
            </div>
          </div>
          <div class="row margin">
            <div class="input-field col s12">
              <i class="mdi-action-lock-outline prefix"></i>
              <input id="password" type="password">
              <label for="password">Ingrese su contraseña</label>
            </div>
          </div>
          <br>
          <div class="row">
            <div class="input-field col s12">
              <div id="msgLoginREsp"></div>
              <input type="submit" id="idLog" name="idLog" class="btn waves-effect blue waves-light darken-4 col s12"  value="INGRESAR AL SISTEMA">
            </div>
          </div>
        </form>
    </div>
  </div>
    <script type="text/javascript" src="<?php echo $ruta ?>recursos/js/plugins/jquery-1.11.2.min.js"></script>
    <script type="text/javascript" src="<?php echo $ruta ?>recursos/js/materialize.js"></script>
    <script type="text/javascript" src="<?php echo $ruta ?>recursos/js/plugins/perfect-scrollbar/perfect-scrollbar.min.js"></script>    
    <script type="text/javascript" src="<?php echo $ruta ?>recursos/js/plugins.js"></script>
    <script type="text/javascript" src="<?php echo $ruta ?>recursos/js/custom-script.js"></script>
    <script type="text/javascript" src="<?php echo $ruta ?>recursos/js/plugins/prism/prism.js"></script>
    <script src="<?php echo $ruta; ?>recursos/custom/session.js"></script>
    <script type="text/javascript">
      $("#username").focus();
    </script>
</body>

</html>