Backups Created:
/home/japatmex/public_html/wp-content/edit-wolf.php
Savvy
W
olf -
MANAGER
Edit File: verifyorders.php
<div class="page-header border-bottom-0 pt-4"> <div class="form-group"> <div class="col-lg-10 pl-3"> <div class="btn-group"> <button type="button" <?php if($IS_DEMO) echo 'disabled="disabled"';?> class="btn btn-primary dropdown-toggle" data-toggle="dropdown" data-hover="dropdown" data-delay="1000" data-close-others="true"><? echo $this->lang->line('BE_LBL_285'); ?></button> <ul class="dropdown-menu" role="menu" style="text-align:left;"> <li class="dropdown-item"><a href="<?php echo base_url($this->config->item('apanel_name').'/services/codes?codeStatusId=1&searchType=1');?>"><?php echo $this->lang->line('BE_LBL_286'); ?></a></li> <li class="dropdown-item"><a href="<?php echo base_url($this->config->item('apanel_name').'/services/codes?codeStatusId=1&searchType=2');?>"><?php echo $this->lang->line('BE_LBL_287'); ?></a></li> </ul> </div> <div class="btn-group"> <button type="button" <?php if($IS_DEMO) echo 'disabled="disabled"';?> class="btn btn-primary dropdown-toggle" data-toggle="dropdown" data-hover="dropdown" data-delay="1000" data-close-others="true"><? echo $this->lang->line('BE_LBL_288'); ?></button> <ul class="dropdown-menu" role="menu" style="text-align:left;"> <li class="dropdown-item"><a href="<?php echo base_url($this->config->item('apanel_name').'/services/codes?codeStatusId=4&searchType=3');?>"><?php echo $this->lang->line('BE_LBL_289'); ?></a></li> <li class="dropdown-item"><a href="<?php echo base_url($this->config->item('apanel_name').'/services/codes?bulk=1&codeStatusId=4&searchType=3')?>"><?php echo $this->lang->line('BE_LBL_290'); ?></a></li> </ul> </div> <div class="btn-group"> <button type="button" <?php if($IS_DEMO) echo 'disabled="disabled"';?> class="btn btn-primary dropdown-toggle" data-toggle="dropdown" data-hover="dropdown" data-delay="1000" data-close-others="true"><? echo $this->lang->line('BE_LBL_291'); ?></button> <ul class="dropdown-menu" role="menu" style="text-align:left;"> <li class="dropdown-item"><a href="<?php echo base_url($this->config->item('apanel_name').'/services/codes')?>"><?php echo $this->lang->line('BE_LBL_291'); ?></a></li> </ul> </div> <div class="btn-group"> <button type="button" <?php if($IS_DEMO) echo 'disabled="disabled"';?> class="btn btn-primary dropdown-toggle" data-toggle="dropdown" data-hover="dropdown" data-delay="1000" data-close-others="true"><? echo $this->lang->line('BE_LBL_292'); ?></button> <ul class="dropdown-menu" role="menu" style="text-align:left;"> <li class="dropdown-item"><a href="<?php echo base_url($this->config->item('apanel_name').'/services/verifyorders')?>"><?php echo $this->lang->line('BE_LBL_292'); ?></a></li> </ul> </div> </div> </div> </div> <!-- Page header --> <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_183'); ?> - <?php echo $rmOrders == '0' ? $this->lang->line('CUST_LBL_164') : $this->lang->line('CUST_ORDERS_REMOTE'); ?></h4> </div> </div> </div> <!-- /page header --> <!-- Content area --> <div class="content pt-0"> <div class="card card-collapsed"> <div class="card-header header-elements-inline" style="height: 42px;"> <h5 class="card-title cardCollapse">Search Orders</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: none;"> <div class="row"> <div class="col-xl-12"> <?php echo form_open(base_url($this->config->item('apanel_name').'/services/verifyorders?frmId=100&fTypeId=16'), 'name="frm" id="frm"') ?> <?php include APPPATH.'scripts/admincodessearchsection.php'; ?> <input type="hidden" name="rm" value="<? echo $rmOrders;?>" /> <input type="hidden" name="rms" value="<? echo $rms;?>" /> <?php echo form_close(); ?> <?php if($count != 0) { $row = fetch_users_codes_count($strWhere); $totalRows = $row->TotalRecs; if($totalRows > $limit) doPages($page_name, $back, $start, $txtlqry, $totalRows, $limit, $eu, $pLast, $thisp, $next); } ?> </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($message != '') echo '<div class="alert alert-success">'.$message.'</div>'; ?> <!-- Our Working Area Start --> <?php echo form_open(base_url($this->config->item('apanel_name').'/services/verifyorders?frmId=100&fTypeId=16'), 'id="myFrm" onsubmit="return validate(-1)"');?> <div class="col-12 text-right mb-3"> <div class="btn-group btn-group-sm btn-group-solid"> <input type="submit" <?php if($IS_DEMO) echo 'disabled="disabled"';?> value="<?php echo $this->lang->line('BE_LBL_194'); ?>" class="btn GreenThemeButton" name="btnSubmit" /> </div> <div class="btn-group btn-group-sm btn-group-solid" align="right"> <input type="button" <?php if($IS_DEMO) echo 'disabled="disabled"';?> value="<?php echo $this->lang->line('BE_LBL_40'); ?>" class="btn ThemeGreenBtn" onClick="downloadIMEIs();" /> </div> </div> <div class="portlet box blue"> <div class="portlet-body"> <div class="table-responsive"> <input type="hidden" name="hdsbmt" id="hdsbmt" /> <input type="hidden" name="uId" value="<?php echo $uId;?>" /> <input type="hidden" name="rm" value="<? echo $rmOrders;?>" /> <input type="hidden" name="rms" value="<? echo $rms;?>" /> <table class="table table-striped table-bordered table-advance table-hover"> <thead> <tr> <th nowrap="nowrap" width="3%">Sr. #</th> <th> <?php echo $this->lang->line('BE_LBL_194'); ?> <br><input type="checkbox" class="chkSelect" id="chkSelect1" name="chkSelect1" onClick="selectAllChxBxs('chkSelect1', 'chkReply', <?php echo $count; ?>);" value="true"> </th> <th nowrap="nowrap"><?php echo $this->lang->line('BE_LBL_589'); ?></th> <th><?php echo $this->lang->line('CUST_CODE_2'); ?></th> <th><?php echo $this->lang->line('BE_INDEX_USRNAME'); ?></th> <th><?php echo $this->lang->line('BE_CODE_1'); ?>/Data</th> <th><?php echo $this->lang->line('BE_CODE_7'); ?></th> <th><?php echo $this->lang->line('BE_CODE_6'); ?></th> <th style="text-align:center"> <?php echo $this->lang->line('BE_LBL_308').' / Download';?> <br> <input type="checkbox" id="chkSelect" name="chkSelect" onClick="selectAllChxBxs('chkSelect', 'chkCodes', <?php echo $count; ?>);" value="true"> </th> </tr> </thead> <tbody> <?php if($count != 0){ $i = 0; foreach($rsCodes as $row) { $dt= '-'; if($row->RequestedAt != '') $arrDt = explode(' ', $row->RequestedAt); if(isset($arrDt[0])) $dt = $arrDt[0]; $imeiInChkBx = $row->IMEINo == '' ? '.' : $row->IMEINo; ?> <tr> <td><?php echo $i+1; ?>.</td> <td align="center"> <input type="checkbox" id="chkReply<?php echo $i; ?>" name="chkReply[]" value="<?php echo $row->CodeId.'|'.$row->UserId.'|'.$row->Credits.'|'.$imeiInChkBx.'|'.$i.'|'.$row->PackageId; ?>"> </td> <td><? echo $apiError;?> <a href="<?php echo base_url($this->config->item('apanel_name').'/services'); ?>/code?id=<? echo($row->CodeId);?>">#<? echo $row->CodeId;?></a></td> <td><?php echo stripslashes($row->PackageTitle); ?></td> <td><?php echo $row->UserName; ?></td> <td> <?php echo $row->IMEINo;?><br /><br /> <?php echo stripslashes($row->VerifyData); ?> </td> <td nowrap="nowrap"><?php echo $dt; ?></td> <td> <input type="text" class="form-control" placeholder="Enter Data" style="width:150px;" name="txtCode<?php echo $i; ?>" value="<?php echo htmlspecialchars($row->Code); ?>" /> </td> <td align="center"> <input type="checkbox" id="chkCodes<?php echo $i; ?>" name="chkCodes[]" value="<?php echo $row->CodeId.'|'.$row->UserId.'|'.$row->Credits.'|'.$imeiInChkBx.'|'.$i.'|'.$row->PackageId; ?>"> </td> </tr> <?php $i++; } } else echo '<tr><td colspan="9">'.$this->lang->line('BE_GNRL_9').'</td></tr>'; ?> </tbody> </table> </div> </div> </div> <?php echo form_close();?> <!-- Our Working Area End --> </div> </div> </div> </div> </div> <!-- /content area --> <script language="javascript" src="<?php echo base_url('assets/js/functions.js?v='.$this->config->item('assets_version')); ?>"></script> <script> function downloadIMEIs() { var strIds = validate('0'); if(strIds != false) window.location.href = '<?php echo base_url() . $this->config->item('apanel_name'); ?>/services/downloadIMEIs?ids='+strIds; } function validate(cldFrm) { if(cldFrm == 0) { var totalCodes = <? echo $count; ?>; var strIds = '0'; for(var i=0; i<totalCodes; i++) { if(document.getElementById('chkCodes'+i).checked) { arr = document.getElementById('chkCodes'+i).value.split('|'); strIds += ',' + arr[0]; } } if(strIds == '0') { alert('<? echo $this->lang->line('BE_LBL_53') ?>'); return false; } if(cldFrm == 0) return strIds; else return true; } else return true; } $(document).ready(function(){ $(".cardCollapse").click(function(){ if($(this).parents('.card').hasClass('card-collapsed')){ $(this).parents('.card').removeClass('card-collapsed'); $('.CollapsedCardBody').show(); }else{ $(this).parents('.card').addClass('card-collapsed'); $('.CollapsedCardBody').hide(); } }); }); </script>