?
Current Path : /home1/savoy/www/savoyglobal.net/sgms/application/views/Administration/ |
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/Administration/employees_attendace_box.php |
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); $this->load->view('documentreadyfunctions'); ?> <script language="javascript" type="text/javascript"> jQuery(document).ready(function() { suggestValues(); }); function suggestValues() { $("#employee_name").autocomplete("<?=site_url()?>/administration/all_employees_camp/<?=$camp_id;?>/<?=$attendance_date;?>", { width: 300, selectFirst: false }); } function checkallemp(status) { if(status.checked == true) { var num_rows = $("#num_rows").val(); for(i=1; i<= num_rows; i++) { document.getElementById('select_employee_'+i).checked = true; } } if(status.checked == false) { var num_rows = $("#num_rows").val(); for(i=1; i<= num_rows; i++) { document.getElementById('select_employee_'+i).checked = false; } } } </script> <li> <label for="data">Select Employee</label> <input type="text" name="employee_name" id="employee_name" > <input type="button" value="Load Employees" onclick="show_employee_box_emp_attendance()" style="margin-left: 5px; width: 120px;"/> </li> <li> <table class="sort" id="emp_table"> <caption>Available Employees</caption> <tr> <th align="center"> Mark Absent <br/> <input style="width:15px;" type="checkbox" id="check_all" name="check_all" checked onclick="checkallemp(this)"/> </th> <th align="center">Employee Name</th> <th align="center">Employee No</th> <th align="center">Trade</th> <th align="center">Site Name</th> <th align="center">Reason</th> </tr> </table> <input type="hidden" id="num_rows" value="0"/> <li> <input type="hidden" name="tab_name" value=" employee_absent"/> <input type="hidden" name="resfunction" value="search_attendance"/> </li> <li> <label for="submit"> </label> <button type="submit" class="clickimage" onclick="addformdata('validateform')">Save</button> </li> <div style="display:none;"> <div id="temp_box"> </div> </div>