Файл: templates/merchant/index.tpl
Строк: 261
<? $this->layout('merchant.app', ['title' => $shop->name.' -
Оплата счета #'.$pay->id]) ?>
<?
$this->start('container') ?>
<div class="list-group
col-md-12 col-xs-12 ">
<label>Способ оплаты:</label>
<select class="form-control" name="category"
onchange="top.location=this.value">
<option
value="?category" <?if(empty($_GET['category'])){?>
selected<?php } ?>>Все</option>
<?if($shop->balans == 1 or $shop->qiwi == 1 or $shop->yandex ==
1 or $shop->payeer == 1 or $shop->vkpay == 1){?>
<option value="?category=wallet" <?if($_GET['category'] ==
'wallet'){?>selected<?php } ?>>Электронные
кошельки</option>
<?}?>
<?if($shop->card == 1){?>
<option
value="?category=card" <?if($_GET['category'] ==
'card'){?>selected<?php } ?>>Банковские
карты</option>
<?}?>
<?if($shop->bitcoin == 1 or $shop->dash == 1 or $shop->litecoin
== 1){?>
<option value="?category=crypt"
<?if($_GET['category'] == 'crypt'){?>selected<?php }
?>>Криптовалюта</option>
<?}?>
<?if($shop->mobile == 1){?><option
value="?category=mobile" <?if($_GET['category'] ==
'mobile'){?>selected<?php } ?>>Мобильные
платежи</option><?php } ?>
</select>
</div>
<br>
<style>
label:active{
border: solid 4px #319612;
}
</style>
<script>
function Selected(a) {
var label = a.value;
if
(label!="") {
document.getElementById("hidd").style.display='block';
if(label === "qiwi"){
document.getElementById("method").innerHTML="<label>Способ
оплаты:</label> QIWI";
}
if(label
=== "mobile"){
document.getElementById("method").innerHTML="<label>Способ
оплаты:</label> Мобильный платеж";
}
if(label === "advcash"){
document.getElementById("method").innerHTML="<label>Способ
оплаты:</label> AdvCASH";
}
if(label === "balans"){
document.getElementById("method").innerHTML="<label>Способ
оплаты:</label> С баланса USPAY.RU";
}
if(label === "card"){
document.getElementById("method").innerHTML="<label>Способ
оплаты:</label> Банковские карты";
}
if(label === "vkpay"){
document.getElementById("method").innerHTML="<label>Способ
оплаты:</label> VKPay";
}
if(label
=== "yandex"){
document.getElementById("method").innerHTML="<label>Способ
оплаты:</label> Яндекс Деньги";
}
if(label === "payeer"){
document.getElementById("method").innerHTML="<label>Способ
оплаты:</label> Payeer";
}
if(label === "paypal"){
document.getElementById("method").innerHTML="<label>Способ
оплаты:</label> PayPal";
}
if(label
=== "bitcoin"){
document.getElementById("method").innerHTML="<label>Способ
оплаты:</label> BITCOIN";
}
if(label === "litecoin"){
document.getElementById("method").innerHTML="<label>Способ
оплаты:</label> LITECOIN";
}
if(label === "dash"){
document.getElementById("method").innerHTML="<label>Способ
оплаты:</label> DASH";
}
window.scrollBy(0,
750);
} else {
document.getElementById("hidd").style.display='none';
}
}
</script>
<form method="post">
<?php if(empty($_GET['category']) or $_GET['category'] ==
'wallet'){?>
<?php if($shop->qiwi == 1){?>
<div class="list-group col-md-3 col-xs-6"><label
for="qiwi">
<div
id="qiwi-select"><img
src="/public/assets/images/payments/qiwi.png"
class="img-fluid
img-thumbnail"></div></label></div>
<input id="qiwi" type="radio"
name="method" value="qiwi"
aria-required="true" onChange="Selected(this)"
style="display: none;">
<?php }?>
<?php if($shop->yandex == 1 and $pay->summa >= 2){?>
<div class="list-group col-md-3
col-xs-6"><label for="yandex"><img
src="/public/assets/images/payments/ya.png" class="img-fluid
img-thumbnail"></label></div>
<input
id="yandex" type="radio" name="method"
value="yandex" aria-required="true"
onChange="Selected(this)" style="display: none;">
<?php } ?>
<?php
if($shop->balans == 1){?>
<div class="list-group
col-md-3 col-xs-6"><label for="balans"><img
src="/public/assets/images/payments/uspay_wallet.png"
class="img-fluid img-thumbnail">
</label>
</div>
<input id="balans"
type="radio" name="method" value="balans"
aria-required="true" onChange="Selected(this)"
style="display: none;">
<?php } ?>
<div class="list-group col-md-3 col-xs-6"><label
for="advcash"><img
src="/public/assets/images/payments/advcash.png"
class="img-fluid img-thumbnail">
</label>
</div>
<input id="advcash"
type="radio" name="method" value="advcash"
aria-required="true" onChange="Selected(this)"
style="display: none;">
<?php if($shop->payeer == 1){?>
<div
class="list-group col-md-3 col-xs-6">
<label for="payeer"><img
src="/public/assets/images/payments/payeer.png"
class="img-fluid img-thumbnail">
</label>
</div>
<input
id="payeer" type="radio" name="method"
value="payeer" aria-required="true"
onChange="Selected(this)" style="display: none;">
<?php }?>
<?php if($shop->vkpay ==
1){?>
<div class="list-group col-md-3
col-xs-6">
<label
for="vkpay"><img
src="/public/assets/images/payments/vkpay.png"
class="img-fluid img-thumbnail">
</label>
</div>
<input
id="vkpay" type="radio" name="method"
value="vkpay" aria-required="true"
onChange="Selected(this)" style="display: none;">
<?php } ?>
<?php
if($shop->webmoney == 1){?><div class="list-group col-md-3
col-xs-6">
<label
for="webmoney"><img
src="/public/assets/images/payments/webmoney.png"
class="img-fluid img-thumbnail">
</label>
</div>
<input
id="webmoney" type="radio" name="method"
value="webmoney" aria-required="true"
onChange="Selected(this)" style="display: none;">
<?php } ?>
<?php }
?>
<?php if(empty($_GET['category']) or
$_GET['category'] == 'card'){?>
<?php if($shop->card
== 1 and $pay->summa >= 2){?>
<div
class="list-group col-md-3 col-xs-6 " ><label
for="card"><img
src="/public/assets/images/payments/visa.png"
class="img-fluid img-thumbnail"></label></div>
<div class="list-group col-md-3 col-xs-6
" ><label for="card"><img
src="/public/assets/images/payments/mastercard.png"
class="img-fluid img-thumbnail"></label></div>
<div class="list-group col-md-3 col-xs-6 "
><label for="card"><img
src="/public/assets/images/payments/maestro.png"
class="img-fluid img-thumbnail"></label></div>
<div class="list-group col-md-3 col-xs-6 "
><label for="card"><img
src="/public/assets/images/payments/mir.png"
class="img-fluid img-thumbnail"></label></div>
<input id="card" type="radio"
name="method" value="card"
aria-required="true" onChange="Selected(this)"
style="display: none;">
<?php } ?>
<?php } ?>
<?php if(empty($_GET['category']) or
$_GET['category'] == 'mobile'){?>
<?if($shop->mobile
== 1 and $pay->summa >= 2){?>
<div
class="list-group col-md-3 col-xs-6"><label
for="mobile"><img
src="/public/assets/images/payments/tele2.png"
class="img-fluid img-thumbnail"></label></div>
<div class="list-group col-md-3
col-xs-6"><label for="mobile"><img
src="/public/assets/images/payments/mts.png"
class="img-fluid img-thumbnail"></label></div>
<div class="list-group col-md-3
col-xs-6"><label for="mobile"><img
src="/public/assets/images/payments/beeline.png"
class="img-fluid
img-thumbnail"></label></div><?}?>
<input id="mobile" type="radio"
name="method" value="mobile"
aria-required="true" onChange="Selected(this)"
style="display: none;">
<?php } ?>
<?php
if(empty($_GET['category']) or $_GET['category'] == 'crypt'){?>
<?php if($shop->bitcoin == 1){?>
<div
class="list-group col-md-3 col-xs-6"><label
for="bitcoin"><img
src="/public/assets/images/payments/bitcoin.png"
class="img-fluid img-thumbnail"></label></div>
<input id="bitcoin" type="radio"
name="method" value="bitcoin"
aria-required="true" onChange="Selected(this)"
style="display: none;">
<?php } ?>
<?php if($shop->litecoin == 1){?>
<div class="list-group col-md-3 col-xs-6"><label
for="litecoin"><img
src="/public/assets/images/payments/litecoin.png"
class="img-fluid img-thumbnail"></label></div>
<input id="litecoin" type="radio"
name="method" value="litecoin"
aria-required="true" onChange="Selected(this)"
style="display: none;">
<?php } ?>
<?php if($shop->dash == 1){?>
<div class="list-group col-md-3 col-xs-6"><label
for="dash"><img
src="/public/assets/images/payments/dash.png"
class="img-fluid img-thumbnail"></label></div>
<input id="dash" type="radio"
name="method" value="dash"
aria-required="true" onChange="Selected(this)"
style="display: none;">
<?php } ?>
<?php } ?>
<br>
<br>
<br>
<div class="col-md-12 col-xs-12
text-center">
<br>
<div id="hidd"
style="display: none;">
<div
id="method"></div>
<br>
<div
class="col-md-7 col-xs-12 text-center">
<label>E-Mail*:</label>
<input type="email"
name="email" id="email" class="mask-email
form-control" placeholder="mail@example.com" required>
</div>
<div class="col-md-5 col-xs-12
text-center">
<label>Номер
телефона:</label>
<input type="text"
name="tel" class=" form-control">
</div>
<div class="col-md-12 col-xs-12
text-center">
<br>
<input type="submit"
class="btn btn-success" value="Перейти к
оплате">
<br>
<br>
<br>
</div>
</form>
</div>
<br>
<br>
<br>
<br>
<a href="<?=$shop->url;?>" class="btn
btn-danger">Отказаться от
оплаты</a></div>
<br>
</div>
<div
class="col-xs-12 col-md-4">
<br>
<div class="col-md-12
col-xs-12" style="background-color: #fdf4f4;
border-radius:20px;">
<h2 class="bordered">Оплата счета
№<?=$pay->id;?></h2>
<div
class="list-group col-md-12 col-xs-12
">
<label>Покупка на сайте:</label>
<span class="label
label-default"><?=parse_url($shop->url,
PHP_URL_HOST);?></span>
<br>
</div>
<div
class="list-group col-md-12 col-xs-12
">
<label>Сумма к оплате:</label> <span
class="label label-default"><?=$pay->summa;?> руб.
</span></br>
</div>
<div class="list-group
col-md-12 col-xs-12 ">
<label>Номер
счета:</label> <span class="label
label-default"><?=$pay->label;?></span> </br>
</div>
<?if(!empty($pay->desc)){?>
<div
class="list-group col-md-12 col-xs-12 ">
<label>Описание платежа:</label> <?=Clean ::
str($pay->desc);?>
<br>
</div>
<?}?>
<br>
</div>
</div>
<?
$this->stop() ?>