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') , 'year' => $running_year))->row()->section_id;
?>
'form m-b')); ?>
|
|
db->get_where('student', array('student_id' => $this->session->userdata('login_user_id')))->row()->name; ?> |
db->group_by('timestamp');
$attendance = $this->db->get_where('attendance', array('section_id' => $section_id, 'class_id' => $class_id, 'year' => $running_year, 'timestamp' => $timestamp, 'student_id' => $this->session->userdata('login_user_id')))->result_array();
foreach ($attendance as $row1): $month_dummy = date('d', $row1['timestamp']);
if ($i == $month_dummy) $status = $row1['status'];
endforeach; ?>
|