<?php
require_once 'inc/usuario.php';
require_once 'inc/messages.php';

date_default_timezone_set( "America/Sao_Paulo" );
?>
<!DOCTYPE html>
<!--
To change this license header, choose License Headers in Project Properties.
To change this template file, choose Tools | Templates
and open the template in the editor.
-->
<html>
  <head>
    <title>Login parte 1</title>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <link href="css/stylesheets.css" rel="stylesheet" type="text/css" />
    <link href="css/mystyles.css" rel="stylesheet" type="text/css" />
    <link rel="stylesheet" href="css/login.css">
  </head>
  <body>
    <div class="container">
      <h1 class="text-center login-title">Faça o login para continuar no sistema</h1>
      <?php
      //echo '<pre>' . var_export($_SESSION, true) . '</pre>';
      displayMessagesAndErrors();
      ?>
      <div class="account-wall">
        <img class="logo-img" src="img/logo-clinica.png"
            alt="">
        <form class="form-signin" action="login_ws.php" method="post">
          <input type="text" class="form-control" name="usuario[email]" placeholder="Email">
          <input type="password" class="form-control" name="usuario[password]" placeholder="Password" >
          <button class="btn btn-lg btn-primary btn-block" type="submit" name="btn-login">
            Entrar</button>
          <a href="login-esqueci.php">Esqueci a senha</a>
        </form>
      </div>
    </div>
    <script type="text/javascript" src="js/plugins/jquery/jquery.min.js"></script>
    <script type="text/javascript" src="js/plugins/jquery/jquery-ui.min.js"></script>
    <script type="text/javascript" src="js/plugins/jquery/jquery-migrate.min.js"></script>
    <script type="text/javascript" src="js/plugins/bootstrap/bootstrap.min.js"></script>
    <script type="text/javascript" src="js/plugins/select2/select2.min.js"></script>
    <script type="text/javascript" src="js/plugins/maskedinput/jquery.maskedinput.min.js"></script>
    </body>
</html>
