?
Current Path : /home1/savoy/www/savoyglobal.net/sec/draft/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/sec/draft/application/views/student/feereceiptunallocpdf.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']; } $html=' <html> <table width="100%"> <tr> <td> <img src="'.base_url().'/assets/img/logo.jpg" > </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>RECEIPT</b></font></td> </tr> <tr> <td style="text-align:right;"><b>Date</b>: '.$this->mastermodel->convertdatenormalformat($fee->fee_payment_date).'</td> </tr> <tr> <td style="text-align:right;"><b>Receipt No</b>: '.$fee->fee_receipt_no.'</strong></td> </tr> </table> <br/><br/><br/> <table width="60%"> <tr> <td style="text-align:left;"><strong>Student Name</strong></td><td>'.$fee->first_name." ".$fee->last_name.'</strong></td> </tr> <tr> <td style="text-align:left;"><strong>Reg No</strong></td><td>'.$fee->reg_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:7%;" bgcolor="#C3C3C3">Sl No</td> <td style="height:30px;width:70%;" bgcolor="#C3C3C3">Particulars</td> <td style="height:30px;width:23%;" bgcolor="#C3C3C3">QRS</td> </tr>'; $html.='<tr> <td style="text-align:left;">1</td> <td>Course Fees</td> <td style="text-align:right;">'.number_format($fee->fee_course_amount,2).'</td> </tr> <tr> <td style="text-align:left;">2</td> <td>Registration Fees</td> <td style="text-align:right;">'.number_format($fee->fee_registration_amount,2).'</td> </tr> <tr> <td style="text-align:left;">2</td> <td>Book Fees</td> <td style="text-align:right;">'.number_format($fee->book_fee_amount,2).'</td> </tr>'; $html.=' <tr> <td></td> <td style="text-align:center;font-weight:bold;" >TOTAL</td> <td style="text-align:right;font-weight:bold;">'.number_format($fee->fee_course_amount+$fee->book_fee_amount+$fee->fee_registration_amount,2).'</td> </tr> </table> <br/><br/><br/>'; $html.=' <table border="1px" cellspacing="0px" cellpading="5px" cellpadding="15px" width="100%"> <tr> <td colspan="2" style="text-align:left; height:8px;" bgcolor="#C3C3C3">Payment Mode</td>'; $payment_mode='Cash'; if ($fee->payment_mode == 2) { $cheque = $this->mastermodel->get_data_srow('fee_payment_cheque_info', $fee->fee_payment_id, 'fee_payment_id'); $payment_mode='Cheque'; }else if ($fee->payment_mode == 3) { $wire_info = $this->mastermodel->get_data_srow('fee_payment_wire_info', $fee->fee_payment_id, 'fee_payment_id'); $payment_mode='Wire'; } $html.='<td>'.$payment_mode.'</td></tr>'; if ($fee->payment_mode == 2) { $cheque = $this->mastermodel->get_data_srow('fee_payment_cheque_info', $fee->fee_payment_id, 'fee_payment_id'); $html.=' <tr> <td><span style="padding:0 10px;font-weight:bold;">Cheque Date </span>: '.$this->mastermodel->convertdatenormalformat($cheque->cheque_date) .'</td> <td><span style="padding:0 10px;font-weight:bold;">Cheque No </span>: '.$cheque->cheque_no .'</td> <td><span style="padding:0 10px;font-weight:bold;">Cheque Info </span>: '.$cheque->cheque_info .'</td> </tr> '; } else if ($fee->payment_mode == 3) { $wire_info = $this->mastermodel->get_data_srow('fee_payment_wire_info', $fee->fee_payment_id, 'fee_payment_id'); $html.=' <tr> <td colspan="3" > <span style="padding:0 10px;font-weight:bold;">Wire Info </span>: '.$wire_info->wire_info .'</td> </tr>'; } $html.=' </table> </html>'; pdf_create($html, 'Receipt'); echo $html ?>