-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathview_course.php
77 lines (72 loc) · 1.38 KB
/
view_course.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
<?php
include 'includes/functions.php';
?>
<?php
include 'includes/session.php';
?>
<?php confirm_logged_in(); ?>
<?php
include 'includes/connection.php';
?>
<?php
require_once 'includes/header.php';
?>
<?php
if (!$_GET['id']) {
redirect_to("course.php");
}
?>
<?php
$result = get_course_by_id($_GET['id']);
$row = mysql_fetch_array($result);
?>
<div class="row transperent-background">
<div class="col-md-4">
<br />
<i class="fa fa-book fa-5x"></i>
</div>
<div class="col-md-8">
<br />
<div class="panel panel-success">
<div class="panel-heading">
Course, <?php echo $row["Name"]; ?>!
</div>
<div class="panel-body">
<table class="table table-user-information">
<tbody>
<tr>
<td>Name:</td>
<td><?php echo $row["Name"]; ?></td>
</tr>
<tr>
<td>Course Code:</td>
<td><?php echo $row["Code"]; ?></td>
</tr>
<tr>
<td>End Date:</td>
<td><?php echo $row["StartDate"]; ?></td>
</tr>
<tr>
<tr>
<td>End Date:</td>
<td><?php echo $row["EndDate"]; ?></td>
</tr>
<tr>
<td>Details:</td>
<td><?php echo $row["Details"]; ?></td>
</tr>
</tbody>
</table>
</div>
<div class="panel-footer">
© Amader School
</div>
</div>
</div>
</div>
<?php
include 'includes/footer.php';
?>
<?php
include 'includes/closeconnection.php';
?>