<?php  
session_start();

if(isset($_SESSION['estado_user'])=='ACTIVO'){
  header('location: sistem/index.html');
}


include 'sistem/dist/incluciones/Db.php';
include 'incluciones/userModel.php';

include "incluciones/header.php";

include 'incluciones/userController.php';
?>

  <h1 class="site-heading text-center text-white d-none d-lg-block" style="margin-top: 0px;">
    <span class="site-heading-upper text-primary mb-3">RECURSOS HUMANOS</span>
    <span class="site-heading-lower">GAM-PV</span>
  </h1>

  

  <section class="page-section clearfix">
    <div class="container">
      <div class="intro">
        <img class="intro-img img-fluid mb-3 mb-lg-0 rounded" src="img/intro.jpg" alt="">
        <div class="intro-text left-0 text-center bg-faded p-5 rounded">
          <h2 class="section-heading mb-4">
            <span class="section-heading-upper">GESTIÓN DE USUARIO</span>
            <span class="section-heading-lower">INICIO</span>
          </h2>

         <!--<label for="progress"> subiendo</label>  
         <progress id="progress" value="10" max="100"> </progress>

         <label for="meter"> temperatura del horno</label>
         <meter min="0" max="300" low="180" high="250" value="180"></meter> -->
          <form name="" action="" method="POST" autocomplete="off">
              <div class="form-group row">
                <div class="col-md-12">
                    <?php 
                      /*$c="86859420792roly";
                      print sha1($c);*/
                    ?>
                    <label style="float: left;">Nombre de usuario </label>
                    <input type="text" name="username" id="" class="form-control" pattern="[A-Za-z0-9_-@]{1,30}" required="" placeholder="Usuario">
                </div>
                <div class="col-md-12">
                    <label style="float: left;">Contraseña</label>
                    <input type="password" name="password" id="" class="form-control" pattern="[A-Za-z0-9_-]{1,30}" required="" placeholder="Contraseña"  >
                </div>
              </div>    

              <div class="intro-button mx-auto">
                <button class="btn btn-primary btn-xl" type="submit" name="submit"> INICIAR</button>
                <!--<a class="btn btn-primary btn-xl" type="submit" name="submit" >INICIAR</a> -->
              </div>
          </form>

        </div>
      </div>
    </div>
  </section>



<?php 
include "incluciones/footer.php";
?>
