?
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/claims.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 loadclaims(); }); function loadclaims() { $("#claimsdiv").empty().html('<CENTER><img src="<?=base_url()?>/assets/images/loading.gif" class="loading"/></CENTER>'); $("#claimsdiv").load("<?= site_url('report/ajaxload/viewclaims/reports_claims') ?>"); } function singleclaims(rwd,target) { $("#ck_permission").load("<?= site_url('master/check_permissions/') ?>"+"/"+rwd,function(data) { if(data==1) { $("#claimsdiv").empty().html('<CENTER><img src="<?=base_url()?>/assets/images/loading.gif" class="loading"/></CENTER>'); $("#claimsdiv").load("<?= site_url('report/single/claim/') ?>"+"/" +target); } }); } function showcustomerdiv() { $("#customerdiv").empty().html('<CENTER><img src="<?=base_url()?>/assets/images/loading.gif" class="loading"/></CENTER>'); $("#customerdiv").load("<?= site_url('sales/ajaxload/searchcustomer/customers/') ?>"); $("#customdi").colorbox({width:"75%",height:"70%", inline:true, href:"#customerdiv"}); } function searchCust(serctext,seloption,pagenum) { $("#custlist").empty().html('<CENTER><img src="<?=base_url()?>/assets/images/loading.gif" class="loading"/></CENTER>'); $('#custlist').load("<?php echo site_url('sales/listSearchcustomer/'); ?>/"+ seloption + "/"+ pagenum + "/" + serctext ); } function usecust(insured,id) { $("input#customername").val(insured); $("input#customerid").val(id); $.fn.colorbox.close(); } function generateclientwise() { if(validateform('customer') && checkdate('fromdate','todate')) { search = $('#customer_id').val(); selectsearch = $('#selectsearch').val(); fromdate= $('#fromdate').val(); todate = $('#todate').val(); cover_id = $('#cover_id').val(); $("#claimsdiv").empty().html('<CENTER><img src="<?=base_url()?>/assets/images/loading.gif" class="loading"/></CENTER>'); var pagenum = 1; var target = 'claimclientwiserep'; if (search == "") search = 'search'; if(selectsearch == '') selectsearch = 'selectsearch'; if(fromdate == '') fromdate = 'fromdate'; if(todate=='') todate = 'todate'; if(cover_id== '0' || cover_id =='') cover_id = 'cover_id'; $("#claimsdiv").load("<?= site_url('report/genrepclaim/claim/') ?>"+"/"+target+"/"+pagenum+"/"+selectsearch+"/"+search+"/"+fromdate+"/"+todate+"/"+"/"+cover_id+"/",Hide_Load()); } else { return false; } } function generatecoverwise() { if(validateform('cover_id') && checkdate('fromdate','todate')) { selectsearch = $('#selectsearch').val(); fromdate= $('#fromdate').val(); todate = $('#todate').val(); cover_id = $('#cover_id').val(); $("#claimsdiv").empty().html('<CENTER><img src="<?=base_url()?>/assets/images/loading.gif" class="loading"/></CENTER>'); var pagenum = 1; var target = 'claimcoverwiserep'; if(selectsearch == '') selectsearch = 'selectsearch'; if(fromdate == '') fromdate = 'fromdate'; if(todate=='') todate = 'todate'; if(cover_id== '0' || cover_id =='') cover_id = 'cover_id'; $("#claimsdiv").load("<?= site_url('report/genrepclaimcov/claim/') ?>"+"/"+target+"/"+pagenum+"/"+selectsearch+"/"+fromdate+"/"+todate+"/"+"/"+cover_id+"/",Hide_Load()); } else { return false; } } function generatebranchwise() { if(validateform('branch') && checkdate('fromdate','todate')) { branch = $('#branch').val(); selectsearch = $('#selectsearch').val(); fromdate= $('#fromdate').val(); todate = $('#todate').val(); cover_id = $('#cover_id').val(); $("#claimsdiv").empty().html('<CENTER><img src="<?=base_url()?>/assets/images/loading.gif" class="loading"/></CENTER>'); var target = 'claimbranchwiserep'; if(selectsearch == '') selectsearch = 'selectsearch'; if(fromdate == '') fromdate = 'fromdate'; if(todate=='') todate = 'todate'; if(branch =='') branch = 'branch'; if(cover_id =='' || cover_id=='0') cover_id = 'cover_id'; $("#claimsdiv").load("<?= site_url('report/genrepclaimbra/claim/') ?>"+"/"+target+"/"+selectsearch+"/"+fromdate+"/"+todate+"/"+"/"+branch+"/"+cover_id+"/",Hide_Load()); } else { return false; } } function generatelossclientwise() { if(validateform('customer') && checkdate('fromdate','todate')) { search = $('#customer_id').val(); selectsearch = $('#selectsearch').val(); fromdate= $('#fromdate').val(); todate = $('#todate').val(); cover_id = $('#cover_id').val(); $("#claimsdiv").empty().html('<CENTER><img src="<?=base_url()?>/assets/images/loading.gif" class="loading"/></CENTER>'); var pagenum = 1; var target = 'claimlossclientwiserep'; if (search == "") search = 'search'; if(selectsearch == '') selectsearch = 'selectsearch'; if(fromdate == '') fromdate = 'fromdate'; if(todate=='') todate = 'todate'; if(cover_id== '0' || cover_id =='') cover_id = 'cover_id'; $("#claimsdiv").load("<?= site_url('report/genreplossclaim/claim/') ?>"+"/"+target+"/"+pagenum+"/"+selectsearch+"/"+search+"/"+fromdate+"/"+todate+"/"+"/"+cover_id+"/",Hide_Load()); } else { return false; } } function generatelosscoverwise() { if(validateform('segment_id')) { cover_id = $('#cover_id').val(); $("#claimsdiv").empty().html('<CENTER><img src="<?=base_url()?>/assets/images/loading.gif" class="loading"/></CENTER>'); var pagenum = 1; var target = 'claimslosscoverwiserep'; if(cover_id== '0' || cover_id =='') cover_id = 'cover_id'; $("#claimsdiv").load("<?= site_url('report/genreplossclaimcov/claim/') ?>"+"/"+target+"/"+pagenum+"/"+cover_id+"/",Hide_Load()); } else { return false; } } function generateclaimsinscompwise() { if(validateform('insurance_company_id') && checkdate('fromdate','todate')) { search = $('#insurance_company_id').val(); fromdate= $('#fromdate').val(); todate = $('#todate').val(); branch_id = $('#branchid').val(); cover_id = $('#cover_id').val(); $("#claimsdiv").empty().html('<CENTER><img src="<?=base_url()?>/assets/images/loading.gif" class="loading"/></CENTER>'); var target = 'claimsinscompwiserep'; if (search == "") search = 'search'; if(fromdate == '') fromdate = 'fromdate'; if(todate=='') todate = 'todate'; if(cover_id== '0' || cover_id =='') cover_id = 'cover_id'; if(branch_id=='') branch_id = 'branch_id'; $("#claimsdiv").load("<?= site_url('report/genrepclaimsinscompwise/claim/') ?>"+"/"+target+"/"+fromdate+"/"+todate+"/"+search+"/"+cover_id+"/"+branch_id+"/",Hide_Load()); } else { return false; } } function makefalsevalue() { $('input#cover_st').val(false); } function findcovercode(code) { if(code=="") { alert("No code selected") } else { $.ajax({ type: "POST", url: "<?= site_url('master/checkcovercodeexist/') ?>/"+code, success: function(msg){ if(msg==0) { alert("No cover with code "+code) $('input#cover_id_direct').val(""); $('input#cover_st').val(false); return false; } else { $('#coverdisp').html("<label>Cover Name :</label>"+msg) $('input#cover_st').val(true); } }, async: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" align="center"></div> <p> </p> <div style="overflow: auto;" id="claimsdiv"> </div> <div style='display:none'> <div id='customerdiv' style='padding:10px; background:#fff;'> </div> </div> <div id="loading" align="center"></div> </div> </div> </div> <?php $this->load->view('footer'); ?> </div> </html>