<?php
//session_start();
require_once '../app/config/config.php';
?>
<!DOCTYPE html>
<html>
<head>
	<meta charset="utf-8">
	<meta name="author" content="sirconet">
	<meta name="viewport" content="width=device-width,initial-scale=1">
	<title>.:: SIRCONET ::.</title>

    <link href="vendor/fontawesome-free/css/all.min.css" rel="stylesheet" type="text/css">
    <link
        href="https://fonts.googleapis.com/css?family=Nunito:200,200i,300,300i,400,400i,600,600i,700,700i,800,800i,900,900i" rel="stylesheet">

    <!-- Custom styles for this template-->
<link href="<?php echo URLROOTP; ?>/css/sb-admin-2.css" rel="stylesheet">

</head>
<body#FFFFFF>
<div class="container-fluid">
		<div class="row">
		    <div class="col-md-6" style="height:100vh;display: flex;align-items: center;">
		    <div class="row">
			<div class="col-md-12">
		        <div class="text-center">
                <img src="<?php echo URLROOTP ;?>/images/sirco.jpg" width="100%" alt="">
				</div>
            </div>
            </div>
            </div>

            <div class="col-md-6 p-5 mx-auto align-middle" style="height:100vh;display: flex;align-items: center;" >
			<div class="row">
			<div class="col-md-12 text-center">
					<div class="mx-auto">
                    <img src="<?php echo URLROOTP ;?>/images/00123456.jpg" width="100%" height="90%" alt="">
					</div>
                    <br><br><br>
							<h4 class="bg-primary text-white"><b>Acceso a empresas</b></h4><br>
                           <?php
                            if(isset($_SESSION["msj"])){

                            $html='<div class="col-12 text-center">
                            <div class="alert alert-danger" role="alert">'.
                            $_SESSION["msj"].'
                            </div>
                            </div>';
                            echo $html;
                            unset($_SESSION["msj"]);
                            }
                            ?>
							<form method="post" action="<?php echo URLROOT2 ;?>/users/login">

								<div class="form-group">
									<label for="email" class="form-label">RIF Empresa:</label>
									<input id="email" type="text" style="text-align: center;" class="form-control" name="email" value=""  required autofocus <?php echo (!empty($data['usuario_err'])) ? 'is-invalid' : '' ;?>  placeholder="J123456789" >
                                    <span class="invalid-feedback"></span>
                                </div>
                                <br>
								<div class="form-group">
									<label for="password" class="form-label">Contrase&ntilde;a:</label>
									<input id="password" type="password" style="text-align: center;" class="form-control" name="password" required >
                                    <span class="invalid-feedback"></span>

                                </div>
								<div class="form-group mt-5 d-grid gap-2">
									<button type="submit" class="btn btn-primary btn-block">
										Entrar
									</button>
								</div>
							</form>
            </div>
            </div>
			</div>
        </div>
</div>
</body>
</html>

<script src="<?php echo URLROOTP ;?>/js/jquery.min.js"></script>
<script src="<?php echo URLROOTP ;?>/js/bootstrap.bundle.min.js"></script>
<script src="<?php echo URLROOTP ;?>/js/jquery.easing.min.js"></script>
<script src="<?php echo URLROOTP ;?>/js/sb-admin-2.min.js"></script>
