?
Current Path : /home1/savoy/public_html/savoyglobal.net/sgms/draft/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/public_html/savoyglobal.net/sgms/draft/application/views/HR/add_work_shift.php |
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); $this->load->view('documentreadyfunctions'); $employee_list=$this->mastermodel->getemployeesforshift(); ?> <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">Creating new shift</span> </div> <fieldset> <?php $attributes=array('id'=>'validateform','class'=>'customForm'); echo form_open('hr/addinhr/insert_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' ); 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' ); echo form_input($data).form_error($data); ?> </li> <li> <label for="data">Starting Time</label> <?php echo createHours('start_hour','09'); ?> <?php echo createMinutes('start_minute'); ?> </li> <li> <label for="data">Ending Time</label> <?php echo createHours('end_hour','17'); ?> <?php echo createMinutes('end_minute'); ?> <input type="hidden" name="tab_name" value="timesheet_work_shift"/> <input type="hidden" name="resfunction" value="search_work_shift"/> </li> <li> <label for="data">Break Starting Time</label> <?php echo createHours('break_start_hour','13'); ?> <?php echo createMinutes('break_start_minute'); ?> </li> <li> <label for="data">Break Ending Time</label> <?php echo createHours('break_end_hour','14'); ?> <?php echo createMinutes('break_end_minute'); ?> </li> <li> <label for="data">Half day ending Time</label> <?php echo createHours('end_hour_half','13'); ?> <?php echo createMinutes('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> </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' ); 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>