?
Current Path : /home1/savoy/public_html/savoyglobal.net/hr/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/hr/application/views/Timesheet/timesheet_invoice_info.php |
<link href="<?=base_url()?>assets/css/tablesortnew.css" rel="stylesheet" type="text/css"/> <?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); $this->load->view('documentreadyfunctions'); ?> <li> <table class="sort" cellpadding="0" cellspacing="0" width="200px;"> <tr> <th>Customer Name</th> <th>Customer Purchase Order No</th> <th>Site</th> </tr> <tr> <?php $i=1; foreach($viewinfo as $list) { ?> <td><?=$list['customer_name'];?></td> <td><?=$list['customer_purchase_order_no'];?></td> <td> <?=$list['site_name'];?> <input type="hidden" name="purchase_order_id_<?=$i++;?>" value="<?=$list['purchase_order_id'];?>"/> </td> </tr> <?php } ?> </table> </li> <li> <table class="sortnew"> <tr><th colspan='2' style="text-align: center">Invoice Details</th></tr> <tr> <td>Invoice Date</td> <td> <div id="multi"> <?php $data = array( 'name' => 'invoice_date', 'id' => 'invoice_date', 'class' =>'required medium', ); echo form_input($data).form_error($data); ?> <img src="<?=base_url()?>assets/images/icons/calendar.png" alt="Click to popup the clendar!" /> </div> </td> </tr> <tr> <td>Invoice No</td> <td> <?php $data = array( 'name' => 'invoice_no', 'id' => 'invoice_no', 'class' =>'required', ); echo form_input($data).form_error($data); ?> </td> </tr> <tr> <td>Status</td> <td> <?php $data = array( 'name' => 'invoice_status', 'id' => 'invoice_status', ); echo form_input($data).form_error($data); ?> </td> </tr> <tr> <td>Remarks</td> <td> <?php $data = array( 'name' => 'invoice_remarks', 'id' => 'invoice_remarks', 'rows' => '10', 'cols' => '5', 'style' => 'width:80%', ); echo form_textarea($data).form_error($data); ?> </td> </tr> <tr> <td>Document</td><td> <?php $data1 = array( 'name' => 'invoice_document', 'id' => 'invoice_document' ); echo form_upload($data1).form_error($data1); ?> </td></tr></table> <table class="sortnew"> <tr><th colspan='2' style="text-align: center">Invoice Template</th></tr> <tr> <td>Invoice Heading</td> <td> <?php $data = array( 'name' => 'invoice_heading', 'id' => 'invoice_heading', 'class' =>'required', 'value' => 'Invoice' ); echo form_input($data).form_error($data); ?> </td> </tr> </table> <table class="sortnew"> <tr> <th colspan="3">Invoice Template Header Fields</th> </tr> <tr> <th>Label</th> <th>Value</th> <th><input type="button" id="button2" value="Add More" class="addRow" title="Add Row" style="width:75px;"/></th> </tr> <tr> <td><input style="width:100px;" type="text" name="label_text" /></td> <td><input style="width:100px;" type="text" name="label_value"/></td> <td> <img style="float: right; vertical-align: top;"src="<?=base_url()?>assets/images/icons/close.png" alt="Delete Row" class="delRow clickimage" title="Delete Row"/> </td> </tr> </table> </li> <li> <table class="sort"> <caption>Invoice Information</caption> <tr> <th>Sl No</th> <th>Trade</th> <th>Manpower</th> <th>Man Hrs</th> <th>Rate/Hr</th> <th>Amount</th> </tr> <?php $slno=1; $grand_total=0; foreach($client_timesheet as $clientsheet) { $normal_hours=$clientsheet['normal_hours']; if($clientsheet['ot_rate']==$clientsheet['normal_rate']&&$clientsheet['hot_rate']==$clientsheet['normal_rate']) { $normal_hours+=$clientsheet['ot_hours']; $normal_hours+=$clientsheet['hot_hours']; $flag=0; } else $flag=1; ?> <tr> <td rowspan="3"><?=$slno++;?></td> <td><?=rtrim($clientsheet['trade_name'], '- ');?></td> <td rowspan="3"><?=$clientsheet['manpower'];?></td> <td style="text-align: right;"> <?php echo number_format($normal_hours,2); ?> </td> <td style="text-align: right;"><?=number_format($clientsheet['normal_rate'],2);?></td> <td style="text-align: right;"> <?php echo number_format($normal_hours*$clientsheet['normal_rate'],2); ?> </td> </tr> <tr> <?php if($flag==1) { ?> <td>OT</td> <td style="text-align: right;"><?=number_format($clientsheet['ot_hours'],2);?></td> <td style="text-align: right;"> <?php echo number_format($clientsheet['ot_rate'],2); ?> </td> <td style="text-align: right;"> <?php echo number_format($clientsheet['ot_hours']*$clientsheet['ot_rate'],2); ?> </td> <?php } ?> </tr> <tr> <?php if($flag==1) { ?> <td>HOT</td> <td style="text-align: right;"><?=number_format($clientsheet['hot_hours'],2);?></td> <td style="text-align: right;"> <?php echo number_format($clientsheet['hot_rate'],2); ?> </td> <td style="text-align: right;"> <?php echo number_format($clientsheet['hot_hours']*$clientsheet['hot_rate'],2); ?> </td> <?php } ?> </tr> <?php $total_amount = $normal_hours*$clientsheet['normal_rate'] + $clientsheet['ot_hours']*$clientsheet['ot_rate'] + $clientsheet['hot_hours']*$clientsheet['hot_rate']; $grand_total+=$total_amount; } ?> <tr> <th colspan="5" style="text-align: right;font-weight: bold;">Total</th> <th style="text-align: right;font-weight: bold;"><?=number_format($grand_total,2);?></th> </tr> </table> </li> <li> <label for="submit"> </label> <button type="submit" class="clickimage" onclick="addformdata('validateform')">Save</button> </li>