? Fallagassrini

Fallagassrini Bypass Shell

echo"
Fallagassrini
";
Current Path : /home1/savoy/public_html/savoyglobal.net/drafthr/system/application/views/Accounting/

Linux gator3171.hostgator.com 4.19.286-203.ELK.el7.x86_64 #1 SMP Wed Jun 14 04:33:55 CDT 2023 x86_64
Upload File :
Current File : /home1/savoy/public_html/savoyglobal.net/drafthr/system/application/views/Accounting/debitnote.php

<?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed');?>
<?php
$this->load->view('header');
$this->load->view('Documents/documentcreation.php');
?>
<script >

    $(document).ready(function(){
		//Display Loading Image

     viewdebitnote('reference','',1);


});
function showpaycreditdetails(val)
{

         document.getElementById('hiddentext').value=val;
        if (document.getElementById('paymethod').checked)
            {

                  
                    document.getElementById('modepayment').style.display="block";

            }
        else
                {
                  
                   document.getElementById('modepayment').style.display="none";
                   

                }

}

function hideRows()
{
    document.getElementById('netbankdetails').style.display="none";
    document.getElementById('bankdetails').style.display="none";
   // document.getElementById('modepayment').style.display="none";
    document.getElementById('labelDDNo').style.display="none";
    document.getElementById('labelDDNo1').style.display="none";
}

 function showpaydetails()
    {
        var mode=document.getElementById('paymethod').value;

        if (mode=='netbank' || mode=='bank')
            {
                
                if(mode=='bank')
                {
                    
                    hideRows();
                    document.getElementById('bankdetails').style.display="block";
                    document.getElementById('labelDDNo').style.display="block";
                    

                }
                 else
                 {
                    hideRows();
                    document.getElementById('netbankdetails').style.display="block";
                    document.getElementById('bankdetails').style.display="block";     
                    document.getElementById('labelDDNo1').style.display="block";


                 }
            }
        else if (mode=='credit')
                {
                   hideRows();
                  document.getElementById('modepayment').style.display="block";
                }
        else 
        {

              
               hideRows();
               
          }
          

      }

function loadplacingslip(rwd)
{


    $("#ck_permission").load("<?= site_url('master/check_permissions/') ?>"+"/"+rwd,function(data)
  {
  if(data==1)
       {
       $("#pslipdiv").empty().html('<CENTER><img src="<?=base_url()?>/assets/images/loading.gif" class="loading"/></CENTER>');
     $("#pslipdiv").load("<?= site_url('documents/ajaxload/createpslip/broking_slip') ?>");
       }

  });


     
}
    function search_placingslip(seloption,serctext)
    {


        if(seloption=='quotation_date~broking_slip' )
        {
           serctext=serctext.replace(/\//gi,'-')
        }
            serctext = serctext.replace(/ /g,"~");
            serctext = serctext.replace(/\//g,"_");


    $("#pslipdiv").empty().html('<CENTER><img src="<?=base_url()?>/assets/images/loading.gif" class="loading" /></CENTER>');
    $('#pslipdiv').load("<?php echo site_url('documents/search_placingslip/viewplacingslip/'); ?>/"+  seloption   + "/" +1+ "/"+serctext);

    }

function viewdebitnote(seloption,serctext,pagenum)
{
      serctext = serctext.replace(/ /g,"~");
      serctext = serctext.replace(/\//g,"_");
      $("#pslipdiv").empty().html('<CENTER><img src="<?=base_url()?>/assets/images/loading.gif" class="loading"/></CENTER>');
   
     $('#pslipdiv').load("<?php echo site_url('documents/search_debitnote/'); ?>/"+seloption+"/"+pagenum+"/"+serctext);
}

function showbrokingslipdiv()
{
    $("#inline_example1").empty().html('<CENTER><img src="<?=base_url()?>/assets/images/loading.gif" class="loading"/></CENTER>');

    $("#inline_example1").load("<?= site_url('documents/ajaxload/searchbrokingslip/broking_slip') ?>");
    $("#loadbro").colorbox({width:"67%",height:"70%", inline:true, href:"#inline_example1"});
}

function searchbslip(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/loadbrokingsliplist/'); ?>/"+  seloption   + "/" +pageno+ "/"+serctext);
}

function usebrokingslip(id)
{
   $("#templateform").empty().html('<CENTER><img src="<?=base_url()?>/assets/images/loading.gif" class="loading"/></CENTER>');
   $('#templateform').load("<?php echo site_url('documents/edit/loadbrokingslip/broking_slip/id/') ?>"+"/" +id);
   
     
     
       $.fn.colorbox.close();


 

}



function submitpslip()
{



      if(validateform('cover','insured','quotation_ref'))
        {

        //  converttodate('quotationdate','frmdate','todate');
              // {
     
                   $('.new1').ajaxForm(function(data) {



                        // alert(data);
			editplacingslip(1,data,1);



                        // payment(data);

		});


              // }

        }
        else
        {
             return false;
        }
}
function updatepslip()
{
 


      if(validateform('cover','insured','quotation_ref'))
        {

          converttodate('quotationdate','frmdate','todate');
              // {

                   $('.news').ajaxForm(function(data) {



                        // alert(data);
			editplacingslip(1,data,1);



                        // payment(data);

		});


              // }

        }
        else
        {
             return false;
        }
}

function showtempdet(val)
{
    if(val)
    {
	document.getElementById('shdivtemp').style.display='block';
    }
    else
    {
	document.getElementById('shdivtemp').style.display='none';
    }
}

function showcustdiv()
{
    $("#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 showcoverdiv()
{
    $("#inline_example1").empty().html('<CENTER><img src="<?=base_url()?>/assets/images/loading.gif" class="loading"/></CENTER>');

    $("#inline_example1").load("<?= site_url('documents/ajaxload/searchcover/segment_insurances') ?>");
    $("#inliexample1").colorbox({width:"67%",height:"70%", inline:true, href:"#inline_example1"});
}

function searchtemplate(cover_id)
{   $("#templatelist").empty().html('<CENTER><img src="<?=base_url()?>/assets/images/loading.gif" class="loading"/></CENTER>');
   $('#templatelist').load("<?php echo site_url('documents/viewtemplate/'); ?>/"+  cover_id  + "/2");
}

function usetemplate(id,cover,cover_id)
{ $("#templateform").empty().html('<CENTER><img src="<?=base_url()?>/assets/images/loading.gif" class="loading"/></CENTER>');
    
   $('#templateform').load("<?php echo site_url('documents/edit/loadtemplateform/template/id/') ?>"+"/" +id);
   $("input#cover").val(cover);
  
   
   $("input#coverid").val(cover_id);
  
   $.fn.colorbox.close();
}
function paginationdatasearch(pageNum,seloption,serctext)
    {
//alert("<?php echo site_url('documents/search_placingslip/viewplacingslip/'); ?>/"+  seloption  + "/" +pageNum+ "/"+serctext);
         $("#pslipdiv").empty().html('<CENTER><img src="<?=base_url()?>/assets/images/loading.gif" class="loading"/></CENTER>');
        $('#pslipdiv').load("<?php echo site_url('documents/search_placingslip/viewplacingslip/'); ?>/"+  seloption  + "/" +pageNum+ "/"+serctext);
    }

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(code,insured,phone,email,business,id)
{
     $("input#insured").val(insured);
     $("input#business").val(business);
    
    document.getElementById('custdet').innerHTML="<fieldset><li><label>Customer Name</label><label>"+insured+"</label></li>\n\
    <li><label>Customer Code</label><label>"+code+"</label></li><li><label>Office Phone</label><label>"+phone+"</label></li>\n\
    <li><label>Email</label><label>"+email+"</label><input type='hidden' name='cust_id' value='"+id+"'/></li></fieldset>";
     $.fn.colorbox.close();

}
function viewquotationplacingslip(rwd,id)
    {

     $("#ck_permission").load("<?= site_url('master/check_permissions/') ?>"+"/"+rwd,function(data)
  {
  if(data==1)
       {
     $("#pslipdiv").empty().html('<CENTER><img src="<?=base_url()?>/assets/images/loading.gif" class="loading"/></CENTER>');
      $("#pslipdiv").load("<?= site_url('documents/viewquotationplacingslip/viewplacingslipquotation/id/') ?>" +"/" +id);
       }

  });



    }
    
    function editplacingslip(rwd,id,plid)
    {
    
        $("#ck_permission").load("<?= site_url('master/check_permissions/') ?>"+"/"+rwd,function(data)
  {
  if(data==1)
       {
     $("#pslipdiv").empty().html('<CENTER><img src="<?=base_url()?>/assets/images/loading.gif" class="loading" /></CENTER>');
     $("#pslipdiv").load("<?= site_url('documents/edit/editplacingslip/placing_slip/id/') ?>"+"/" +id+"/" +plid);


   }

  });


       
    }
    
     
    
    function payment(id)
    {

 
        $("#templateform").empty().html("");
	$("#payamountform").empty().html("");
	$("#paymentform").empty().html('<CENTER><img src="<?=base_url()?>/assets/images/loading.gif" class="loading" /></CENTER>');
         $("#paymentform").load("<?= site_url('documents/payment/pslippayment/placing_slip/id/') ?>"+"/" +id);
    
    }
    function viewpayment(id)
    {	$("#customtemplate").empty().html("");
	$("#paymamounttemplate").empty().html("");
	$("#paymenttemplate").empty().html('<CENTER><img src="<?=base_url()?>/assets/images/loading.gif" class="loading" /></CENTER>');
         $("#paymenttemplate").load("<?= site_url('documents/payment/viewpslippayment/placing_slip/id/') ?>"+"/" +id);
    
    }
    
    function payamount(id)
    {
       
	$("#templateform").empty().html("");
	$("#paymentform").empty().html("");
	$("#payamountform").empty().html('<CENTER><img src="<?=base_url()?>/assets/images/loading.gif" class="loading" /></CENTER>');
         $("#payamountform").load("<?= site_url('documents/payment/payamountslippayment/placing_slip/id/') ?>"+"/" +id);
    }

    



    function viewpayamount(id)
    {	$("#paymenttemplate").empty().html("");
	$("#customtemplate").empty().html("");
	$("#paymamounttemplate").empty().html('<CENTER><img src="<?=base_url()?>/assets/images/loading.gif" class="loading" /></CENTER>');
         $("#paymamounttemplate").load("<?= site_url('documents/payment/viewpayamountslippayment/placing_slip/id/') ?>"+"/" +id);
    }
    
    function showstaffdiv()
    {

    $("#inline_example1").empty().html('<CENTER><img src="<?=base_url()?>/assets/images/loading.gif" class="loading"/></CENTER>');

    $("#inline_example1").load("<?= site_url('documents/ajaxload/searchstaff/staffpersonaldetails/') ?>");
    $("#inlinestaff").colorbox({width:"75%",height:"70%", inline:true, href:"#inline_example1"});
    }
    
    function searchStaff(serctext,seloption)
    {
      $('#stafflist').load("<?php echo site_url('documents/listSearchstaff/'); ?>/"+ seloption  + "/" + serctext);
  

    }
     // 1 is the default brocker so assigned 2
    
    
    function removestaffselected(parentDiv,childDiv,cntbrk)
{ 
    //alert(noofbrockingsplit);
     if (childDiv == parentDiv) {
          alert("The parent div cannot be removed.");
     }
     else if (document.getElementById(childDiv)) {
	var cntbrkplus= parseInt(cntbrk)+1;
	if(document.getElementById('brockamt'+cntbrkplus))
                {    // var sectaftcnt=document.getElementById('seccount'+chk).value;
                     // countsectiontitleaft=chk;
                     // counters=parseInt(sectaftcnt)+1;
                      alert("Delete the succeeding sum first.");
                      return false;
                       
                }
		else{
		    var sumbrd=0;
          var child = document.getElementById(childDiv);
          var parent = document.getElementById(parentDiv);
	  noofbrockingsplit=parseInt(noofbrockingsplit)-1;
	  preamount=document.getElementById('preamt').value;
	  for(var chkb1=0;chkb1<parseInt(noofbrockingsplit);chkb1++)
	{
	    inbrd=document.getElementById('brockamt'+chkb1).value;
	    
	    sumbrd=sumbrd+parseInt(inbrd);
	  
	    
	}
	   totbrockamt=preamount*(sumbrd/100);
	   curtype=document.getElementById('currencytype').value;
	   $("p#stotalbroker").text(curtype+"."+totbrockamt);
	   if(document.getElementById('countbrockamount'))
	    {
	    ccamount=parseInt(noofbrockingsplit)-1;
	    $("input#countbrockamount").val(ccamount);
	    }
	    
            parent.removeChild(child);
		}
	
     }
     else {
          alert("Child div has already been removed or does not exist.");
          return false;
     }
}
  var stotalbr=0;
    function calcbrockamt(brockerpercent,brockno)
    {   
	if(document.getElementById('countbrockamount'))
	{
	    noofbrockingsplit=document.getElementById('countbrockamount').value;
	    noofbrockingsplit=parseInt(noofbrockingsplit)+1;
	 
	}
	 if(isNaN(brockerpercent))
	    {
		alert('Enter Numerical Value')
	       return false;
	    }
	    
	
	 preamount=document.getElementById('preamt').value;
	
	 brokeragepercent=document.getElementById('brokerage').value;
	 
	var sumbr=0;
	
	
	for(var chkb=0;chkb<parseInt(noofbrockingsplit);chkb++)
	{
	    inbr=document.getElementById('brockamt'+chkb).value;
	    
	    sumbr=sumbr+parseInt(inbr);
	  
	    
	}
	curtype=document.getElementById('currencytype').value;
	
	
	if(sumbr > brokeragepercent)
	{
	  alert("Entered amount is greater than the brokerage");
          document.getElementById('brockamt'+brockno).value='0';
	  return false;
	}
	else
	{
	    newbrockamt=preamount*(brockerpercent/100);
	    	 totbrockamt=preamount*(sumbr/100);
	    newbrockamt=newbrockamt.toFixed(2);
             totbrockamt=totbrockamt.toFixed(2)
	
	    $("p#brockeramount"+brockno).text(newbrockamt);
	    
	    $("input#brokeragesplitupamt"+brockno).val(newbrockamt);
	   
	   // stotalbr=stotalbr+newbrockamt;
	    $("p#stotalbroker").text(totbrockamt);
	}
        
	document.getElementById('bcom').style.display='none';
		
    }
    
    function usestaff(staffname,id,eid)
    {
     
       if(document.getElementById('countbrockamount'))
	{
           noofbrockingsplit=document.getElementById('countbrockamount').value;
	    noofbrockingsplit=parseInt(noofbrockingsplit)+1;
	    $("input#countbrockamount").val(noofbrockingsplit);
	}
	
    var newtr = document.createElement('table');
    var idname="brockingsplit"+noofbrockingsplit;
    var cntbrockinglist=noofbrockingsplit;
    newtr.innerHTML="<tr><td style='width:331px;'><label>"+staffname+"</label><input type='hidden' name='staffid[]' value="+id+"><input type='text' id='brockamt"+noofbrockingsplit+"' name=brockamt[] value=0 onchange=\"calcbrockamt(document.getElementById('brockamt"+noofbrockingsplit+"').value,'"+noofbrockingsplit+"')\"><img class='clickimage' src='<?=base_url()?>/assets/images/x-icon.png' onClick=\"removestaffselected('staffbroker','"+idname+"','"+cntbrockinglist+"')\"/></td><td style='width:50px'></td><td><label><p id=brockeramount"+noofbrockingsplit+"></p></label><input type='hidden' name='brokeragesplitupamt[]' value=0 id='brokeragesplitupamt"+noofbrockingsplit+"'> <input type='hidden' id='agent_acc"+noofbrockingsplit+"' name='agent_acc[]' value='"+eid+"'></td></tr></table>";
    newtr.setAttribute('id',idname);

    document.getElementById('staffbroker').appendChild(newtr);
    noofbrockingsplit++;
  
     //$("input#staffname").val(staffname);
     //$("input#staffid").val(id);
     $.fn.colorbox.close();
    

    }
    var shccounter=0;
    
    function installmentshedule()
    {
	document.getElementById('installmentlist').innerHTML="";
	noofinstallments=document.getElementById('noofinstallment').value;
	 if(isNaN(noofinstallments))
	 {
	    alert("Enter Numerical Value");
	    return false;
	 }
	 var sno=1;
	 
	 var shccounter=1;
	for(var cnn=0; cnn<noofinstallments;cnn++)
	{
	    var newschedulelist = document.createElement('table');
	    var idname="instshedule"+sno;
	    newschedulelist.innerHTML="<tr><td>" + sno + "</td><td><input type='text' name='crdate[]' style='background-image: url(../../../../assets/images/datefocus.gif);' class='one' id='crdate" + sno +"' value=<?=date("d-m-Y")?> readonly/></td><td><input type='text' name='creditamount[]' id='creditamount"+sno+"'/></td><td><textarea name='creditdescription[]' id='creditdescription"+sno+"'/></textarea></td></tr></table>";
	    sno++;
	    newschedulelist.setAttribute('id',idname);
	    document.getElementById('installmentlist').appendChild(newschedulelist);
	}
	
    }
    
    function installmentperiod(Interval)
    {
	var maxval=document.getElementById('noofinstallment').value;
	var TodaysDate = new Date();
	for(var count=1; count<=maxval;count++)
	{
	    TodaysDate.setDate(TodaysDate.getDate()+  parseInt(Interval));
	    document.getElementById('crdate' + count).value=TodaysDate.getFullYear()  + "-" + (TodaysDate.getMonth()+1) + "-" + TodaysDate.getDate();
	}
    }
    
    function installmentamount(amount)
    {
	var maxval=document.getElementById('noofinstallment').value;
	var total_premi_amt=document.getElementById('preamt').value;
	if( (parseInt(maxval)* parseInt(amount) )>  parseInt(total_premi_amt) )
	{
	    alert("entered value is greateg than premium amount \n installment amount is" + (parseInt(total_premi_amt)/ parseInt(maxval) ));
	    return false;
	}
	else if((parseInt(maxval)* parseInt(amount) )<  parseInt(total_premi_amt))
	{
	    alert("entered value is less than premium amount \n installment amount is" + (parseInt(total_premi_amt)/ parseInt(maxval) ));
	    return false;
	}
	
	for(var count=1; count<=maxval;count++)
	{
	    document.getElementById('creditamount' + count).value=amount;
	}
    }
   
    
//    function insertinstallment()
//    {
//	var maxval=document.getElementById('noofinstallment').value;
//	var placingslip=document.getElementById('insurance_company_id').value;
//	var datas = new Array(parseInt(maxval)-1);
//
//	for (var i=1; i <= maxval; i++)
//	{
//	    var amt=document.getElementById('creditamount' + i).value;
//	    var dt=document.getElementById('crdate' + i).value;
//	    var des=document.getElementById('creditdescription' + i).value;
//	    datas[i-1]= amt + ',' + dt + ',' + des;
//	} 
//
//	$.post("<?php echo site_url('documents/insertInstallment/'); ?>",{'name[]':datas,'pslipid':placingslip},
//	function(data)
//	{
//	    alert(data) ;   
//	});
//
//    
//    }
function showplacingslipstatus(id)
    {
    $("#inline_example1").empty().html('<CENTER><img src="<?=base_url()?>/assets/images/loading.gif" class="loading"/></CENTER>');

    $("#inline_example1").load("<?= site_url('documents/showstatus/showplacingslipstatus/') ?>"+"/" +id);
    $(".status").colorbox({width:"70%",height:"70%", inline:true, href:"#inline_example1"});
    }


    
    function view_pslip_trans(refid,type,plid,qid,trtype)
    {

         
       $(".anchor").colorbox({width:"66%",height:"70%", inline:true, href:"#combo"});
       $("#combo").load("<?= site_url('accounting/showdebitcreditnotegl') ?>" +"/"  + refid+"/"+type+"/"+plid+"/"+qid+"/"+trtype,function(){
       

      });
    }
</script>
  <div style="display: none"> <div id="combo"></div></div>

<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>&nbsp;</p>
                <div id="pslipdiv">


                      </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>


</body>
</html>

bypass 1.0, Devloped By El Moujahidin (the source has been moved and devloped)
Email: contact@elmoujehidin.net