ADD страница Сказать спасибо
This commit is contained in:
parent
3355f4fe77
commit
443eca5c13
|
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
class PaymentController extends Controller
|
class PaymentController extends Controller
|
||||||
{
|
{
|
||||||
static public function actionIndex()
|
function __construct()
|
||||||
{
|
{
|
||||||
self::$layout = 'layouts/page.php';
|
self::$layout = 'layouts/page.php';
|
||||||
self::addStyle('/css/style.css?ver=' . App::getConfig('version'));
|
self::addStyle('/css/style.css?ver=' . App::getConfig('version'));
|
||||||
|
|
@ -12,10 +12,28 @@ class PaymentController extends Controller
|
||||||
self::addScript('/js/bootstrap.min.js');
|
self::addScript('/js/bootstrap.min.js');
|
||||||
self::addStyle('/css/bootstrap.min.css');
|
self::addStyle('/css/bootstrap.min.css');
|
||||||
self::addStyle('/css/bootstrap-theme.min.css');
|
self::addStyle('/css/bootstrap-theme.min.css');
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
public function actionIndex()
|
||||||
|
{
|
||||||
self::render('/payment/index.php', array());
|
self::render('/payment/index.php', array());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function actionThanks()
|
||||||
|
{
|
||||||
|
self::render('/payment/thanks.php', array(
|
||||||
|
'randomPoint' => Point::model()->getRandom(),
|
||||||
|
));
|
||||||
|
}
|
||||||
|
|
||||||
|
public function actionThanks_done()
|
||||||
|
{
|
||||||
|
self::render('/payment/thanks_done.php', array(
|
||||||
|
'randomPoint' => Point::model()->getRandom(),
|
||||||
|
));
|
||||||
|
}
|
||||||
|
|
||||||
static public function actionDone()
|
static public function actionDone()
|
||||||
{
|
{
|
||||||
App::log('payment', $_REQUEST);
|
App::log('payment', $_REQUEST);
|
||||||
|
|
|
||||||
|
|
@ -74,6 +74,8 @@ if (App::$user) {
|
||||||
Получить короткую ссылку:<br/>
|
Получить короткую ссылку:<br/>
|
||||||
<button class="btn btn-default" onclick="getShortLink()"><span class="glyphicon glyphicon-link"></span></button>
|
<button class="btn btn-default" onclick="getShortLink()"><span class="glyphicon glyphicon-link"></span></button>
|
||||||
<input type="text" id="shortLink"/>
|
<input type="text" id="shortLink"/>
|
||||||
|
<hr/>
|
||||||
|
<a href="/payment/thanks" class="btn btn-default" style="color: #333;"><span class="glyphicon glyphicon-gift" aria-hidden="true"></span> Сказать спасибо!</a>
|
||||||
</div>
|
</div>
|
||||||
<?php if ($user): ?>
|
<?php if ($user): ?>
|
||||||
<div id="boxFavorites">
|
<div id="boxFavorites">
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,20 @@
|
||||||
|
<div id="pageSmoothBackground" style="background-image: url(<?= $randomPoint->getImg('middle') ?>);"></div>
|
||||||
|
|
||||||
|
<div class="container" style="background-color: rgba(255,255,255, 0.8);margin-top: -10px;">
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-md-12">
|
||||||
|
<h1>Надеемся, что были полезны!</h1>
|
||||||
|
<br/>
|
||||||
|
Если вы считаете, что мы заслужили небольшое вознаграждение за помощь в построении маршрута или за интересные точки, то можете воспользоваться формой, расположенной ниже. Это не обязательно, но нам будет очень приятно знать, что наша работа приносит пользу людям.<br/>
|
||||||
|
<b>P.S.</b> Вы можете указать любую сумму.
|
||||||
|
<br/><br/><br/>
|
||||||
|
<div class="text-center">
|
||||||
|
<iframe frameborder="0" allowtransparency="true" scrolling="no" src="https://money.yandex.ru/embed/shop.xml?account=41001282454017&quickpay=shop&payment-type-choice=on&writer=seller&targets=%D0%A1%D0%BF%D0%B0%D1%81%D0%B8%D0%B1%D0%BE+%D0%B7%D0%B0+%D0%BC%D0%B0%D1%80%D1%88%D1%80%D1%83%D1%82!&targets-hint=&default-sum=25&button-text=01&successURL=https%3A%2F%2Fwikipoints.ru%2Fpayment%2Fthanks_done" width="450" height="198"></iframe>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<br/><br/><br/>
|
||||||
|
<?= self::renderPartial('randomPoint.php', array('randomPoint' => $randomPoint), true) ?>
|
||||||
|
<br/>
|
||||||
|
<?= self::renderPartial('/page/darkFooter.php',array(), true)?>
|
||||||
|
</div>
|
||||||
|
|
@ -0,0 +1,18 @@
|
||||||
|
<div id="pageSmoothBackground" style="background-image: url(<?= $randomPoint->getImg('middle') ?>);"></div>
|
||||||
|
|
||||||
|
<div class="container" style="background-color: rgba(255,255,255, 0.8);margin-top: -10px;">
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-md-12">
|
||||||
|
<h1>Спасибо!</h1>
|
||||||
|
<br/>
|
||||||
|
Примите благодарность от команды wikipoints.ru! Переведённая вами сумма пойдёт на развитие проекта.<br/>
|
||||||
|
<br/>
|
||||||
|
<a href="/">Вернуться на карту</a>
|
||||||
|
<br/><br/><br/>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<br/><br/><br/>
|
||||||
|
<?= self::renderPartial('randomPoint.php', array('randomPoint' => $randomPoint), true) ?>
|
||||||
|
<br/>
|
||||||
|
<?= self::renderPartial('/page/darkFooter.php',array(), true)?>
|
||||||
|
</div>
|
||||||
|
|
@ -28,6 +28,7 @@ if (App::$user && App::$user->id) {
|
||||||
<ul class="dropdown-menu">
|
<ul class="dropdown-menu">
|
||||||
<li><a href="/article/1">О проекте</a></li>
|
<li><a href="/article/1">О проекте</a></li>
|
||||||
<li><a href="#" onclick="showArticle(2);">Как пользоваться</a></li>
|
<li><a href="#" onclick="showArticle(2);">Как пользоваться</a></li>
|
||||||
|
<li><a href="/payment/thanks">Сказать спасибо!</a></li>
|
||||||
<li role="separator" class="divider"></li>
|
<li role="separator" class="divider"></li>
|
||||||
<?php if(App::ic('index')):?><li><a onclick="$('#categoriesModal').modal('show');" href="#">Легенда</a></li><?php endif; ?>
|
<?php if(App::ic('index')):?><li><a onclick="$('#categoriesModal').modal('show');" href="#">Легенда</a></li><?php endif; ?>
|
||||||
<li><a href="/page/points/">Список точек</a></li>
|
<li><a href="/page/points/">Список точек</a></li>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue