?
Current Path : /home1/savoy/public_html/savoyglobal.net/drafthr/system/application/views/Documents/ |
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/Documents/datasheet.php |
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');?> <?php $this->load->view('header'); $this->load->view('commonfunctions'); ?> <script> $(document).ready(function(){ showdatasheet(1,'datasheet.id',''); }); function showdatasheet(pageno,field,text) { if(field=='date' ) { text=text.replace(/\//gi,'-') } text = text.replace(/ /g,"~"); text = text.replace(/\//g,"_"); $("#quotationdiv").empty().html('<CENTER><img src="<?=base_url()?>/assets/images/loading.gif" class="loading"/></CENTER>'); $("#datasheetdiv").load("<?= site_url('documents/viewdatasheet/') ?>" +"/" + pageno + "/"+field+"/"+text); } function adddatasheet(rwd) { $("#ck_permission").load("<?= site_url('master/check_permissions/') ?>"+"/"+rwd,function(data) { if(data==1) { $("#datasheetdiv").load("<?= site_url('documents/adddatasheet/') ?>"); } }); } function editdatasheet(rwd,id) { $("#ck_permission").load("<?= site_url('master/check_permissions/') ?>"+"/"+rwd,function(data) { if(data==1) { $("#datasheetdiv").load("<?= site_url('documents/editdatasheet/') ?>/"+id); } }); } function singledatasheet(rwd,id) { $("#ck_permission").load("<?= site_url('master/check_permissions/') ?>"+"/"+rwd,function(data) { if(data==1) { $("#datasheetdiv").load("<?= site_url('documents/singledatasheet/') ?>/"+id); } }); } function deldatasheet(rwd,id) { $("#ck_permission").load("<?= site_url('master/check_permissions/') ?>"+"/"+rwd,function(data) { if(data==1) { $("#datasheetdiv").load("<?= site_url('documents/deletequotation/datasheet/') ?>" +"/" +id ,function(){ showdatasheet(1,'datasheet.id',''); }); } }); } function showcover() { var sgn=document.getElementById('segment_id').value; $("#coverlist").html("<img src='<?=base_url()?>/assets/images/loading.gif'/>"); $("#coverlist").load("<?= site_url('master/ajaxloadcovertype/viewcover/') ?>" +"/" +sgn); } function showcustomerdivds() { $("#inline_example1").empty().html('<CENTER><img src="<?=base_url()?>/assets/images/loading.gif" class="loading"/></CENTER>'); $("#inline_example1").load("<?= site_url('documents/ajaxload/searchcustomer/customers/') ?>"); $("#inliexample1").colorbox({width:"65%",height:"70%", inline:true, href:"#inline_example1"}); } function searchCust(serctext,seloption,page) { $("#custlist").empty().html('<CENTER><img src="<?=base_url()?>/assets/images/loading.gif" class="loading"/></CENTER>'); $('#custlist').load("<?php echo site_url('documents/listSearchcustomer/'); ?>/"+ seloption + "/" +page+ "/" +serctext ); } function usecust(insured,id) { $("input#customername").val(insured); $("input#customerid").val(id); $.fn.colorbox.close(); } </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" ></div> <div id="loading" align="center"></div> </div> <div style='display:none'> <div id='inline_example1' style='padding:10px; background:#fff;'> </div> </div> <div id='datasheetdiv' style='padding:10px;float:left; width: 100%'> </div> </div> </div> <?php $this->load->view('footer'); ?> </div> </body> </html>