<!DOCTYPE html>

<html lang="es">

    <head> 

		<meta name="viewport" content="width=device-width, initial-scale=1">

		<link rel="stylesheet" type="text/css" href="bootstrap/css/bootstrap.css">



		<!-- Website CSS style -->

		<link rel="stylesheet" type="text/css" href="bootstrap/css/main.css">

        <script src="Scripts/md5.js"  type=text/javascript></script>

        <script type="text/javascript" src="bootstrap\js\jquery.min.js"></script>

<script type="text/javascript" src="bootstrap\js\bootstrap.js"></script>

              <script language="JavaScript" type="text/JavaScript">

function EvaluaDatos(){

if ((Formulario.UsuarioEntrada.value != "") && (Formulario.Password.value != "") ){

 Formulario.Password.value = hex_md5(Formulario.Password.value);

 Formulario.submit();

 }

}

function validateEnter(e) {

	var key=e.keyCode || e.which;

	if (key==13){ return true; } 

	else { return false; }

}

</script>

<style>

body { 

  background: url(images/tecnologia.png) no-repeat center center fixed; 

  -webkit-background-size: cover;

  -moz-background-size: cover;

  -o-background-size: cover;

  background-size: cover;

}

</style>



		<title>Gestión de Almacen</title>

	</head>

	<body>

    <?php

if (isset($_GET["Motivo"])){

$mens='<div class="alert alert-warning alert-dismissible" role="alert">

  <button type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="true">&times;</span></button>

  <strong>Aviso! </strong>'.$_GET["Motivo"].'</div>';  

   echo $mens;

}

?>

		<div class="container">

			<div class="row main">

				<div class="panel-heading">

                  <div class="panel-title btext-center">

	               		<h2 class="title" align="center"><span class="label label-primary">Gestión de Almacén</span></h2>

	               		<hr />

	               	</div>

	            </div> 

				<div class="main-login main-center">

					<form name="Formulario" class="form-horizontal" method="post" action="VerificaEntrada.php">								

						<div class="form-group">

							<label for="username" class="cols-sm-2 control-label">Usuario</label>

							<div class="cols-sm-10">

								<div class="input-group">

									<span class="input-group-addon"><i class="glyphicon glyphicon-user" aria-hidden="true"></i></span>

									<input type="text" class="form-control" name="UsuarioEntrada" id="UsuarioEntrada"  placeholder="Ingrese usuario"/>

								</div>

							</div>

						</div>



						<div class="form-group">

						  <label for="password" class="cols-sm-2 control-label">Password</label>

						  <div class="cols-sm-10">

							  <div class="input-group">

								<span class="input-group-addon"><i class="glyphicon glyphicon-lock" aria-hidden="true"></i></span>

								<input type="password" class="form-control" name="Password" id="Password"  placeholder="Ingrese Contraseña" onkeyup="if(validateEnter(event) == true){ EvaluaDatos(); }"/>

							  </div>

						  </div>

						</div>

						<div class="form-group ">                  

							<button type="button" value="Entrar" class="btn btn-primary btn-lg btn-block login-button" onClick="EvaluaDatos()"><span class="glyphicon glyphicon-ok"></span> Ingresar</button>

						</div>

					</form>

		</div>

     </div>

     </div>
     <div align="center" class="label label-alert"><center>Programador: Gonzalo Ovando, Chetumal Q.Roo 2020</center></div>
	</body>

</html>