Exemple #1
1
?>
    </head>
    <body class="sidebar-mini skin-blue <?php 
echo $mainClass;
echo $bodyClass;
?>
"<?php 
echo $direction;
?>
>
        <?php 
$this->beginBody();
?>
        <div class="wrapper">
            <?php 
echo AlertBlock::widget(['type' => AlertBlock::TYPE_GROWL, 'useSessionFlash' => true, 'delay' => 500, 'alertSettings' => ['success' => ['type' => Growl::TYPE_SUCCESS, 'pluginOptions' => ['placement' => ['from' => 'top', 'align' => 'center']]], 'danger' => ['type' => Growl::TYPE_DANGER, 'pluginOptions' => ['placement' => ['from' => 'top', 'align' => 'center']]], 'warning' => ['type' => Growl::TYPE_WARNING, 'pluginOptions' => ['placement' => ['from' => 'top', 'align' => 'center']]], 'info' => ['type' => Growl::TYPE_INFO, 'pluginOptions' => ['placement' => ['from' => 'top', 'align' => 'center']]]]]);
?>
            <?php 
echo $this->render('backend/header.php', ['directoryAsset' => $directoryAsset]);
?>
            <div class="wrapper row-offcanvas row-offcanvas-left">
                <?php 
echo $this->render('backend/columnLeft.php');
?>
                <?php 
echo $this->render('backend/content.php', ['content' => $content, 'directoryAsset' => $directoryAsset]);
?>
            </div>
            <footer class="main-footer">
                <?php 
echo Yii::$app->name;
Exemple #2
0
<?php

use yii\helpers\Html;
use kartik\alert\AlertBlock;
/* @var $this yii\web\View */
/* @var $model frontend\models\Company */
$this->title = Yii::t('app', 'Update {modelClass}: ', ['modelClass' => 'Company']) . ' ' . $model->name;
$this->params['breadcrumbs'][] = ['label' => Yii::t('app', 'Companies'), 'url' => ['index']];
$this->params['breadcrumbs'][] = ['label' => $model->name, 'url' => ['view', 'id' => $model->id]];
$this->params['breadcrumbs'][] = Yii::t('app', 'Update');
?>
<div class="box box-success box-solid">
	<div class="box-header with-border">
		<big><?php 
echo Html::encode($this->title);
?>
</big>
    </div>
    <div class="provinsi-index box-body">
	<?php 
echo AlertBlock::widget(['type' => AlertBlock::TYPE_ALERT, 'useSessionFlash' => true]);
?>

    <?php 
echo $this->render('_form', ['model' => $model, 'modelProvinsi' => $modelProvinsi, 'modelKabupaten' => $modelKabupaten, 'modelKecamatan' => $modelKecamatan]);
?>

</div>
</div>
Exemple #3
0
<?php

/**
 * Created by PhpStorm.
 * User: Abhimanyu
 * Date: 10-02-2015
 * Time: 22:23
 */
use kartik\alert\AlertBlock;
/** @var $this   yii\web\View */
/** @var $user \abhimanyu\user\models\User */
$this->title = 'Account Activation - ' . Yii::$app->name;
echo AlertBlock::widget(['delay' => 5000, 'useSessionFlash' => TRUE]);
Exemple #4
0
<?php

if (!$model->save()) {
    Yii::$app->session->setFlash("success", "no se pudo");
    return $this->redirect(['update', 'id' => $model->id]);
}
//https://github.com/kartik-v/yii2-widget-alert
use kartik\alert\AlertBlock;
echo AlertBlock::widget(['type' => AlertBlock::TYPE_ALERT, 'useSessionFlash' => true, 'delay' => 20000]);
?>

Exemple #5
0
"/>
    <title><?php 
echo Html::encode($this->title);
?>
</title>
    <?php 
$this->head();
?>
</head>
<body class="y2u-body">
    <div class="<?php 
echo isset($this->params['install-mode']) ? 'y2u-container' : 'y2u-container-pad';
?>
">
        <?php 
echo AlertBlock::widget(['delay' => 0]);
?>
        <?php 
$this->beginBody();
?>
        <?php 
echo $content;
?>
        <?php 
$this->endBody();
?>
    </div>
</body>
    </html>
<?php 
$this->endPage();
Exemple #6
0
</h2>
                    <?php 
    echo Breadcrumbs::widget(['tag' => 'ol', 'links' => $this->params['breadcrumbs']]);
    ?>
                </div>
            </div>
        </div>
    </div>
</section>
<!--/#Page header-->
<?php 
}
?>

<?php 
echo AlertBlock::widget(['type' => AlertBlock::TYPE_GROWL]);
?>

<?php 
echo $content;
?>

<!--
==================================================
Footer Section Start
================================================== -->
<footer id="footer">
    <div class="container">
        <div class="col-md-8">
            <p class="copyright">Copyright: <span>2015</span> by <a href="http://www.themefisher.com">themefisher</a></p>
        </div>
Exemple #7
0
        <?php 
echo $content;
?>
    </div>
</div>

<footer class="footer">
    <div class="container">
        <p class="pull-left">&copy; My company <?php 
echo date('Y');
?>
</p>

        <p class="pull-right"><?php 
echo Yii::powered();
?>
</p>
    </div>
</footer>

<?php 
echo \kartik\alert\AlertBlock::widget(['useSessionFlash' => true, 'type' => \kartik\alert\AlertBlock::TYPE_GROWL, 'alertSettings' => ['error' => ['delay' => 10, 'title' => 'Ошибка', 'type' => \kartik\growl\Growl::TYPE_DANGER, 'showSeparator' => true, 'icon' => 'glyphicon glyphicon-exclamation-sign', 'pluginOptions' => ['placement' => ['from' => 'top', 'align' => 'right']]], 'success' => ['delay' => 10, 'title' => 'Успех', 'type' => \kartik\growl\Growl::TYPE_SUCCESS, 'showSeparator' => true, 'icon' => 'glyphicon glyphicon-ok-sign', 'pluginOptions' => ['placement' => ['from' => 'top', 'align' => 'right']]]]]);
?>

<?php 
$this->endBody();
?>
</body>
</html>
<?php 
$this->endPage();
Exemple #8
0
    $menuItems[] = ['label' => 'Login', 'url' => ['/site/login']];
} else {
    $menuItems[] = ['label' => 'Товары', 'url' => ['/product']];
    $menuItems[] = ['label' => 'Категории', 'url' => ['/category']];
    $menuItems[] = ['label' => 'Logout (' . Yii::$app->user->identity->username . ')', 'url' => ['/site/logout'], 'linkOptions' => ['data-method' => 'post']];
}
echo Nav::widget(['options' => ['class' => 'navbar-nav navbar-right'], 'items' => $menuItems]);
NavBar::end();
?>

        <div class="container">
        <?php 
echo Breadcrumbs::widget(['links' => isset($this->params['breadcrumbs']) ? $this->params['breadcrumbs'] : []]);
?>
        <?php 
echo AlertBlock::widget(['type' => \kartik\alert\AlertBlock::TYPE_GROWL, 'delay' => 0]);
?>
        <?php 
echo $content;
?>
        </div>
    </div>

    <footer class="footer">
        <div class="container">
        <p class="pull-left">&copy; My Company <?php 
echo date('Y');
?>
</p>
        <p class="pull-right"><?php 
echo Yii::powered();
Exemple #9
0
<div class="wrap">
    <?php 
NavBar::begin(['brandLabel' => 'YarCode', 'brandUrl' => Yii::$app->homeUrl, 'options' => ['class' => 'navbar-inverse navbar-fixed-top']]);
$menuItems = [['label' => 'Home', 'url' => ['/site/index']]];
if (Yii::$app->user->isGuest) {
    $menuItems[] = ['label' => 'Login', 'url' => ['/site/login']];
} else {
    $menuItems[] = ['label' => '<i class="fa fa-user"></i> ' . Yii::$app->user->identity->name, 'items' => [['label' => 'Logout', 'url' => ['/site/logout'], 'linkOptions' => ['data-method' => 'post']]]];
}
echo Nav::widget(['options' => ['class' => 'navbar-nav navbar-right'], 'items' => $menuItems, 'encodeLabels' => false]);
NavBar::end();
?>

    <div class="container">
        <?php 
echo AlertBlock::widget(['useSessionFlash' => true, 'type' => AlertBlock::TYPE_GROWL]);
?>
        <?php 
echo Breadcrumbs::widget(['links' => isset($this->params['breadcrumbs']) ? $this->params['breadcrumbs'] : []]);
?>
        <?php 
echo $content;
?>
    </div>
</div>

<footer class="footer">
    <div class="container">
        <p class="pull-left">&copy; YarCode <?php 
echo date('Y');
?>