?
Current Path : /home1/savoy/public_html/oscarerp.com/application/views/examination/ |
Linux gator3171.hostgator.com 4.19.286-203.ELK.el7.x86_64 #1 SMP Wed Jun 14 04:33:55 CDT 2023 x86_64 |
Current File : /home1/savoy/public_html/oscarerp.com/application/views/examination/pdf_overall_report_card.php |
<?php $logo = ""; $company_name = ""; if (!empty($company)) { $logo = base_url() . 'assets/logo/' . $company->logo; $company_name = $company->nursery_name; } $academic = $this->mastermodel->get_data_srow('academic_year', $postdata['academic_year_id'], 'academic_year_id'); $grading_list = $this->mastermodel->getdatas('exam_grade_level', 'max_marks', 'desc'); $grade_level = array(); foreach ($grading_list as $value) { $grade_level[] = array($value['min_marks'], $value['max_marks'], $value['gradelevel_name']); } ?> <html> <head> <style> td{ padding: 0 5px; } tr{ height: 25px; } </style> </head> <body> <div style="width: 80%;margin: 0 auto;overflow: hidden;"> <table width="100%" > <tr> <td align="left"> <img src="<?= $logo ?>" style="float:left ;width: 160px;height: 70px;" /> </td> </tr> <tr> <td align="center"> <b style="font-size:20px;"><u><?= $company_name ?></u></b> </td> </tr> <tr> <td align="center" style="font-size:18px;"> ACADEMIC YEAR <?= $academic->display_name; ?> </td> </tr> <tr> <td align="center"> <b style="font-size:16px;"> <u>FINAL REPORT</u> </b> </td> </tr> </table> <br> <table style="width: 100%;margin: 0 auto;font-size: 14px;"> <tr> <td colspan="2"> <?php $student = $this->mastermodel->get_data_srow('student', $postdata['student_id'], 'student_id'); ?> <b>Name : </b><?= $student->first_name . ' ' . $student->last_name ?> </td> </tr> <tr> <td colspan="2"> <b>Class Name:</b><?php if (isset($class_list)) { echo implode(',', $class_list); } ?> </td> </tr> <tr> <td> </td> <td> <?php $exam_name = ''; $days_per_sem = ''; $days_absent = ''; $days_late = ''; foreach ($semsetails as $value) { $exam_name.='<td>' . $value['exam_master_name'] . '</td>'; $days_per_sem.='<td>' . $value['no_days_per_sem'] . '</td>'; $days_absent.='<td>' . $value['no_days_absent'] . '</td>'; $days_late.='<td>' . $value['no_days_late'] . '</td> '; } ?> <table style="text-align: center;margin-right: 10px;font-size: 11px;" cellpadding="1" cellspacing="0" border="1"> <tr> <th></th> <?= $exam_name ?> </tr> <tr> <th style="text-align: left">TOTAL DAYS PER SEMESTER</th> <?= $days_per_sem ?> </tr> <tr> <th style="text-align: left">TOTAL DAYS ABSENT</th> <?= $days_absent ?> </tr> <tr> <th style="text-align: left">TOTAL DAYS LATE</th> <?= $days_late ?> </tr> </table> </td> </tr> </table> <br/> <table> <tr> <td> <table border="1" cellspacing="0" cellpadding="0" style="text-align: center;width: 90%;"> <?php $tr1 = ""; $tr2 = ''; $tr3 = ''; $tr4 = ""; $k = 0; $temp = ""; $evaluation_count = count($evaluation_list); foreach ($result as $subject => $evaluation) { $tr4.='<tr> <td style="text-align:left;">' . $sub_array[$subject] . '</td>'; ?> <?php $ct = 0; $total = 0; $max_mark = 0; foreach ($evaluation_list as $value => $exam_name) { $ct+=1; $max_month = isset($evaluation[$value]) ? $evaluation[$value]['month_max_mark'] : 0; $max_sem = isset($evaluation[$value]) ? $evaluation[$value]['sem_max_mark'] : 0; $max_mark+=$max_month + $max_sem; $month_mark = isset($evaluation[$value]) ? $evaluation[$value]['evaluation_monthly_marks'] : 'NA'; $sem_mark = isset($evaluation[$value]) ? $evaluation[$value]['evaluation_semester_marks'] : 'NA'; ?> <? if ($ct == $evaluation_count) { $tr4.='<td>' . $month_mark . '</td> <td>' . $sem_mark . '</td>'; } ?> <?php // if($temp!=$value){ // } // $temp=$value; if ($month_mark != 'NA' && $sem_mark != 'NA') { $sub_total = ($month_mark + $sem_mark); $tr4.='<td>' . $sub_total . '</td>'; } else { $tr4.='<td>NA</td>'; $sub_total = 0; } $total+=$sub_total; if ($k == 0) { if ($ct == $evaluation_count) { $tr1.='<td colspan="3">' . $exam_name . '</td> <td colspan="3">Total</td>'; $tr2.='<td>Accumulative</td> <td>Final Exam</td> <td>Total ' . $exam_name . '</td> <td>Total</td> <td colspan="2">Academic Grading</td>'; $tr3.='<td>' . $max_month . '</td><td>' . $max_sem . '</td> <td>' . ($max_month + $max_sem) . '</td> <td>' . $max_mark . '</td> <td>%</td> <td>AG</td>'; $k = 1; } else { $tr1.='<td rowspan="2">' . $exam_name . '</td>'; // $tr2.='<td></td>'; $tr3.='<td>' . ($max_month + $max_sem) . '</td>'; } } ?> <? if ($ct == $evaluation_count) { $tr4.='<td>' . $total . '</td>'; $tr4.='<td>' . number_format((($total / $max_mark) * 100),2) . '</td>'; $avg_mark = number_format((($total / $max_mark) * 100), 2); $flag = 'NA'; foreach ($grade_level as $grade_list) { if ($avg_mark >= $grade_list[0] && $avg_mark <= $grade_list[1]) { $flag = $grade_list[2]; } } $tr4.='<td>' . $flag . '</td>'; } } $tr4.='</tr>'; } ?> <tr> <td rowspan="3">Subject</td> <?= $tr1 ?> </tr> <tr> <?= $tr2 ?> </tr> <tr> <?= $tr3 ?> </tr> <?php echo $tr4; ?> </table> </td> </tr> </table> </div> <div class="clearfix"></div> <div style="width: 80%;margin: 0 auto"> <br/> <?php ?> <table width="100%"> <tr> <td> <?php $tb1 = ""; $tb2 = ""; $i = 0; $geade_count = count($grading_list) + 1; foreach ($grading_list as $list) { $border_bot="border-bottom: 1px solid black;"; $border_rit="border-right: 1px solid black;"; if ($i < ($geade_count / 2)) { if($i==ceil($geade_count / 2)-1) $border_bot=""; $tb1.='<tr> <td style="'.$border_rit.$border_bot.'">' . $list['gradelevel_name'] . '</td> <td style="'.$border_bot.'">' . $list['min_marks'] . ' % ' . '- ' . $list['max_marks'] . ' %' . '</td> </tr>'; } else { $tb2.='<tr> <td style="'.$border_rit.$border_bot.'">' . $list['gradelevel_name'] . '</td> <td style="'.$border_bot.'">' . $list['min_marks'] . ' % ' . '- ' . $list['max_marks'] . ' %' . '</td> </tr>'; } $i++; } ?> <table border="1" cellspacing="0" cellpadding="0"> <tr><td colspan="2" style="text-align: center;">ACADEMIC GRADING</td></tr> <tr> <td style="padding: 0;"> <table border="0" cellspacing="0" cellpadding="3" style=" "> <?= $tb1 ?> </table> </td> <td style="vertical-align: top;padding: 0;"> <table border="0" cellspacing="0" cellpadding="3" style=" " > <?= $tb2 ?> <tr> <td style="border-right: 1px solid black;border-bottom: 1px solid black;">NA</td> <td style="border-bottom: 1px solid black;">Not Assessed</td> </tr> </table> </td> </tr> </table> </td> <!-- </tr><tr>--> <td style="vertical-align: top;text-align: right;"> <table border="1" cellspacing="0" cellpadding="3" style="margin-right: 10px;font-size: 12px;"> <tr> <th colspan="2">E/B Effort/Behavior</th> </tr> <?php $effort_list = $this->mastermodel->getdatas('effort_behavior', 'effort_behavior_value', 'asc'); foreach ($effort_list as $val) { ?> <tr> <td><?= $val['effort_behavior_value'] ?></td> <td><?= $val['effort_behavior_status'] ?></td> </tr> <?php } ?> </table> </td> </tr> </table> </div> <br/> <br/> <br/> <div style="width: 80%;margin: 0 auto"> <table style="width: 100%;font-size: 12px;"> <tr> <td style="text-align: center"><hr><br/>Homeroom Teacher</td> <td style="width:20%"></td> <td style="text-align: right"><hr><br/>Principal</td> <td style="width:20%"></td> </tr> </table> </div> </body> </html> <?php ?>