$this->title = $tournament->tournament_name;
$this->params['breadcrumbs'][] = ['label' => 'Турниры', 'url' => '/tournaments'];
$this->params['breadcrumbs'][] = $tournament->tournament_name;
?>

<div class="row">
    <div class="col-xs-12 col-xs-offset-0 col-sm-offset-1 col-sm-10 tournaments-details">

        <?php 
if (Yii::$app->session->hasFlash('success')) {
    echo Growl::widget(['type' => Growl::TYPE_SUCCESS, 'icon' => 'glyphicon glyphicon-ok-sign', 'body' => Yii::$app->session->getFlash('success'), 'showSeparator' => true, 'pluginOptions' => ['placement' => ['align' => 'left']]]);
}
?>
        <?php 
if (Yii::$app->session->hasFlash('error')) {
    echo Growl::widget(['type' => Growl::TYPE_DANGER, 'icon' => 'glyphicon glyphicon-flag', 'body' => Yii::$app->session->getFlash('error'), 'showSeparator' => true, 'pluginOptions' => ['placement' => ['align' => 'left']]]);
}
?>

        <h1 class = "text-center"><?php 
echo Html::encode($this->title);
?>
</h1>

        <hr>

        <div class = "row">

            <div class = 'col-xs-12 col-md-5 col-md-offset-1 col-lg-5'>
                <?php 
echo Standings::widget(['standings' => $teamParticipants]);
Beispiel #2
0
        <div class="box-header with-border">
            <p class="pull-right">
                <?php 
echo Html::a('Update', ['update', 'id' => $model->id], ['class' => 'btn btn-primary']);
?>
                <?php 
echo Html::a('Delete', ['delete', 'id' => $model->id], ['class' => 'btn btn-danger', 'data' => ['confirm' => 'Are you sure you want to delete this item?', 'method' => 'post']]);
?>
            </p>
        </div>
        <div class="box-body">
            <?php 
foreach (Yii::$app->session->getAllFlashes() as $message) {
    ?>
                <?php 
    echo \kartik\widgets\Growl::widget(['type' => !empty($message['type']) ? $message['type'] : 'danger', 'title' => !empty($message['title']) ? Html::encode($message['title']) : 'Title Not Set!', 'icon' => !empty($message['icon']) ? $message['icon'] : 'fa fa-info', 'body' => !empty($message['message']) ? Html::encode($message['message']) : 'Message Not Set!', 'showSeparator' => true, 'delay' => 1, 'pluginOptions' => ['delay' => !empty($message['duration']) ? $message['duration'] : 3000, 'placement' => ['from' => !empty($message['positonY']) ? $message['positonY'] : 'top', 'align' => !empty($message['positonX']) ? $message['positonX'] : 'center']]]);
    ?>
            <?php 
}
?>
            <div class="table-responsive">
                <table class="table-bordered ">
                    <thead>
                        <tr style=" width: 150px">
                            <th>#</th>
                            <th class="text-center"><h4>รายละเอียด</h4></th>
                    <?php 
$app_id = $session->get('id');
echo $app_id;
?>
                    </tr>
Beispiel #3
0
	<?php 
/*	
composer
detail view
form builder
*/
// mengunakan modal
//Modal::begin([
// 'header' => '<h4 class="modal-title">Detail View Demo</h4>',
//  'toggleButton' => ['label' => '<i class="glyphicon glyphicon-th-list"></i> Detail View in Modal', 'class' => 'btn btn-primary']
//]);
//use kartik\builder\Form;
//Bulider Standard
$form = ActiveForm::begin(['type' => ActiveForm::TYPE_INLINE]);
echo Form::widget(['model' => $model, 'form' => $form, 'columns' => 2, 'attributes' => $model->FormAttribs]);
ActiveForm::end();
//Bulder Grid
use kartik\builder\FormGrid;
$form = ActiveForm::begin();
echo FormGrid::widget(['model' => $model, 'form' => $form, 'autoGenerateColumns' => true, 'rows' => [['attributes' => ['EMP_ID' => ['type' => Form::INPUT_TEXT, 'options' => ['placeholder' => 'Enter username...']], 'EMP_NM' => ['type' => Form::INPUT_TEXT, 'options' => ['placeholder' => 'Enter password...']]]], ['attributes' => ['EMP_ID' => ['type' => Form::INPUT_TEXT, 'options' => ['placeholder' => 'Enter username...']], 'EMP_NM' => ['type' => Form::INPUT_TEXT, 'options' => ['placeholder' => 'Enter password...']]]]]]);
ActiveForm::end();
$form = ActiveForm::begin(['type' => ActiveForm::TYPE_INLINE]);
echo Growl::widget(['type' => Growl::TYPE_MINIMALIST, 'title' => 'Kartik Visweswaran', 'icon' => 'http://placeimg.com/200/150/people/2', 'iconOptions' => ['class' => 'img-circle pull-left'], 'body' => 'Momentum reduce child mortality effectiveness incubation empowerment connect.', 'showSeparator' => false, 'delay' => 700, 'pluginOptions' => ['icon_type' => 'image', 'showProgressbar' => false, 'placement' => ['from' => 'top', 'align' => 'right']]]);
ActiveForm::end();
use kartik\widgets\FileInput;
$form = ActiveForm::begin();
echo FileInput::widget(['name' => 'attachment_49[]', 'options' => ['multiple' => true], 'pluginOptions' => ['initialPreview' => [Html::img("http://placeimg.com/200/150/people/1.jpg", ['class' => 'file-preview-image', 'alt' => 'The Moon', 'title' => 'The Moon']), Html::img("http://placeimg.com/200/150/people/2.jpg", ['class' => 'file-preview-image', 'alt' => 'The Earth', 'title' => 'The Earth'])], 'initialPreviewConfig' => ['{caption: "People-1.jpg", width: "20px", url: "/site/file-delete", key: 1}', '{caption: "People-2.jpg", width: "20px", url: "/site/file-delete", key: 2}'], 'initialCaption' => "The Moon and the Earth", 'overwriteInitial' => false]]);
ActiveForm::end();
?>
</div>
Beispiel #4
0
 /**
  * Renders manually set alerts
  */
 public function renderAlerts()
 {
     $type = $this->type == self::TYPE_GROWL ? self::TYPE_GROWL : self::TYPE_ALERT;
     foreach ($this->alertSettings as $alert => $settings) {
         if (!empty($settings['body'])) {
             echo $type == self::TYPE_GROWL ? Growl::widget($settings) : Alert::widget($settings);
         }
     }
 }
<?php

use kartik\widgets\Growl;
if (Yii::$app->session->hasFlash('slider-success')) {
    echo Growl::widget(['type' => Growl::TYPE_SUCCESS, 'icon' => 'glyphicon glyphicon-ok-sign', 'body' => Yii::$app->session->getFlash('slider-success')]);
}
Beispiel #6
0
        <?php 
}
?>

        <?php 
echo Breadcrumbs::widget(['links' => isset($this->params['breadcrumbs']) ? $this->params['breadcrumbs'] : []]);
?>
    </section>

    <section class="content">
        <?php 
foreach (Yii::$app->session->getAllFlashes() as $key => $message) {
    ?>
            <?php 
    //echo '<div class="alert alert-' . $key . ' alert-dismissible"> <button type="button" class="close" data-dismiss="alert"><span aria-hidden="true">&times;</span><span class="sr-only">Close</span></button>' . $message . '</div>';
    echo \kartik\widgets\Growl::widget(['type' => !empty($message['type']) ? $message['type'] : 'info', 'title' => 'Notification', 'icon' => 'fa fa-envelope', 'body' => !empty($message['title']) ? \yii\helpers\Html::encode($message['title']) : $message, 'showSeparator' => true, 'delay' => 1, 'pluginOptions' => ['delay' => !empty($message['duration']) ? $message['duration'] : 3000, 'placement' => ['from' => !empty($message['positonY']) ? $message['positonY'] : 'top', 'align' => !empty($message['positonX']) ? $message['positonX'] : 'right']]]);
    ?>
        <?php 
}
?>
        <?php 
echo $content;
?>
    </section>
</div>

<footer class="main-footer no-print">
    <div class="pull-right hidden-xs">
        <b>Version</b> 1.0
    </div>
    <strong>Copyright &copy; 2014-2015 <a href="http://sintret.com" target="_blank">Sintret Maintenance</a>.</strong> All rights reserved.
Beispiel #7
0
use app\models\tournaments\Tournaments;
use kartik\widgets\ActiveForm;
use kartik\widgets\Growl;
use app\components\grid\extendedGridView;
/* @var $this yii\web\View */
/* @var $searchModel app\models\tournaments\TournamentsSearch */
/* @var $dataProvider yii\data\ActiveDataProvider */
$this->title = Yii::t('app', 'Турниры');
$this->params['breadcrumbs'][] = $this->title;
?>

<div class="row">
    <div class="col-xs-12 col-xs-offset-0 col-sm-offset-1 col-sm-10">
        <?php 
if (Yii::$app->session->hasFlash('success')) {
    echo Growl::widget(['type' => Growl::TYPE_SUCCESS, 'icon' => 'glyphicon glyphicon-ok-sign', 'body' => Yii::$app->session->getFlash('success'), 'showSeparator' => true, 'pluginOptions' => ['placement' => ['align' => 'left']]]);
}
?>
        <h2>Ваши турниры</h2>
        <h4>Кликните на название турнира, чтобы сделать прогнозы и посмотреть результаты</h4>

        <div class="row">
            <div class="panel panel-default 'col-xs-12 col-lg-9">
                <div class = "panel-body text-center text-danger">
                    <strong>Внимание! Если вы отказываетесь от участия в турнире, все ваши прогнозы будут удалены!!!</strong>
                </div>
            </div>
        </div>

        <?php 
$form = ActiveForm::begin(['action' => ['tournaments/notification'], 'type' => ActiveForm::TYPE_INLINE, 'fieldConfig' => ['autoPlaceholder' => false]]);
Beispiel #8
0
use kartik\widgets\Growl;
foreach (Yii::$app->session->getAllFlashes() as $type => $message) {
    ?>
    <?php 
    if (in_array($type, ['success', 'danger', 'warning', 'info'])) {
        ?>
        <div class="alert alert-<?php 
        echo $type;
        ?>
">
            <?php 
        echo $message;
        ?>
        </div>
    <?php 
    }
    ?>

    <?php 
    if (in_array($type, ['success-noty', 'danger-noty', 'warning-noty', 'info-noty', 'minimalist', 'pastel', 'custom'])) {
        $type = str_replace('-noty', '', $type);
        ?>
        <?php 
        echo Growl::widget(['type' => $type, 'title' => null, 'icon' => null, 'body' => $message, 'showSeparator' => false, 'delay' => 0, 'pluginOptions' => ['showProgressbar' => true, 'placement' => ['from' => 'bottom', 'align' => 'right']]]);
        ?>
    <?php 
    }
}
?>

Beispiel #9
0
use yii\helpers\Html;
use app\components\widgets\News;
use app\components\grid\extendedGridView;
use app\components\widgets\frontPageGames;
/** @var $this yii\web\View
 * @var $futureGames
 * @var $recentGames
 * @var $tournaments
 *
 */
$this->title = 'Сайт спортивных прогнозов';
?>

<?php 
if (Yii::$app->session->hasFlash('success')) {
    echo Growl::widget(['type' => Growl::TYPE_SUCCESS, 'icon' => 'glyphicon glyphicon-ok-sign', 'body' => Yii::$app->session->getFlash('success'), 'showSeparator' => true]);
}
?>

<div class = "row">
    <div class="col-xs-10 col-xs-offset-1 text-center">
        <h2>Добро пожаловать на сайт спортивных прогнозов!</h2>
        <p class="lead"><?php 
echo Html::a('Войдите', ['site/login']);
?>
/<?php 
echo Html::a('зарегистрируйтесь', ['site/signup']);
?>
 чтобы принять участие</p>
    </div>
</div>