?
Current Path : /home1/savoy/public_html/savoyglobal.net/sims/school/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/sims/school/application/views/Report/student_reportpdf.php |
<?php $html='<html> <head> <title>Student Report</title> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> </head> <body> <table width="100%"> <tr><td colspan="2"></td><td align="right"><img src="'.base_url().'assets/css/layout/white/logo1.png" style="float:right"/></td> <tr><td colspan="3" style="font-size:16px;" align="center"><b><u>Student Report</u></b></td></tr> </table><br><br>'; $html.=' <table cellpadding="0" cellspacing="-1" width="80%" border="1px" style="text_align:left;margin-left:10px;margin-right:10px;"> <tr> <td bgcolor="#7FCEFF" colspan="2" ><strong>Student Details</strong></td> </tr> <tr> <td width="35%">Student Reg No</td> <td>'.$student->reg_no.'</td> </tr> <tr> <td width="35%">Name</td> <td>'.$student->first_name." ".$student->last_name.'</td> </tr> <tr> <td width="35%">Gender</td> <td>'.$student->gender.'</td> </tr> <tr> <td width="35%">Class</td> '; $html.='<td>'; $html.= $this->mastermodel->getsinglefieldvalue('classlevel','classlevel_code','classlevel_id',$student->classlevel_id); $html.='</td> </tr> <tr> <td width="35%">Date of Birth</td> <td>'.$this->mastermodel->convertdatenormalformat($student->dob).'</td> </tr> <tr> <td width="35%">Email</td> <td>'.$student->email.'</td> </tr> <tr> <td width="35%">Contact No</td> <td>'.$student->contact_no.'</td> </tr> <tr> <td width="35%">Mobile No</td> <td>'.$student->mobile_no.'</td> </tr> <tr> <td bgcolor="#7FCEFF" colspan="2" ><strong>Student Address</strong></td> </tr> <tr> <td width="35%">Address</td> <td>'.$student->address.'</td> </tr> <tr> <td width="35%">State</td> <td>'.$student->state.'</td> </tr> <tr> <td width="35%">Country</td> <td>'.$student->country.'</td> </tr> <tr> <td bgcolor="#7FCEFF" colspan="2"><strong>Other Information</strong></td></tr> <tr> <td width="35%">Community and Religion</td> <td>'.$other->community.'</td> </tr> <tr> <td width="35%">ID/IPP No.</td> <td>'.$other->ipp_no.'</td> </tr> <tr> <td width="35%">Number and date of Transfer Certificate<br/>produced on admission</td> <td>'.$other->tc.'</td> </tr> <tr> <td width="35%">School previously attended</td> <td>'.$other->school_previous.'</td> </tr> <tr> <td bgcolor="#7FCEFF" colspan="2" style="text align:center;"><strong>Medical History</strong></td></tr> <tr> <td width="35%">Illness</td> <td>'.$other->illness.'</td> </tr> <tr> <td width="35%">Allergy</td> <td>'.$other->allergy.'</td> </tr> <tr> <td bgcolor="#7FCEFF" colspan="2" style="text align:center;"><strong>Parent Details</strong></td> </tr>'; $parent_student = $this->mastermodel->get_data('parent_student',$student->student_id,'student_id'); foreach ($parent_student as $row) { $parent=$this->mastermodel->get_data_srow('parent',$row['parent_id'],'parent_id'); $html.='<tr> <td width="35%">Name</td> <td>'.$parent->name.'</td> </tr> <tr> <td width="35%">Relationship Type</td> <td>'.$parent->relationship_type.'</td> </tr> <tr> <td width="35%">Email</td> <td>'.$parent->email.'</td> </tr> <tr> <td width="35%">Contact No</td> <td>'.$parent->contact_no.'</td> </tr> <tr> <td width="35%">Mobile No</td> <td>'.$parent->mobile_no.'</td> </tr> <tr> <td width="35%">Profession</td> <td>'.$parent->profession.'</td> </tr>'; } $html.=' </table> </div> </div> </div>'; $footer=$this->mastermodel->get_data_srow('schoolsetup','1','id'); $html.='<script type="text/php"> if ( isset($pdf) ) { $font = Font_Metrics::get_font("verdana", "normal"); $pdf->page_text(75, 570, "'.$footer->name.' | '.$footer->address.' | Tel: '.$footer->phone.' | Email: '.$footer->email.' | Website: '.$footer->website.' Page {PAGE_NUM} of {PAGE_COUNT}", $font, 10, array(0,0,0)); } </script>'; $html.='</body></html>'; pdf_create($html, 'Report','true'); //echo $html; ?>