<?php
include('conexao.php');
session_start();

	if(!isset($_SESSION["login"]) || !isset($_SESSION["senha"])){
		header("Location: cuide.php");
		exit;	
	}
	
if(isset($_COOKIE['login']) && ($_COOKIE['login']<>""))
{
$login_cookie = $_COOKIE['login']; 
$sql = mysqli_query($mysqli,"SELECT * FROM login where login like '$login_cookie'");
$linha = mysqli_fetch_array($sql);
$Nome				= $linha["funcionario"];
}
?>
<!doctype html>
<html lang="fr">
<head><meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  
  <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
  <title>SiGA</title>
  <link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Roboto:300,300italic,700,700italic">
  <link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.8.1/css/all.css" integrity="sha384-50oBUHEmvpQ+1lW4y57PTFmhCaXp0ML5d60M1M7uH2+nqUivzIebhndOJK28anvf" crossorigin="anonymous">
  <link rel="stylesheet" href="assets/css/milligram/milligram.min.css">
  <link rel="stylesheet" href="assets/css/omega.css">
  <link rel="stylesheet" href="assets/css/style.css">
 
</head>
<body id="app">
<?php include("menu.php");?>
<main>
    <section>
        <div class="container">
		Ol&aacute;: <?php echo $Nome;?>
        </div>
    </section>
    <div class="container">
        <h1 class="title">Demonstração</h1>

            <p>Para mais detalhes, clica no icone &#9776;</p>

        <div class="bloc">
            <div class="bloc--content">
                <span class="chapter">Apresentação</span><br>
                <p>
                <!--<ul>
					<li><a href="#">Cobrança de vendedores</a></li>
					<li><a href="#">Cobrança de transportadores</a></li>
					<li><a href="#">Resumo de despesa cobrada</a></li>
					<li><a href="#">Actualização de senhas</a></li>
				  </ul>-->
				  Bem vindo
                </p>
            </div>
        </div>
    </div> 
</main>
<footer>
    2019 <strong>acliven</strong> - <a href="https://www.acliven.it">www.acliven.it</a>
</footer>
<script defer src="https://use.fontawesome.com/releases/v5.8.1/js/all.js" integrity="sha384-g5uSoOSBd7KkhAMlnQILrecXvzst9TdC09/VM+pjDTCM+1il8RHz5fKANTFFb+gQ" crossorigin="anonymous"></script>
<script src="assets/js/omega.js"></script>
</body>
</html>