<td><center><?php echo $row['section_name']; ?> </center></td> <td><center><?php echo $row['section_no']; ?> </center></td> <td><center><?php echo $row['section_size']; ?> </center></td> <td><center><?php echo section_students($section_id, get_active_sy()); $total_students += section_students($section_id, get_active_sy()); ?> </center></td> <td><center><?php echo $row['curriculum_code']; ?> </center></td> </tr> <?php } ?> </tbody> <tfoot>
?> "> <td><?php echo $row['section_no']; ?> </td> <td><?php echo $row['section_name']; ?> </td> <td><?php echo $row['section_size']; ?> </td> <td><?php echo section_students($section_id, get_active_sy()); ?> </td> <td><?php echo $row['curriculum_code']; ?> </td> <td align="center"> <!--<a class='btn btn-mini' href='section_edit.php?section_id=<?php echo $section_id; ?> '> EDIT </a>--> <a class='btn btn-mini' onClick="fillEditForm(<?php echo $section_id; ?> )" data-toggle="modal" href='#editSection'> <i class="icon-cog" ></i> EDIT </a>
function sgroup_section_students($schoolid, $classid, $sectionid, $grp_id) { $section_students = array(); $section_students = section_students($sectionid); $sgroup = array(); $sgroup = sgroup_students($grp_id); $specific_stu = array(); foreach ($section_students as $studentid) { if (in_array($studentid, $sgroup)) { array_push($specific_stu, $studentid); } } return $specific_stu; }