? 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_auto_journal.php

<?php
if ( ! defined('BASEPATH')) exit('No direct script access allowed');
$this->load->view('documentreadyfunctions');
$accounts=$this->mastermodel->getdatas('finance_chart_master','chart_type_id','','chart_master_id');
?>
<script src="<?= base_url() ?>assets/js/jquery.autocomplete.js"></script>
<script type="text/javascript">
    $(document).ready(function()
    {
        checkfiscalyear();
        suggestaccount('.payment_account');
        $(".delRow_payment").btnDelRow(function()
        {
            getSum();
        });
        $(".addRow_payment").btnAddRow({inputBoxAutoNumber: true},
        function(row)
        {
            suggestaccount('.payment_account');
        },
        function(row)
        {
            var rowIndex = row.index() + 1;
            return validateRow();

        }
        );
    });
</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_auto_journal','view_fixed_journal','<?=$_SESSION['pagenum'];?>')" alt="Back" align = "center" width="32" height="32"  />
    </div>
     <div class="icons_caption">
        <h4>Update Auto Journal </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_auto_journal/view_fixed_journal/1',$attributes);
   
?>
<input type="hidden" value="<?=$journal_refs->auto_journal_id?>" name="auto_journal_id" id="auto_journal_id">
    <div class="grid_12">
        <div class="box">
            <div class="content no-padding">     
            <div class="header main">Add Auto Journal</div>
                <table class="table">
                   <tr>         
                        <td>
                            Title
                            
                        </td>
                        <td>
                            <textarea class="required" name="auto_journal_title" id="auto_journal_title" style='width:250px;height:30px' ><?=$journal_refs->auto_journal_title?></textarea>
                        </td>
                   </tr>
                    
                </table>
            </div>
        </div>
    </div> 

<!--    <div class="grid_12">
        <div class="box">
            <div class="content no-padding">     
            <div class="header main">  Deposit Items</div>
            <input type="hidden" name="counter" id="counter" value="<?= count($journal)?>"/>
            <input type="hidden" name="counter_check" id="counter_check" value="<?=count($journal)-1?>" />
            <input type="hidden" name="class_ch" id="class_ch"/>
            <table class="table">
                <tr>
                     <th width="29%">Acc code</th> 
                     <th width="20%">Debit</th>
                     <th width="20%">Credit</th>
                     <th width="15%">Description</th>
                     <th width="15%"> Action</th>
                 </tr>
                <tr id="dvFiles0">
                    <td>
                        <select  name="code" id="code" style="width: 185px" class="" >
                            <option value="">Select</option>
                             <?php
                            $sub_t='temp';
                            foreach ($accounts as $value) 
                            {       
                                if($value['chart_type_id']!=$sub_t)
                                {
                                    $optgp= $this->mastermodel->get_single_field_value('finance_chart_type','chart_type_name','chart_type_id',$value['chart_type_id']);
                                    echo '<optgroup label="'.$optgp.'">'.$optgp.'</optgroup> ';
                                }
                                    echo '<option value="'.$value["chart_account_code"].'">'.$value["chart_account_name"].'~'.$value["chart_account_code"].'</option>';
                                if($value['chart_type_id']!=$sub_t)
                                {
                                    echo "";
                                }
                                $sub_t=$value['chart_type_id'];

                            }
                            ?>
                     </select>
                    </td>
                    <td>
                        <input style="width:135px" type="text" class="auto"   id="debit" />
                    </td>
                    <td>
                        <input style="width:135px" type="text" class="auto"  id="credit" />
                    </td>
                    <td style="padding-bottom:15px;">
                        <textarea id="memo" style='width:150px;height:50px' ></textarea>
                    </td>
                    <td style="padding-bottom:15px;">
                        <img src="<?=base_url()?>/assets/images/add.png" title="Add New"  class="clickimage" onclick="add_details()" alt="Add New" align = "top" width="25" height="25"  />
                    </td>
                </tr>    
                </table>
            <div id="adddiv">
     
     <?php
    $k=0;
    $sum_deb=0;
    $sum_cre=0;
    foreach ($journal as $row)
             {
                if($row['debit']>0)
                {
                    $debit=$row['debit'];
                    $sum_deb+=$debit;
                    $credit='0';
                }
                else
                {
                    $credit=$row['credit'];
                    $sum_cre+=$credit;
                    $debit='0';
                }
               
             ?>
                    <table class="sort table" id="adddivtab_<?=$k?>">
                        <tr id="nwdiv_<?=$k?>" >
               <td width='29%'>
                   <input style='width: 125px' class='newcls' id="code_<?=$k?>" name="code_<?=$k?>" type='text'  readonly  value="<?=$row['chart_account_code']?>"/></td>
               <td width='20%'><input style='width:135px;text-align:right;'  id="debit_<?=$k?>" name="debit_<?=$k?>" readonly type='text'  value="<?=$debit?>">
               </td><td width='20%'><input style='width:135px;text-align:right;'  id="credit_<?=$k?>" name="credit_<?=$k?>" readonly type='text'  value="<?=$credit?>">
               </td><td width='15%'><textarea readonly  style='width:150px;height:50px' id="memo_<?=$k?>"  name="memo_<?=$k?>"><?=$row['description']?></textarea></td>
               <td width='15%'><img name='edit[]' src='<?=base_url()?>/assets/images/edit-icon.gif' width='20px' height='20px' class='clickimage' onclick="calledit_journal(<?=$k?>)"> 
               <img name='del[]' src='<?=base_url()?>/assets/images/delete-icon.png' width='20px' height='20px' class='clickimage' onclick="delcall_journal(<?=$k?>)">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
               </td></tr>
               <tr style='display:none'  id="eddiv_<?=$k?>" >
                   <td width='29%'><input  type='hidden' name="hidecode_<?=$k?>" id="hidecode_<?=$k?>"   value="<?=$row['chart_account_code']?>"/>
                       <select  style='width:185px' name="code<?=$k?>"  id="code<?=$k?>" class="chzn-done" >
                       <option value="<?=$row['chart_account_code']?>" ><?=$row['chart_account_code']?></option>
                   <?php
                       $sub_t="temp";
                       foreach ($accounts as $value) 
                       {       
                           if($value['chart_type_id']!=$sub_t)
                           {
                               $optgp= $this->mastermodel->get_single_field_value('finance_chart_type','chart_type_name','chart_type_id',$value['chart_type_id']);
                               echo "<optgroup label='".$optgp."'>".$optgp."</optgroup>";
                           }
                               echo "<option value='".$value['chart_account_code']."'>".$value['chart_account_code'].$value['chart_account_name']."</option>";
                           if($value['chart_type_id']!=$sub_t)
                           {
                               echo "";
                           }
                           $sub_t=$value['chart_type_id'];

                       }
                          ?>
                   </select> 
               <td width='20%'><input type='text'  style='text-align:right;width:135px' class='auto' onfocus='checknumeric()'  id='debit<?=$k?>'  value="<?=$debit?>">
               </td><td width='20%'><input type='text'  style='text-align:right;width:135px' class='auto' onfocus='checknumeric()'  id="credit<?=$k?>"  value="<?=$credit?>">
               </td><td width='15%'><textarea style='width:150px;height:50px'  id="memo<?=$k?>" >"<?=$row['description']?>"</textarea></td>
               <td width='15%'><span style='width:22px'></span><img name='ok[]' src='<?=base_url()?>/assets/images/ok-icon.png' width='22px' height='22px' class='clickimage' onclick='updatecall_journal(<?=$k?>)'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
               </td></tr>
                        <tr id=nwdiv_<?=$k?> >
                            <td width='29%'>
                                        <input style='width:185px;'  id='code_<?=$k?>' type='text'  readonly  value="<?=$row['chart_account_code']?>"/>
                                        <input  style='width:185px;'  type='hidden' id='code<?=$k?>_id_<?=$k?>' name='code_<?=$k?>' readonly   value='<?=$row['chart_account_code']?>'/>
                            </td>
                            <td width='20%'>
                                <input style='width:135px;text-align:right;'  id='debit_<?=$k?>' name='debit_<?=$k?>' readonly type='text'  value="<?=$debit?>">
                            </td>

                            <td width='20%'>
                                <input style='width:135px;text-align:right;'  id='credit_<?=$k?>' name='credit_<?=$k?>' readonly type='text'  value="<?=$credit?>">
                            </td>
                            <td width='15%'>
                                <textarea readonly  style='width:150px;height:50px' id='memo_<?=$k?>'  name='memo_<?=$k?>'><?=$row['description']?></textarea>
                            </td>
                            <td width='15%'>
                                <img name='edit[]' src='<?=base_url()?>/assets/images/edit-icon.gif' width='20px' height='20px' class='clickimage' onclick='calledit_journal(<?=$k?>)'> 
                                <img name='del[]' src='<?=base_url()?>/assets/images/delete-icon.png' width='20px' height='20px' class='clickimage' onclick='delcall_journal(<?=$k?>)'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                            </td>
                        </tr>
                        <tr style='display:none'  id=eddiv_<?=$k?> >
                            <td width='29%'><input style='width:185px;' readonly  type='text' id='code<?=$k?>'  value='<?=$row['chart_account_code']?>-<?=$row['chart_account_name']?>'/>
                                <input  style='width:185px;'  type='hidden' id='code<?=$k?>_id<?=$k?>'  readonly    value='<?=$row['chart_account_code']?>'/>
                            </td>
                            <td width='20%'>
                                <input type='text'  style='text-align:right;width:135px' class='auto' onfocus='checknumeric()'  id='debit<?=$k?>'  value="<?=$debit?>">
                            </td>
                            <td width='20%'>
                                <input type='text'  style='text-align:right;width:135px' class='auto' onfocus='checknumeric()'  id='credit<?=$k?>'  value="<?=$credit?>">
                            </td>
                            <td width='15%'>
                                <textarea style='width:150px;height:50px'  id='memo<?=$k?>' ><?=$row['description']?></textarea>
                            </td>
                            <td width='15%'>
                                <span style='width:22px'></span><img name='ok[]' src='<?=base_url()?>/assets/images/ok-icon.png' width='22px' height='22px' class='clickimage' onclick='updatecall_journal(<?=$k?>)'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                            </td>
                        </tr>
                    </table>
     
            <?php
              $k++;  
             }
             
             ?>
     
     
 </div>
              <table  class="table" >
     <tr><th width="29%" style="text-align: right">Total</th>
         <th width="20%">
            <input type="hidden" id="sumdebit" class="newcls" readonly="readonly"   value="<?=$sum_deb?>" name="sumdebit"/>
            <input type="text" id="showsumdebit" style="width:135px" class="newcls auto" readonly="readonly" value="<?=number_format($sum_deb,2)?>" />
         </th>
         <th width="20%">
            <input type="hidden" id="sumcredit" class="newcls" readonly="readonly"   value="<?=$sum_cre?>" name="sumcredit"/>
            <input type="text" id="showsumcredit" style="width:135px" class="newcls auto" readonly="readonly"  value="<?=number_format($sum_cre,2)?>" />
         </th>
         <th width="30%" colspan="2"></th>
        
         
         
     </tr>
 </table>
 
 <input type="hidden" value="0" name="refid">
            </div>
        </div>
    </div> -->

    <div class="grid_12">
    <div class="box">
        <div class="content no-padding">     
            <div class="header main">  Deposit Items</div>            
            <table class="table">
                <thead>
                    <tr>
                        <th width="25%">Acc code</th> 
                        <th width="20%">Debit</th>
                        <th width="20%">Credit</th>
                        <th width="25%">Description</th>
                        <th width="10%">
                            <input type="button" id="button2" value="Add More" class="addRow_payment" title="Add Row" style="width:75px;"/>
                        </th>
                    </tr>
                </thead>
                <tbody>
                <?php
                    $k = 1;
                    $sum_deb = 0;
                    $sum_cre = 0;
                    foreach ($journal as $row) 
                    {
                    
                        if ($row['debit'] > 0) {
                            $debit = $row['debit'];
                            $sum_deb+=$debit;
                            $credit = '0';
                        } else {
                            $credit = $row['credit'];
                            $sum_cre+=$credit;
                            $debit = '0';
                        }
                        $account=$this->mastermodel->get_data_srow('finance_chart_master', $row['chart_account_code'], 'chart_account_code');
                        ?>
                        <tr class="addAccount">
                            <td>
                                <input type="text" name="account<?=$k?>" id="account1" data-id='account_id<?=$k?>' value='<?=$account->chart_account_name.'-'.$row['chart_account_code']?>' class="required payment_account" />
                                <input type="hidden" name="account_id<?=$k?>" id="account_id<?=$k?>" value="<?=$account->chart_master_id.'~'.$account->chart_account_code.'~'.$account->chart_account_name?>"/>
                            </td>
                            <td>
                                <input type="text" name="debit<?=$k?>" id="debit<?=$k?>" onblur="validateAmount(this)" class="auto text_r"  value="<?=$row['debit']?>"/>
                            </td>
                            <td>
                                <input type="text" name="credit<?=$k?>" id="credit<?=$k?>" onblur="validateAmount(this)"  class="auto text_r" value="<?=$row['credit']?>"/>
                            </td>
                            <td>
                                <textarea  name="description<?=$k?>" id="description<?=$k?>" style="height: 60px;"><?=$row['description']?></textarea>
                            </td>
                            <td>
                                <img style="float: right; vertical-align: top;"src="<?= base_url() ?>assets/images/icons/close.png" alt="Delete Row" class="delRow_payment clickimage" title="Delete Row"/>
                            </td>
                        </tr>  
                        <?php
                        $k++;
                    }
                    ?>
                </tbody>
            </table>

            <table  class="table" >
                <tr>
                    <th width="25%" style="text-align: right">Total</th>
                    <th width="20%">
                        <input type="text" id="sumdebit" class="newcls text_r" readonly="readonly"  value="<?=  number_format($sum_deb,2)?>" name="sumdebit"/>
                        <!--<input type="text" id="showsumdebit" style="width:135px" class="newcls auto" readonly="readonly"  value="0.00" />-->
                    </th>
                    <th width="20%">
                        <input type="text" id="sumcredit" class="newcls text_r" readonly="readonly"  value="<?=  number_format($sum_cre,2)?>" name="sumcredit"/>
                        <!--<input type="text" id="showsumcredit" style="width:135px" class="newcls auto" readonly="readonly"  value="0.00" />-->
                    </th>
                    <th width="35%" colspan="2"></th>
                </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="submit" class="clickimage" onclick="return insertpayment()">Process Deposit</button>
                 </div>
        </div>
    </div>
</div>

<?php echo form_close();?>

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