Backups Created:
/home/japatmex/public_html/wp-content/edit-wolf.php
Savvy
W
olf -
MANAGER
Edit File: inventory.php
<style> .notifyjs-corner{ top: 67px !important; left: 50% !important; } </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?frmId='.($this->input->get('frmId')).'&fTypeId='.$this->input->get('fTypeId')); ?>&'+$(this).serialize();" action="javascript:;"> <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="Search" 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"> <div class="form-group row mb-0"> <div class="col-lg-12"> <div class="table-responsive"> <table class="table table-striped table-bordered table-advance table-hover text-center" 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->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; ?>"><?php echo $row->quantity; ?></td> <td style="background:<?php echo $_bnt_class; ?>"><?php echo $row->low_quantity; ?></td> <td> </tr> <?php } ?> <?php if(empty($product_list)) { ?> <tr> <td colspan="99" align="center"><?php echo $this->lang->line('BE_LBL_968'); ?></td> </tr> <?php } ?> </tbody> </table> </div> </div> </div> </div> </div> </div> </div> </div> <script type="text/javascript"> $(function(){ $('.select2').select2(); }); </script>