db->get_where('settings' , array('type' => 'running_year'))->row()->description; $class_id = $this->db->get_where('enroll', array('student_id' => $this->session->userdata('login_user_id'), 'year' => $running_year))->row()->class_id; $section_id = $this->db->get_where('enroll' , array('student_id' => $this->session->userdata('login_user_id'),'class_id' => $class_id,'year' => $running_year))->row()->section_id; ?>
db->get_where('class' , array('class_id' => $class_id))->row()->name;?>
db->get_where('section' , array('section_id' => $section_id))->row()->name;?>
db->order_by("time_start", "asc"); $this->db->where('day' , $day); $this->db->where('class_id' , $class_id); $this->db->where('section_id' , $section_id); $this->db->where('year' , $running_year); $rout = $this->db->get('class_routine'); $routines = $rout->result_array(); foreach($routines as $row2): $teacher_id = $this->db->get_where('subject', array('subject_id' => $row2['subject_id']))->row()->teacher_id; ?> |
crud_model->get_subject_name_by_id($row2['subject_id']);?> db->get_where('teacher', array('teacher_id' => $teacher_id))->row()->name;?> |