<div class="page-header"> <h1>Course table</small></h1> </div> <table class="table table-bordered table-striped table-hover"> <tr> <th>ID</th> <th>NAME</th> <th>DURATION</th> <th>STATUS</th> <th>COURSE</th> </tr> <?php $courserepository = new CourseRepository(); foreach ($courserepository->get_all() as $course) { ?> <tr> <td><?php echo $course->get_id(); ?> </td> <td><?php echo $course->get_course_name(); ?> </td> <td><?php echo $course->get_duration(); ?> </td>
<a href="index.php?page=senquiry&m=add" class="pull-right btn btn-primary btn-sm">Add Student</a> <table class="table table-hover table-striped"> <tr> <th>ID</th> <th>COURSE NAME</th> <th>ADDED DATE</th> <th>STATUS</th> </tr> <?php foreach ($courserepository->get_all() as $student) { ?> <tr> <td><?php echo $student->get_id(); ?> </td> <td><?php echo $student->get_course_name(); ?> </td> <td><?php echo $student->get_added_date(); ?> </td> <td><?php