-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathaccount.php
136 lines (125 loc) · 4.35 KB
/
account.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
<?php
include('config.php');
include('class/userClass.php');
$userClass = new userClass();
$userDetails = $userClass->userDetails($_SESSION['uid']);
// Check if the user has login anot
include('session.php');
// Check for login
include('session2.php');
$userDetails = $userClass->userDetails($session_uid);
?>
<!DOCTYPE html>
<!--
To change this license header, choose License Headers in Project Properties.
To change this template file, choose Tools | Templates
and open the template in the editor.
-->
<html lang="en">
<head>
<link rel="stylesheet" type="text/css" href="css/style.css"/>
<?php
include "head.php";
?>
<title>Manage Account</title>
<style>
@media screen and (max-width: 800px) {
#footer{
position: relative;
left:0;
bottom:0;
width:100%;
}
}
@media screen and (min-width: 801px) {
html{
height:100%;
margin:0;
padding:0;
}
body{
height:100%;
margin:0;
padding:0;
}
#wrapper{
min-height:100%;
position:relative;
}
#footer{
position: absolute;
left:0;
bottom:0;
width:100%;
}
}
</style>
</head>
<body>
<div id="wrapper">
<?php
include "navbar.php";
?>
<main class="container">
<div>
<div class="settings">
<h1>Account Settings</h1>
</div>
<div class="part6">
<h4><b>User Details</b></h4>
</div>
<div>
<table class='table'>
<thead>
<tr>
<td>
<label>First Name: </label>
</td>
<td>
<?php echo $userDetails->username; ?>
</td>
</tr>
<tr>
<td>
<label>Email: </label>
</td>
<td>
<?php echo $userDetails->email; ?>
</td>
</tr>
</thead>
</table>
</div>
<!-- update modal -->
<div id="updateAcc">
<div class="part6">
<br>
<h4><b>Change Email</b></h4>
<form method=POST action="update.php" class="container form-content" >
<div class="form-row">
<div class="form-group col-lg-12">
<label class="d-none"><b>Email:</b></label>
<input class="form-control" type="email" id="emailReg" name="emailReg" aria-label="emailupdate"
maxlength="45" placeholder="name@example.com" value="<?php echo $userDetails->email; ?>">
</div>
<div class="form-group col-lg-12">
<button type="submit" class="btn btn-secondary btn-sm" value="yes" name="updateAcc">Update Email</button>
<br><br><br><br><br><br><br><br>
</div>
</div>
</form>
</div>
</div>
<br>
<br>
</div>
</main>
<br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br>
<div id="footer">
<?php
include "footer.php";
?>
</div>
</div>
</body>
</html>