Backups Created:
/home/japatmex/public_html/wp-content/edit-wolf.php
Savvy
W
olf -
MANAGER
Edit File: rtlservices.php
<?php 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_843'); ?> </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"> <?php if($message != '') echo '<div class="alert alert-success">'.$message.'</div>'; ?> <div class="card-body"> <?php echo form_open('',''); ?> <div class="form-group row"> <div class="col-md-6 mb-3"> <div class="form-group"> <label class="control-label"><? echo $this->lang->line('BE_LBL_841'); ?></label> <select name="categoryId" id="categoryId" class="form-control select2me" data-placeholder="<? echo $this->lang->line('BE_LBL_256'); ?>"> <option value="0">Choose a <? echo $this->lang->line('BE_LBL_841'); ?></option> <? FillCombo($categoryId, $menufacturer); ?> </select> </div> </div> <div class="col-md-6"> <div class="form-group"> <label class="control-label"><? echo $this->lang->line('BE_PCK_15'); ?></label> <select name="apiId" id="apiId" class="form-control select2me"> <option value="0"><? echo $this->lang->line('BE_LBL_278'); ?></option> <? FillCombo($apiId, $APIS); ?> </select> </div> </div> <div class="col-md-6"> <div class="form-group"> <label class="control-label"><? echo $this->lang->line('BE_LBL_582'); ?></label> <select name="packageId" id="packageId" class="form-control select2me" data-placeholder="Select..."> <?php echo $rtlPakcagesDropDown; ?> </select> </div> </div> <div class="col-md-6"> <div class="form-group"> <label class="control-label"><? echo $this->lang->line('BE_CODE_5'); ?></label> <select name="srvStatus" class="form-control select2me"> <option value="0" <? if($srvStatus == '0') echo 'selected';?>>Active</option> <option value="1" <? if($srvStatus == '1') echo 'selected';?>>In Active</option> <option value="2" <? if($srvStatus == '2') echo 'selected';?>>Both</option> </select> </div> </div> <div class="col-md-12 text-right"> <div class="form-group" style="padding-top:27px;"> <button type="submit" <?php if($IS_DEMO) echo 'disabled="disabled"';?> class="btn ThemeColorButton purple" onclick="setValue('0');document.getElementById('frm').submit();"><? echo $this->lang->line('BE_GNRL_BTN_1'); ?></button> </div> </div> </div> <div class="col-md-12"> <div class="form-group" align="right"> <label class="control-label"> </label><br /> <input type="button" <?php if($IS_DEMO) echo 'disabled="disabled"';?> value="<? echo $this->lang->line('BE_LBL_102');?>" onClick="exportServices();" class="btn ThemeColorButton yellow" /> <!--<input type="submit" <?php if($IS_DEMO) echo 'disabled="disabled"';?> value="<? echo $this->lang->line('BE_LBL_745'); ?>" onclick="document.getElementById('dis').value = '1';setValue('0');" class="btn red" name="btnSubmit" /> <input type="submit" <?php if($IS_DEMO) echo 'disabled="disabled"';?> value="<? echo $this->lang->line('BE_LBL_746'); ?>" onclick="document.getElementById('dis').value = '0';setValue('0');" class="btn blue" name="btnSubmit" />--> <input type="submit" <?php if($IS_DEMO) echo 'disabled="disabled"';?> value="<? echo $this->lang->line('BE_LBL_72'); ?>" onclick="setValue('1');" class="btn ThemeColorButton green" name="btnSubmit" /> </div> </div> <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><? echo $this->lang->line('BE_PCK_HD_4'); ?></th> <th><? echo $this->lang->line('BE_PCK_14'); ?></th> <th><? echo $this->lang->line('BE_PCK_15'); ?></th> <th style="text-align:center;">Service Status</th> <th style="text-align:center;">At Home Page</th> <? if(!$IS_DEMO) { ?> <th></th> <? } ?> <th style="text-align:right;"><? echo $this->lang->line('BE_LBL_52'); ?> </th> <th><input type="checkbox" id="chkSelect" name="chkSelect" onClick="selectAllChxBxs('chkSelect', 'chkPacks', <? echo $count; ?>);" value="true"> </th> </tr> </thead> <tbody> <? $strCurrPacks = 0; if($count != 0) { $i = 0; foreach($rsPacks as $row ) { $strCurrPacks .= ', '.$row->PackageId; $packStatus = $row->DisablePackage == '0' ? 'Active' : 'In Active'; $showAtHome = $row->ShowAtHomePage == '0' ? 'No' : 'Yes'; ?> <tr> <td class="highlight"><div class="success"></div><a href="<?php echo base_url($this->config->item('apanel_name').'/retail/' . "rtlservice?id=$row->PackageId&type=$type&frmId=$frmId&fTypeId=$fTypeId")?>"><? echo stripslashes($row->Category);?></a></td> <td><? echo stripslashes($row->PackageTitle);?></td> <td><input type="text" name="packagePrice[<? echo $row->PackageId; ?>][]" id="<? echo $row->PackageId; ?>" value="<? echo roundMe($row->PackagePrice);?>" style="width:75px;" class="form-control" /></td> <td><? echo $row->API == '' ? '-' : stripslashes($row->API);?></td> <td style="text-align:center" valign="middle"> <a href="JavaScript:void(0);" class="btn default btn-xs <? echo $row->DisablePackage == '0' ? 'green' : 'red' ?>"> <? echo $packStatus; ?></td> <td style="text-align:center" valign="middle"> <a href="JavaScript:void(0);" class="btn default btn-xs <? echo $row->ShowAtHomePage == '0' ? 'dark' : 'blue' ?>"> <? echo $showAtHome; ?></td> <td style="text-align:center" valign="middle" width="5%"> <a href="<?php echo base_url($this->config->item('apanel_name').'/retail/' . "rtlservice?id=$row->PackageId&type=$type&frmId=$frmId&fTypeId=$fTypeId")?>"><i class="fa fa-pencil"></i></a></td> <? if(!$IS_DEMO) { ?> <td style="text-align:center" valign="middle" width="5%"> <a href="<?php echo base_url($this->config->item('apanel_name').'/retail/');?>rtlservices?del=1&fs=<? echo $fs;?>&packId=<? echo($row->PackageId); ?>&packageId=<? echo($packageId); ?>&categoryId=<? echo($categoryId); ?>" onclick="return confirm('<? echo $this->lang->line('BE_LBL_32'); ?>')"><i class="fa fa-trash-o"></i></a> </td> <? } ?> <td align="center"> <input type="checkbox" id="chkPacks<? echo $i; ?>" name="chkPacks[]" value="<? print $row->PackageId; ?>" <? if($row->DisablePackage == '1') echo 'checked'; ?> /> </td> </tr> <? $i++; } } else echo "<tr><td colspan='999' align='center'>".$this->lang->line('BE_GNRL_9')."</td></tr>"; ?> <input type="hidden" name="type" value="<? echo($type); ?>" /> <input type="hidden" value="0" name="cldFrm" id="cldFrm" /> <input type="hidden" value="<? echo $dis?>" name="dis" id="dis" /> <input type="hidden" value="<? echo $fs?>" name="fs" /> <input type="hidden" value="<? echo $strCurrPacks; ?>" name="currPcks" /> </tbody> </table> <div class="row"> <div class="col-md-2"> <div class="form-group SelectMinWidth"> <label class="control-label"><strong><?php echo $this->lang->line('recordsPerPage'); ?></strong></label> <select name="records" class="form-control select2me" data-placeholder="Select..." onchange="setValue('0');document.getElementById('frm').submit();"> <?php foreach ($NO_OF_RECORDS as $key => $value) { $selected = ''; if($limit == $key) $selected = 'selected'; echo '<option value="'.$key.'" '.$selected.'>'.$value.'</option>'; } ?> </select> </div> </div> <div class="col-md-9"> <div class="form-group"> <? if($count != 0) { if($totalRows > $limit) doPages($page_name, $back, $start, $txtlqry, $totalRows, $limit, $eu, $pLast, $thisp, $next); } ?> </div> </div> </div> </div> <?php echo form_close(); ?> </div> </div> </div> </div> </div> <script> function setValue(i) { document.getElementById('cldFrm').value = i; } function exportServices() { var strIds = getServiceIds(); window.location.href = 'exportservices.php?type=2&ids='+strIds; } function getServiceIds() { var totalSrvcs = <? echo $count; ?>; var strIds = '0'; for(var i=0; i<totalSrvcs; i++) { if(document.getElementById('chkPacks'+i).checked) { strIds += ',' + document.getElementById('chkPacks'+i).value; } } return strIds; } </script>