<?php 
session_start();
if (!isset($_SESSION['login'])) {
?>
<!DOCTYPE html>
<html lang="en">
    <head>
        <meta charset="utf-8">
        <meta http-equiv="X-UA-Compatible" content="IE=edge">
        <!--<meta http-equiv="Content-Type" content="text/html; charset=windows-1251">-->
        <meta name="viewport" content="width=device-width, initial-scale=1">
        <meta name="description" content="">
        <meta name="author" content="">
        <title>Panel de Administración</title>
        <!-- Bootstrap core CSS -->
        <link href="bootstrap/css/bootstrap.css" rel="stylesheet">
        <link media="all" type="text/css" rel="stylesheet" href="assets/login/css/style.css">
        <!-- 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>
        <!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
        <!--[if lt IE 9]>
      <script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
      <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
    <![endif]-->
        <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.6.3/css/font-awesome.min.css">
    </head>
    <body>
        <!-- Bootstrap core JavaScript
    ================================================== -->
        <!-- Placed at the end of the document so the pages load faster -->
        <div class="container login">
            <div class="col-sm-6 col-md-4 col-sm-offset-3 col-md-offset-4"> 
                <div class="thumbnail"> 
                    <img src="assets/login/img/no-user-img.png" alt="" class="img-responsive img-circle" width="50%">
                    <div class="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-danger btn-block" id="back">Volver</span></p></div>
                    <div class="tes"></div>
                            <div class="input-group margin-bottom-sm m-input-prepend"> 
                                <span class="input-group-addon"><i class="fa fa-user fa-lg"></i></span> 
                                <input type="text" class="form-control" name="username" placeholder="Usuario" required> 
                            </div>
                            <div class="input-group margin-bottom-sm m-input-prepend"> 
                                <span class="input-group-addon"><i class="fa fa-lock fa-lg"></i></span>
                                <input id="txtPassword" name="password" type="password" class="form-control" placeholder="Contraseña" required> 
                            </div>
                            <div class="m-input-prepend">
                               <input class="btn btn-info btn-block" type="submit" value="Enviar">                        
                            </div>                         
                            <!--<p><a href="#" class="btn btn-info btn-block" role="button">Enviar</a> </p>--> 
                        </form>
                    </div>                     
                </div>                 
            </div>
        </div>
        <div class="copyright-bar-2 bg-orange">
            <div class="container text-center">
                <p>© COPYRIGHT <?php echo date('Y') ?> - WEMAKE - ALL RIGHTS RESERVED.</p>
            </div>
        </div>
    </body>
</html>
<?php 
} else {
  header("location:index.php/");
}
?>