-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathadmin_all_faculty.php
56 lines (51 loc) · 1.2 KB
/
admin_all_faculty.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
<?php
ob_start ();
session_start();
require "php/config.php";
require_once "php/functions.php";
$user = new login_registration_class();
$admin_id = $_SESSION['admin_id'];
$admin_name = $_SESSION['admin_name'];
if(!$user->get_admin_session()){
header('Location: index.php');
exit();
}
?>
<?php
$pageTitle = "All Faculty details";
include "php/headertop_admin.php";
?>
<div class="all_student">
<div class="search_st">
<div class="hdinfo"><h3>All Registered Faculty List</h3></div>
</div>
<table class="tab_one">
<tr>
<th>SL</th>
<th>Name</th>
<th>Email</th>
<th>Contact</th>
<th>Education</th>
<th>Address</th>
<th>Birthday</th>
</tr>
<?php
$i=0;
$alluser =$user->get_faculty();
while($rows = $alluser->fetch_assoc()){
$i++;
?>
<tr>
<td><?php echo $i; ?></td>
<td><?php echo $rows['name'];?></td>
<td><?php echo $rows['email'];?></td>
<td><?php echo $rows['contact'];?></td>
<td><?php echo $rows['education'];?></td>
<td><?php echo $rows['address'];?></td>
<td><?php echo $rows['birthday'];?></td>
</tr>
<?php } ?>
</table>
</div>
<?php include "php/footerbottom.php";?>
<?php ob_end_flush() ; ?>