Backups Created:
/home/japatmex/public_html/wp-content/edit-wolf.php
Savvy
W
olf -
MANAGER
Edit File: rtlservice_tab_api.php
<div class="portlet box blue"> <div class="portlet-title"> <div class="caption"> <i class="fa fa-reorder"></i><? echo $this->lang->line('BE_PCK_15'); ?> </div> </div> <div class="portlet-body form"> <div class="form-body"> <div class="form-group"> <label class="col-md-3 control-label"><? echo $this->lang->line('BE_PCK_6'); ?>:</label> <div class="col-md-9"> <select name="apiId" id="apiId" class="form-control select2me" data-placeholder="<? echo $this->lang->line('BE_LBL_278'); ?>"> <option value="-1~0~0"><? echo $this->lang->line('BE_LBL_278'); ?></option> <? FillCombo($apiId, 'SELECT CONCAT(APIId, "~", SendExternalId, "~", APIType) AS Id, APITitle AS Value FROM tbl_gf_api WHERE DisableAPI = 0 ORDER BY APITitle'); ?> </select><img style="display:none;" id="imgSrvcLoader" src="../assets/img/loading.gif" border="0" alt="Please wait..." /> </div> </div> <div class="form-group" id="dvExtNetworkId"> <label class="col-md-3 control-label"><? echo $this->lang->line('BE_LBL_293'); ?>:</label> <div class="col-md-9"> <select name="supplierPackId" id="supplierPackId" class="form-control select2me" data-placeholder="<? echo $this->lang->line('BE_LBL_274'); ?>"> <option value="0"><? echo $this->lang->line('BE_LBL_274'); ?></option> <? FillCombo($extNetworkId, "SELECT ServiceId AS Id, CONCAT(ServiceName, '-', ServicePrice, ' Credits', '-', ServiceTime) AS Value FROM tbl_gf_supplier_services WHERE APIId = '$onlyAPIId' AND ServiceType = '$fs' ORDER BY ServiceName"); ?> </select><img style="display:none;" id="imgSrvcToolLoader" src="../assets/img/loading.gif" border="0" alt="Please wait..." /> </div> </div> <div class="form-group"> <label class="col-md-3 control-label"><? echo $this->lang->line('BE_LBL_836'); ?>:</label> <div class="col-md-3"> <input type="text" class="form-control" placeholder="Enter <? echo $this->lang->line('BE_LBL_836'); ?>" name="txtCronTiming" id="txtCronTiming" maxlength="4" value="<? echo($cronDelayTm);?>" /> </div> <span class="help-block"> In minutes </span> </div> </div> </div> </div> <div align="center"> <button type="submit" <?php if($IS_DEMO) echo 'disabled="disabled"';?> class="btn green"><?php echo $this->lang->line('BE_LBL_72'); ?></button> </div> <br /> <? if($onlyAPIId && $fs == 0) { $del = isset($_REQUEST['del']) ? 1 : 0; $altId = isset($_REQUEST['altId']) ? check_input($_REQUEST['altId'], $this->db->conn_id) : 0; if($del == '1' && $altId > 0) { $this->db->query("DELETE FROM tbl_gf_alternate_apis WHERE AltAPISrvcId = '$altId' AND AltServiceId = '$id' AND AltServiceType = '$fs'"); $message = 'Alternate API has been deleted successfully!'; } $rsAltAPIH = $this->db->query("SELECT AltAPISrvcId, AltAPIId, AltAPIServiceId, APITitle, ServiceName, ServicePrice FROM tbl_gf_alternate_apis A, tbl_gf_supplier_services B, tbl_gf_api C WHERE A.AltAPIId = B.APIId AND B.APIId = C.APIId AND A.AltAPIServiceId = B.ServiceId AND AltServiceId = '$id' AND A.AltServiceType = '$fs' AND B.ServiceType = '$fs' ORDER BY AltAPISortBy")->result(); $cntAltAPIH = count($rsAltAPIH); ?> <div class="portlet box blue"> <div class="portlet-title"> <div class="caption"> <i class="fa fa-reorder"></i>Alternate API </div> </div> <div class="portlet-body form"> <div class="form-body"> <div class="form-group"> <div class="col-md-12"> <span class="help-block"> If main API does not return result, provide here the list of APIs to be connected to in the order. Darg and drop to change the order of connections. </span> </div> <div class="col-md-8"> <a href="alternateapi.php?id=<? echo $id?>&sc=<? echo $fs;?>&pn=<? echo str_replace(' ', 'S_P_', $packageTitle); ?>" class="fancybox fancybox.ajax btn green" title="Apply an alternate API, if main API rejects an order then system will automatically apply alternate API with an order."><i class="fa fa-plus"></i> Add</a> </div> </div> </div> </div> <div class="portlet-body"> <div class="table-responsive"> <? if($message != '') echo '<div class="alert alert-success">'.$message.'</div>'; if(isset($_REQUEST['jd']) && $_REQUEST['jd'] == '1') echo '<div class="alert alert-success">'.$this->lang->line('BE_GNRL_11').'</div>'; ?> <div id="dvMsg" style="display:none;" class="alert alert-success"> </div> <table class="table table-striped table-bordered table-advance table-hover"> <thead> <tr> <th nowrap="nowrap" width="4%">Sr. #</th> <th><? echo $this->lang->line('BE_MR_19'); ?></th> <th nowrap="nowrap"><? echo $this->lang->line('BE_PCK_HD_4'); ?></th> <th><? echo $this->lang->line('BE_PCK_14'); ?></th> <th></th> <th></th> </tr> </thead> <tbody id="sortableLst"> <? if($cntAltAPIH != 0) { $u = 0; foreach($rsAltAPIH as $row) { ?> <tr id="listItem_<? echo $row->AltAPISrvcId; ?>"> <td nowrap="nowrap"><i class="fa fa-sort"></i> <? echo $u+1; ?>.</td> <td><? echo stripslashes($row->APITitle);?></td> <td><? echo stripslashes($row->ServiceName);?></td> <td><? echo roundMe($row->ServicePrice);?></td> <td style="text-align:center" valign="middle"> <a href="alternateapi.php?id=<? echo $id?>&sc=<? echo $fs;?>&pn=<? echo str_replace(' ', 'S_P_', $packageTitle); ?>&altId=<? echo $row->AltAPISrvcId;?>" class="fancybox fancybox.ajax"><i class="fa fa-pencil"></i></a></td> <td style="text-align:center" valign="middle"> <a href="package.php?id=<? echo $id;?>&fs=<? echo$fs; ?>&altId=<? echo $row->AltAPISrvcId;?>&del=1#tab_2" onclick="return confirm('<? echo $this->lang->line('BE_LBL_32'); ?>')"><i class="fa fa-trash-o"></i></a></td> </tr> <? $u++; } } else echo "<tr><td colspan='7'>".$this->lang->line('BE_GNRL_9')."</td></tr>"; ?> </tbody> </table> </div> </div> </div> <? } if($id > 0) { ?> <div class="portlet box green"> <div class="portlet-title"> <div class="caption"> <i class="fa fa-reorder"></i>API History </div> </div> <div class="portlet-body"> <div class="table-responsive"> <table class="table table-striped table-bordered table-advance table-hover"> <thead> <tr> <th><? echo $this->lang->line('BE_MR_19'); ?></th> <th nowrap="nowrap"><? echo $this->lang->line('BE_PCK_HD_4'); ?></th> <th><? echo $this->lang->line('BE_PCK_14'); ?></th> <!--<th><? //echo $BE_CR_3; ?></th>--> <th></th> </tr> </thead> <tbody> <? if($cntAPIH != 0) { foreach($rsAPIHistory as $row) { ?> <tr> <td><? echo stripslashes($row->APITitle);?></td> <td><? echo stripslashes($row->ServiceName);?></td> <td><? echo roundMe($row->ServicePrice);?></td> <!--<td><? //echo $row->DtTm; ?></td>--> <td><a href="package.php?fs=<? echo $fs; ?>&id=<? echo $id;?>&crAPIId=<? echo $row->APIId;?>&crAPISrvId=<? echo $row->APIServiceId;?>&applyAPI=1#tab_2" onclick="return confirm('Are you sure to apply this API?')" class="btn default btn-xs purple"><i class="fa fa-cog"></i> Apply API</a></td> </tr> <? }?> <? }else{ ?> <tr><td colspan="5"><strong><? echo $this->lang->line('BE_GNRL_9'); ?></strong></td></tr> <? } ?> </tbody> </table> </div> </div> </div> <? } ?>