-
Notifications
You must be signed in to change notification settings - Fork 1
/
index-content-list_of_subject_by_faculty.php
67 lines (60 loc) · 2.67 KB
/
index-content-list_of_subject_by_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
57
58
59
60
61
62
63
64
65
66
67
<div class="container">
<div class="gradient-green" style="width: auto; padding: 20px;margin-top: 25px;">
<?php
$gas = $auth_user->get_active_sem();
foreach($gas as $sem)
{
$active_sem_ID = $sem["sem_ID"];
$sem_year = $sem["sem_year"];
}
?>
<h2>Academic Staff <span class="float-right"><?php echo 'SY:('.$sem_year.')'?></span></h2>
<hr>
</div>
<br>
<div class="row">
<?php
$gass = $auth_user->get_active_sem_subject($active_sem_ID);
foreach($gass as $faculty)
{
$active_subject_ID = $faculty["subject_ID"];
$subject_Title = $faculty["subject_Title"];
?>
<div class="col-sm-6" style="padding-bottom:10px;">
<div class="card" style="min-height:200px;">
<div class="card-header" style="background-color:#4caf50; color:white; text-align:center;"><?php echo $subject_Title?></div>
<div class="card-body" style="padding:0px;">
<table class="table table-bordered">
<thead>
<tr><th>Name</th>
<th>Position</th>
</tr></thead>
<tbody>
<?php
$gassf = $auth_user->get_active_sem_subject_faculty($active_subject_ID);
foreach($gassf as $member)
{
if ($member["suffix"] == "N/A"){
$msuffix = "";
}
else{
$msuffix = $member["suffix"];
}
?>
<tr>
<td><?php echo $member["rid_FName"].' '.$member["rid_MName"].'. '.$member["rid_LName"].' '.$msuffix;?></td>
<td class="text-center"><?php echo $member["pos_Name"]?></td>
</tr>
<?php
}
?>
</tbody>
</table>
</div>
</div>
</div>
<?php
}
?>
</div>
</div>