?
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/edit_client_timesheet.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_client_timesheet','view_client_timesheet','<?=$_SESSION['pagenum'];?>')" alt="Back" align = "center" width="25" height="25" /> </label> <span class="heading">Update Client Timesheet</span> </div> <fieldset> <?php $attributes=array('id'=>'validateform','class'=>'customForm'); echo form_open('timesheet/addintimesheet/update_client_timesheet/view_client_timesheet/1',$attributes); $jobinfo=$this->onboardingmodel->get_joined_info_single('payroll_purchase_order',$viewinfo->purchase_order_id,'purchase_order_id','payroll_customer','customer_id') ?> <ul> <li> <label for="data"> Customer Purchase Order No</label> <div class="record_entry"> <?=$jobinfo->customer_purchase_order_no;?> </div> </li> <li> <label for="data"> Job Code</label> <div class="record_entry"> <?=$jobinfo->job_code?> </div> </li> <input type="hidden" name="client_timesheet_id" id="client_timesheet_id" value="<?=$viewinfo->client_timesheet_id;?>"/> <li> <label for="data">Customer Name</label> <div class="record_entry"> <?php echo $jobinfo->customer_name; ?> </div> </li> <li> <label for="data">Start Date</label> <div class="record_entry"> <?php echo $this->mastermodel->convertdatenormalformat($jobinfo->purchase_order_start_date); ?> </div> </li> <li> <label for="data">End Date</label> <div class="record_entry"> <?php echo $this->mastermodel->convertdatenormalformat($jobinfo->purchase_order_end_date); ?> </div> </li> <li> <label for="data">Site</label> <div class="record_entry"> <?php echo $this->mastermodel->getSingleFieldValue('site','site_name','site_id',$jobinfo->purchase_order_site_id); ?> </div> </li> <li> <table class="sortnew"> <tr> <th colspan="2">Timesheet Information</th> </tr> <tr> <td>Timesheet Received Date</td> <td> <div id="multi"> <input type="text" class="medium" value="<?=$this->mastermodel->convertdatenormalformat($viewinfo->client_timesheet_received_date);?>" name="client_timesheet_received_date" id="client_timesheet_received_date" /> <img src="<?=base_url()?>assets/images/icons/calendar.png" alt="Click to popup the clendar!" /> </div> </td> </tr> <tr> <td>Timesheet Reviewed?</td> <td> <?php if($viewinfo->client_timesheet_reviewed==1) $checked=TRUE; else $checked=FALSE; $data = array( 'name' => 'client_timesheet_reviewed', 'id' => 'client_timesheet_reviewed', 'checked' => $checked ); echo form_checkbox($data).form_error($data); ?> </td> </tr> <tr> <td>Timesheet Submission Date</td> <td> <div id="multi"> <input class="medium" value="<?=$this->mastermodel->convertdatenormalformat($viewinfo->client_timesheet_submission_date);?>" type="text" name="client_timesheet_submission_date" id="client_timesheet_submission_date" /> <img src="<?=base_url()?>assets/images/icons/calendar.png" alt="Click to popup the clendar!" /> </div> </td> </tr> <tr> <td>Remarks</td> <td> <?php $data = array( 'name' => 'client_timesheet_remarks', 'id' => 'client_timesheet_remarks', 'rows' => '10', 'cols' => '5', 'style' => 'width:80%', 'value' => $viewinfo->client_timesheet_remarks ); echo form_textarea($data).form_error($data); ?> </td> </tr> </table> <table class="sortnew"> <tr> <th colspan="2">Timesheet for Period</th> </tr> <tr> <td>Start Date</td> <td> <div id="multi"> <input type="text" value="<?=$this->mastermodel->convertdatenormalformat($viewinfo->client_timesheet_start_date);?>" class="required medium" name="client_timesheet_start_date" id="client_timesheet_start_date" /> <img src="<?=base_url()?>assets/images/icons/calendar.png" alt="Click to popup the clendar!" /> </div> </td> </tr> <tr> <td>End Date</td> <td> <div id="multi"> <input type="text" value="<?=$this->mastermodel->convertdatenormalformat($viewinfo->client_timesheet_end_date);?>" class="required medium" name="client_timesheet_end_date" id="client_timesheet_end_date" onchange="checkdates();"/> <img src="<?=base_url()?>assets/images/icons/calendar.png" alt="Click to popup the clendar!" /> </div> </td> </tr> </table> <table class="sortnew"> <tr> <th colspan="2">Client Timesheet</th> </tr> <tr> <td>Upload Timesheet</td> <td> <?php $data1 = array( 'name' => 'client_timesheet_document', 'id' => 'client_timesheet_document' ); echo form_upload($data1).form_error($data1); ?> <?php if($viewinfo->client_timesheet_document != "") { ?> <a href="<?=base_url()?>assets/uploads/<?=$viewinfo->client_timesheet_document;?>">Download</a> <?php } ?> </td> </tr> </table> </li> <li> <input type="hidden" name="tab_name" value="payroll_client_timesheet"/> <input type="hidden" name="resfunction" value="search_client_timesheet"/> </li> <li> <label for="submit"> </label> <button type="submit" class="clickimage" onclick="addformdata('validateform')">Save</button> </li> </ul> <?php echo form_close();?> </fieldset>