?
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/manage_attendance.php |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');?> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <?php $this->load->view('header'); ?> <script type="text/javascript"> $(document).ready(function() { viewdata('administration','viewinadministrationsearch','search_attendance','view_attendance','1'); }); function showhide(status) { var divvalue = status.value; if(divvalue == "") $('#Employee_div').hide(); else $('#Employee_div').show(); } function show_employee_box_camp_attendance() { var camp_id = $('#camp_name').val(); var attendance_date = $('#attendance_date').val(); if(camp_id == "") { alert("Please select Camp First"); } else { $("#emp_box").empty().html('<CENTER><img src="<?=base_url()?>assets/images/loading.gif" class="loading"/></CENTER>'); $("#emp_box").load("<?=site_url()?>/administration/load_employees_camp_attendance/employees_attendace_box/"+camp_id+"/"+attendance_date); } } function show_employee_box_camp_attendance_edit() { var camp_id = $('#camp_name').val(); var attendance_date = $('#attendance_date').val(); if(camp_id == "") { alert("Please select Camp First"); } else if(attendance_date == "") { alert("Please enter Attendance date"); } else { $("#emp_box").empty().html('<CENTER><img src="<?=base_url()?>assets/images/loading.gif" class="loading"/></CENTER>'); $("#emp_box").load("<?=site_url()?>/administration/load_employees_camp_attendance_edit/employees_attendace_box_edit/"+camp_id+"/"+attendance_date); } } count=0; function show_employee_box_emp_attendance() { var camp_id = $('#camp_name').val(); var employee_name = $('#employee_name').val(); var attendance_date = $('#attendance_date').val(); $("tr#num_rows_tr").remove(); var currentrow=$("#num_rows").val(); if(employee_name == "") { alert("Please select Employee First"); } else { employee_name = encodeURIComponent(employee_name); $.ajax({ type: "POST", url: "<?= site_url('administration/load_employees_emp_attendance/employees_attendace_box_emp/') ?>/"+employee_name+"/"+camp_id+"/"+currentrow+"/"+attendance_date, success: function(msg) { if(msg!=0) { if(count==0) $('#emp_table').append(msg) else $('#prepend_'+count).before(msg) count=parseInt(count)+parseInt($("#num_rows_add").val()); $("#num_rows").val(count); } else { alert("No employees") } } }); } $("#employee_name").val(''); } function add_this_employee_table(status,emp_position) { var employee_id = $("#employee_id_"+emp_position).val(); var attendance_date = $("#attendance_date").val(); if(status.checked == true) { $.ajax({ type: "POST", url: "<?= site_url('administration/check_employee_attendance/') ?>/"+employee_id+"/"+attendance_date, success: function(msg) { if(msg!=0) { $("#temp_box").load("<?=site_url()?>/administration/temp_employee/insert_temp_employee/"+employee_id); } else { alert("Employee already marked for the day"); document.getElementById('select_employee_'+emp_position).checked = false; } } }); } if(status.checked == false) { $("#temp_box").load("<?=site_url()?>/administration/temp_employee/delete_temp_employee/"+employee_id); } } </script> </head> <body> <?php $this->load->view('logopanel'); ?> <div id="main"> <?php $this->load->view('menu'); ?> <div id="middle"> <?php $this->load->view('leftbar'); ?> <div id="center-column"> <?php $this->load->view('topbar'); ?> <div class="table"> <p> </p> <div id="entrydiv"> </div> </div> </div> </div> <?php $this->load->view('footer'); ?> </div> </body> </html>