?
Current Path : /home1/savoy/public_html/savoyglobal.net/sgms/application/views/Training/ |
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/sgms/application/views/Training/view_quotation_slip.php |
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); $this->load->view('documentreadyfunctions'); ?> <div class="select-bar"> <label><img src="<?=base_url()?>assets/images/backbutton.png" title="Back" class="clickimage" onclick="viewdata('training','viewintrainingsearch','search_quotation_training','view_quotation_training','<?=$_SESSION['pagenum'];?>')" alt="Back" align = "center" width="25" height="25" /> </label> <span class="heading"> training proposal Details</span> </div> <fieldset> <?php $attributes=array('id'=>'validateform','class'=>'customForm'); echo form_open('',$attributes); ?> <?php if($viewinfo->num_rows() > 0) { $FirstRow = $viewinfo->result(); echo anchor("training/loadreport/searchquotationreport/quotation_pdf/". $FirstRow[0]->training_quotation_id , '<img src="'.base_url().'/assets/images/pdf.png" title="PDF" align = "center" width="20" height="20">', 'title="QuotationReport"'); echo "<h3 style='text-align:center'>Quotation Report </h3><br/>"; echo "<label> Name: " .$FirstRow[0]->customer_name ." </label><br/>"; echo "<label> Class: " . $FirstRow[0]->training_code ." </label><br/>"; echo "<label> Date: " . date('d-m-Y') ." </label><br/>"; ?> <table cellpadding="0" cellspacing="0" width="100%"> <tbody> <tr> <th><span> Description</span> </th> <th><span>Fee/Head</span> </th> <th><span>No of PAX</span></th> <th><span>Total</span></th> </tr> <tr> <th><span>Discount</span></th> </tr> <?php foreach ($viewinfo->result() as $row) { echo "<tr> <td>" . $row->description."</td> <td style='text-align:center'>" . $row->fee_head." </td> <td style='text-align:center'>" . $row->no_pax." </td> <td style='text-align:center'> ".($row->fee_head * $row->no_pax) ."</td> </tr> "; echo " <tr> <td>" . $row->discount."</td> </tr>" ; } ?> </tbody> </table> <?php } else { echo 'No Record Found'; } ?> <br/><br/> <caption>Training Quotation Details</caption><br/><br/> <table class="sort" cellpadding="0" cellspacing="0" width="200px;"> <tr> <th>Description</th> <th>Fee/Head</th> <th>No of PAX</th> <th>Discount</th> <th>Total</th> </tr> <?php $training_quotation_details = $this->mastermodel->get_data('training_quotation_details',$viewinfo->training_quotation_id,'training_quotation_id'); $k=1; $total=0; foreach($training_quotation_details as $trqut) { $pax = $trqut['no_pax']; $fee_head = $trqut['fee_head']; $discount = $trqut['discount']; $total =($pax*$fee_head)-($pax*$fee_head*$discount/100); ?> <tr> <td><?= $trqut['description']?></td> <td><?= $trqut['no_pax']?></td> <td><?= $trqut['fee_head']?></td> <td><?= $trqut['discount']?></td> <td><?= $total?></td> </tr> <?php } ?> </table> <?php echo form_close();?> </fieldset>