Backups Created:
/home/japatmex/public_html/wp-content/edit-wolf.php
Savvy
W
olf -
MANAGER
Edit File: add_credits.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('CUST_BC_HEADING'); ?> (<?php echo $userDetails->CurrencyAbb; ?>)</h4> </div> </div> </div> <!-- /page header --> <!-- Content area --> <div class="content pt-0"> <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 } ?> <?php if($userDetails->CanAddCredits == 0) { ?> <?php $payment_hide_comment = $userDetails->payment_hide_comment; if(empty(trim($payment_hide_comment))) { $payment_hide_comment = 'You can not add payment right now, please contact the site admin!'; } ?> <div class="clsError" style="font-size:22px;"><?php echo $payment_hide_comment; ?></div> <?php } else { ?> <?php echo form_open(base_url('page/submitpayment'), "name=frm id=frm"); ?> <div class="form-group row"> <div class="col-lg-6"> <label class="control-label"><?php echo $this->lang->line('CUST_BC_1'); ?> (<?php echo $userDetails->CurrencyAbb; ?>):<span class="required_field">*</span></label> <input type="text" class="form-control" required="required" onkeydown="return event.keyCode != 13;" style="font-size:24px; color:#E81516;" value="<?php echo cleanRoundMe($minCr); ?>" maxlength="10" name="txtCredits" id="txtCredits"/> </div> </div> <div class="form-group row"> <?php if($remPmntMthd==0){?> <div class="col-lg-6"> <div class="form-group"> <div class="row"> <?php $bq = $strHiddenFlds = $details = ''; $k = 0; foreach ($rsPMethods as $row) { $fee = $row->Fee; if (isset($FEES[$row->PaymentMethodId]) && $FEES[$row->PaymentMethodId] != '' && is_numeric($FEES[$row->PaymentMethodId])) { $fee = $FEES[$row->PaymentMethodId]; } $pDetails = str_replace('<span', '<font', stripslashes($row->Description)); $pDetails = str_replace('</span>', '</font>', $pDetails); $imgName = base_url() . 'assets/images/mobile-payment.png'; if ($row->PayImage != '') { $imgName = base_url("uplds$THEME/" . $row->PayImage); } $strHiddenFlds .= '<input type="hidden" id="hdFee' . $row->PaymentMethodId . '" name="hdFee' . $row->PaymentMethodId . '" value="' . $fee . '" /><input type="hidden" id="hdVat' . $row->PaymentMethodId . '" name="hdVat' . $row->PaymentMethodId . '" value="' . $row->Vat . '" /><input type="hidden" id="hdFlatFee' . $row->PaymentMethodId . '" name="hdFlatFee' . $row->PaymentMethodId . '" value="' . $row->FlatFee . '" />'; ?> <div class="mt-0 col-lg-4 col-md-6 col-sm-12" style="margin-bottom: 15px;"> <span style="display:none" id="hdDtl<? echo $row->PaymentMethodId; ?>" name="hdDtl<? echo $row->PaymentMethodId; ?>"><? echo str_replace('"', "'", $pDetails); ?></span> <label class="d-block m-0" style="border:1px solid #CCCCCC;padding:10px;border-radius:5px;position:relative;height:140px;background:url('<? echo $imgName; ?>') center no-repeat;font-size:13px;font-weight:bold;" class="span4"> <input imgName="<?php echo $imgName; ?>" details2='<?php echo nl2br(stripslashes($row->Description)); ?>' type="radio" style="margin:0;" class="gateways" name="pMethod" id="pMethod<? echo $row->PaymentMethodId; ?>" value="<? echo $row->PaymentMethodId; ?>" <? if((!empty($_COOKIE['last_payment_method']) && $_COOKIE['last_payment_method'] == $row->PaymentMethodId) || (empty($_COOKIE['last_payment_method']) && $k == 0)) echo 'checked'; ?> /> <div style="background:rgba(0,0,0,0.1);display:block;bottom:0;right:0;left:0;position:absolute;padding:5px"><? echo $row->PaymentMethod; ?></div> </label> </div> <?php $k++; } ?> </div> </div> </div> <?php }else{?> <div class="col-lg-6"> <div class="row"> <h3 style="color:red"><?php echo $payment_hide_comment; ?></h3> </div> </div> <?php } ?> <div class="col-lg-6"> <div id="dvInfo" class="w-100" style="display:none;"> <div class="card m-b-30 card-info"> <div class="card-body" style="background-color:#F5F5F5;"> <blockquote class="card-bodyquote"> <footer><strong>PAYMENT DETAILS:</strong></footer> <p id="dvPDtls"></p> </blockquote> </div> </div> </div> <div class="w-100" id="dvCalculations" style="display:none;"> <div class="card m-b-20"> <div class="card-body"> <div class="row"> <div class="col-sm-12"> <table cellspacing="0" cellpadding="10" class="clsBuyCredits table"> <tbody> <tr> <td width="65%">Your Current Balance (<?php echo $this->data['userDetails']->CurrencySymbol; ?>): </td> <td width="35%" align="right"><h5 style="color:#44519E;"><span class="calculate balance"><?php echo roundMe($this->data['userDetails']->Credits); ?></span> <?php echo $this->data['userDetails']->CurrencyAbb; ?> </h5></td> </tr> <tr> <td class="taxname"></td> <td align="right"><h5 style="color:#44519E;"><span class="calculate tax"></span> <?php echo $this->data['userDetails']->CurrencyAbb; ?> </td> </tr> <tr> <td class="vatname"></td> <td align="right"><h5 style="color:#E81516;"><span class="calculate vat"></span> <?php echo $this->data['userDetails']->CurrencyAbb; ?> </td> </tr> <tr style="display:none;"> <td><small class="taxname2"></small></td> <td align="right"><h5 style="color:#E81516;"><span class="calculate tax2"></span> <?php echo $this->data['userDetails']->CurrencyAbb; ?> </td> </tr> <tr> <td></td> <td align="right">____________________</td> </tr> <tr> <td>Balance will be:</td> <td align="right"><h5 style="color:#E81516;"><span class="calculate total"></span> <?php echo $this->data['userDetails']->CurrencyAbb; ?> </h5></td> </tr> <tr> <td colspan="2" class="text-right"> <h4 style="color:green;">Total have to pay now <?php echo $this->data['userDetails']->CurrencySymbol; ?> <span class="total-paynow" id="tdTotalToPay"> 0.0 </span> <?php echo $this->data['userDetails']->CurrencyAbb; ?> </h4> </td> </tr> <tr> <td colspan="2"> <div> <button type="submit" class="clsBigBtn btn btn-primary" id="btnBuyCredits" name="btnBuyCredits"><?php echo $this->lang->line('CUST_LBL_41'); ?></button> <?php echo $strHiddenFlds; ?> <input type="hidden" id="currSymbol" name="currSymbol" value="<?php echo $this->data['userDetails']->CurrencySymbol; ?>"> <input type="hidden" id="myCurrency" name="myCurrency" value="<?php echo $this->data['userDetails']->CurrencyAbb; ?>"> <input type="hidden" id="amount" name="amount" value="0"> <input type="hidden" id="grdTotal" name="grdTotal" value="0"> <input type="hidden" id="clcr" name="clcr" value="<?php echo $this->data['userDetails']->ConversionRate; ?>"> </div> </td> </tr> </tbody> </table> </div> </div> </div> </div> </div> </div> </div> <?php echo form_close(); ?> <?php } ?> </div> </div> <!--/col-md-3--> <!--/col-md-3--> </div> <!--/row--> </div> </div> <!--/page-content end--> <script language="javascript" src="<?php echo base_url('assets/js/functions.js?v='.$this->config->item('assets_version')); ?>"></script> <script language="javascript" src="<?php echo base_url('assets/js/addcredits.js?v='.$this->config->item('assets_version')); ?>"></script>