?
Current Path : /home1/savoy/public_html/savoyglobal.net/sims/school/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/sims/school/application/views/Student/feereceiptpdf.php |
<?php $school=$this->mastermodel->getdatas('schoolsetup'); foreach($school as $row) { $school_name=$row['name']; $school_address=$row['address']; $school_phone=$row['phone']; $school_email=$row['email']; $school_website=$row['website']; } $feecollection = $this->mastermodel->get_data_srow('feecollection',$fee->feecollection_id,'feecollection_id'); $student = $this->mastermodel->get_data_srow('student',$fee->student_id,'student_id'); $ayear= $this->mastermodel->getSingleFieldValue('master','ayear','masterid',$fee->fee_id); $receipt_no=$this->mastermodel->number_rows('fee','ayear',$ayear); $receipt_no.="/".$ayear; $html='<html> <table width="100%"> <tr><td> <img src="'.base_url().'/assets/css/layout/white/logo1.png" > </td></tr> </table> <table width="100%"> <tr> <td style="text-align:left;">'.$school_name.', '.$school_address.'<br/>Tel: '.$school_phone.', Email: '.$school_email.', Website: '.$school_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>Receipt No</b>: '.$receipt_no.'</strong></td> </tr> <tr> <td style="text-align:right;"><b>Date</b>: '.$this->mastermodel->convertdatenormalformat($fee->fee_date).'</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>Class</strong></td><td>'.$this->mastermodel->getsinglefieldvalue('classlevel','classlevel_code','classlevel_id',$student->classlevel_id).'</td> </tr> </table> <br/><br/> <table border="1px" cellspacing="-1" 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; $total_fee=0; $fee_discounted_amount=0; foreach($fee_particular as $fees) { $i++; $fee_discounted_amount+=$fees['fee_actual']-($fees['fee_discount']*$fees['fee_actual']/100); $html.='<tr> <td style="text-align:left;">'.$i.'</td> <td>'.$fees['fee_category'].'</td> <td style="text-align:right;">'.number_format($fees['fee_amount'],2).'</td> </tr>'; $total_fee+=$fees['fee_amount']; } $remaining_dues=$fee_discounted_amount-$total_fee; $html.=' <tr><td></td> <td style="text-align:center;font-weight:bold;" >TOTAL</td> <td style="text-align:right;font-weight:bold;">'.number_format($total_fee,2).'</td> </tr> <tr><td></td> <td style="text-align:center;font-weight:bold;" >Remaining Dues</td> <td style="text-align:right;font-weight:bold;">'.number_format($remaining_dues,2).'</td> </tr> </table> <br/><br/><br/><br/><br/><br/> <table border="1px" cellspacing="-1" cellpadding="15px" width="100%"> <tr> <td style="text-align:left; height:8px;" bgcolor="#C3C3C3">Payment Mode</td> </tr> <tr> <td style="text-align:left;font-size:10px;font-weight:bold;height:50px;">'.nl2br($fee->payment_mode).'</td> </tr> </table> </html>'; pdf_create($html, 'Receipt'); //echo $html ?>