dashboard.php 1.76 KB
<?php

use yii\helpers\Html;
use app\ht\assets\AppAsset;

AppAsset::register($this);

$baseUrl = Yii::$app->request->baseUrl;

?>
<?php $this->beginPage() ?>
<!DOCTYPE html>
<html lang="<?=Yii::$app->language?>">
<head>
    <link rel="shortcut icon" href="<?=$baseUrl?>/favicon.ico" />
    <meta charset="<?=Yii::$app->charset?>">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta http-equiv="Expires" content="0">
    <meta http-equiv="Pragma" content="no-cache">
    <meta http-equiv="Cache-control" content="no-cache">
    <meta http-equiv="Cache" content="no-cache">
    <?= Html::csrfMetaTags() ?>
    <title><?=Html::encode($this->title)?></title>
    <?php $this->head() ?>
    <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
    <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
    <!--[if lt IE 9]>
    <script src="<?=$baseUrl?>/fits-ie/html5shiv/3.7.3/html5shiv.min.js"></script>
    <script src="<?=$baseUrl?>/fits-ie/respond/1.4.2/respond.min.js"></script>
    <![endif]-->
    <?=$this->render('_bootstrap-table-style')?>
    <script>
        seajs.config({
            base: "<?=Yii::$app->request->baseUrl?>/exts/",
            map : [
                [ /^(.*\.(?:css|js))(.*)$/i, '$1?v=<?=time()?>' ]
            ]
        });
        $frameApp.init({
            clientId        : 'admin',
            debug           : true
        });
    </script>
</head>
<body>
<?php $this->beginBody() ?>

<div class="content" style="right: 80px;top:0px;">
    <div class="content-body">
        <?=$content?>
    </div>
    <?=$this->render('_content-footer')?>
</div>

<?php $this->endBody() ?>
</body>
</html>
<?php $this->endPage() ?>