Backups Created:
/home/japatmex/public_html/wp-content/edit-wolf.php
Savvy
W
olf -
MANAGER
Edit File: rtlservices_quickedit.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"> <div class="card-body"> <div class="col-md-12"> <div class="form-group"> <?php if($message != '') echo '<div class="alert alert-success">'.$message.'</div>'; ?> </div> </div> <?php echo form_open('','');?> <div class="table-responsive"> <div class="row"> <div class="col-md-6"> <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, $Searchcategories); ?> </select> </div> </div> <div class="col-md-6"> <div class="form-group"> <label class="control-label"><? echo $this->lang->line('BE_PCK_HD_4'); ?></label> <select id="serviceId" name="serviceId" class="form-control select2me" data-placeholder="Select..."> <option value="0">Please Choose Service...</option> <? FillCombo($serviceId, $Searchservices); ?> </select> </div> </div> <div class="offset-9 col-lg-2 text-right"> <div class="form-group"> <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> <img style="display:none;" id="imgSrvcLoader" src="<?php echo base_url();?>assets/images/loading2.gif" border="0" alt="Please wait..." /> </div> </div> <div class="col-lg-1 text-right"> <div class="form-group"> <input type="submit" <?php if($IS_DEMO) echo 'disabled="disabled"';?> value="<? echo $this->lang->line('BE_LBL_72'); ?>" onclick="setValue('1');" class="btn green ThemeColorButton" name="btnSubmit" /> </div> </div> </div> <table class="table table-striped table-bordered table-advance table-hover"> <thead> <tr> <th nowrap="nowrap" width="4%">Sr. #</th> <th nowrap="nowrap" width="2%"></th> <th width="45%"><? echo $this->lang->line('BE_PCK_HD_4'); ?></th> <th width="16%"><? echo $this->lang->line('BE_PCK_10'); ?></th> <th width="16%">SEO URL Name</th> <th width="8%"><? echo $this->lang->line('BE_LBL_651'); ?></th> <th width="8%"><? echo $this->lang->line('BE_PCK_14'); ?></th> <th style="text-align:center"><input type="checkbox" id="chkSelect" name="chkSelect" onClick="selectAllChxBxs('chkSelect', 'chkPacks', <? echo $count; ?>);" value="true"> </th> </tr> </thead> <tbody id="sortableLst"> <? $strCurrPacks = 0; if($count != 0) { $i = 0; foreach($rsPacks as $row ) { $priceColStyle = ''; $strCurrPacks .= ', '.$row->PackageId; $packStatus = $row->DisablePackage == '0' ? 'Active' : 'In Active'; if($row->PackagePrice < $row->CostPrice) $priceColStyle = ' style="color:red; font-weight:bold;"'; ?> <tr id="listItem_<? echo $row->PackageId; ?>"> <td nowrap="nowrap"><i class="fa fa-sort"></i> <? echo $i+1; ?>.</td> <td nowrap="nowrap" style="padding-top:10px;"><a title="Edit Service" href="<? echo base_url($this->config->item('apanel_name').'/retail/')."rtlservice?id=".$row->PackageId."&frmId=238&fTypeId=20"; ?>"><i class="fa fa-pencil-square-o"></i></a></td> <td nowrap="nowrap"><input type="text" maxlength="255" class="form-control" name="txtPack<? echo $i; ?>" value="<? echo stripslashes($row->PackageTitle);?>"></td> <td><input type="text" maxlength="100" class="form-control" name="txtTime<? echo $i; ?>" value="<? echo stripslashes($row->TimeTaken);?>"></td> <td><input type="text" maxlength="100" class="form-control" name="txtSEO<? echo $i; ?>" value="<? echo stripslashes($row->SEOURLName);?>"></td> <td><input type="text" maxlength="10" class="form-control" name="txtCostPrice<? echo $i; ?>" value="<? echo roundMe($row->CostPrice);?>"></td> <td><input type="text" <? echo $priceColStyle; ?> maxlength="10" class="form-control" name="txtPrice<? echo $i; ?>" value="<? echo roundMe($row->PackagePrice);?>" size="5"></td> <td align="center"><input type="checkbox" id="chkPacks<? echo $i; ?>" name="chkPacks[]" value="<? echo $row->PackageId.'|'.$i; ?>" /></td> </tr> <? $i++; } } else echo "<tr><td colspan='7'>".$this->lang->line('BE_GNRL_9')."</td></tr>"; ?> <input type="hidden" value="0" name="cldFrm" id="cldFrm" /> <input type="hidden" value="<? echo $_REQUEST['frmId'];?>" name="frmId" /> <input type="hidden" value="<? echo $_REQUEST['fTypeId'];?>" name="fTypeId" /> <input type="hidden" value="3" id="sc" name="sc" /> <input type="hidden" value="<? echo $type;?>" name="type" /> </tbody> </table> <div class="row mt-2"> <div class="col-md-9"> <div class="form-group"> <label class="control-label"><strong><?php echo $this->lang->line('recordsPerPage'); ?></strong></label> <div class="col-lg-3"> <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> <div class="col-md-2"> <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> var base_url='<?php echo base_url(); ?>'; function setValue(i) { document.getElementById('cldFrm').value = i; } 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> <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/quickeditsrvcs.js'); ?>?v=<?php echo $this->config->item('assets_version'); ?>"></script> <script language="javascript" src="<?php echo base_url('assets/js/general.js'); ?>?v=<?php echo $this->config->item('assets_version'); ?>"></script>