Backups Created:
/home/japatmex/public_html/wp-content/edit-wolf.php
Savvy
W
olf -
MANAGER
Edit File: manufacturers.php
<?php if(isset($qryString[0]) && $qryString[0] != '') $QUERY_STRING = $qryString[0]; include 'rtlservices_header.php'; ?> <div class="page-header border-bottom-0"> <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> <?php echo $this->lang->line('BE_LBL_842'); ?> </h4> </div> </div> </div> <div class="content pt-0"> <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($message != '') echo '<div class="alert alert-success">'.$message.'</div>'; ?> <div class="col-lg-12"> <div class="table-responsive"> <table class="table table-striped table-bordered table-advance table-hover"> <thead> <tr> <th><? echo $this->lang->line('BE_LBL_841'); ?></th> <th>Type</th> <th style="text-align:center;">Service Status</th> <th></th> <th></th> </tr> </thead> <tbody id="sortableLst"> <? if($count != 0) { foreach($rsCats as $row) { if($row->DisableCategory == '0') { $lnk = base_url($this->config->item('apanel_name').'/retail/')."manufacturers?del=1&mId=".$row->CategoryId."&frmId=238&fTypeId=20"; $status = 'Active'; $clr = 'ThemeGreenBtn'; } else { $lnk = base_url($this->config->item('apanel_name').'/retail/')."manufacturers?del=0&mId=".$row->CategoryId."&frmId=238&fTypeId=20"; $status = 'In Active'; $clr = 'ThemeColorButton'; } if($row->ShowAtHomePageCat == '1') { $lnkHome = base_url($this->config->item('apanel_name').'/retail/')."manufacturers?home=0&mId=".$row->CategoryId."&frmId=238&fTypeId=20"; $statusHome = 'Show on Home'; $clrHome = 'ThemeGreenBtn'; } else { $lnkHome = base_url($this->config->item('apanel_name').'/retail/')."manufacturers?home=1&mId=".$row->CategoryId."&frmId=238&fTypeId=20"; $statusHome = 'Don\'t Show on Home'; $clrHome = 'ThemeColorButton'; } ?> <tr id="listItem_<? echo $row->CategoryId; ?>"> <td><i class="fa fa-sort"></i> <a href="<?php echo base_url($this->config->item('apanel_name').'/retail/');?>manufacturer?id=<? echo $row->CategoryId;?>&frmId=237&fTypeId=20"><? echo stripslashes($row->Category);?></a></td> <td><? echo $row->BrandType == '0' ? 'IMEI' : 'Server'; ?></td> <td style="text-align:center" valign="middle"><a href="<? echo $lnk;?>" class="btn default btn-xs <? echo $clr; ?>"> <? echo $status; ?></a> <a href="<? echo $lnkHome;?>" class="btn default btn-xs <? echo $clrHome; ?>"> <? echo $statusHome; ?></a></td> <td style="text-align:center" valign="middle"> <a href="<?php echo base_url($this->config->item('apanel_name').'/retail/');?>manufacturer?id=<? echo $row->CategoryId;?>&frmId=237&fTypeId=20" ><i class="fa icon-pencil"></i> </a> </td> <td style="text-align:center" valign="middle"> <a href="<?php echo base_url($this->config->item('apanel_name').'/retail/');?>manufacturers?del=1&mId=<? echo($row->CategoryId); ?>&frmId=238&fTypeId=20" onclick="return confirm('It will DISABLE this model and will not be shown anywhere. Are you sure you want to disable this Manufacturer?')"><i class="fa icon-trash"></i></a> </td> </tr> <? } } else echo "<tr><td colspan='999' align='center'>".$this->lang->line('BE_GNRL_9')."</td></tr>"; ?> </tbody> </table> <input type="hidden" name="hw" id="hw" value="4" /> </div> </div> </div> </div> </div> </div> </div> <script type="text/javascript" src="<?php echo base_url('assets/js/jquery-ui-1.7.1.custom.min.js') ?>"></script> <script language="javascript" src="<?php echo base_url('assets/js/categories.js') ?>?v=<?php echo $this->config->item('assets_version'); ?>"></script>