<div class="box box-footer"> <button type="submit" class="btn btn-primary" name='submit'>Generate Result</button> </div> <!-- ./box-footer --> </form> </div> </div> <div class="col-md-6"> <div class="box box-info"> <div class="box-header"> <h3 class="box-title">Approval status of your courses (generated results)</h3> </div> <!-- ./box header --> <div class="box-body table-responsive no-padding"> <?php $a = new Approval(); $b = $a->underApprovalOfTeacher(Session::get('teacher_id')); if (!$b->num_rows) { ?> <p class="box-info">You have not yet generated any of your course result. Or you may have generated but not approved it from your side.<p> <?php } else { ?> <table class="table table-hover"> <tr> <th>Course Code</th> <th>Department</th> <th>Status</th> <th>Comments</th> </tr> <?php while ($key = $b->fetch_object()) {