-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathaccount.php
More file actions
53 lines (53 loc) · 1.44 KB
/
account.php
File metadata and controls
53 lines (53 loc) · 1.44 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
<?php
/**
* Plik account.php jest odpowiedzialny za wyświetlanie szczegółów konta użytkownika.
*
* Plik ten zawiera kod PHP, który pobiera szczegóły konta użytkownika za pomocą klasy User,
* a następnie wyświetla te szczegóły w tabeli na stronie. Użytkownik ma również możliwość
* edycji swojego konta, klikając na odpowiedni link.
*
* @package UserManagementSystem
*/
?>
<?php
include('class/User.php');
$user = new User();
$user->loginStatus();
$userDetail = $user->userDetails();
include('include/header.php');
?>
<title>pdoadmin</title>
<div class="container contact">
<h2>pdoadmin</h2>
<?php include('menu.php');?>
<div class="table-responsive">
<div><span style="font-size:20px;">User Account Details:</span><div class="pull-right"><a href="edit_account.php">Edit Account</a></div>
<table class="table table-boredered">
<tr>
<th>Name</th>
<td><?php echo $userDetail['first_name']." ".$userDetail['last_name']; ?></td>
</tr>
<tr>
<th>Email</th>
<td><?php echo $userDetail['email']; ?></td>
</tr>
<tr>
<th>Password</th>
<td>**********</td>
</tr>
<tr>
<th>Gender</th>
<td><?php echo $userDetail['gender']; ?></td>
</tr>
<tr>
<th>Mobile</th>
<td><?php echo $userDetail['mobile']; ?></td>
</tr>
<tr>
<th>Designation</th>
<td><?php echo $userDetail['designation']; ?></td>
</tr>
</table>
</div>
</div>
<?php include('include/footer.php');?>