-
Notifications
You must be signed in to change notification settings - Fork 0
/
adminprofile.php
164 lines (101 loc) · 6.03 KB
/
adminprofile.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
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
<?php
require "connection.php";
session_start();
if (isset($_SESSION["au"])) {
$email = $_SESSION["au"]["email"];
?>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Admin | Online Thaksalawa </title>
<link rel="stylesheet" href="bootstrap.css" />
<link rel="stylesheet" href="semantic.css" />
<link rel="stylesheet" href="mdb.min.css" />
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.9.1/font/bootstrap-icons.css">
<link rel="stylesheet" href="style.css" />
<link rel="icon" href="resources/book.png" />
</head>
<body>
<div class="container-fluid">
<div class="row">
<?php
include "admin-header.php";
$details_rs = Database::search("SELECT * FROM `admin` INNER JOIN `gender` ON gender.id=admin.gender_id WHERE `email`= '".$email."' ");
$data = $details_rs->fetch_assoc();
?>
<br />
<br />
<div style="height:70px;"></div>
<div class="d-lg-none d-xl-block d-xl-none hidden" style="height: 50px;"></div>
<div class="col-12 bg-primary">
<div class="row">
<div class="col-12 bg-body rounded mt-4 mb-4">
<div class="row g-2">
<div class="col-md-3 border-end">
<div class="d-flex flex-column align-items-center text-center p-3 py-5">
<span class="fw-bold fs-3"><?php echo $data["fname"] . " " . $data["lname"]; ?></span>
<span class="fw-bold text-primary"><?php echo $email; ?></span>
</div>
</div>
<div class="col-md-5 border-end">
<div class="p-3 py-5">
<div class="d-flex justify-content-between align-items-center mb-3">
<h4 class="fw-bold fs-3 text-danger offset-1">Admin Profile Details</h4>
</div>
<div class="row mt-4">
<div class="col-6">
<label class="form-label">First Name</label>
<input type="text" class="form-control" value="<?php echo $data["fname"]; ?>" id="fname" />
</div>
<div class="col-6">
<label class="form-label">Last Name</label>
<input type="text" class="form-control" value="<?php echo $data["lname"]; ?>" id="lname" />
</div>
<div class="col-12">
<label class="form-label">Password</label>
<div class="input-group">
<input type="password" class="form-control" value="<?php echo $data["password"]; ?>" id="password"/>
<span class="input-group-text bg-primary" id="basic-addon2">
<i class="bi bi-eye-slash-fill text-white"></i>
</span>
</div>
</div>
<div class="col-12">
<label class="form-label">Email</label>
<input type="text" class="form-control" readonly value="<?php echo $data["email"]; ?>" />
</div>
<div class="col-12">
<label class="form-label">Verification Code</label>
<input type="text" class="form-control" readonly value="<?php echo $data["verification_code"]; ?>" />
</div>
<div class="col-12">
<label class="form-label">Gender</label>
<input type="text" class="form-control" readonly value="<?php echo $data["gender_name"]; ?>" />
</div>
<div class="col-12 d-grid mt-3">
<button class="btn btn-primary" onclick="adminupdateProfile();">Update My Profile</button>
</div>
</div>
</div>
</div>
<div class="col-md-4 text-center">
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<script src="script.js"></script>
<script src="semantic.js"></script>
<script src="bootstrap.js"></script>
<script src="semantic.min.js"></script>
</body>
</html>
<?php
} else {
header("Location:http://localhost/online%20thaksalawa/academicspanel.php");
}
?>