?
Current Path : /home1/savoy/www/savoyglobal.net/eldertree/application/views/student/ |
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/student/student_pdf.php |
<?php $center_info = $this->mastermodel->search_nursery(); foreach ($center_info['results']->result_array() as $row) { $nursery_name = $row['nursery_name']; $nursery_address = $row['address']; $nursery_phone = $row['contact_no']; $nursery_email = $row['email']; $nursery_website = $row['website']; $nursery_logo = $row['logo']; } $class = $this->studentmodel->studentreceiptclassdetails($student_details->student_id); $html = ' <html> <table width="100%"> <tr> <td> <img src="' . base_url() . '/assets/logo/' . $nursery_logo . '" > </td> </tr> </table><table width="60%"> <tr> <td style="text-align:left;">' . $nursery_name . ', ' . $nursery_address . '<br/>Tel: ' . $nursery_phone . ', Email: ' . $nursery_email . ',<br/> Website: ' . $nursery_website . '</td> </tr> </table> <hr> <br/> <table width="100%"> <tr> <td style="text-align:center;"><font size="16px"><b>STUDENT DETAILS</b></font></td> </tr> </table> <br/><br/><br/>'; if($student_details->photo != '') { $html.= '<table align="right" > <tr> <td><img hight="250px" width="125px" src="' . base_url() . '/assets/uploads/student_photo/'. $student_details->photo .'" ></td> </tr> </table> <br/>'; } $html.= '<table width="60%"> <tr> <td style="text-align:left;"><strong>Student\'s Name</strong></td><td width="5px">:</td><td style="padding-left:10px;">' . $student_details->first_name . " " . $student_details->last_name . '</strong></td> </tr> <tr> <td style="text-align:left;"><strong>Reg No</strong></td><td width="5px">:</td><td style="padding-left:10px;">' . $student_details->reg_no . '</strong></td> </tr> <tr> <td style="text-align:left;"><strong>Gender</strong></td><td width="5px">:</td><td style="padding-left:10px;">' . $student_details->gender . '</strong></td> </tr> <tr> <td style="text-align:left;"><strong>DOB</strong></td><td width="5px">:</td><td style="padding-left:10px;">' . $this->mastermodel->convertdatenormalformat($student_details->dob) . '</strong></td> </tr> <tr> <td style="text-align:left;"><strong>Nationality</strong></td><td width="5px">:</td><td style="padding-left:10px;">' . $this->mastermodel->get_single_field_value('nationality', 'nationality_name', 'nationality_id', $student_details->nationality_id) . '</strong></td> </tr> <tr> <td style="text-align:left;"><strong>Grade</strong></td><td width="5px">:</td><td style="padding-left:10px;">' . $student_details->grade_name . '</strong></td> </tr> <tr> <td style="text-align:left;"><strong>Admission Date</strong></td><td width="5px">:</td><td style="padding-left:10px;">' . $this->mastermodel->convertdatenormalformat($student_details->admission_date) . '</strong></td> </tr> <tr> <td style="text-align:left;"><strong>Qatar Id</strong></td><td width="5px">:</td><td style="padding-left:10px;">' . $student_details->qatar_id . '</strong></td> </tr> <tr> <td style="text-align:left;"><strong>Address</strong></td><td width="5px">:</td><td style="padding-left:10px;">' . $student_details->address . '</strong></td> </tr> <tr> <td style="text-align:left;"><strong>Languages Spoken</strong></td><td width="5px">:</td><td style="padding-left:10px;">' . $student_details->languages . '</strong></td> </tr> <tr> <td style="text-align:left;"><strong>Previous medical illness / Allergy</strong></td><td width="5px">:</td><td style="padding-left:10px;">' . $student_details->previous_medical_illness . '</strong></td> </tr> <tr> <td style="text-align:left;"><strong>Blood Group</strong></td><td width="5px">:</td><td style="padding-left:10px;">' . $student_details->blood_group . '</strong></td> </tr> <tr> <td style="text-align:left;"><strong>Father\'s Name</strong></td><td width="5px">:</td><td style="padding-left:10px;">' . $student_details->father_name . '</strong></td> </tr> <tr> <td style="text-align:left;"><strong>Father\'s Mobile No</strong></td><td width="5px">:</td><td style="padding-left:10px;">' . $student_details->father_mobile_no . '</strong></td> </tr> <tr> <td style="text-align:left;"><strong>Mother\'s Name</strong></td><td width="5px">:</td><td style="padding-left:10px;">' . $student_details->mother_name . '</strong></td> </tr> <tr> <td style="text-align:left;"><strong>Mother\'s Mobile No</strong></td><td width="5px">:</td><td style="padding-left:10px;">' . $student_details->mother_mobile_no . '</strong></td> </tr> </table> <br/><br/> '; $html.='<table border="1px" cellspacing="0px" cellpading="5px" cellpadding="0" style="text_align:center;" width="100%"> <tr> <td style="text-align:left;height:30px;width:10%;" bgcolor="#C3C3C3">Sl No</td> <td style="height:30px;width:45%;" bgcolor="#C3C3C3">Class</td> <td style="height:30px;width:45%;" bgcolor="#C3C3C3">Allocation Date</td> </tr>'; $i = 0; foreach ($class['results']->result_array() as $row) { $i++; $html.='<tr> <td style="text-align:left;">' . $i . '</td> <td style="padding-left:10px;">' . $row['class_name_code'] . '</td> <td style="padding-left:10px;">' . $this->mastermodel->convertdatenormalformat($row['class_allocation_date']) . '</td> </tr>'; } $html.='</table> </html>'; //echo $html; pdf_create($html, $student_details->reg_no); ?>