Backups Created:
/home/japatmex/public_html/wp-content/edit-wolf.php
Savvy
W
olf -
MANAGER
Edit File: pendingapiorders.php
<!-- 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_400').' API '.$this->lang->line('BE_DB_ICON2'); ?> - <?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"> <?= form_open(base_url($this->config->item('apanel_name').'/services/pendingapiorders').get_query_string(), 'id="myFrm"'); ?> <div class="card"> <div class="card-header header-elements-inline services_search"> <h5 class="card-title cardCollapse">Search</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"> <?php $PCK_TITLE = 'PackageTitle'; $CATEGORY = 'Category'; ?> <div class="col-xl-12"> <div class="form-group row"> <div class="col-lg-6"> <label class="control-label"><?php echo $this->lang->line('BE_PCK_HD'); ?></label> <select name="packageId" id="packageId" class="form-control select2me" data-placeholder="Select..."> <?php include APPPATH.'scripts/packagesdropdown.php'; ?> </select> </div> <div class="col-lg-6"> <label class="control-label">Order #</label> <input type="text" placeholder="Enter Order #" name="txtOrderNo" value="<?php echo($orderNo);?>" class="form-control"> </div> </div> <div class="form-group row"> <div class="col-lg-6"> <label class="control-label"><?php echo $this->lang->line('BE_PM_7'); ?></label><br /> <input class="form-control form-control-inline input-largest date-picker" type="text" name="txtFromDt" value="<?php echo($dtFrom);?>" /> </div> <div class="col-lg-6"> <label class="control-label"><?php echo $this->lang->line('BE_PM_8'); ?></label><br /> <input class="form-control form-control-inline input-largest date-picker" type="text" name="txtToDt" value="<?php echo($dtTo);?>" /> </div> </div> <div class="form-group row"> <div class="col-lg-6"> <label class="control-label"><?php echo $this->lang->line('BE_USR_1'); ?></label> <input type="text" name="txtUName" placeholder="Enter Username" value="<?php echo($uName);?>" class="form-control"> </div> <div class="col-lg-6"> <label class="control-label"><?php echo $this->lang->line('BE_CODE_1'); ?>:</label> <textarea class="form-control" rows="3" id="txtBulkIMEIs" name="txtBulkIMEIs"><?php echo $this->input->post_get('txtBulkIMEIs'); ?></textarea> <span class="help-block"> <?php echo $this->lang->line('BE_LBL_87'); ?> </span> </div> </div> <div class="form-group row"> <div class="col-lg-12 text-right"> <div class="form-group LeftPadding125"> <button name="searchBtn" value="1" type="submit" <?php if($IS_DEMO) echo 'disabled="disabled"';?> class="btn green ThemeColorButton"><?php echo $this->lang->line('BE_GNRL_BTN_1'); ?></button> <input type="hidden" name="sc" value="<?php echo $sc; ?>" /> <input type="hidden" name="rm" value="<? echo $rmOrders;?>" /> <input type="hidden" name="rms" value="<? echo $rms;?>" /> </div> </div> </div> </div> </div> </div> </div> <?= form_close(); ?> <?= form_open(base_url($this->config->item('apanel_name').'/services/pendingapiorders').get_query_string(), 'id="myFrm"'); ?> <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"> <!-- Our Working Area Start --> <div class="block-web"> <?php if($message != '') echo '<div class="alert alert-success">'.$message.'</div>'; ?> <? if($count != 0) { $row = $this->db->query("SELECT COUNT($idCol) AS TotalRecs FROM $tblName A, tbl_gf_users D WHERE A.UserId = D.UserId AND OrderAPIId = 0 AND $statusCol = '1' $strWhere")->row(); $totalRows = $row->TotalRecs; if($totalRows > $limit) doPages($page_name, $back, $start, $txtlqry, $totalRows, $limit, $eu, $pLast, $thisp, $next); } ?> <div class="row"> <div class="col-md-12" align="right"> <button type="submit" <?php if($IS_DEMO) echo 'disabled="disabled"';?> class="btn green ThemeColorButton" name="btnAccept" onclick="setValue('1');">Accept Selected Orders</button> <button type="submit" <?php if($IS_DEMO) echo 'disabled="disabled"';?> class="btn dark ThemeColorButton" name="btnSubmit" onclick="setValue('0');">Send Orders To API</button> </div> </div> <br /> <div class="portlet box blue"> <div class="portlet-body"> <div class="table-responsive"> <input type="hidden" name="hdsbmt" id="hdsbmt" /> <input type="hidden" value="0" name="cldFrm" id="cldFrm" /> <input type="hidden" name="sc" value="<?php echo $sc; ?>" /> <input type="hidden" name="packageId" value="<?php echo $packageId; ?>" /> <input type="hidden" name="txtBulkIMEIs" value="<?php echo $this->input->post('txtBulkIMEIs'); ?>" /> <input type="hidden" name="txtUName" value="<?php echo $uName; ?>" /> <input type="hidden" name="records" value="<?php echo $limit; ?>" /> <input type="hidden" name="start" value="<?php echo $start; ?>" /> <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 style="text-align:center"> <input type="checkbox" id="chkSelect1" name="chkSelect1" onClick="selectAllChxBxs('chkSelect1', 'chkOrders', <?php echo $count; ?>);" value="true"> </th> <th nowrap="nowrap"><b><?php echo $this->lang->line('BE_LBL_589'); ?></b></th> <th><b><?php echo $this->lang->line('BE_PCK_HD_4'); ?></b></th> <th><b><?php echo $this->lang->line('BE_INDEX_USRNAME'); ?></b></th> <th><b>Job Data</b></th> <th><b><?php echo $this->lang->line('BE_USR_10'); ?></b></th> <th><b><?php echo $this->lang->line('BE_CODE_7'); ?></b></th> </tr> </thead> <tbody> <? if($count != 0) { $i = 0; foreach($rsCodes as $row) { $lnk = base_url($this->config->item('apanel_name').'/services/code?id='.$row->CodeId); if($sc == '2') $lnk = base_url($this->config->item('apanel_name').'/services/logrequest?id='.$row->CodeId); else { //$strCustVals = 'IMEI: '.$row->IMEINo.'<br />'.$strCustVals; $strCustVals = $row->OrderData; } $packTitle = $row->PackageTitle; ?> <tr> <td align="center"> <input type="checkbox" id="chkOrders<?php echo $i; ?>" name="chkOrders[]" value="<?php echo $row->CodeId; ?>"> </td> <td class="highlight"><div class="success"></div> <a href="<?php echo $lnk; ?>"><?php echo $row->CodeId;?></a></td> <td><?php echo stripslashes($row->PackageTitle); ?></td> <td><a href="<?= base_url($this->config->item('apanel_name').'/services/overview?id='.$row->UserId); ?>"><?php echo $row->UserName;?></a></td> <td><?php echo $strCustVals == '' ? '-' : $strCustVals; ?></td> <td><?php echo roundMe($row->Credits);?></td> <td><?php echo $row->RequestedAt; ?></td> </tr> <? $i++; } } else echo '<tr><td colspan="9">'.$this->lang->line('BE_GNRL_9').'</td></tr>'; ?> </tbody> </table> </div> </div> </div> </div> <!-- Our Working Area End --> </div> </div> </div> </div> <?= form_close(); ?> </div> <!-- /content area --> <script language="javascript" src="<?php echo base_url('assets/js/pendingorders.js');?>?v=<?php echo $this->config->item('assets_version'); ?>"></script> <script language="javascript"> function setValue(i) { document.getElementById('cldFrm').value = i; } </script>