?
Current Path : /home1/savoy/www/savoyglobal.net/drafthr/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/www/savoyglobal.net/drafthr/system/application/views/HR/assignleave.php |
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');?> <?php $this->load->view('header'); ?> <script type="text/javascript"> $(document).ready(function(){ //Display Loading Image loadassignleave(1,'',''); }); function loadassignleave(pagenum,searchoption,searchtext) { $("#assignleavediv").empty().html('<CENTER><img src="<?=base_url()?>/assets/images/loading.gif" class="loading"/></CENTER>'); $("#assignleavediv").load("<?= site_url('hr/ajaxloadnew/viewassignleave/assignleave') ?>/"+pagenum+'/'+searchoption+'/'+searchtext); } function addassignleave(rwd) { $("#ck_permission").load("<?= site_url('master/check_permissions/') ?>"+"/"+rwd,function(data) { if(data==1) { $("#assignleavediv").empty().html('<CENTER><img src="<?=base_url()?>/assets/images/loading.gif" class="loading"/></CENTER>'); $("#assignleavediv").load("<?= site_url('hr/ajaxload/addassignleave/assignleave') ?>"); } }); } function editassignleave(rwd,id) { $("#ck_permission").load("<?= site_url('master/check_permissions/') ?>"+"/"+rwd,function(data) { if(data==1) { $("#assignleavediv").empty().html('<CENTER><img src="<?=base_url()?>/assets/images/loading.gif" class="loading"/></CENTER>'); $("#assignleavediv").load("<?= site_url('hr/edit/editassignleave/assignleave/id/') ?>"+"/" +id); } }); } function editassignleave_permit(rwd,id) { $("#ck_permission").load("<?= site_url('master/check_permissions/') ?>"+"/"+rwd,function(data) { if(data==1) { $("#assignleavediv").empty().html('<CENTER><img src="<?=base_url()?>/assets/images/loading.gif" class="loading"/></CENTER>'); $("#assignleavediv").load("<?= site_url('hr/edit/editassignleave_permit/assignleave/id/') ?>"+"/" +id); } }); } function quickeditassignleave_permit(id) { $("#staffsdiv").empty().html('<CENTER><img src="<?=base_url()?>/assets/images/loading.gif" class="loading"/></CENTER>'); $("#staffsdiv").load("<?= site_url('hr/quickeditassignleave_permit/') ?>/"+id); $(".statusicon").colorbox({width:"35%",height:"55%", inline:true, href:"#staffsdiv"}); } function updateleavestatus() { var leavestatus=document.getElementById('leavestatus').value ; var leaveid=document.getElementById('leaveid').value ; $.ajax({ type: 'POST', url: '<?php echo site_url('hr/updateleavestatus/'); ?>', data: "id="+leaveid+"&leavestatus="+leavestatus, success: function(data) { alert(data); $.fn.colorbox.close(); loadassignleave(1,'',''); } }); } 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#staffid").val(id); $("#leave_div").load("<?= site_url('hr/getleavedata/') ?>"+"/" +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 singleassignleave(rwd,id) { $("#ck_permission").load("<?= site_url('master/check_permissions/') ?>"+"/"+rwd,function(data) { if(data==1) { $("#assignleavediv").empty().html('<CENTER><img src="<?=base_url()?>/assets/images/loading.gif" class="loading"/></CENTER>'); $("#assignleavediv").load("<?= site_url('hr/single/singleassignleave/assignleave/id/') ?>"+"/" +id); } }); } function searchassignleave(search,selectsearch) { $("#assignleavediv").empty().html('<CENTER><img src="<?=base_url()?>/assets/images/loading.gif" class="loading"/></CENTER>'); pagenum = 1; search = search.replace(/ /g,"~"); search = search.replace(/\//g,"_"); $("#assignleavediv").load("<?= site_url('hr/ajaxloadnew/viewassignleave/assignleave/') ?>"+"/"+pagenum+"/"+selectsearch+"/"+search+"/"); } function paginationassignleavesearch(pageNum,search,selectsearch) { $("#assignleavediv").empty().html('<CENTER><img src="<?=base_url()?>/assets/images/loading.gif" class="loading"/></CENTER>'); $('#assignleavediv').load("<?php echo site_url('hr/ajaxloadnew/viewassignleave/assignleave/'); ?>"+"/" +pageNum+"/"+selectsearch+"/"+search+"/"); } </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="assignleavediv"> </div> <div style='display:none'> <div id='staffsdiv' style='padding:10px; background:#fff;'> </div> </div> <div id="loading" align="center"></div> </div> </div> </div> <?php $this->load->view('footer'); ?> </div> </body> </html>