diff --git a/controllers/PaymentController.php b/controllers/PaymentController.php index 792af05..2804bf8 100644 --- a/controllers/PaymentController.php +++ b/controllers/PaymentController.php @@ -2,7 +2,7 @@ class PaymentController extends Controller { - static public function actionIndex() + function __construct() { self::$layout = 'layouts/page.php'; self::addStyle('/css/style.css?ver=' . App::getConfig('version')); @@ -12,10 +12,28 @@ class PaymentController extends Controller self::addScript('/js/bootstrap.min.js'); self::addStyle('/css/bootstrap.min.css'); self::addStyle('/css/bootstrap-theme.min.css'); + } + + public function actionIndex() + { 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() { App::log('payment', $_REQUEST); diff --git a/views/indexTemplate.php b/views/indexTemplate.php index ed38962..3903bdc 100644 --- a/views/indexTemplate.php +++ b/views/indexTemplate.php @@ -74,6 +74,8 @@ if (App::$user) { Получить короткую ссылку:
+
+ Сказать спасибо!
diff --git a/views/payment/thanks.php b/views/payment/thanks.php new file mode 100644 index 0000000..886e907 --- /dev/null +++ b/views/payment/thanks.php @@ -0,0 +1,20 @@ +
+ +
+
+
+

Надеемся, что были полезны!

+
+ Если вы считаете, что мы заслужили небольшое вознаграждение за помощь в построении маршрута или за интересные точки, то можете воспользоваться формой, расположенной ниже. Это не обязательно, но нам будет очень приятно знать, что наша работа приносит пользу людям.
+ P.S. Вы можете указать любую сумму. +


+
+ +
+
+
+


+ $randomPoint), true) ?> +
+ +
\ No newline at end of file diff --git a/views/payment/thanks_done.php b/views/payment/thanks_done.php new file mode 100644 index 0000000..12945d9 --- /dev/null +++ b/views/payment/thanks_done.php @@ -0,0 +1,18 @@ +
+ +
+
+
+

Спасибо!

+
+ Примите благодарность от команды wikipoints.ru! Переведённая вами сумма пойдёт на развитие проекта.
+
+ Вернуться на карту +


+
+
+


+ $randomPoint), true) ?> +
+ +
\ No newline at end of file diff --git a/views/topNavigation.php b/views/topNavigation.php index d73799b..827fc26 100644 --- a/views/topNavigation.php +++ b/views/topNavigation.php @@ -28,6 +28,7 @@ if (App::$user && App::$user->id) {