?
Current Path : /home1/savoy/www/savoyglobal.net/sgms/application/views/HR/ |
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/www/savoyglobal.net/sgms/application/views/HR/edit_work_shift.php |
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); $this->load->view('documentreadyfunctions'); $employee_list=$this->mastermodel->getemployeesforshift($viewinfo->work_shift_id); $employee_list_shift=$this->mastermodel->get_data_joined('timesheet_work_shift_employees','employee','employee_id','employee_id',$viewinfo->work_shift_id,'work_shift_id','employee.employee_id'); ?> <div class="select-bar"> <label><img src="<?=base_url()?>assets/images/backbutton.png" title="Back" class="clickimage" onclick="viewdata('hr','viewinhrsearch','search_work_shift','view_work_shift','<?=$_SESSION['pagenum'];?>')" alt="Back" align = "center" width="25" height="25" /> </label> <span class="heading">Update shift</span> </div> <fieldset> <?php $attributes=array('id'=>'validateform','class'=>'customForm'); echo form_open('hr/addinhr/update_work_shift/view_work_shift/1',$attributes); ?> <ul> <li> <label for="data">Shift Name</label> <?php $data = array( 'name' => 'work_shift_name', 'id' => 'work_shift_name', 'class' =>'required', 'value' => $viewinfo->work_shift_name ); echo form_input($data).form_error($data); ?> </li> <li> <label for="data">Shift W.E.F Date</label> <?php $data = array( 'name' => 'work_shift_wef_date', 'id' => 'work_shift_wef_date', 'class' =>'required calfocus', 'value' => $this->mastermodel->convertdatenormalformat($viewinfo->work_shift_wef_date) ); echo form_input($data).form_error($data); ?> </li> <li> <?php $start_hour = substr($viewinfo->work_shift_starting_time, 0,2); $start_minute = substr($viewinfo->work_shift_starting_time, 3,2); ?> <label for="data">Starting Time</label> <?php echo createHours('start_hour',$start_hour); ?> <?php echo createMinutes('start_minute',$start_minute); ?> </li> <li> <?php $end_hour = substr($viewinfo->work_shift_ending_time, 0,2); $end_minute = substr($viewinfo->work_shift_ending_time, 3,2); ?> <label for="data">Ending Time</label> <?php echo createHours('end_hour',$end_hour); ?> <?php echo createMinutes('end_minute',$end_minute); ?> <input type="hidden" name="tab_name" value="timesheet_work_shift"/> <input type="hidden" name="resfunction" value="search_work_shift"/> <input type="hidden" name="work_shift_id" value="<?=$viewinfo->work_shift_id;?>"/> </li> <?php $break_start_hour = substr($viewinfo->work_shift_break_starting_time, 0,2); $break_start_minute = substr($viewinfo->work_shift_break_starting_time, 3,2); $break_end_hour = substr($viewinfo->work_shift_break_ending_time, 0,2); $break_end_minute = substr($viewinfo->work_shift_break_ending_time, 3,2); ?> <li> <label for="data">Break Starting Time</label> <?php echo createHours('break_start_hour',$break_start_hour); ?> <?php echo createMinutes('break_start_minute',$break_start_minute); ?> </li> <li> <label for="data">Break Ending Time</label> <?php echo createHours('break_end_hour',$break_end_hour); ?> <?php echo createMinutes('break_end_minute',$break_end_minute); ?> </li> <li> <?php $end_hour_half = substr($viewinfo->work_shift_ending_time_half, 0,2); $end_minute_half = substr($viewinfo->work_shift_ending_time_half, 3,2); ?> <label for="data">Half day ending Time</label> <?php echo createHours('end_hour_half',$end_hour_half); ?> <?php echo createMinutes('end_minute_half',$end_minute_half); ?> </li> <li> <label for="data">Select Employees</label> <table border="0" cellpadding="3" cellspacing="0"> <tr> <td> <select name="employees_1" id="employees_1" size="9" MULTIPLE> <?php foreach($employee_list as $list) { echo "<option value='".$list['employee_id']."'>".$list['employee_name']."</option>"; } ?> </select> </td> <td> </td> <td align="center" valign="middle"> <input type="Button" value="Add >>" style="width:70px" onClick="SelectMoveRows(document.getElementById('employees_1'),document.getElementById('employees_2'))"><br> <br><br> <input type="Button" value="<< Remove" style="width:70px" onClick="SelectMoveRows(document.getElementById('employees_2'),document.getElementById('employees_1'))"> </td> <td> </td> <td> <select name="employees_2[]" id="employees_2" size="9" MULTIPLE> <?php foreach($employee_list_shift as $list) { echo "<option value='".$list['employee_id']."' selected>".$list['employee_name']."</option>"; } ?> </select> </td> </tr> </table> </li> <li> <label for="data">Grace Time(minutes)</label> <?php $data = array( 'name' => 'work_shift_grace_time', 'id' => 'work_shift_grace_time', 'class' => 'required number', 'value' => $viewinfo->work_shift_grace_time ); echo form_input($data).form_error($data); ?> </li> <li> <label for="submit"> </label> <button type="submit" id="submit" class="clickimage" onclick="addformdata('validateform')">Save</button> </li> </ul> <?php echo form_close();?> </fieldset>