-
Notifications
You must be signed in to change notification settings - Fork 9
/
student.php
391 lines (363 loc) · 19.1 KB
/
student.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
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
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
<?php
session_start();
$_SESSION["user"] = "user";
$sid = $_REQUEST['id'];
require_once("mysql_db.php");
$sql = "SELECT * FROM `student_info` WHERE s_id = '$sid'";
$result = mysql_query($sql);
$row = mysql_fetch_array($result);
$_SESSION["sid"] = $row["s_id"];
?>
<!DOCTYPE html>
<html>
<head>
<title></title>
<meta name="description" content="Learn how to code your first responsive website with the new Twitter Bootstrap 3.">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
<link href="bootstrap/css/bootstrap.min.css" rel="stylesheet">
<link href="includes/css/bootstrap-glyphicons.css" rel="stylesheet">
<link rel="stylesheet" href="includes/css/styles.css">
<script src="includes/js/modernizr-2.6.2.min.js"></script>
<script src="src/jquery.min.js"></script>
<script src="src/bootstrap.min.js"></script>
<style type="text/css">
body {
padding-top:65px;
}
footer {
background: #333;
color: #eee;
font-size: 11px;
padding: 20px;
}
@media (min-width: 979px) {
#midCol.affix-top {
position:fixed;
width:265px;
margin-right:10px;
}
#midCol.affix {
position:static;
width:100%;
}
}
@media (min-width: 767px) {
.affix,.affix-top {
position:fixed;
}
}
</style>
</head>
<body>
<!-- Fixed navbar -->
<div class="container" id="main">
<div class="navbar navbar-fixed-top">
<div class="container">
<button class="navbar-toggle" data-target=".navbar-responsive-collapse" data-toggle="collapse" type="button">
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="index.php"><img src="images/logo.png" alt="Logo"></a>
<div class="nav-collapse collapse navbar-responsive-collapse">
<ul class="nav navbar-nav">
<li><a href="index.php"><span class="glyphicon glyphicon-home"></span></a></li>
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown">School/College<strong class="caret"></strong></a>
<ul class="dropdown-menu">
<li class="dropdown-header">School(All Subject)</li>
<li><a href="#">Kindergarten</a></li>
<li><a href="#">1st</a></li>
<li><a href="#">2nd</a></li>
<li><a href="#">3rd</a></li>
<li><a href="#">4th</a></li>
<li><a href="#">5th</a></li>
<li><a href="#">6th</a></li>
<li><a href="#">7th</a></li>
<li><a href="#">8th</a></li>
<li><a href="#">9th/10th</a></li>
<li><a href="#">O-Level</a></li>
<li class="divider"></li>
<li class="dropdown-header">High School/College</li>
<li><a href="#">11th/12th</a></li>
<li><a href="#">A-Level</a></li>
</ul><!-- end dropdown-menu -->
</li>
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown">University<strong class="caret"></strong></a>
<ul class="dropdown-menu">
<li class="dropdown dropdown-submenu"><a href="#" class="dropdown-toggle" data-toggle="dropdown">Science & engineering</a>
<ul class="dropdown-menu">
<li><a href="#">Arithmetic</a></li>
<li><a href="#">Algebra</a></li>
<li><a href="#">Calculus</a></li>
<li><a href="#">Differential Equations</a></li>
<li><a href="#">Linear Algebra</a></li>
<li><a href="#">Geometry</a></li>
<li><a href="#">Trigonometry</a></li>
<li><a href="#">Statistics & Pprobability</a></li>
<li><a href="#">Physics</a></li>
<li><a href="#">Chemistry</a></li>
<li><a href="#">Organic Chemistry</a></li>
<li><a href="#">Biology</a></li>
<li><a href="#">Health & Medicine</a></li>
<li><a href="#">Electrical Engineering</a></li>
<li><a href="#">Cosmology & Astronomy</a></li>
</ul>
</li>
<li class="dropdown dropdown-submenu"><a href="#" class="dropdown-toggle" data-toggle="dropdown">Arts & humanities</a>
<ul class="dropdown-menu">
<li><a href="#">Art History</a></li>
<li><a href="#">Grammar</a></li>
<li><a href="#">Music</a></li>
<li><a href="#">US History</a></li>
<li><a href="#">World History</a></li>
</ul>
</li>
<li class="dropdown dropdown-submenu"><a href="#" class="dropdown-toggle" data-toggle="dropdown">School of Business</a>
<ul class="dropdown-menu">
<li><a href="#">Accounting</a></li>
<li><a href="#">Finance & Banking</a></li>
<li><a href="#">Marketing</a></li>
<li><a href="#">Management</a></li>
<li><a href="#">Intermediate Accounting</a></li>
<li><a href="#">Microeconomics</a></li>
<li><a href="#">Macroeconomics</a></li>
<li><a href="#">Finance & Capital Markets</a></li>
<li><a href="#">Entrepreneurship</a></li>
</ul>
</li>
<li class="dropdown dropdown-submenu"><a href="#" class="dropdown-toggle" data-toggle="dropdown">Computing</a>
<ul class="dropdown-menu">
<li><a href="#">Computer Programming</a></li>
<li><a href="#">Computer Science</a></li>
<li><a href="#">Hour of Code</a></li>
<li><a href="#">Computer Animation</a></li>
</ul>
</li>
<li class="dropdown dropdown-submenu"><a href="#" class="dropdown-toggle" data-toggle="dropdown">Social Media & Journalism</a>
<ul class="dropdown-menu">
<li><a href="#">Social Media Marketing</a></li>
<li><a href="#">Print Media Journalism</a></li>
<li><a href="#">Electric Media Journalism</a></li>
</ul>
</li>
</ul><!-- end dropdown-menu -->
</li>
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown">Others<strong class="caret"></strong></a>
<ul class="dropdown-menu">
<li class="dropdown dropdown-submenu"><a href="#" class="dropdown-toggle" data-toggle="dropdown">Development</a>
<ul class="dropdown-menu">
<li><a href="webDevelopment.php">Web Development</a></li>
<li><a href="#">Mobile Apps</a></li>
<li><a href="#">Programming Languages</a></li>
<li><a href="#">Game Development</a></li>
<li><a href="#">Databases</a></li>
<li><a href="#">Software Testing</a></li>
<li><a href="#">Software Engineering</a></li>
<li><a href="#">Development Tools</a></li>
<li><a href="#">E-Commerce</a></li>
</ul>
</li>
<li><a href="#">Business</a></li>
<li><a href="#">IT & Software</a></li>
<li><a href="#">Office Productivity</a></li>
<li><a href="#">Personal Development</a></li>
<li><a href="#">Design</a></li>
<li><a href="#">Marketing</a></li>
<li><a href="#">Lifestyle</a></li>
<li><a href="#">Photography</a></li>
<li><a href="#">Health & Fitness</a></li>
<li><a href="#">Teacher Training</a></li>
<li><a href="#">Music</a></li>
<li><a href="#">Academics</a></li>
<li><a href="#">Language</a></li>
<li><a href="#">Test Prep</a></li>
</ul><!-- end dropdown-menu -->
</li>
</ul>
<form class="navbar-form pull-left" action="courseSearch.php" method="post">
<input type="text" class="form-control" name="searchInput" placeholder="Search this site..." id="searchInput" required>
<button type="submit" class="btn btn-default"><span class="glyphicon glyphicon-search"></span></button>
</form><!-- end navbar-form -->
<ul class="nav navbar-nav pull-right">
<li><a href="teacherList.php"><span class="glyphicon glyphicon-user"></span>Teachers</a></li>
<li><a href="studentList.php"><span class="glyphicon glyphicon-user"></span>Students</a></li>
<li><a href="jobList.php"><span class="glyphicon glyphicon-briefcase"></span>Jobs</a></li>
<li><a href="loginPage.php"><span class="glyphicon glyphicon-eye-open"></span> Login</a></li>
</ul><!-- end nav pull-right -->
</div><!-- end nav-collapse -->
</div><!-- end container -->
</div><!-- end navbar -->
</div><!-- end container -->
<!-- Content -->
<div class="container">
<div class="row">
<div class="col-sm-12">
<div class="row">
<div class="col-sm-12">
<div class="form-group row">
<label for="myname" class="col-sm-4 col-form-label" style="font-size: 30px"><?php echo $row['fname']; ?> Details</label>
<div class="col-sm-4">
<?php
$sql4 = "SELECT SUM(marks) AS total FROM marks WHERE student_id = '$sid'";
$result4 = mysql_query($sql4);
$row4 = mysql_fetch_array($result4);
$mark = $row4['total'];
if($mark == 0){
$mark = 0;
}else{
$mark = $mark;
}
?>
<h2 style="color: green">Marks Achievement: <?php echo $mark; ?></h2>
</div>
<div class="col-sm-4" align="right">
<?php echo '<img height="150px" width="200px" src="data:image;base64,'.$row['image'].'"/>';?>
</div>
</div>
<hr>
</div>
<hr>
<div class="col-sm-12">
<!-- Profile -->
<div class="form-group row">
<label for="fname" class="col-sm-3 col-form-label">Student Name</label>
<div class="col-sm-9">
<input type="text" class="form-control" id="fname" name="fname" value="<?php echo $row['fname'] ?>" readonly>
</div>
</div>
<div class="form-group row">
<label for="gender" class="col-sm-3 col-form-label">Gender</label>
<div class="col-sm-9">
<input type="text" class="form-control" id="gender" name="gender" value="<?php echo $row['gender'] ?>" readonly >
</div>
</div>
<div class="form-group row">
<label for="education" class="col-sm-3 col-form-label">Education</label>
<div class="col-sm-9">
<input type="text" class="form-control" id="education" name="education" value="<?php echo $row['education'] ?>" readonly >
</div>
</div>
<div class="form-group row">
<label for="address" class="col-sm-3 col-form-label">Address</label>
<div class="col-sm-9">
<textarea class="form-control" id="address" name="address" rows="3" readonly><?php echo $row['address'] ?></textarea>
</div>
</div>
<div class="form-group row">
<label for="email" class="col-sm-3 col-form-label">Email</label>
<div class="col-sm-9">
<input type="email" name="email" class="form-control" id="email" readonly value="<?php echo $row['email'] ?>" >
</div>
</div>
<div class="form-group row">
<label for="email" class="col-sm-3 col-form-label">Account CreateDate</label>
<div class="col-sm-9">
<input type="date" name="date" class="form-control" id="date" readonly value="<?php echo $row['idcreate_date'] ?>">
</div>
</div>
<h1 align="center" style="color: green"><hr>Recommendation<hr></h1>
<form method="post">
<table class="table">
<thead>
<tr>
<th>Recommendation#</th>
<th>Recommendation</th>
<th>Author Name</th>
</tr>
</thead>
<?php
$sql1 = "SELECT * FROM `recommendation` WHERE student_id = '$sid'";
$result1 = mysql_query($sql1);
$i = 0;
while($row1 = mysql_fetch_array($result1)) {
$aid = $row1['author_id'];
?>
<tbody>
<tr class="success">
<td>
<?php echo $row1['id'];?>
</td>
<td>
<?php echo $row1['recommendation'];?>
</td>
<?php
$sql2 = "SELECT * FROM `teacher_info` WHERE t_id = '$aid'";
$result2 = mysql_query($sql2);
$row2 = mysql_fetch_array($result2);
//$_SESSION['a_id'] = $row2['t_id'];?>
<td onclick="document.location = 'authorProfile.php?id=<?php echo urlencode($aid);?>'" style="background-color: coral; color: white; font-size: 15px;" value =""><?php echo $row2['fname'];?>
</td>
</tr>
</tbody>
<?php
}
?>
</table>
</form>
</div>
<!-- <hr>
<div class="form-group row">
<div class="col-sm-12" align="center">
<form action="studentDelete.php" method="post">
<input type="hidden" name="jid" value="<?php //$_SESSION["sid"];?>">
<input type="submit" name="submit" value="Delete This Student" style="background-color: red; color: white; font-size: 30px;">
</form>
</div>
</div> -->
</div>
<hr>
</div>
</div>
</div>
<footer>
<div class="container">
<div class="row">
<div class="col-sm-2">
<h4>Copyright © 2016 by <a href="http://linkedin.com/in/msaifulbdjoy" target="_blank">M SAIFUL ISLAM</a></h4>
<h4>And</h4>
<h4>Coded with <span class="glyphicon glyphicon-heart"></span><a href="http://facebook.com/msaifulbdjoy" target="_blank"> MD. SAIFUL ISLAM</a></h4>
</div><!-- end col-sm-2 -->
<div class="col-sm-4">
<h4>About Us</h4>
<p>e_Learning is a global marketplace for learning and teaching online where students are mastering new skills and achieving their goals by learning from an extensive library of lots of courses taught by expert instructors. Also you can get a job by your ranking , instructor can post a job also.</p>
<h4>Why Here?</h4>
<p>Because we are unique with our system through good quality courses by best Instructor/Author. <strong>Key thing is:</strong>
<h6>Good Quality Course || Best Trainer || Job searching System</h6>
<h6>Ranking with marking System || Certification Courses || Proper Management System</h6>
</div><!-- end col-sm-4 -->
<div class="col-sm-2">
<h4>Contact Details</h4>
<h5>Team Software Project Two</h5>
<h6><span class="glyphicon glyphicon-map-marker"></span> House 47/B, Road 17, Nikunja#2, Khilkhet<br>Dhaka 1229, Bangladesh</h6>
<h6><span class="glyphicon glyphicon-phone"></span> +88-01-675094640, +88-02-898989, +88-02-999999</h6>
<h6><span class="glyphicon glyphicon-envelope"></span> saifulbdjoy@gmail.com</h6>
</div><!-- end col-sm-2 -->
<div class="col-sm-2">
<h4>Follow Us</h4>
<h5><a href="http://twitter.com/msaifulbdjoy" target="_blank">Twitter</a></h5>
<h5><a href="http://facebook.com/msaifulbdjoy" target="_blank">Facebook</a></h5>
<h5><a href="http://googleplus.com/user/MD.SAIFULISLAM" target="_blank">Google Plus</a></h5>
<h5><a href="http://youtube.com/saifulbdjoy" target="_blank">YouTube</a></h5>
<h5><a href="http://linkedin.com/in/msaifulbdjoy" target="_blank">Linkedin</a></h5>
<h5><a href="http://github.com/msaifulislam" target="_blank">GitHub</a></h5>
</div><!-- end col-sm-2 -->
<div class="col-sm-2">
<h4>Project Details</h4>
<h5>Software Project- 2</h5>
<p>It's project about e-learning web portal that contains lots of features those are not exist in the existing e-learning portal. I include some unique features for this why you can call it One Stop learning site in the world!</p>
<h5>Organization: <a href="http://www.aiub.edu" target="_blank">AIUB</a></h5>
<h5>Semester: Fall 2016-17</h5>
<h5>Supervisor: <a href="http://bd.linkedin.com/in/rezwan-ahmed-8861301b" target="_blank">MD. REZWAN AHMED Sir</a></h5>
</div><!-- end col-sm-2 -->
</div><!-- end row -->
</div><!-- end container -->
</footer>
<script src="http://code.jquery.com/jquery.js"></script>
<script>window.jQuery || document.write('<script src="includes/js/jquery-1.8.2.min.js"><\/script>')</script>
<script src="bootstrap/js/bootstrap.min.js"></script>
<script src="includes/js/script.js"></script>
</body>
</html>