-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathprofil.php
executable file
·97 lines (65 loc) · 3.39 KB
/
profil.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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
<?php require_once("config.php");
$id = $_SESSION["userID"];
$user_name = $bdd -> prepare('SELECT prenom, nom, email, age, telephone FROM membres WHERE id = :id');
$user_name -> execute([":id" => "$id"]);
$user = $user_name -> fetch();
?>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>Home Switch Home</title>
<link href="http://fonts.googleapis.com/css?family=Oxygen:400,700,300" rel="stylesheet" />
<link href="style.css" rel="stylesheet" />
</head>
<body>
<div id="wrapper">
<?php include("header.php"); ?>
<div class="profil">
<div class="colonne_gauche_profil">
<div id="avatar">
<?php
$filename = "avatars/".$_SESSION["userID"] .'.jpg';
if (file_exists($filename)) {
echo('<img src="avatars/'.$_SESSION["userID"].'.jpg" id="image_avatar"><br/>');
} else {
echo ('<img src="avatars/none.jpg" id="image_avatar"><br/>');
}
?>
<!--<img src="avatars/none.jpg"><br/>-->
<a href="upload_avatar.php" class="avatarChange">Changer votre avatar ?</a>
</br>
</div>
<div class="liste_logements">
<h4>Logements de <?php echo $user["prenom"];?> <?php echo $user["nom"]; ?></h4>
<a href="#"><img src="images/maison1.jpg" id="image_liste_logements"></a>
<a href="#"><img src="images/maison2.jpg" id="image_liste_logements"></a>
<a href="#"><img src="images/maison3.jpg" id="image_liste_logements"></a>
</div>
</div>
<div class="colonne_droite_profil">
<div id="infosPersoTitre">
<h1><strong>Informations Générales</strong></h1>
<ul class="infosPerso">
<li>Nom : <?php echo $user["nom"]; ?> </li>
<li>Prénom : <?php echo $user["prenom"]; ?> </li>
<li>Age : <?php echo $user["age"]; ?> </li>
</ul>
<h1><strong>Informations de contacts</strong></h1>
<ul class="infosPerso">
<li>Adresse e-mail : <?php echo $user["email"]; ?> </li>
<li>Numéro de téléphone : <?php echo $user["telephone"]; ?> </li>
<li>Skype : ... </li>
</ul>
<h1><strong>Notes et commentaires des utilisateurs</strong></h1>
<ul class="infosPerso">
<li>Moyenne des notes : ... /5</li>
<li>Avis : ... </li>
</ul>
</div>
</div>
</div>
</div>
<?php include("footer.php"); ?>
</body>
</html>