?
Current Path : /home1/savoy/www/savoyglobal.net/drafthr/system/application/views/Policies/ |
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/Policies/policynote.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(){ loadpolicynote(1,'',''); }); function loadpolicynote(pagenum,searchoption,searchtext) { $("#policynotediv").empty().html('<CENTER><img src="<?=base_url()?>/assets/images/loading.gif" class="loading"/></CENTER>'); $("#policynotediv").load("<?= site_url('policies/ajaxloadnew/viewpolicynote/policynote') ?>/"+pagenum+'/'+searchoption+'/'+searchtext); } function addpolicynote(rwd) { $("#ck_permission").load("<?= site_url('master/check_permissions/') ?>"+"/"+rwd,function(data) { if(data==1) { $("#policynotediv").empty().html('<CENTER><img src="<?=base_url()?>/assets/images/loading.gif" class="loading"/></CENTER>'); $("#policynotediv").load("<?= site_url('policies/ajaxload/addpolicynote/policynote') ?>"); } }); } function deletepolicy_note(rwd) { alert(rwd+'-iii'); $("#ck_permission").load("<?= site_url('master/check_permissions/') ?>"+"/"+rwd,function(data) { if(data==1) { alert('if'); return true; } else { alert('else'); return false; } }); } function editpolicynote(rwd,id) { $("#ck_permission").load("<?= site_url('master/check_permissions/') ?>"+"/"+rwd,function(data) { if(data==1) { $("#policynotediv").empty().html('<CENTER><img src="<?=base_url()?>/assets/images/loading.gif" class="loading"/></CENTER>'); $("#policynotediv").load("<?= site_url('policies/edit/editpolicynote/policynote/id/') ?>"+"/" +id); } }); } function showquotdiv() { $("#quotdiv").empty().html('<CENTER><img src="<?=base_url()?>/assets/images/loading.gif" class="loading"/></CENTER>'); $("#quotdiv").load("<?= site_url('policies/ajaxload/searchquot/broking_slip/') ?>"); $("#inliexample1").colorbox({width:"75%",height:"70%", inline:true, href:"#quotdiv"}); } function searchpolicynote(search,selectsearch) { $("#policynotediv").empty().html('<CENTER><img src="<?=base_url()?>/assets/images/loading.gif" class="loading"/></CENTER>'); pagenum = 1; search = search.replace(/ /g,"~"); search = search.replace(/\//g,"_"); $("#policynotediv").load("<?= site_url('policies/ajaxloadnew/viewpolicynote/policynote/') ?>"+"/"+pagenum+"/"+selectsearch+"/"+search+"/"); } function singlepolicynote(rwd,id) { $("#ck_permission").load("<?= site_url('master/check_permissions/') ?>"+"/"+rwd,function(data) { if(data==1) { $("#policynotediv").empty().html('<CENTER><img src="<?=base_url()?>/assets/images/loading.gif" class="loading"/></CENTER>'); $("#policynotediv").load("<?= site_url('policies/single/singlepolicynote/policynote/id/policynote_files/policynoteid') ?>"+"/" +id); } }); } function searchquotation(serctext,seloption) { $('#quotlist').load("<?php echo site_url('policies/listsearchquot/'); ?>/"+ seloption + "/" + serctext); } function usequot(quotrefno,cname,cover,insurer) { var q_no=quotrefno.replace(/\//gi, "~"); $("#new").load("<?= site_url('policies/block_duplicates/') ?>/" + q_no, function(data) { if(data==1) { alert('Quotation Ref No already assigned to policy'); } else { $("input#quotrefno").val(quotrefno); document.getElementById('polidet').innerHTML="<li><fieldset><li><label>Customer Name</label>"+cname+"</li>\n\ <li><label>Cover Name</label>"+cover+"</li></fieldset></li><li><label>Insurer</label><label>"+insurer+"</label></li></fieldset></li>"; $.fn.colorbox.close(); } }); } function paginationpolicynotesearch(pageNum,selectsearch,search) { $("#policynotediv").empty().html('<CENTER><img src="<?=base_url()?>/assets/images/loading.gif" class="loading"/></CENTER>'); $('#policynotediv').load("<?php echo site_url('policies/ajaxloadnew/viewpolicynote/policynote/'); ?>"+"/" +pageNum+"/"+selectsearch+"/"+search+"/"); } function showbrokingdetails(id) { $("#templateform").empty().html('<CENTER><img src="<?=base_url()?>/assets/images/loading.gif" class="loading"/></CENTER>'); $('#templateform').load("<?php echo site_url('documents/brokingdetails/') ?>"+"/" +id); $.fn.colorbox.close(); } function usebrokingslipfromquotation(code) { if(code=="") { alert("Please enter the quotation reference") return false; } else { code=code.replace(/\//g, '~'); $.ajax({ type: "POST", url: "<?= site_url('documents/checkbrokingslipexist/') ?>/"+code, success: function(msg){ if(msg==0) { $("#templateform").empty().html(); alert("No Broking Slip created"); } else { showbrokingdetails(msg); } } }); } } </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 id="policynotediv"> </div> <div style='display:none'> <div id='quotdiv' style='padding:10px; background:#fff;'> </div></div> <div style='display:none'> <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> </html>