?
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/view_update_attendance.php |
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); $this->load->view('documentreadyfunctions'); $employee_list=$this->mastermodel->getemployeesforattendace(); ?> <script language="javascript" type="text/javascript"> jQuery(document).ready(function() { suggestemployeeattendance(); }); function show_attendance_info() { var employee_name = $('#employee').val(); var employee_id = $('#employee_id').val(); var from_date = $('#from_date').val(); var to_date = $('#to_date').val(); var flag = 0; var iChars = "-"; for (var i = 0; i < employee_name.length; i++) { if (iChars.indexOf(employee_name.charAt(i)) != -1) { flag = 1; } } if(employee_name == "" || flag == 0) { alert("Please select Employee First"); } else if(to_date == "" || from_date == "") { alert("Please select from and to dates"); } else { $("#attendance_info").empty().html('<CENTER><img src="<?=base_url()?>assets/images/loading.gif" class="loading"/></CENTER>'); $("#attendance_info").load("<?=site_url()?>/hr/get_employee_attendance_info/"+employee_id+"/"+from_date+"/"+to_date); } } </script> <div class="select-bar"> <label><img src="<?=base_url()?>assets/images/backbutton.png" title="Back" class="clickimage" onclick="viewdata('hr','viewinhrsearch','search_attendance_marking','view_attendance_marking','<?=$_SESSION['pagenum'];?>')" alt="Back" align = "center" width="25" height="25" /> </label> <span class="heading">Update Attendance</span> </div> <fieldset> <?php $attributes=array('id'=>'validateform','class'=>'customForm'); echo form_open('hr/addinhr/insert_update_attendance/view_update_attendance/1',$attributes); ?> <ul> <li> <label for="data">From Date</label> <?php $data = array( 'name' => 'from_date', 'id' => 'from_date', 'class' =>'required calfocus', 'value' => date('d-m-Y') ); echo form_input($data).form_error($data); ?> </li> <li> <label for="data">To Date</label> <?php $data = array( 'name' => 'to_date', 'id' => 'to_date', 'class' =>'required calfocus', 'value' => date('d-m-Y') ); echo form_input($data).form_error($data); ?> </li> <li> <label for="data">Employee</label> <input type="text" name="employee" id="employee" class="required" /> <input type="hidden" name="employee_id" id="employee_id" class="required" /> </li> <li> <input type="hidden" name="tab_name" value="timesheet_attendance"/> <label for="submit"> </label> <input type="button" onclick="show_attendance_info()" style="margin-left: 5px; width: 130px;" value="Load"/> </li> <div id="attendance_info"> </div> </ul> <?php echo form_close();?> </fieldset>