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

	if(!isset($_SESSION["login"]) || !isset($_SESSION["senha"])){
		header("Location: cuide.php");
		exit;	
	}
	

?>
<!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>

    <div class="container">

        <p>&nbsp;</p>
        <div class="bloc">
            <div class="bloc--content">
                <span class="chapter">OL&Aacute;</span><br>
                <p>
				<?php   
				include('logado.php');
				echo "<br>";
                $cons=mysqli_query($mysqli,"SELECT * FROM foto_funcionario WHERE idfuncionario = $codfunc");
                $row=mysqli_fetch_array($cons);
                if($row > 0){
                ?>
                <div class="conteudo"><img src="https://cacm.co.mz/facturacao/rh/uploadPhoto/<?php echo $row['foto']?>" style="border-radius: 0%; width: 313px; height: 242px;"></div>
                <?php 
                    
                }else{
                
                ?>
                <img src="https://cacm.co.mz/facturacao/pi/person-male.png">
                <?php	
                }
				?>
                </p>
            </div>
        </div>
    </div> 
</main>
<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>