?
Current Path : /home1/savoy/public_html/savoyglobal.net/sibsmoved/system/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/sibsmoved/system/application/views/HR/staff.php |
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');?> <?php $this->load->view('header'); $this->load->view('commonfunctions'); ?> <script type="text/javascript"> $(document).ready(function(){ //Display Loading Image loadstaff(1,'',''); }); function loadstaff(pagenum,searchoption,searchtext) { $("#staffdiv").empty().html('<CENTER><img src="<?=base_url()?>/assets/images/loading.gif" class="loading"/></CENTER>'); $("#staffdiv").load("<?= site_url('hr/ajaxloadnew/viewstaff/staffpersonaldetails') ?>/"+pagenum+'/'+searchoption+'/'+searchtext); } function addstaff(rwd) { $("#ck_permission").load("<?= site_url('master/check_permissions/') ?>"+"/"+rwd,function(data) { if(data==1) { $("#staffdiv").empty().html('<CENTER><img src="<?=base_url()?>/assets/images/loading.gif" class="loading"/></CENTER>'); $("#staffdiv").load("<?= site_url('hr/ajaxload/addstaff/staffpersonaldetails') ?>"); } }); } function editstaff(rwd,id) { $("#ck_permission").load("<?= site_url('master/check_permissions/') ?>"+"/"+rwd,function(data) { if(data==1) { $("#staffdiv").empty().html('<CENTER><img src="<?=base_url()?>/assets/images/loading.gif" class="loading"/></CENTER>'); $("#staffdiv").load("<?= site_url('hr/edit/editstaff/staffpersonaldetails/id/') ?>"+"/" +id); } }); } function showstaffdiv() { $("#staffsdiv").empty().html('<CENTER><img src="<?=base_url()?>/assets/images/loading.gif" class="loading"/></CENTER>'); $("#staffsdiv").load("<?= site_url('sales/ajaxload/searchstaff/staffpersonaldetails/') ?>"); $("#inliexample1").colorbox({width:"75%",height:"70%", inline:true, href:"#staffsdiv"}); } function searchStaff(serctext,seloption,pagenum) { $('#stafflist').load("<?php echo site_url('sales/listSearchstaff/'); ?>/"+pagenum+ "/"+ seloption + "/" + serctext); } function usestaff(staffname,id,employeeid,designation,department) { $("input#staffname").val(staffname); $("input#reportingtostaffid").val(id); $.fn.colorbox.close(); document.getElementById('stfinfodet').innerHTML="<fieldset><li><label>Employee No</label>"+employeeid+"</li>\n\ <li><label>Designation</label>"+designation+"</li><li><label>Department</label>"+department+"</li></fieldset>"; } function singlestaff(rwd,id) { $("#ck_permission").load("<?= site_url('master/check_permissions/') ?>"+"/"+rwd,function(data) { if(data==1) { // $("#claimformsdiv").empty().html('<CENTER><img src="<?=base_url()?>/assets/images/loading.gif" class="loading"/></CENTER>'); // $("#claimformsdiv").load("<?= site_url('claims/ajaxload/addclaimforms/claimforms') ?>"); } }); $("#staffdiv").empty().html('<CENTER><img src="<?=base_url()?>/assets/images/loading.gif" class="loading"/></CENTER>'); $("#staffdiv").load("<?= site_url('hr/single/singlestaff/staffpersonaldetails/id/') ?>"+"/" +id); } function searchstaff(search,selectsearch) { $("#staffdiv").empty().html('<CENTER><img src="<?=base_url()?>/assets/images/loading.gif" class="loading"/></CENTER>'); pagenum = 1; search = search.replace(/ /g,"~"); search = search.replace(/\//g,"_"); $("#staffdiv").load("<?= site_url('hr/ajaxloadnew/viewstaff/staffpersonaldetails/') ?>"+"/"+pagenum+"/"+selectsearch+"/"+search+"/"); } function paginationstaffsearch(pageNum,search,selectsearch) { $("#staffdiv").empty().html('<CENTER><img src="<?=base_url()?>/assets/images/loading.gif" class="loading"/></CENTER>'); $('#staffdiv').load("<?php echo site_url('hr/ajaxloadnew/viewstaff/staffpersonaldetails/'); ?>"+"/" +pageNum+"/"+search+"/"+selectsearch+"/"); } function singstafsal(id) { $("#staffdiv").empty().html('<CENTER><img src="<?=base_url()?>/assets/images/loading.gif" class="loading"/></CENTER>'); $("#staffdiv").load("<?= site_url('hr/single/singlestaffsalaryhr/staffsalary/id/') ?>"+"/" +id); } function editstafsal(id) { $("#staffdiv").empty().html('<CENTER><img src="<?=base_url()?>/assets/images/loading.gif" class="loading"/></CENTER>'); $("#staffdiv").load("<?= site_url('hr/edit/editstaffsalaryhr/staffsalary/id/') ?>"+"/" +id); } function editstafsaledit(id) { $("#staffdiv").empty().html('<CENTER><img src="<?=base_url()?>/assets/images/loading.gif" class="loading"/></CENTER>'); $("#staffdiv").load("<?= site_url('hr/edit/editstaffsalaryhr/staffsalary/staffid/') ?>"+"/" +id); } function editcomstaff(id) { $("#staffdiv").empty().html('<CENTER><img src="<?=base_url()?>/assets/images/loading.gif" class="loading"/></CENTER>'); $("#staffdiv").load("<?= site_url('hr/editcomstaff/editcomstaff/staffcommissionsettings/staffid/') ?>"+"/" +id); } function editstfleaveallocation(id) { $("#staffdiv").empty().html('<CENTER><img src="<?=base_url()?>/assets/images/loading.gif" class="loading"/></CENTER>'); $("#staffdiv").load("<?= site_url('hr/edit/editstfleaveallocation/leaveallocation/id/') ?>"+"/" +id); } function comstaff(staffid) { $("#staffdiv").empty().html('<CENTER><img src="<?=base_url()?>/assets/images/loading.gif" class="loading"/></CENTER>'); $("#staffdiv").load("<?= site_url('hr/singlecomstaff/singlecomstaff/staffcommissionsettings/staffid') ?>"+"/" + staffid); } function leavestaff(id) { $("#staffdiv").empty().html('<CENTER><img src="<?=base_url()?>/assets/images/loading.gif" class="loading"/></CENTER>'); $("#staffdiv").load("<?= site_url('hr/leavestaff/sinstaffleave/leaveallocation/staffid/') ?>"+"/" +id); } function doallthetwo() { if(validateform('name','address','designation','department')) { converttodate('dob','joiningdate','labexp','expiryofvisa'); } else { return false; } } function checkexistence(table,field,value) { $("#userchecdiv").load("<?= site_url('settings/checkexistence/') ?>/" +table+'/'+field+'/'+value,function(data){ if(data==1) { $("input#device_no").val(""); $("#device_no").css('border','solid 1px red'); $("#device_no").focus(); $("#userchecdiv").fadeIn(900,0); $("#userchecdiv").html("<div style=\"border:1px solid #BE7832; width:170px;height:20px;\" ><font color=\"#AA6B2C\" >Duplicate Entry Recorded</font></div>"); $("#userchecdiv").fadeOut(2000,0); } }); } </script> <body > <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"> <div id="successdiv" align="center"></div> <p> </p> <div id="staffdiv"> </div> <div style='display:none'> <div id='staffsdiv' style='padding:10px; background:#fff;'> </div> <div id='inline_example1' style='padding:10px; background:#fff;'> </div> </div> <div id="loading" align="center"></div> </div> </div> </div> <?php $this->load->view('footer'); ?> </div> <div style="display:none"> <div id="loademp_bal" ></div></div> </body> </html>