<? $this->layout('android.app', ['title' => 'USPAY.RU -
сервис приема электронных платежей'])
?>
<? $this->start('container') ?>
<section class="pt-120 pb-90 light-bg
default-bg">
<div class="container">
<div class="row justify-content-center">
<div class="col-xl-6 col-lg-8">
<div class="section-title text-center"
data-animate="fadeInUp">
<div
class="text-center">
<img
src="https://pay.uspay.ru/images/logo2.png">
</div>
<br>
<?php if(!$user->isAuth()){?>
<div
class="form-response"></div>
<form method="POST">
<div class="row half-gutter">
<div
class="col-md-8">
<div class="form-group">
<label>E-mail *</label>
<input type="email" name="email"
placeholder="Введите E-Mail"
class="theme-input-style" required>
<? if (isset($form['error']['email'])) { ?>
<p class="help-block">
<small class="text-danger"><?=
$form['error']['email'] ?></small>
</p>
<? } ?>
</div>
</div>
<div
class="col-md-8">
<div class="form-group">
<label>Пароль:*</label>
<input type="password"
name="password" placeholder="Введите
пароль" class="theme-input-style">
<? if (isset($form['error']['password'])) {
?>
<p
class="help-block">
<small class="text-danger"><?=
$form['error']['password'] ?></small>
</p>
<? } ?>
</div>
</div>
<div
class="col-md-8">
<div
class="form-group">
<label
class="control-label">Введите код с
картинки</label>
<br>
<img src="/captcha"
title="Нажмите чтобы изменить код"
onclick="this.setAttribute('src','/captcha?'+Math.random());var
captcha=document.getElementById('captcha');if(captcha){captcha.focus()}">
<input class="theme-input-style"
name="captcha" type="text">
<? if (isset($form['error']['captcha'])) { ?>
<p class="help-block">
<small class="text-danger"><?=
$form['error']['captcha'] ?></small>
</p>
<? } ?>
</div>
</div>
<div class="col-md-8">
<div class="form-group">
<button class="btn btn-lg btn-block" name="submit"
type="submit">Войти</button>
</div>
</div>
</div>
</form>
<?php }else{?>
<label>Здравствуйте,
<?=$user->get()->nick;?></label>
<br>
<label>Ваш
баланс:</label> <?=$user->get()->money;?> RUB
<br>
<br>
<br>
<br>
<label>Введите номер счета:</label>
<input class="theme-input-style"
name="pay" type="number">
<br>
<br>
<button class="btn btn-lg btn-block"
type="submit">Оплатить</button>
<?php } ?>
<br>
<br>
<br>
<br>
</div>
</div>
</div>
</section>
<? $this->stop() ?>