-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathprofile.php
117 lines (68 loc) · 2.49 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
<?php require 'core/init.php';
if(logged_in() === false){
session_destroy();
header('Location:index.php');
exit();
} else {
if(isset($_GET['first_name'])=== true and empty($_GET['first_name'])===false){
$first_name= $_GET['first_name'];
}
}?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
<meta name="viewport" content="width=device-width,initial-scale=1">
<title>Asset Management System</title>
<link rel="stylesheet" href="css/normalize.css">
<link rel="stylesheet" type="text/css" media="screen" href="css/screen2.css">
</head>
<body>
<div id="page">
<header>
<a title="asset" href="">
<div class="logo">
<img src="images/WHITE.png" height="60px" weight="50px" />
<span id="title">Asset Management System</span>
</div>
</a>
<nav>
<label for="email"> <?php echo $user_data['first_name']; ?>'s Profile </label>
<a href="home.php"><input type="image" src="images/icons/home.png" title="Home" value="home " style="margin-left:10px;"/></a>
<input type="image" src="images/icons/user.png" title="Profile" value="settings " style="margin-left:10px;"/>
<a href="settings.php"><input type="image" src="images/icons/settings.png" title="Settings" style="margin-left:10px;"></a>
<a href="logout.php"><input type="image" src="images/icons/logout.png" title="Logout" value="Sign Out" style="margin-left:10px;"/></a>
</nav>
</header>
<?php
$id = $user_data['id'];
$total=total($con,$id);
?>
<div class="profile">
<br><br>
<center><h1>USER PROFILE</h1></center>
<br><br>
<div class="content">
<h2>First Name :</h2>
<br>
<h2>Last Name :</h2>
<br>
<h2>Admin :</h2>
<br>
<h2>Total Assets :</h2>
</div>
<div class="content" >
<h2><?php echo $user_data['first_name'];?></h2>
<br>
<h2><?php echo $user_data['last_name'];?></h2>
<br>
<h2><?php echo $user_data['email'];?></h2>
<br>
<h2><?php echo $total; ?></h2>
</div>
<a href="settings.php"><div id="report">Edit Profile</div></a>
</div>
<hr />
</div>
</body>
</html>