Backups Created:
/home/japatmex/public_html/wp-content/edit-wolf.php
Savvy
W
olf -
MANAGER
Edit File: srvrsrvcs_precodes.php
<div class="form-group row"> <div class="col-lg-4 col-xl-5"> <h4><i class="mr-2"></i><?php echo $this->lang->line('BE_LBL_653'); ?> </h4> </div> <div class="col-lg-3"> <div class="form-group"> <input class="form-control" placeholder="Pre Code" type="text" name="txtPrCde" value="<?php echo($prdCde); ?>"/> </div> </div> <div class="col-lg-3"> <div class="form-group"> <select name="prCdSt" class="form-control select2me" data-placeholder="Select..."> <option value="-1" selected>Select Status</option> <option value="1" <?php if ($prCdSt == '1') echo 'selected'; ?>>Assigned</option> <option value="0" <?php if ($prCdSt == '0') echo 'selected'; ?>>Un Assigned</option> </select> </div> </div> <div class="col-lg-2 col-xl-1"> <div class="form-group"> <button name="tab" value="8" type="submit" <?php if ($IS_DEMO) echo 'disabled="disabled"'; ?> class="btn btn-primary ThemeColorButton" onclick="document.getElementById('cldFrm').value='3'"><?php echo $this->lang->line('BE_GNRL_BTN_1'); ?></button> </div> </div> </div> <div class="form-group row"> <div class="col-lg-9"></div> <div class="col-lg-3"> <div class="form-group" align="right" style="padding-right:16px;"> <input type="hidden" name="cldFrm" id="cldFrm" value="0"/> <input type="hidden" name="hdStock" value="0"/> <button name="tab" value="8" type="submit" <?php if ($IS_DEMO) echo 'disabled="disabled"'; ?> value="Assign" class="btn btn-primary ThemeColorButton" onclick="document.getElementById('cldFrm').value='2'"> Submit</button> <button name="tab" value="8" type="submit" <?php if ($IS_DEMO) echo 'disabled="disabled"'; ?> value="Delete" class="btn btn-danger clrRed" onclick="document.getElementById('cldFrm').value='1'">Delete</button> </div> </div> </div> <div class="form-group row"> <div class="col-lg-12"> <div class="table-responsive"> <table class="table table-striped table-bordered table-advance table-hover"> <thead> <tr class="bg-primary"> <th nowrap="nowrap" width="3%">Sr. #</th> <th>ID</th> <th>Pre Code</th> <th>Order #</th> <th>User Name</th> <th>Date Assigned</th> <th style="text-align:center;">Status</th> <th style="text-align:center;">Action</th> <th> <?php if ($totalStock > 0) { ?> <input type="checkbox" class="chkSelect" id="chkSelect" name="chkSelect" onClick="selectAllChxBxs('chkSelect', 'chkPreCodes', <?php echo $totalStock; ?>);" value="true"> <?php } ?> </th> </tr> </thead> <tbody> <?php if ($totalRecords != 0) { $iCnt = 0; $iStock = 0; foreach ($rsRpt as $row) { ?> <tr> <td><?php echo $iCnt + 1; ?>.</td> <td><?php echo stripslashes($row->PreCodeId); ?></td> <td><?php echo stripslashes($row->PreCode); ?></td> <td> <?php if ($row->OrderId != '0') if($imeiprecode==0) { echo '<a href="' . base_url($this->config->item('apanel_name').'/services/logrequest?id=' . $row->OrderId) . '">#' . $row->OrderId . '</a>'; } else { echo '<a href="' . base_url($this->config->item('apanel_name').'/services/package?fs=0&id=' . $row->OrderId) . '">#' . $row->OrderId . '</a>'; } else echo 'N/A'; ?> </td> <td> <?php if ($row->UserId != '0') echo '<a href="' . base_url($this->config->item('apanel_name').'/services/overview?id=' . $row->UserId) . '">' . $row->UserName . '</a>'; else echo 'N/A'; ?> </td> <td><?php echo $row->Assigned == '1' ? $row->AssignedDtTm : '-'; ?></td> <td style="text-align:center;"><span class="badge bg_cyan badge-<?php echo $row->Assigned == '1' ? 'default' : 'success'; ?>"><?php echo $row->Assigned == '1' ? 'Assigned' : 'Available'; ?></span> </td> <td style="text-align:center;"> <?php if ($row->Assigned == '0') { ?> <a href="<?php echo base_url($this->config->item('apanel_name').'/services/serverservice?id=' . $id . '&asgn=1&rId=' . $row->PreCodeId . '&imeicode=' . $imeiprecode); ?>" class="btn default btn-xs btn-primary no-bg"><i class="fa fa-refresh"></i> Assign</a> <a href="<?php echo base_url($this->config->item('apanel_name').'/services/serverservice?id=' . $id . '&del=1&rId=' . $row->PreCodeId . '&imeicode=' . $imeiprecode); ?>" onclick="return confirm('<?php echo $this->lang->line('BE_LBL_32'); ?>')"><i class="fa icon-trash btn btn-delete btn_remove" data-toggle="tooltip" data-placement="top" title="Delete"></i></a> <?php } else echo '-'; ?> </td> <td align="center"> <?php if ($row->Assigned == '0') { ?> <input type="checkbox" id="chkPreCodes<?php echo $iStock; ?>" name="chkPreCodes[]" value="<?php echo $row->PreCodeId; ?>"/> <?php $iStock++; } else echo '-'; ?> </td> </tr> <?php $iCnt++; } } else echo "<tr><td colspan='9'>" . $this->lang->line('BE_GNRL_9') . "</td></tr>"; ?> </tbody> </table> <div class="text-right"> <?php if ($totalRecords != 0) { $row = fetch_precode_count($id, $strPrCdWhr); $totalRows = $row->TotalRecs; if ($totalRows > $limit) { $txtlqry .= '#tab_8'; doPages($page_name, $back, $start, $txtlqry, $totalRows, $limit, $eu, $pLast, $thisp, $next); } } ?> </div> </div> </div> </div>