?
Current Path : /home1/savoy/www/savoyglobal.net/eldertree/application/views/report/ |
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/www/savoyglobal.net/eldertree/application/views/report/xls_student_list_report.php |
<?php if (!defined('BASEPATH')) exit('No direct script access allowed'); $html = ""; //$class = $this->mastermodel->get_data_srow('class_name', $postdata['class_name_id'], 'class_name_id'); ?> <html> <head> <style> table,tr,td,th{ border-collapse: collapse; } </style> <table width="100%"> <tr> <td colspan="2"></td> <td align="right"><img src="<?= base_url() ?>assets/logo/<?= $logo ?>" style="float:right"/></td> </tr> <tr><td colspan="3" style="font-size:16px;" align="center"><b><u>Class Report as on <?=date("d");?> <?=date("M");?>, <?=date("Y");?></u></b></td></tr> </table> <br><br> <body> <table style="border: 1px solid black;width: 100%;text-align:left"> <thead> <tr style="border: 1px solid black;"> <th style="text-align:left;border: 1px solid black;" width="5%" bgcolor="#7FCEFF" >Sl No</th> <th style="text-align:left;border: 1px solid black;" bgcolor="#7FCEFF" >Student Name</th> <th style="text-align:left;border: 1px solid black;" bgcolor="#7FCEFF" >Gender</th> <th style="text-align:left;border: 1px solid black;" bgcolor="#7FCEFF" >Class Name</th> <th style="text-align:left;border: 1px solid black;" bgcolor="#7FCEFF" >Timing</th> <th style="text-align:left;border: 1px solid black;" bgcolor="#7FCEFF" >Birth Day</th> <th style="text-align:left;border: 1px solid black;" bgcolor="#7FCEFF" >Allergy</th> <?php $i = 1; $data = array(); foreach ($report as $list) { if (isset($data[$list->class_name_id]) && in_array($list->student_id, $data[$list->class_name_id])) { continue; } $data[$list->class_name_id][] = $list->student_id; ?> <tr> <td style="border: 1px solid black;background-color: lightgrey;"><?= $i++; ?> <td style="border: 1px solid black;"><?= $list->first_name . ' ' . $list->last_name ?></td> <td style="border: 1px solid black;"><?= $list->gender ?></td> <td style="border: 1px solid black;"><?= $list->class_room_name ?></td> <td style="border: 1px solid black;"><?= $list->session_name ?></td> <?php $date = date("j F", strtotime($list->dob)); ?> <td style="border: 1px solid black;"><?= $date; ?></td> <td style="border: 1px solid black;"><?= $list->previous_medical_illness ?></td> </tr> <?php } ?> </thead> <tbody> </tbody> </table> </body> </html> <?php $filename = "Class Student List report"; if ($view == 'xls') { header("Content-type: application/octet-stream"); header("Content-Disposition: attachment; filename=" . $filename . ".xls"); header("Pragma: no-cache"); header("Expires: 0"); } ?>