<?php echo $student->phone; ?> </td> <td data-title="<?php echo $this->lang->line('action'); ?> "> <?php foreach ($attendances as $attendance) { if ($date == $attendance->date && $attendance->student_id == $student->studentID) { $method = ''; if ($attendance->status == '1') { $method = "checked"; } echo btn_attendance($attendance->attendance_id, $method, 'attendance btn btn-warning', $this->lang->line('add_title')); break; } } ?> </td> </tr> <?php $i++; } } ?> </tbody> </table> </div>
echo $student->phone; ?> </td> <td data-title="<?php echo $this->lang->line('action'); ?> "> <?php // $aday = "a".abs($day); foreach ($eattendances as $eattendance) { if ($eattendance->studentID == $student->studentID && $examID == $eattendance->examID && $classesID == $eattendance->classesID && $subjectID == $eattendance->subjectID) { $method = ''; if ($eattendance->eattendance == "Present") { $method = "checked"; } echo btn_attendance($student->studentID, $method, 'attendance btn btn-warning', $this->lang->line('add_title')); break; } } ?> </td> </tr> <?php $i++; } } ?> </tbody> </table> </div>
echo $this->lang->line('promotion_roll'); ?> </th> <th class="col-sm-2"><?php echo $this->lang->line('promotion_section'); ?> </th> <th class="col-sm-1"><?php echo $this->lang->line('promotion_result'); ?> </th> <th class="col-sm-2"><?php if (in_array(2, $student_result)) { echo '<input type="checkbox" class="promotion btn btn-warning" disabled> ' . $this->lang->line('action'); } else { echo btn_attendance('', '', 'all_promotion', $this->lang->line('add_all_promotion')) . $this->lang->line('action'); } ?> </th> </tr> </thead> <tbody> <?php if (count($students)) { $i = 1; foreach ($students as $student) { ?> <tr> <td data-title="<?php echo $this->lang->line('slno');