File "addfunds.twig"
Full Path: /home/cananyalcin/public_html/core/temp/client/Super-Rental/addfunds.twig
File size: 6.63 KB
MIME-type: text/plain
Charset: utf-8
{% include 'header.twig' %}
<div class="inner-page" style="display: inline-block;">
<section>
<div class="container">
<div class="row justify-content-center payments-panel">
<div class="col-md-10 col-md-offset-1 card">
<div class="login-form well">
<br>
{% if paymentsList %}
<div class="g-card mb-3">
<div class="g-card-body">
<form method="post" action="addfunds">
{% if error %}
<div class="alert alert-dismissible alert-danger">
<button type="button" class="close" data-dismiss="alert">×</button>
{{ errorText }}
</div>
{% endif %}
{% if success %}
<div class="alert alert-dismissible alert-success">
<button type="button" class="close" data-dismiss="alert">×</button>
{{ successText }}
</div>
{% endif %}
<div class="form-group">
<label for="method" class="control-label">{{ lang['addfunds.method'] }}</label>
<select class="form-control" id="payment_method" name="payment_type" onchange="handleOrderType(this) ">
{% for payment in paymentsList %}
<option value="{{ payment['id'] }}" {% if data['payment_type'] == payment['id'] %} selected {% endif %} > {{ payment['method_name'] }}</option>
{% endfor %}
</select>
</div>
<div class="fga mb-4 custom-payment-content" style="display:none">
<label class="fla" for="amount">Instructions:</label>
<br>
<p>
{% for payment in paymentsList %}
{% if payment['id'] == 34 %}
{{ payment['content'] }}
{% endif %}
{% endfor %}
</p>
</div>
<div class="fga mb-4 custom-payment-content-bkash" style="display:none">
<label class="fla" for="amount">Instructions:</label>
<br>
<p>
{% for payment in paymentsList %}
{% if payment['id'] == 21 %}
{{ payment['content'] }}
{% endif %}
{% endfor %}
</p>
</div>
<!-- Start -->
<div id="qr">
<form method="post" action="addfunds">
<center><img width="400" height="700" src="{{ PaytmQRimage }}" ></img> </center>
<div class="form-group">
<label for="method" class="control-label">Order ID</label>
<p>Enter Transaction/Order ID without spaces. Example - 202010122210100058</p>
<input class="form-control" name="paytmqr_orderid" value="{{ data['paytmqr_orderid'] }}">
</div>
</div>
<!--end--->
<div class="form-group">
<label for="method" class="control-label">{{ lang['addfunds.amount'] }} {{currency['symbol']}}</label>
<input class="form-control" name="payment_amount" value="{{ data['payment_amount'] }}">
</div>
<button type="submit" class="btn btn-primary btn-block">{{ lang['addfunds.button'] }}</button>
</form>
</div>
</div>
{% endif %}
</div>
</div>
</div>
<div class="row justify-content-center payments-panel">
<div class="col-md-10 col-md-offset-1 card">
<div class="text-center">
{% if contentText %}
{{ contentText }}
{% endif %}
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</section>
</div>
{% if kashier_code %}
<style>
#el-kashier-button{
display: none;
}
</style>
<script>
var interval = setInterval(function () {
var link =$('#el-kashier-button');
if(link.length){
link.click();
clearInterval(interval);
}
}, 1000);
</script>
{{ kashier_code }}
{{ unset_kashier_code }}
{% endif %}
{% include 'footer.twig' %}
<script>
$("#payment_method").on('change', function() {
if($(this).val() == 21){
$(".normal-payment").hide();
$(".custom-payment-content").hide();
$(".custom-payment-content-bkash").show();
}
else if($(this).val() == 34){
$(".normal-payment").hide();
$(".custom-payment-content-bkash").hide();
$(".custom-payment-content").show();
}
else{
$(".custom-payment-content").hide();
$(".custom-payment-content-bkash").hide();
$(".normal-payment").show();
}
});
</script>
<!-- start -->
<script>document.getElementById("qr").style.display = "none";
function handleOrderType(selectObject) {
var element = document.getElementById("qr");
var element2 = document.getElementById("ppqr");
if (selectObject.value == "14") {
element.style.display = "block";
element2.style.display = "none";
} else if (selectObject.value == "114") {
element.style.display = "none";
element2.style.display = "block";
} else {
element.style.display = "none";
element2.style.display = "none";
}
}
</script>
<!-- end -->