?> <tr> <th colspan="7" class="text-center">subject Info<button class="btn btn-xs btn-primary pull-right" data-toggle="modal" data-target="#add_subject"><span class="glyphicon glyphicon-plus"></span></button></th> </tr> <tr> <th><input type="checkbox" id="select_all"/></th> <th>Id</th> <th>Name</th> <th>Hours</th> <th>Teacher</th> <th>Code</th> <th>Action</th> </tr> <?php $subject_list = $repository->get_all(); foreach ($subject_list as $subject) { ?> <tr> <td><input type="checkbox" name="id" value="<?php echo $subject->get_id(); ?> "></td> <td><?php echo $subject->get_id(); ?> </td> <td><?php echo $subject->get_name(); ?> <?php
<tr> <th colspan="6" class="text-center">SUBJECTS<button role="button" class="btn btn-xs btn-success pull-right"><span class="glyphicon glyphicon-plus"></span></button></th> </tr> <tr> <th>Id</th> <th>Name</th> <th>Code</th> <th>Hours</th> <th>Program</th> <th>Action</th> </tr> <?php $subject_info = new SubjectRepository(); foreach ($subject_info->get_all() as $sub) { ?> <tr> <td><?php echo $sub->get_id(); ?> </td> <td><?php echo $sub->get_name(); ?> </td> <td><?php echo $sub->get_code(); ?> </td> <td><?php