This repository has been archived by the owner on Sep 6, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
header.php
67 lines (51 loc) · 2.31 KB
/
header.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<link href="bootstrap/css/bootstrap.css" rel="stylesheet"/>
<link rel="stylesheet" href="style.css"/>
</head>
<body>
<header class="container-fluid centrer">
<a href="accueil.php"><img class=" col-md-2 hidden-sm hidden-xs" src="image/logoMaster.png" alt="logo"></a>
<h1 class="col-md-8">Curriculum Vitae</h1>
<div class="btn-group">
<br>
<?php if (isset($_SESSION['ID_etu'])) {
$requser = $bdd->prepare("SELECT * FROM formations WHERE ID_etu = ?");
$requser->execute(array($_SESSION['ID_etu']));
$donnees = $requser->fetch();
?>
<div class="btn-group col-md-2">
<button type="button" class="btn-rond btn-primary dropdown-toggle" data-toggle="dropdown"> Mon compte<span class="caret"></span></button>
<ul class="dropdown-menu">
<li><a href="profil.php?ID_etu=<?php echo $_SESSION['ID_etu'];?>"><span class="glyphicon glyphicon-user"></span> Voir votre profil</a></li>
<?php if (isset($donnees['intitule_formation1']) and !empty($donnees['intitule_formation1'])){
echo '<li><a href="Edition_CV_form.php"><span class="glyphicon glyphicon-picture"></span> Modifier votre CV</a></li>';
} else {
echo'<li><a href="formulaireCV.php?ID_etu=<?php echo $_SESSION[\'ID_etu\'];?>"><span class="glyphicon glyphicon-file"></span> Créer son CV </a></li>';
}?>
<li><a href="CV.php"><span class="glyphicon glyphicon-eye-open"></span> Visualiser CV </a></li>
<li><a href="deconnexion.php"><span class="glyphicon glyphicon-off"></span> Déconnexion</a></li>
</ul>
</div>
<?php
} else {
?>
<div class="btn-group btn-justify">
<a href="inscription.php "type="submit" class="btn btn-default">Inscription</a>
<a href="connexion.php "type="submit" class="btn btn-primary">Connexion</a>
</div>
<?php } ?>
<script src="bootstrap/js/jquery.js"></script>
<script src="bootstrap/js/bootstrap.min.js"></script>
<script type="bootstrap/js/jquery.js"></script>
<script>
$("#connexion").click(function{
window.Location('connexion.php');
});
});
</script>
</header>
</body>
</html>