-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathprofile.php
147 lines (122 loc) · 5.8 KB
/
profile.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
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
143
144
145
146
147
<?php
$bdd= new PDO("mysql:host=localhost;dbname=gss;charset=utf8","root","");
$conn = mysqli_connect("localhost", "root", "", "gss");
session_start();
session_id();
$id=$_SESSION['idcompte'];
$sql = 'SELECT * FROM `compte` WHERE `idcompte`=:id';
$statement = $bdd->prepare($sql);
$statement->execute([':id' => $id]);
$file = $statement->fetch(PDO::FETCH_OBJ);
?>
<!DOCTYPE html>
<head>
<meta charset="utf-8">
<title>GSS</title>
<meta name="description" content="">
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link href="css1/bootstrap1.css" rel="stylesheet" />
<link href="css1/style1.css" rel="stylesheet" />
<link rel="icon" type="image/png" href="images/icons/favicon.ico"/>
<link rel="stylesheet" href="http://fonts.googleapis.com/css?family=Roboto+Slab:400,700,300,100">
<link rel="stylesheet" href="http://fonts.googleapis.com/css?family=Roboto:400,400italic,300italic,300,500,500italic,700,900">
<link rel="stylesheet" href="css/bootstrap.css">
<link rel="stylesheet" href="css/font-awesome.css">
<link rel="stylesheet" href="css/animate.css">
<link rel="stylesheet" href="css/templatemo-misc.css">
<link rel="stylesheet" href="css/templatemo-style0.css">
<script src="js/vendor/modernizr-2.6.1-respond-1.1.0.min.js"></script>
<link href='http://fonts.googleapis.com/css?family=Open+Sans' rel='stylesheet' type='text/css' />
<link href="js1/dataTables/dataTables.bootstrap.css" rel="stylesheet" />
<!--AJAX-->
<script src="vendor/jquery/jquery-3.2.1.min.js"></script>
<!--<link rel="stylesheet" href="vendor/bootstrap/css/bootstrap.min.css" /> -->
<script rel="stylesheet" href="vendor/bootstrap/js/bootstrap.min.js"></script>
<style type="text/css">
a.btn-left, .top-header .social-top ul li a, .main-header .menu-wrapper a.toggle-menu {
border: 2px solid #5E7D7E;
border-radius: 40%;}
</style>
</head>
<body>
<section id="pageloader">
<div class="loader-item fa fa-spin colored-border"></div>
</section>
<header class="site-header container-fluid">
<div class="top-header">
<div style="padding: 5px 0 5px 5px;"> <img src="images/logo.png" width="100px" height="100px" ></div>
<div class="social-top" col-md-6 col-sm-6>
<ul>
<?php
if (strcmp( $_SESSION['type'], "Admin") == 0) {
echo '<li style="margin-right:3px;"><a href="interfaceadmin.php" class="fa fa-home" title="Accueille" ></a></li>';
echo '<li><a href="liste-compte.php" class="fa fa-users" title="Comptes" ></a></li>';
}
if (strcmp( $_SESSION['type'], "User") == 0) {
echo '<li><a href="interfaceuser.php" class="fa fa-home" title="Comptes" ></a></li>';
}
?>
<li><a href="profile.php" class="fa fa-user" title="Profile"></a></li>
<li><a href="msg.php" class="fa fa-envelope" title="Gmail"></a></li>
<li><a href="statistiques.php" class="fa fa-signal" title="Statistiques"></a></li>
<li><a href="deconecte.php" class="fa fa-sign-out" title="Déconnexion"></a></li>
</ul>
</div>
</div>
</header>
<div id="wrapper">
<div class="row" >
<div class="col-md-4">
</div>
<div class="col-md-4">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header" style="padding:35px 50px; background-color:#2B3856;">
<td><img style="width:100px;height:100px; border-radius: 50% !important; margin-left:200px"
src="img/<?= $file->avatar;?>"></td>
</div>
<div class="modal-body" style="padding:40px 50px;">
<form role="form" action="" method="post">
<div class="form-group">
<p for="usrname"> <b>ID:</b> <?= $file->idcompte;?></p>
</div>
<div class="form-group">
<p><b>NOM :</b> <?= $file->nom;?></p>
</div>
<div class="form-group">
<p><b>SERVICE :</b> <?= $file->service;?></p>
</div>
<div class="form-group">
<p><b>RÔLE :</b> <?= $file->type;?> </p>
</div>
<div class="form-group">
<p> <b>E-MAIL :</b> <?= $file->mail;?> </p>
</div>
<div class="form-group">
<p><b>MOT DE PASSE :</b> <?= $file->motdepasse;?></p>
</div>
<br>
<?php echo '<a href="modifier-profile.php?modpr='.$id.'" style="margin-left:200px;"class="btn btn-success" >Modifier</a> '; ?>
</form>
</div>
</div>
</div>
</div>
</div>
</div>
<script src="js/vendor/jquery-1.11.0.min.js"></script>
<script>window.jQuery || document.write('<script src="js/vendor/jquery-1.11.0.min.js"><\/script>')</script>
<script src="js/plugins.js"></script>
<script src="js/main.js"></script>
<!-- Preloader -->
<script type="text/javascript">
//<![CDATA[
$(window).load(function() { // makes sure the whole site is loaded
$('.loader-item').fadeOut(); // will first fade out the loading animation
$('#pageloader').delay(350).fadeOut('slow'); // will fade out the white DIV that covers the website.
$('body').delay(350).css({'overflow-y':'visible'});
})
//]]>
</script>
</body>
</html>