?
Current Path : /home1/savoy/public_html/savoyglobal.net/cocorico/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/public_html/savoyglobal.net/cocorico/application/views/report/xls_test_report.php |
<?php if (!defined('BASEPATH')) exit('No direct script access allowed'); ?> <html> <head> <body> <table width="100%"> <tr><td colspan="5"></td><td align="right"><img src="<?=base_url()?>assets/logo/<?=$logo?>" style="float:right; max-height: 100px;"/></td> <tr><td colspan="3" style="font-size:16px;" align="center"><b><u>Assessment Report</u></b></td></tr> <tr><td colspan="3">Printout Date : <?= date('d-m-Y') ?>, <?= date('h:i:s a') ?></td></tr> </table> <br><br> <hr> <table cellspacing="-1" style="width:100%;text-align:left" border="1"> <thead> <tr> <th style="text-align:left;" bgcolor="#7FCEFF">Sl No</th> <th style="text-align:left" bgcolor="#7FCEFF">Course Code</th> <th style="text-align:left" bgcolor="#7FCEFF">Exam Name</th> <th style="text-align:left" bgcolor="#7FCEFF">Test Date</th> <th style="text-align:left" bgcolor="#7FCEFF">Student Name</th> <th style="text-align:left" bgcolor="#7FCEFF">Reg No</th> <th style="text-align:left" bgcolor="#7FCEFF">Gender</th> <th style="text-align:left" bgcolor="#7FCEFF">Nationality</th> <th style="text-align:left" bgcolor="#7FCEFF">Remarks</th> </thead> <tbody> <?php $i = 0; $j = 1; foreach ($report as $value) { ?> <tr> <td style="vertical-align:text-top;"><?= $i++ ?></td> <td><?= $value['class_name_code'] ?></td> <td><?= $value['assessment_master_name'] ?></td> <td><?= $this->mastermodel->convertdatenormalformat($value['assessment_date']) ?></td> <td><?= $value['first_name'] . " " . $value['last_name'] ?></td> <td style="text-align: center"><?= $value['reg_no'] ?></td> <td style="text-align: center"><?= $value['gender'] ?></td> <td style="text-align: center"> <?php $nationality=$this->mastermodel->getSingleFieldValue('nationality', 'nationality_name', 'nationality_id', $value['nationality_id']); echo $nationality; ?> <td><?= $value['remarks'] ?></td> </tr> <?php } ?> </tbody> </table> <hr> </body> </html> <?php $filename = "Assessment report"; if ($view == 'xls') { header("Content-type: application/octet-stream"); header("Content-Disposition: attachment; filename=" . $filename . ".xls"); header("Pragma: no-cache"); header("Expires: 0"); } ?>