-
Notifications
You must be signed in to change notification settings - Fork 0
/
user.php
34 lines (34 loc) · 1.06 KB
/
user.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
<?php
if (session_status() == PHP_SESSION_NONE){
session_start();
}
include_once "_app/isConnect.php";
if (!is_connect()){
$_SESSION['msg']['type'] = "danger";
$_SESSION['msg']["txt"] = "veuillez vous connecter svp";
header("location:index.php");
exit();
}
$id = $_SESSION['user']['id_serv'];
include '_inc/header.php';
include '_inc/menu.php';
$q = $db->query("SELECT nom_serv FROM service WHERE id_serv = $id");
$service = $q->fetch();
?>
<div class="col-xs-10">
<h1>Identité :</h1><br/>
<div class="row">
<div class="col-xs-2">
<img src="img/user.png" class="img-circle" alt="" width="125px">
</div>
<div class="col-xs-8">
Nom : <?= strtoupper($_SESSION['user']['nom'])?><br/>
Prenom : <?= ucfirst($_SESSION['user']['prenom']) ?><br/>
Details : <?= ucfirst($_SESSION['user']['details'])?><br/>
Service : <?= ucfirst($service['nom_serv'])?><br/>
</div>
<hr/>
</div>
</div>
</div>
<?php include '_inc/footer.php';?>