Файл: templates/merchant/balans.tpl
Строк: 66
<? $this->layout('merchant.app', ['title' => $shop->name.' -
Оплата счета #'.$pay->id]) ?>
<?
$this->start('container') ?>
<script>
setInterval(function() {
$("#refresh").load(location.href+"
#refresh>*","");
}, 1000);
</script>
<br>
<div
class="list-group col-md-12 col-xs-12 ">
<br>
<?php if(isset($_SESSION['message'])){?>
<div class= "alert
alert-success alert-
dismissable col-lg-12 col-md-12 col-sm-12
col-xs-12" ><button type= "button" class=
"close"
data-dismiss= "alert" aria-hidden=
"true" >× </button>
<?=$_SESSION['message'];?>
</div>
<br>
<br>
<?php
unset($_SESSION['message']);?>
<?php } ?>
<div id="content"></div>
<?php
if(isset($_SESSION['error'])){ ?>
<div class= "alert
alert-danger alert-
dismissable col-lg-12 col-md-12 col-sm-12
col-xs-12" ><button type= "button" class=
"close"
data-dismiss= "alert" aria-hidden=
"true" >× </button><strong>
Ошибка! </strong>
<?=$_SESSION['error'];?>
</div>
<br>
<br>
<?php
unset($_SESSION['error']);
}
?>
<img
src="/public/assets/images/payments/uspay_wallet.png"
class="img-fluid img-thumbnail">
</br>
</br>
<div id="refresh">
<?php
if($_COOKIE['PHPSESSID'] == $pay->token and
!empty($_COOKIE['PHPSESSID'])){?>
<form
method="POST">
<label> Баланс:
</label> <?=$user->get($pay->user)->money;?> RUB
<br>
<?php
if($user->get($pay->user)->money < $pay->summa){?>
<input type="submit" class="btn btn-success"
name="balance" value="Оплатить" disabled>
<?php }else{?>
<input
type="hidden" value="<?=Clean ::
str($_COOKIE['PHPSESSID']);?>" name="session">
<input type="submit" class="btn btn-success"
name="balance" value="Оплатить">
<?php }?>
</form>
<?php
}else{?>
<div class= "alert alert-danger
alert-
dismissable col-lg-12 col-md-12 col-sm-12 col-xs-12" >Для
продолжения оплаты необходимо
авторизоваться
</div>
<br>
<a
href="https://uspay.ru/sign-in?session=Y<?=$session;?>"
class="btn btn-success"
target="popup"
onclick="window.open('https://uspay.ru/sign-in?session=Y<?=$session;?>','popup','width=590,height=595');
return false;">
Войти на сайт
</a>
<?}?>
<br>
<br>
<a href="/payments?id=<?=$pay->id;?>&re"
class="btn btn-success">Изменить способ
оплаты</a>
</div>
</div>
</div>
<div
class="col-xs-10 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>
<?=parse_url($shop->url,
PHP_URL_HOST);?>
<br>
</div>
<div
class="list-group col-md-12 col-xs-12
">
<label>Сумма к оплате:</label>
<?=pay();?> руб. </br>
</div>
<div
class="list-group col-md-12 col-xs-12
">
<label>Номер счета:</label>
<?=$pay->label;?> </br>
</div>
<?if(!empty($pay->desc)){?>
<div
class="list-group col-md-12 col-xs-12 ">
<label>Описание платежа:</label> <?=Clean ::
str($pay->desc);?>
<br>
</div>
<?php }
?>
<br>
</div>
</div>
<?=$this->stop();?>