Backups Created:
/home/japatmex/public_html/wp-content/edit-wolf.php
Savvy
W
olf -
MANAGER
Edit File: inventory_manage.php
<style> .notifyjs-corner{ top: 67px !important; left: 50% !important; } table{ text-align: center; } </style> <!-- Page header --> <div class="page-header border-bottom-0 mt-3 service_top_links ml-2"></div> <div class="page-header border-bottom-0 services_header"> <div class="page-header-content header-elements-md-inline"> <div class="page-title d-flex"> <h4><a href="javascript:void(0)" class="BackButton-Link" onclick="goBack()"><i class="icon-arrow-left52 mr-2"></i></a> <?=$page_title?></h4> </div> </div> </div> <!-- /page header --> <!-- Content area --> <div class="content pt-0"> <div class="card"> <div class="card-header header-elements-inline services_search"> <h5 class="card-title cardCollapse"><?php echo $this->lang->line('CUST_CH_BTN'); ?></h5> <div class="header-elements"> <div class="list-icons"> <a class="list-icons-item rotate-180" data-action="collapse"></a> </div> </div> </div> <div class="card-body CollapsedCardBody" style="display: block;"> <div class="row"> <div class="col-xl-12"> <div class="form-group row mb-0"> <div class="col-md-12"> <div class="search_list"> <div class="search_block"> <form method="get" onsubmit="event.preventDefault(); window.location.href = '<?= base_url($this->config->item('apanel_name').'/ecomm/products/inventory_manage?frmId='.($this->input->get('frmId')).'&fTypeId='.$this->input->get('fTypeId')); ?>&'+$(this).serialize();" action="javascript:;"> <input type="hidden" name="cat_id_hidden" class="form-control" value="<?php echo $category_id; ?>"> <div class="row"> <div class="col-md-6 col-12"> <label class="control-label" style="float: left;"><?php echo $this->lang->line('BE_LBL_991'); ?></label> <?php $html = ''; if($categories){ $html.='<select name="category_id" id="category_id" class="select2 form-control" >'; $html .= '<option value="">' . $this->lang->line('BE_LBL_964') . '</option>'; foreach($categories AS $singleCategory) { $selected = ''; if($category_id == $singleCategory->id){ $selected = 'selected=selected'; } $html.= '<option '.$selected.' value="'.$singleCategory->id.'">'.$singleCategory->category_name.'</option>'; } $html.= '</select>'; } echo $html; ?> </div> <div class="mt-3 col-md-6 col-12 text-right"> <input type="submit" value="<?php echo $this->lang->line('CUST_CH_BTN'); ?>" class="btn ThemeColorButton"> </div> </div> </form> </div> </div> </div> </div> </div> </div> </div> </div> <div class="card"> <div class="row"> <div class="col-12 col-sm-12 col-md-12 col-lg-12 col-xl-12"> <div class="card-body"> <?php if($this->session->flashdata('response_msg')) { $message = $this->session->flashdata('response_msg'); ?> <div class="<?=$message['class']?>" role="alert"> <?=$message['message']?> </div> <?php } ?> <div class="form-group row"> <div class="col-lg-12"> <div class="table-responsive"> <form action="<?php echo base_url($this->config->item('apanel_name').'/ecomm/products/inventory_manage').get_query_string(); ?>" method="post" class="form form-horizontal" enctype="multipart/form-data"> <table class="table table-striped table-bordered table-advance table-hover" width="100%"> <thead> <tr> <th width="33.3%"><?php echo $this->lang->line('BE_LBL_200'); ?></th> <th width="33.3%"><?php echo $this->lang->line('BE_LBL_992'); ?></th> <th width="33.3%"><?php echo $this->lang->line('BE_LBL_993'); ?></th> </tr> </thead> <tbody> <?php foreach ($product_list as $key => $row) { $_bnt_class = ''; if($row->quantity == 0) { $_bnt_class='#D2978E'; } elseif($row->quantity <= $row->low_quantity) { $_bnt_class = '#C5BF39'; } elseif($row->quantity > $row->low_quantity) { $_bnt_class = '#84C170'; } ?> <tr class="item_holder"> <td style="background:<?php echo $_bnt_class; ?>"><?php echo '<b>'.$row->product_sku.' - '.'</b>'. $row->category_name ." => ". $row->product_title; ?><?php if($row->var_id1!=0) echo " -- " . $row->var_text1; if($row->var_id2!=0) echo " -- " . $row->var_text2; if($row->var_id3!=0) echo " -- " . $row->var_text3; ?></td> <td style="background:<?php echo $_bnt_class; ?>"> <div class="customFieldDiv"> <input type="text" placeholder="Quantity" name="quantity[]" class="form-control customField" value="<?php echo $row->quantity; ?>"> <input type="hidden" name="quantity_old[]" class="form-control" value="<?php echo $row->quantity; ?>"> <input type="hidden" name="product_ids[]" class="form-control" value="<?php echo $row->productId; ?>"> <input type="hidden" name="variation_ids[]" class="form-control" value="<?php echo $row->variationId; ?>"> </div> </td> <td style="background:<?php echo $_bnt_class; ?>"><input type="text" placeholder="Low Quantity" name="lowQuantity[]" class="form-control customField" value="<?php echo $row->low_quantity; ?>"></td> <td> </tr> <?php } ?> <?php if(empty($product_list)) { ?> <tr> <td colspan="99" align="center">Sorry! no records found...</td> </tr> <?php } ?> </tbody> </table> <div class="form-group"> <div class="col-md-12 mt-20" style=" text-align: center; margin: 10px; "> <textarea name="note" class="form-control" value=""></textarea> <button type="submit" name="btn_submit" class="btn btn-primary mt-3">Update Inventory</button> </div> </div> </form> </div> </div> </div> </div> </div> </div> </div> </div> <script type="text/javascript"> $(function(){ $('.select2').select2(); }); </script>