123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101 |
- <?php
- use common\modules\rbac\components\MenuHelper;
- use common\modules\rbac\models\Menu;
- use yii\helpers\Html;
- /* @var $this \yii\web\View */
- /* @var $content string */
- /* @var $context \yii\web\Controller */
- backend\assets\AppAsset::register($this);
- ?>
- <?php $this->beginPage() ?>
- <!DOCTYPE html>
- <html lang="<?= Yii::$app->language ?>">
- <head>
- <meta charset="<?= Yii::$app->charset ?>"/>
- <meta name="viewport" content="width=device-width, initial-scale=1">
- <?= Html::csrfMetaTags() ?>
- <title><?= Html::encode($this->title) ?></title>
- <?php $this->head() ?>
- </head>
- <body class="hold-transition <?= Yii::$app->config->get('backend_skin', 'skin-green') ?> ">
- <?php $this->beginBody() ?>
- <style>
- .content-wrapper, .right-side, .main-footer {margin-left:0!important;}
- .btn-refresh {
- position: fixed;
- bottom: 100px;
- right: 2px;
- padding: 3px 8px;
- font-size: 24px;
- border:1px solid #ccc;
- border-radius:4px;
- cursor: pointer;
- background-color: #009688;
- border-color: #009688;
- }
- .btn-refresh:hover{
- background: #009688 !important;
- border-color: #009688 !important;
- opacity: 0.8;
- }
- </style>
- <div class="content-wrapper">
- <section class="content-header">
- <?php if (isset($this->blocks['content-header'])) { ?>
- <h1><?= $this->blocks['content-header'] ?></h1>
- <?php } else { ?>
- <h1>
- <?php
- if ($this->title !== null) {
- echo \yii\helpers\Html::encode($this->title);
- } else {
- echo \yii\helpers\Inflector::camel2words(
- \yii\helpers\Inflector::id2camel($this->context->module->id)
- );
- echo ($this->context->module->id !== \Yii::$app->id) ? '<small>Module</small>' : '';
- } ?>
- </h1>
- <?php } ?>
- <?= \yii\widgets\Breadcrumbs::widget([
- 'links' => isset($this->params['breadcrumbs']) ? $this->params['breadcrumbs'] : [],
- 'homeLink' => false
- ]) ?>
- </section>
- <section class="content">
- <?= \common\widgets\Alert::widget()?>
- <?= $content ?>
- </section>
- </div>
- <?php
- $js = <<<JS
- //layer相册
- layer.ready(function () {
- layer.photos({
- photos: '.media-content',
- shift: 5
- });
- });
- JS;
- $this->registerJs($js);
- ?>
- <?= Html::a(Html::icon('refresh'), 'javascript:;', ['class' => 'btn btn-success btn-refresh', 'onclick' => 'location.reload()']) ?>
- <?php $this->endBody() ?>
- <?php if (isset($this->blocks['js'])): ?>
- <?= $this->blocks['js'] ?>
- <?php endif; ?>
- </body>
- </html>
- <?php $this->endPage() ?>
|