public function getStudentReport()
{
$schoolorclass = $this->input->post('schoolorclass');
$reportfor = $this->input->post('reportfor');
if ($reportfor == 'schoolyear') {
if($schoolorclass !='school'){
$this->data['classID'] = $classID = $this->input->post('classID');
$this->data['sectionID'] =$sectionID = $this->input->post('sectionID');
$this->data['value'] = $value = $this->input->post('value');
if($sectionID == 0){
$this->data['students'] = $this->studentrelation_m->get_student_report_all($value, $classID);
}else{
$this->data['students'] = $this->studentrelation_m->get_studentSection_report_all($value, $classID, $sectionID);
}
echo $this->load->view('report/student/StudentAdmitted', $this->data, true);
}else{
echo "<h4 class='text-danger'>'PLEASE SELECT A CLASS!' </h4>";
}
}