×
Success! session->flashdata('success_msg'); ?>
session->flashdata('error_msg'))) {
?>
×
Failed! session->flashdata('error_msg'); ?>
Sl.No | Classroom | Course | Subjects | Teachers | Class Teacher | Action |
---|---|---|---|---|---|---|
= $i; ?> |
= $classrm['classroom_name']; ?>
|
= $classrm['course_name']; ?> | Admin_model->get_query_result($subject_query); // foreach ($subject_list as $sub_value) { ?>
Admin_model->get_query_result($subject_query);
foreach ($subject_list as $sub_value) {
echo $subject_name = ($sub_value['subject_name'] != '') ? $sub_value['subject_name'] . " " : '-'; } ?> |
Admin_model->get_query_result($teacher_query);
// foreach ($teacher_list as $teacher_value) {
// echo $subject_name = ($teacher_value['teacher_id'] != 0) ? $teacher_value['teacher_name'] . " " : '- '; foreach ($subject_list as $sub_value) { $teacher_query = "SELECT cts.*,t.teacher_name FROM `classroom_teacher_subject` cts LEFT JOIN teacher t ON t.id=cts.teacher_id WHERE cts.id=" . $sub_value['id'] . " ORDER BY cts.id ASC"; $teacher_list = $this->Admin_model->get_query_result($teacher_query); foreach ($teacher_list as $teacher_value) { if ($teacher_value['is_class_teacher'] == 'yes') { $classTeacher = $teacher_value['teacher_name']; } echo $subject_name = ($teacher_value['teacher_id'] != 0) ? $teacher_value['teacher_name'] . " " : '- '; } } ?> |
= $classTeacher ?> |