<?php 
session_start();
if (!isset($_SESSION['login'])) {
?>
<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="utf-8" />
    <link rel="apple-touch-icon" sizes="76x76" href="../assets/img/apple-icon.png">
    <link rel="icon" type="image/png" href="../assets/img/favicon.png">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
    <title>Panel de Administración</title>
    <meta content='width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0, shrink-to-fit=no' name='viewport' />
    <!--     Fonts and icons     -->
    <link href="https://fonts.googleapis.com/css?family=Montserrat:400,700,200" rel="stylesheet" />
    <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/latest/css/font-awesome.min.css" />
    <!-- CSS Files -->
    <link href="assets/css/bootstrap.min.css" rel="stylesheet" />
    <link href="assets/css/now-ui-kit.css" rel="stylesheet" />
    <link media="all" type="text/css" rel="stylesheet" href="assets/login/css/style.css">
    <!-- CSS Just for demo purpose, don't include it in your project -->
    <link href="assets/css/demo.css" rel="stylesheet" />
    <!-- Custom styles for this template -->
        <script src="assets/login/js/jquery.js"></script>
        <script type="text/javascript" src="assets/login/js/jquery.backstretch.min.js"></script>
        <script src="assets/login/js/jqueryform.js"></script>
        <script src="assets/login/js/validate.js"></script>
        <script src="assets/login/js/login.js"></script>
        <!--   Core JS Files   -->



<!-- Control Center for Now Ui Kit: parallax effects, scripts for the example pages etc -->
<script src="assets/js/now-ui-kit.js?v=1.1.0" type="text/javascript"></script>
</head>

<body class="login-page sidebar-collapse">
    <div class="page-header" filter-color="#006BB7">
        <div class="page-header-image" style="background-image:url(assets/dist/img/login-01.jpg)"></div>
        <div class="container login">
            <div class="col-md-4 content-center">
                <div class="card card-login card-plain caption formulario login">
                    <form method="POST" action="inc/login.php" accept-charset="UTF-8" id="form" novalidate="novalidate">
                        <div class="load"><img src="assets/login/img/load.gif"><span class="txt">Por favor espere</span></div>
                         <div class="bad">Usuario y/o contraseña incorrectos.  <p><br><span class="btn btn-primary btn-round btn-lg btn-block" id="back">Volver</span></p></div>
                         <div class="tes"></div>
                        <div class="header header-primary text-center m-input-prepend">
                            <div class="logo-container">
                                <img src="assets/dist/img/logo.svg" alt="logo">
                            </div>
                        </div>
                        <div class="content">
                            <div class="input-group form-group-no-border input-lg m-input-prepend">
                                <span class="input-group-addon">
                                    <i class="now-ui-icons users_circle-08"></i>
                                </span>
                                <input type="text" class="form-control" name="username" placeholder="Usuario" required>
                            </div>
                            <div class="input-group form-group-no-border input-lg m-input-prepend">
                                <span class="input-group-addon">
                                    <i class="now-ui-icons text_caps-small"></i>
                                </span>
                                <input id="txtPassword" name="password" type="password" class="form-control" placeholder="Contraseña" required/>
                            </div>
                        </div>
                        <div class="footer text-center m-input-prepend">
                            <input class="btn btn-primary btn-round btn-lg btn-block" type="submit" value="Enviar">
                        </div>
                        <!--<div class="pull-left">
                            <h6>
                                <a href="#pablo" class="link">Create Account</a>
                            </h6>
                        </div>
                        <div class="pull-right">
                            <h6>
                                <a href="#pablo" class="link">Need Help?</a>
                            </h6>
                        </div>-->
                    </form>
                </div>
            </div>
        </div>
        <footer class="footer">
            <div class="container">
                <div class="copyright">
                    &copy;
                    <script>
                        document.write(new Date().getFullYear())
                    </script>, Diseñado por
                    <a href="http://www.wemake.com.co" target="_blank">Wemake</a>. Codificado por
                    <a href="https://www.wemake.com.co" target="_blank">Wemake</a>.
                </div>
            </div>
        </footer>
    </div>
</body>


</html>
<?php 
} else {
  header("location:index.php/");
}
?>