38 lines
856 B
PHP
38 lines
856 B
PHP
<!DOCTYPE html>
|
|
<!--
|
|
* entete.php
|
|
* entete à inclure au début de chaque page
|
|
-->
|
|
<?php
|
|
session_start();
|
|
if(!isset($_SESSION['id'])) {
|
|
$message = "Authentifiez-vous avant de poursuivre";
|
|
header("location:index.php?msg=$message");
|
|
exit();
|
|
}
|
|
$id = $_SESSION['id'];
|
|
$nom = $_SESSION['nom'];
|
|
$prenom = $_SESSION['prenom'];
|
|
$role = $_SESSION['role'];
|
|
|
|
if($role==0){
|
|
$libRole='Visiteur';
|
|
}
|
|
else{
|
|
$libRole= 'Responsable';
|
|
}
|
|
?>
|
|
|
|
<html>
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<title> Gestion des visites - V4</title>
|
|
</head>
|
|
<body>
|
|
<p>
|
|
<?php echo $libRole;?> identifié : <?php echo $prenom." ".$nom." "; ?>
|
|
<a href="deconnexion.php">Déconnexion</a>
|
|
</p>
|
|
<h1>Organisation des visites clients</h1>
|
|
|