?
Current Path : /home1/savoy/public_html/savoyglobal.net/sibsmoved/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/sibsmoved/system/application/views/Documents/quotation.php |
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');?> <?php $this->load->view('header'); $this->load->view('commonfunctions'); ?> <script> $(document).ready(function(){ showquotation(1,'quotation.id',''); }); function showquotation(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>'); $("#quotationdiv").load("<?= site_url('documents/viewquotation/') ?>" +"/" + pageno + "/"+field+"/"+text); } function add_quotation(rwd) { $("#ck_permission").load("<?= site_url('master/check_permissions/') ?>"+"/"+rwd,function(data) { if(data==1) { $("#quotationdiv").load("<?= site_url('documents/addquotation/') ?>"); } }); } function editquotation(rwd,id) { $("#ck_permission").load("<?= site_url('master/check_permissions/') ?>"+"/"+rwd,function(data) { if(data==1) { $("#quotationdiv").load("<?= site_url('documents/editquotation/') ?>/"+id); } }); } function singlequotation(rwd,id) { $("#ck_permission").load("<?= site_url('master/check_permissions/') ?>"+"/"+rwd,function(data) { if(data==1) { $("#quotationdiv").load("<?= site_url('documents/singlequotation/') ?>/"+id); } }); } function delquotation(rwd,id) { $("#ck_permission").load("<?= site_url('master/check_permissions/') ?>"+"/"+rwd,function(data) { if(data==1) { $("#quotationdiv").load("<?= site_url('documents/deletequotation/quotation/') ?>" +"/" +id ,function(){ showquotation(1,'quotation.id',''); }); } }); } function showbrokingslipdetails() { $("#inline_example1").empty().html('<CENTER><img src="<?=base_url()?>/assets/images/loading.gif" class="loading"/></CENTER>'); $("#inline_example1").load("<?= site_url('documents/ajaxload/searchbslip/broking_slip') ?>"); $("#inliexample1").colorbox({width:"67%",height:"70%", inline:true, href:"#inline_example1"}); } function searchbroslip(serctext,seloption,pageno) { $("#brokingsliplist").empty().html('<CENTER><img src="<?=base_url()?>/assets/images/loading.gif" class="loading"/></CENTER>'); $('#brokingsliplist').load("<?php echo site_url('documents/search_brokingslip/loadbsliplist/'); ?>/"+ seloption + "/" +pageno+ "/"+serctext); } 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> <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='quotationdiv' style='padding:10px;float:left; width: 100%'> </div> </div> </div> <?php $this->load->view('footer'); ?> </div> </body> </html>