?
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/feereceiptpdf.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_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>'.$student->first_name." ".$student->last_name.'</strong></td> </tr> <tr> <td style="text-align:left;"><strong>Reg No</strong></td><td>'.$student->reg_no.'</strong></td> </tr> <tr> <td style="text-align:left;"><strong>Course</strong></td><td>'.$course->course_name.'</strong></td> </tr> <tr> <td style="text-align:left;"><strong>Batch Code</strong></td><td>'.$course->batch_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>'; $i=0; $amount_paid=0; $total_fee=$course_fee+$reg_fee+$extra_class_fee; $total_fee_paid=$paid_amount+$reg_paid_amount+$extra_class_fee_paid; $remaining_dues=$total_fee-$total_fee_paid; foreach($fee_particular as $fees) { $i++; switch ($fees['fee_type']) { case 'course': $fee_type='Course Fees'; break; case 'registration': $fee_type='Registration Fees'; break; case 'extraclass': $fee_type='Extra Class Fees'; case 'books': $fee_type='Book Fees'; break; } $html.='<tr> <td style="text-align:left;">'.$i.'</td> <td>'.$fee_type.'</td> <td style="text-align:right;">'.number_format($fees['amount_paid'],2).'</td> </tr>'; $amount_paid+=$fees['amount_paid']; } $html.=' <tr> <td></td> <td style="text-align:center;font-weight:bold;" >TOTAL</td> <td style="text-align:right;font-weight:bold;">'.number_format($amount_paid,2).'</td> </tr> </table> <br/><br/><br/><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_cheque_info', $fee->fee_id, 'fee_id'); $payment_mode='Cheque'; }else if ($fee->payment_mode == 3) { $wire_info = $this->mastermodel->get_data_srow('fee_wire_info', $fee->fee_id, 'fee_id'); $payment_mode='Wire'; } $html.='<td>'.$payment_mode.'</td></tr>'; if ($fee->payment_mode == 2) { $cheque = $this->mastermodel->get_data_srow('fee_cheque_info', $fee->fee_id, 'fee_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_wire_info', $fee->fee_id, 'fee_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'); ?>