Backups Created:
/home/japatmex/public_html/wp-content/edit-wolf.php
Savvy
W
olf -
MANAGER
Edit File: creditsrpt.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_812'); ?></h4> </div> </div> </div> <!-- /page header --> <!-- Content area --> <div class="content pt-0"> <div class="card "> <div class="card-header header-elements-inline" style="height: 42px;"> <h5 class="card-title cardCollapse"><?php echo $this->lang->line('BE_GNRL_BTN_1'); ?></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_multipart(base_url($this->config->item('apanel_name')."/reports/creditsrpt?frmId=85&fTypeId=15")) ?> <div class="form-group row"> <div class="col-lg-6"> <label class="control-label"><? echo $this->lang->line('BE_PM_3'); ?></label> <input type="text" name="txtUName" value="<?php echo $userName; ?>" class="form-control"> </div> <div class="col-lg-6"> <label class="control-label"><? echo $this->lang->line('BE_LBL_345'); ?></label> <input type="text" name="txtEmail" value="<? echo($email); ?>" class="form-control"> </div> </div> <div class="form-group row"> <div class="col-lg-6"> <label class="control-label"><? echo $this->lang->line('BE_LBL_385'); ?></label> <input type="text" name="txtMinCr" value="<? echo($minCr); ?>" class="form-control"> </div> <div class="col-lg-6"> <label class="control-label"><? echo $this->lang->line('BE_LBL_386'); ?></label> <input type="text" name="txtMaxCr" value="<? echo($maxCr); ?>" class="form-control"> </div> </div> <div class="form-group row"> <div class="col-lg-12 text-right"> <button type="submit" <?php if ($IS_DEMO) echo 'disabled="disabled"'; ?> class="btn btn-primary ThemeColorButton"><? echo $this->lang->line('BE_GNRL_BTN_1'); ?></button> <input type="hidden" name="userId" id="userId" value="<? echo $userId; ?>"/> <input type="hidden" name="start" id="start" value="0"/> </div> </div> <?php echo form_close(); ?> </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"> <!-- Our Working Area Start --> <?php if (isset($message) && $message != '') { ?> <div class="form-group row"> <div class="col-lg-12"> <div class="alert alert-success"><?php echo $message; ?></div> </div> </div> <?php } ?> <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>Available Credits</th> <th>Credits Used</th> <th>Inprocess Credits</th> </tr> </thead> <tbody> <tr> <td><? echo $strAvCredits; ?></td> <td><? echo $strCreditsUsed; ?></td> <td><? echo $strIPCredits; ?></td> </tr> </tbody> </table> </div> </div> </div> <? if ($this->input->method()=='post' || $userId > 0) { ?> <div class="form-group row"> <div class="col-lg-12"> <div class="page-title d-flex"> <h4> User Credits Report</h4> </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><?php echo $this->lang->line('BE_USR_1'); ?></th> <th><?php echo $this->lang->line('BE_USR_9'); ?></th> <th><? echo $this->lang->line('BE_LBL_345'); ?></th> <th>Available Credits</th> <th>Credits Used</th> <th>Inprocess Credits</th> </tr> </thead> <tbody> <? if ($rsUsers) { $i = 0; foreach ($rsUsers as $row) { $displayRow = false; $key = crypt_key($row->UserId); $myCredits = decrypt($row->Credits, $key); if ($myCredits == '') $myCredits = '0'; else $myCredits = roundMe($myCredits); //$inProcessCredits = $INPROCESS_IMEI_ARR[$row->UserId] + $INPROCESS_FILE_ARR[$row->UserId] + $INPROCESS_SRVR_ARR[$row->UserId]; $inProcessCredits = (isset($INPROCESS_IMEI_ARR[$row->UserId])?$INPROCESS_IMEI_ARR[$row->UserId]:0) + (isset($INPROCESS_FILE_ARR[$row->UserId])?:0) + (isset($INPROCESS_SRVR_ARR[$row->UserId])?$INPROCESS_SRVR_ARR[$row->UserId]:0); $creditsUsed = (isset($COMPLETED_IMEI_ARR[$row->UserId])?$COMPLETED_IMEI_ARR[$row->UserId]:0) + (isset($COMPLETED_FILE_ARR[$row->UserId])?$COMPLETED_FILE_ARR[$row->UserId]:0) + (isset($COMPLETED_SRVR_ARR[$row->UserId])?$COMPLETED_SRVR_ARR[$row->UserId]:0); if ($minCr != '' && $maxCr != '') { if (is_numeric($minCr) && is_numeric($maxCr)) { if ($myCredits >= $minCr && $myCredits <= $maxCr) $displayRow = true; } } else if ($minCr != '' || $maxCr != '') { if ($minCr != '' && is_numeric($minCr)) { if ($myCredits >= $minCr) $displayRow = true; } if ($maxCr != '' && is_numeric($maxCr)) { if ($myCredits <= $maxCr) $displayRow = true; } } else if ($minCr == '' && $maxCr == '') $displayRow = true; if ($displayRow) { ?> <tr> <td class="highlight"> <div class="success"></div> <a href="<?php echo base_url($this->config->item('apanel_name')."/clients/users") ?>?id=<? echo $row->UserId; ?>"><? echo stripslashes($row->UserName); ?></a> </td> <td><? echo stripslashes($row->Name); ?></td> <td><? echo($row->UserEmail); ?></td> <td><? echo $row->CurrencyAbb . ' ' . $myCredits; ?></td> <td><? echo $row->CurrencyAbb . ' ' . roundMe($creditsUsed); ?></td> <td><? echo $row->CurrencyAbb . ' ' . roundMe($inProcessCredits); ?></td> </tr> <? $i++; } } } else echo "<tr><td colspan='8'>".$this->lang->line('BE_GNRL_9')."</td></tr>"; if ($this->input->post_get('du') && $this->input->post_get('du') == '1') echo '<input type="hidden" name="du" value="1" />'; ?> </tbody> </table> </div> </div> </div> <? } ?> </div> </div> </div> </div> </div> <script> $(document).ready(function(){ $('.CollapsedCardBody').show(); $(".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>