?
Current Path : /home1/savoy/public_html/savoyglobal.net/sec/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/public_html/savoyglobal.net/sec/application/views/student/studentreceiptpdf.php |
<?php $center_info = $this->mastermodel->getdatas('centre'); foreach ($center_info as $row) { $centre_name = $row['centre_name']; $centre_address = $row['address']; $centre_phone = $row['contact_no']; $centre_email = $row['email']; $centre_website = $row['website']; $centre_logo = $row['logo']; } $batch = $this->studentmodel->studentreceiptbatchdetails($student_details->student_id); $html = ' <html> <table width="100%"> <tr> <td> <img src="' . base_url() . '/assets/img/' . $centre_logo . '" > </td> </tr> </table> <table width="100%"> <tr> <td style="text-align:left;">' . $centre_name . ', ' . $centre_address . '<br/>Tel: ' . $centre_phone . ', Email: ' . $centre_email . ', Website: ' . $centre_website . '</td> </tr> </table> <hr> <br/> <table width="100%"> <tr> <td style="text-align:center;"><font size="16px"><b>Student Information</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 Name</strong></td><td>' . $student_details->first_name . " " . $student_details->last_name . '</strong></td> </tr> <tr> <td style="text-align:left;"><strong>Reg No</strong></td><td>' . $student_details->reg_no . '</strong></td> </tr> <tr> <td style="text-align:left;"><strong>Gender</strong></td><td>' . $student_details->gender . '</strong></td> </tr> <tr> <td style="text-align:left;"><strong>Dob</strong></td><td>' .$this->mastermodel->convertdatenormalformat( $student_details->dob) . '</strong></td> </tr> <tr> <td style="text-align:left;"><strong>Nationality</strong></td><td>' . $student_details->nationality . '</strong></td> </tr> <tr> <td style="text-align:left;"><strong>School Name</strong></td><td>' . $student_details->school_name . '</strong></td> </tr> <tr> <td style="text-align:left;"><strong>Grade</strong></td><td>' . $student_details->grade_name . '</strong></td> </tr> <tr> <td style="text-align:left;"><strong>Qatar Id</strong></td><td>' . $student_details->qatar_id . '</strong></td> </tr> <tr> <td style="text-align:left;"><strong>Address</strong></td><td>' . $student_details->blood_group . '</strong></td> </tr> <tr> <td style="text-align:left;"><strong>Batch Code</strong></td><td>' . $student_details->address . '</strong></td> </tr> <tr> <td style="text-align:left;"><strong>Email</strong></td><td>' . $student_details->email . '</strong></td> </tr> <tr> <td style="text-align:left;"><strong>Admission Date</strong></td><td>' . $this->mastermodel->convertdatenormalformat($student_details->admission_date) . '</strong></td> </tr> <tr> <td style="text-align:left;"><strong>Medical Illness</strong></td><td>' . $student_details->previous_medical_illness . '</strong></td> </tr> <tr> <td style="text-align:left;"><strong>Mobile No</strong></td><td>' . $student_details->mobile_no . '</strong></td> </tr> <tr> <td><h3 class="form-section">Father Details</h3> <td> </tr> <tr> <td style="text-align:left;"><strong>Father Name</strong></td><td>' . $student_details->father_name . '</strong></td> </tr> <tr> <td style="text-align:left;"><strong>Father Mob:</strong></td><td>' . $student_details->father_mobile_no . '</strong></td> </tr> <tr> <td><h3 class="form-section">Mother Details</h3> <td> </tr> <tr> <td style="text-align:left;"><strong>Mother Name</strong></td><td>' . $student_details->mother_name . '</strong></td> </tr> <tr> <td style="text-align:left;"><strong>Mother Mob:</strong></td><td>' . $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">Batch</td> <td style="height:30px;width:35%;" bgcolor="#C3C3C3">Allocation Date</td> <td style="height:30px;width:35%;" bgcolor="#C3C3C3">Course</td> </tr>'; $i= 0; foreach ($batch['results']->result_array() as $row) { $i++; $html.='<tr> <td style="text-align:left;">' . $i . '</td> <td>' . $row['batch_no'] . '</td> <td>' . $this->mastermodel->convertdatenormalformat($row['start_date']) . '</td> <td>' . $row['course_name'] . '</td> </tr>'; } $html.='</table> </html>'; pdf_create($html, 'StudentInformation '); ?>