-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathprofil.php
More file actions
142 lines (129 loc) · 6.09 KB
/
profil.php
File metadata and controls
142 lines (129 loc) · 6.09 KB
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
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
<?php
session_start();
if(!$_SESSION['pseudo']) {
header('Location: connexion.php');
}
include('./includes/profile.php');
?>
<!DOCTYPE html>
<html>
<head>
<!-- Bootstrap & FontAwesome & jQuery imports -->
<link rel="stylesheet" href="./css/bootstrap.min.css">
<link rel="stylesheet" href="./css/fontawesome/fontawesome-all.css">
<script src="https://code.jquery.com/jquery-3.3.1.slim.min.js" integrity="sha384-q8i/X+965DzO0rT7abK41JStQIAqVgRVzpbzo5smXKp4YfRvH+8abtTE1Pi6jizo"
crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.3/umd/popper.min.js" integrity="sha384-ZMP7rVo3mIykV+2+9J3UJ46jBk0WLaUAdn689aCwoqbBJiSnjAK/l8WvCWPIPm49"
crossorigin="anonymous"></script>
<script src="./js/bootstrap.min.js"></script>
<!---------------------
_____
| _ |
__ _ __ _ _ __ ___ ___| | | |_ _____ _ __
/ _` |/ _` | '_ ` _ \ / _ \| | | \ \ / / _ \ '__|
| (_| | (_| | | | | | | __/\ \_/ /\ V / __/ |
\__, |\__,_|_| |_| |_|\___| \___/ \_/ \___|_|
__/ |
|___/
L2 Informatique - [Promotion 2017-2018]
-->
<link rel="stylesheet" href="./css/style.css">
</head>
<body>
<!-- NAVBAR -->
<?php include('./includes/navbar.php'); ?>
<div id="banner"></div>
<!-- Content -->
<div class="container-fluid">
<div class="jumbotron">
<div class="row">
<!-- avatar -->
<div class="col-2">
<img class="img-fluid" id="avatar2" src="<?php if($avatar != "") { echo "uploads/{$avatar}"; } else { echo "./images/defaultAvatar.png"; } ?>" >
</div>
<!-- informations -->
<div class="col-10">
<h1><i class="fas fa-user"></i><b> <?php echo $pseudo; ?></b></h1>
<table class="table table-striped">
<tbody>
<tr>
<th scope="row" style="width: 15%">Sexe</th>
<td><?php echo $gender; ?></td>
</tr>
<tr>
<th scope="row">Age</th>
<td>
<?php
if($age) { echo $age . ' ans'; }
else { echo '<i>Age non spécifié</i>'; }
?>
</td>
</tr>
<tr>
<th scope="row">Niveau d'études</th>
<td>
<?php
if ($education_level == 'D') { echo 'Doctorat';}
if ($education_level == 'M') { echo 'Master';}
if ($education_level == 'L') { echo 'Licence';}
if ($education_level == 'Bac') { echo 'Bac';}
?>
</td>
</tr>
<tr>
<th scope="row">Status</th>
<td>
<?php
if($amateur == 'False') {
if($gender == 'M') { echo 'Joueur professionnel'; }
else { echo 'Joueuse professionnelle'; }
}
else {
if($gender == 'M') { echo 'Joueur amateur'; }
else { echo 'Joueuse amateur'; }
}
?>
</td>
</tr>
<tr>
<th scope="row">Score global</th>
<td><?php echo $globalScore; ?></td>
</tr>
<tr>
<th scope="row">Score social</th>
<td><?php echo $socialScore; ?></td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
<!-- jumbotron end-->
<nav>
<div class="nav nav-tabs" id="nav-tab" role="tablist">
<a class="nav-item nav-link active" id="nav-home-tab" data-toggle="tab" href="#nav-jeux" role="tab" aria-controls="nav-home"
aria-selected="true">Jeux <span class="badge badge-primary"><?php echo $nbJeu; ?></span></a>
<a class="nav-item nav-link" id="nav-profile-tab" data-toggle="tab" href="#nav-astuces" role="tab" aria-controls="nav-profile"
aria-selected="false">Astuces <span class="badge badge-primary"><?php echo $nbAstuces; ?></span></a>
</div>
</nav>
<div class="tab-content" id="nav-tabContent">
<!-- JEUX POSSEDES -->
<div class="tab-pane fade show active" id="nav-jeux" role="tabpanel" aria-labelledby="nav-home-tab">
<div class="card-list">
<div class="row">
<?php include('./includes/getGamesProfile.php'); ?>
</div>
</div>
</div>
<!-- ASTUCES GRATUITES -->
<div class="tab-pane fade" id="nav-astuces" role="tabpanel" aria-labelledby="nav-profile-tab">
<div class="card-list">
<?php include('./includes/getTricksProfile.php'); ?>
</div>
</div>
</div>
</div>
<!-- Content end-->
</body>
</html>