-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsubject.php
53 lines (43 loc) · 1.84 KB
/
subject.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
<?php
$pagetitle="Subjects Information";
include "includes/header.php"; ?>
<?php $db = new db(); ?>
<div class="container">
<div class="row">
<div class="templatemo-line-header" style="margin-top: 0px;" >
<div class="text-center">
<hr class="team_hr team_hr_left hr_gray"/><span class="span_blog txt_darkgrey txt_orange">Subjects Details</span>
<hr class="team_hr team_hr_right hr_gray" />
</div>
</div>
</div>
<p><a href="subject_entry.php" class="ui blue tiny button "><i class="glyphicon glyphicon-plus"> </i>Insert</a></p>
<div class="table-responsive">
<table class="ui celled table table table-hover">
<thead>
<tr>
<th>Subject No</th>
<th>Subject Name</th>
<th>Teacher Name</th>
<th>Field</th>
<th>Semester</th>
</tr>
</thead>
<tbody>
<?php
$veiw = $db->get_all_subject($conn,'subject_table',10);
foreach ($veiw as $post) {
$sub_no = $post['subject_no'];
echo '<tr>';
echo '<td>'. $post['subject_no'] . '</td>';
echo '<td>'. $post['subject_name'] . '</td>';
echo '<td>'. $post['teacher_name'] . '</td>';
echo '<td>'. $post['field'] . '</td>';
echo '<td>'. $post['semester'] . '</td>';
}
?>
</tbody>
</table>
</div> <!--table-responsive-->
</div><!--container-->
<?php include "includes/footer.php"; ?>