-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathprofile.php
More file actions
195 lines (153 loc) · 6.29 KB
/
profile.php
File metadata and controls
195 lines (153 loc) · 6.29 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
<?php
require 'includes/db-inc.php';
session_start();
$student_name = $_SESSION['student-username'];
?>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
<link rel="stylesheet" type="text/css" href="css/bootstrap.css">
<link rel="stylesheet" type="text/css" href="font-awesome-4.7.0/css/font-awesome.css">
<link rel="stylesheet" type="text/css" href="css/style.css">
<title>GIT LIBRARY</title>
<style type="text/css">
thead{background-color: orange}
</style>
</head>
<body>
<div class="container">
<!-- navbar begins -->
<?php include "includes/nav2.php"; ?>
</div>
<div class="container " style="margin-top: 100px">
<div class="row col-lg-12 col-lg-offset-1" style="margin-top: 30px;margin-bottom: 40px">
<div class="col-lg-6 col-md-6">
<h2>Student Profile</h2>
</div>
</div>
<div class="jumbotron">
<table class="table table-bordered">
<?php
$sql = "SELECT * from students where username = '$student_name'";
$query = mysqli_query($conn, $sql);
while($row = mysqli_fetch_assoc($query)) { ?>
<tbody>
<tr>
<td>Name : </td>
<td><?php echo $row['name']; ?></td>
</tr>
<tr>
<td>Matric No : </td>
<td><?php echo $row['matric_no']; ?></td>
</tr>
<tr>
<td>Email : </td>
<td><?php echo $row['email']; ?></td>
</tr>
<tr>
<tr>
<td>Department : </td>
<td><?php echo $row['dept']; ?></td>
</tr>
<tr>
<td>Phone Number : </td>
<td><?php echo $row['phoneNumber']; ?></td>
</tr>
<tr>
<td>Username : </td>
<td><?php echo $row['username']; ?></td>
</tr>
<tr>
<td>Password : </td>
<td><?php echo $row['password']; ?></td>
</tr>
</tbody>
<?php } ?>
</table>
</div>
</div>
<!-- Confirm delete modal begins here -->
<div class="mod modal fade" id="popUpWindow">
<div class="modal-dialog">
<div class="modal-content">
<!-- header begins here -->
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal">×</button>
<h3 class="modal-title"> Warning</h3>
</div>
<!-- body begins here -->
<div class="modal-body">
<p>Are you sure you want to delete this book?</p>
</div>
<!-- button -->
<div class="modal-footer ">
<button class="col-lg-4 col-sm-4 col-xs-6 col-md-4 btn btn-warning pull-right" style="margin-left: 10px" class="close" data-dismiss="modal">
No
</button>
<button class="col-lg-4 col-sm-4 col-xs-6 col-md-4 btn btn-success pull-right" class="close" data-dismiss="modal" data-toggle="modal" data-target="#info">
Yes
</button>
</div>
</div>
</div>
</div>
<!-- Confirm delete modal ends here -->
<!-- delete message modal starts here -->
<div class="modal fade" id="info">
<div class="modal-dialog">
<div class="modal-content">
<!-- header begins here -->
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal">×</button>
<h3 class="modal-title"> Warning</h3>
</div>
<!-- body begins here -->
<div class="modal-body">
<p>Book deleted <span class="glyphicon glyphicon-ok"></span></p>
</div>
</div>
</div>
</div>
<!-- delete message modal ends here -->
<!-- update modal begins here -->
<div class="modal fade" id="update">
<div class="modal-dialog">
<div class="modal-content">
<!-- header begins here -->
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal">×</button>
<h2 class="modal-title"> Update</h2>
</div>
<!-- body begins from here! -->
<div class="modal-body">
<form role="form" >
<div class="input-group col-lg-12 col-md-12 col-sm-12 col-xs-12">
<span class="input-group-addon">ID</span>
<input type="Username" class="form-control" name="id" value="1" contenteditable="disabled">
</div><br>
<div class="input-group col-lg-12 col-md-12 col-sm-12 col-xs-12">
<!-- <span class="input-group-addon"><i class="glyphicon glyphicon-lock"></i></span> -->
<div class="form-group ">
<label for="name">Announcement</label>
<textarea class="form-control" rows="3" draggable="false">
</textarea>
</div>
</div>
</form>
</div>
<!-- button -->
<div class="modal-footer">
<button class="col-lg-12 col-sm-12 col-xs-12 col-md-12 btn btn-success" data-target="alert">
UPDATE
</button>
</div>
</div>
</div>
</div>
<!-- update modal ends here -->
<script type="text/javascript" src="js/jquery.js"></script>
<script type="text/javascript" src="js/bootstrap.js"></script>
</body>
</html>