-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathuser.profile.php
More file actions
205 lines (166 loc) · 6.42 KB
/
user.profile.php
File metadata and controls
205 lines (166 loc) · 6.42 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
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
<?php
session_start();
include_once "includes/dbh.inc.php";
include_once 'includes/functions.inc.php';
?>
<html>
<head>
<!--boostrap-->
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/css/bootstrap.min.css"
rel="stylesheet"
integrity="sha384-T3c6CoIi6uLrA9TneNEoa7RxnatzjcDSCmG1MXxSR1GAsXEV/Dwwykc2MPK8M2HN"
crossorigin="anonymous">
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/js/bootstrap.bundle.min.js"
integrity="sha384-C6RzsynM9kWDrMNeT87bh95OGNyZPhcTNXj1NW7RuBCsyN/o0jlpcV8Qyq46cDfL"
crossorigin="anonymous"></script>
<title>Profile</title>
<style type="text/css">
.wrapper
{
width: 700px;
margin: 0 auto;
color: black;
}
</style>
</head>
<body>
<?php
include_once "navigation.bar.php";
?>
<div style="background: url('Image/user.jpg'); background-size: cover; background-repeat: no-repeat; background-position: center center;">
<div class="wrapper">
<h2 style="text-align: center; margin-top: 20px;">My Profile</h2>
<?php
echo "<div style='text-align: center'>
<img style='border: 3px solid orange; border-color: orange; border-radius: 50%; overflow: hidden; height: 120; width: 120;' src='Image/users.profile.pic/".get_user_pic($conn, $_SESSION['username'])."'>
</div>";
?>
<div style="text-align: center; font-size: 25px; color: orange; text-shadow: 0px 0px 5px black;">
<b>
<?php echo $_SESSION['username']; ?>
</b>
</div>
<br>
<form action="" method="post">
<button class="btn btn-dark" name="submit1" type="submit" style="float: right; width: 150px; margin-bottom: 20px;"><img src = "icons\edit.svg"> Edit Details</button>
</form>
<?php
if(isset($_POST['submit1'])) {
?>
<script type="text/javascript">
window.location="edit.user.profile.php"
</script>
<?php
}
?>
<?php
echo "<table cellpadding='10' align='center' width='700px' style='background-color: rgba(0, 0, 0, 0.2); backdrop-filter: blur(4px); border-radius: 10px; color: black; box-shadow: 0 0 8px black;'>";
echo "<tr>";
echo "<td style='color: orange;'>";
echo "<b>First Name</b>";
echo "</td>";
echo "<td style='font-weight: bold;'>";
echo get_user_fname($conn, $_SESSION["username"]);
echo "</td>";
echo "</tr>";
echo "<tr>";
echo "<td style='color: white;'>";
echo "<b>Last Name</b>";
echo "</td>";
echo "<td style='font-weight: bold;'>";
echo get_user_lname($conn, $_SESSION["username"]);
echo "</td>";
echo "</tr>";
echo "<tr>";
echo "<td style='color: orange;'>";
echo "<b>User Name</b>";
echo "</td>";
echo "<td style='font-weight: bold;'>";
echo $_SESSION["username"];
echo "</td>";
echo "</tr>";
echo "<tr>";
echo "<td style='color: white;'>";
echo "<b>Member Id</b>";
echo "</td>";
echo "<td style='font-weight: bold;'>";
echo get_user_memberid($conn, $_SESSION["username"]);
echo "</td>";
echo "</tr>";
echo "<tr>";
echo "<td style='color: orange;'>";
echo "<b>NIC Number</b>";
echo "</td>";
echo "<td style='font-weight: bold;'>";
echo get_user_nic($conn, $_SESSION["username"]);
echo "</td>";
echo "</tr>";
echo "<tr>";
echo "<td style='color: white;'>";
echo "<b>Birthday</b>";
echo "</td>";
echo "<td style='font-weight: bold;'>";
echo get_user_bday($conn, $_SESSION["username"]);
echo "</td>";
echo "</tr>";
echo "<tr>";
echo "<td style='color: orange;'>";
echo "<b>Address</b>";
echo "</td>";
echo "<td style='font-weight: bold;'>";
echo get_user_address($conn, $_SESSION["username"]);
echo "</td>";
echo "</tr>";
echo "<tr>";
echo "<td style='color: white;'>";
echo "<b>Email</b>";
echo "</td>";
echo "<td style='font-weight: bold;'>";
echo get_user_email($conn, $_SESSION["username"]);
echo "</td>";
echo "</tr>";
echo "<tr>";
echo "<td style='color: orange;'>";
echo "<b>Mobile</b>";
echo "</td>";
echo "<td style='font-weight: bold;'>";
echo get_user_mobile($conn, $_SESSION["username"]);
echo "</td>";
echo "</tr>";
echo "<tr>";
echo "<td style='color: white;'>";
echo "<b>City</b>";
echo "</td>";
echo "<td style='font-weight: bold;'>";
echo get_user_city($conn, $_SESSION["username"]);
echo "</td>";
echo "</tr>";
echo "<tr>";
echo "<td style='color: orange;'>";
echo "<b>Zip</b>";
echo "</td>";
echo "<td style='font-weight: bold;'>";
echo get_user_zip($conn, $_SESSION["username"]);
echo "</td>";
echo "</tr>";
echo "<tr>";
echo "<td style='color: white;'>";
echo "<b>Gender</b>";
echo "</td>";
echo "<td style='font-weight: bold;'>";
echo get_user_gender($conn, $_SESSION["username"]);
echo "</td>";
echo "</tr>";
echo "</table>";
?>
<br><br><br>
</div>
</div>
<!--...................................................................
..................................Footer...............................
....................................................................-->
<?php
include_once 'Footer/footer.php';
?>
</body>
</html>