?
Current Path : /home1/savoy/public_html/savoyglobal.net/drafthr/system/application/views/Report/ |
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/drafthr/system/application/views/Report/hr.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 loadhr(); }); function loadhr() { $("#productiondiv").empty().html('<CENTER><img src="<?=base_url()?>/assets/images/loading.gif" class="loading"/></CENTER>'); $("#productiondiv").load("<?= site_url('report/ajaxload/viewhr/reports_hr') ?>"); } function singlehr(rwd,target) { $("#ck_permission").load("<?= site_url('master/check_permissions/') ?>"+"/"+rwd,function(data) { if(data==1) { $("#productiondiv").empty().html('<CENTER><img src="<?=base_url()?>/assets/images/loading.gif" class="loading"/></CENTER>'); $("#productiondiv").load("<?= site_url('report/single/hr/') ?>"+"/" +target); } }); } function generatehrsalaryemp() { if(validateform('employee')) { search = $('#employee_id').val(); fromdate= $('#fromdate').val(); todate = $('#todate').val(); $("#productiondiv").empty().html('<CENTER><img src="<?=base_url()?>/assets/images/loading.gif" class="loading"/></CENTER>'); var target = 'hrsalaryrepemp'; if (search == "") search = 'search'; if(fromdate == '') fromdate = 'fromdate'; if(todate=='') todate = 'todate'; $("#productiondiv").load("<?= site_url('report/genrephrsalaryemp/') ?>"+"/"+target+"/"+fromdate+"/"+todate+"/"+search,Hide_Load()); } else { return false; } } function generatehrsalarybranch() { if(validateform('branchid') ) { search = $('#branchid').val(); fromdate= $('#fromdate').val(); todate = $('#todate').val(); $("#productiondiv").empty().html('<CENTER><img src="<?=base_url()?>/assets/images/loading.gif" class="loading"/></CENTER>'); var target = 'hrsalaryrepbranch'; if (search == "") search = 'search'; if(fromdate == '') fromdate = 'fromdate'; if(todate=='') todate = 'todate'; $("#productiondiv").load("<?= site_url('report/genrephrsalarybranch/') ?>"+"/"+target+"/"+fromdate+"/"+todate+"/"+search,Hide_Load()); } else { return false; } } function generatehrleave() { if(validateform('employee') ) { search = $('#employee_id').val(); fromdate= $('#fromdate').val(); todate = $('#todate').val(); $("#productiondiv").empty().html('<CENTER><img src="<?=base_url()?>/assets/images/loading.gif" class="loading"/></CENTER>'); var target = 'hrleaverepemp'; if (search == "") search = 'search'; if(fromdate == '') fromdate = 'fromdate'; if(todate=='') todate = 'todate'; $("#productiondiv").load("<?= site_url('report/genrephrleave/assignleave/') ?>"+"/"+target+"/"+fromdate+"/"+todate+"/"+search,Hide_Load()); } else { return false; } } function generatehrleavebranch() { if(validateform('branchid')) { search = $('#branchid').val(); fromdate= $('#fromdate').val(); todate = $('#todate').val(); $("#productiondiv").empty().html('<CENTER><img src="<?=base_url()?>/assets/images/loading.gif" class="loading"/></CENTER>'); var target = 'hrleaverepbranch'; if (search == "") search = 'search'; if(fromdate == '') fromdate = 'fromdate'; if(todate=='') todate = 'todate'; $("#productiondiv").load("<?= site_url('report/genrephrleavebranch/assignleave/') ?>"+"/"+target+"/"+fromdate+"/"+todate+"/"+search,Hide_Load()); } else { return false; } } function showempdiv() { $("#custlist").empty().html('<CENTER><img src="<?=base_url()?>/assets/images/loading.gif" class="loading"/></CENTER>'); $("#staffdiv").load("<?= site_url('report/ajaxload/searchemployee/staffpersonaldetails/') ?>"); $("#staffdi").colorbox({width:"75%",height:"70%", inline:true, href:"#staffdiv"}); } function searchemployee(serctext,seloption,pagenum) { $("#stafflist").empty().html('<CENTER><img src="<?=base_url()?>/assets/images/loading.gif" class="loading"/></CENTER>'); $('#stafflist').load("<?php echo site_url('report/listSearchemployee/'); ?>/"+ pagenum+ "/" +seloption + "/" + serctext); } function usestaff(staffname,id,employeeid,designation,department) { $("input#staffname").val(staffname); $("input#staffid").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 generatecommissionemp() { if(validateform('employee')) { search = $('#employee_id').val(); fromdate= $('#fromdate').val(); todate = $('#todate').val(); $("#productiondiv").empty().html('<CENTER><img src="<?=base_url()?>/assets/images/loading.gif" class="loading"/></CENTER>'); var target = 'hrcommissionrepemp'; if (search == "") search = 'search'; if(fromdate == '') fromdate = 'fromdate'; if(todate=='') todate = 'todate'; $("#productiondiv").load("<?= site_url('report/genrepcommissionemp/') ?>"+"/"+target+"/"+fromdate+"/"+todate+"/"+search,Hide_Load()); } else { return false; } } function generatehrcommissionbranch() { if(validateform('branchid')) { search = $('#branchid').val(); fromdate= $('#fromdate').val(); todate = $('#todate').val(); $("#productiondiv").empty().html('<CENTER><img src="<?=base_url()?>/assets/images/loading.gif" class="loading"/></CENTER>'); var target = 'hrcommissionrepbranch'; if (search == "") search = 'search'; if(fromdate == '') fromdate = 'fromdate'; if(todate=='') todate = 'todate'; $("#productiondiv").load("<?= site_url('report/genrephrcommissionbranch/') ?>"+"/"+target+"/"+fromdate+"/"+todate+"/"+search,Hide_Load()); } else { return false; } } </script> <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" ></div> <p> </p> <div style="overflow: auto;" id="productiondiv"> </div> <div style='display:none'> <div id='customerdiv' style='padding:10px; background:#fff;'> </div> </div> <div style='display:none'> <div id='staffdiv' style='padding:10px; background:#fff;'> </div> </div> <div id="loading" align="center"></div> </div> </div> </div> <?php $this->load->view('footer'); ?> </div> </html>