?
Current Path : /home1/savoy/public_html/savoyglobal.net/sgms/application/views/Timesheet/ |
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/Timesheet/single_purchase_order.php |
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); $this->load->view('documentreadyfunctions'); ?> <link href="<?=base_url()?>assets/css/tablesortnew.css" rel="stylesheet" type="text/css"/> <div class="select-bar"> <label><img src="<?=base_url()?>assets/images/backbutton.png" title="Back" class="clickimage" onclick="viewdata('timesheet','viewintimesheetsearch','search_purchase_order','view_purchase_order','<?=$_SESSION['pagenum'];?>')" alt="Back" align = "center" width="25" height="25" /> </label> <span class="heading">Purchase Order Details</span> </div> <fieldset> <?php $attributes=array('id'=>'validateform','class'=>'customForm'); echo form_open('',$attributes); $trade_list=$this->mastermodel->getdatas('trade','trade_name'); $site_list=$this->mastermodel->getdatas('site','site_name'); ?> <ul> <li> <table class="sortnew"> <tr> <th colspan="2">Purchase Order Information</th> </tr> <tr> <td>Customer Name</td> <td> <?=$this->mastermodel->getSingleFieldValue('payroll_customer','customer_name','customer_id',$viewinfo->customer_id);?> </td> </tr> <tr> <td>Job Code</td> <td> <?=$viewinfo->job_code;?> </td> </tr> <tr> <td>Subject</td> <td> <?php echo $viewinfo->purchase_order_subject; ?> </td> </tr> <tr> <td>Purchase Order Date</td> <td> <?php echo $this->mastermodel->convertdatenormalformat($viewinfo->purchase_order_date) ?> </td> </tr> <tr> <td>Customer Purchase Order No</td> <td> <?php echo $viewinfo->customer_purchase_order_no; ?> </td> </tr> <tr> <td>Site</td> <td> <?php echo $this->mastermodel->getSingleFieldValue('site','site_name','site_id',$viewinfo->purchase_order_site_id); ?> </td> </tr> <tr> <td>Payment Terms</td> <td> <?php echo $viewinfo->purchase_order_payment_terms; ?> </td> </tr> <tr> <td>Upload Document</td> <td> <?php echo $viewinfo->purchase_order_document_name; ?> <?php if($viewinfo->purchase_order_document_doc != "") { ?> <a href="<?=base_url()?>assets/uploads/<?=$viewinfo->purchase_order_document_doc;?>">Download</a> <?php } ?> </td> </tr> </table> <table class="sortnew"> <tr> <th colspan="2">Job Information</th> </tr> <tr> <td>Start Date</td> <td> <?php echo $this->mastermodel->convertdatenormalformat($viewinfo->purchase_order_start_date); ?> </td> </tr> <tr> <td>End Date</td> <td> <?php echo $this->mastermodel->convertdatenormalformat($viewinfo->purchase_order_end_date); ?> </td> </tr> <tr> <td>Hours Basic</td> <td> <?php echo $viewinfo->purchase_order_hours_basic; ?> </td> </tr> <tr> <td>Transportation</td> <td> <?php echo $viewinfo->purchase_order_transportation; ?> </td> </tr> <tr> <td>Food Allowance</td> <td> <?php echo $viewinfo->purchase_order_food_allowance; ?> </td> </tr> <tr> <td>Accomodation</td> <td> <?php echo $viewinfo->purchase_order_accomodation; ?> </td> </tr> <tr> <td>Job Status</td> <td> <?php echo $viewinfo->purchase_order_status; ?> </td> </tr> <tr> <td>Remarks</td> <td> <?php echo $viewinfo->purchase_order_remarks; ?> </td> </tr> </table> </li> <li> <table class="sort" cellpadding="0" cellspacing="0" width="200px;"> <tr> <th>Trade</th> <th>NOS</th> <th>Rate</th> <th>OT Type</th> <th>OT Rate(%)</th> <th>HOT Rate(%)</th> </tr> <?php $employee_list=$this->mastermodel->get_data('payroll_purchase_order_details',$viewinfo->purchase_order_id,'purchase_order_id'); $i=1; if(!empty ($employee_list)) { foreach ($employee_list as $employee) { ?> <tr> <td> <?php echo $this->mastermodel->getSingleFieldValue('trade','trade_name','trade_id',$employee['purchase_order_trade_id']); ?> </td> <td><?=$employee['purchase_order_manpower_no'];?></td> <td><?=$employee['purchase_order_rate'];?></td> <td><?=$employee['purchase_order_ot_type']?"OT":"Flat";?></td> <td><?php if($employee['purchase_order_ot_type']==1){echo $employee['purchase_order_ot_rate'];}?></td> <td><?php if($employee['purchase_order_ot_type']==1){echo $employee['purchase_order_hot_rate'];}?></td> </tr> <?php $i++; } } ?> </table> </li> </ul> <?php echo form_close();?> </fieldset>