82 lines
2.9 KiB
PHP
Executable File
82 lines
2.9 KiB
PHP
Executable File
<?php
|
||
|
||
/* @var $this \yii\web\View */
|
||
/* @var $content string */
|
||
|
||
use backend\assets\AppAsset;
|
||
use yii\helpers\Html;
|
||
use yii\helpers\Url;
|
||
use yii\bootstrap\Nav;
|
||
use yii\bootstrap\NavBar;
|
||
use yii\widgets\Breadcrumbs;
|
||
use common\widgets\Alert;
|
||
|
||
// AppAsset::register($this);
|
||
$keywords = '';
|
||
$description = '';
|
||
$routes = ['data']; //自添加的controllers列表集,用于为新添加的控制器在渲染视图时自动加入HTML代码段,以便兼容h+的后台模板
|
||
?>
|
||
<?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>
|
||
|
||
<meta name="renderer" content="webkit">
|
||
<meta http-equiv="Cache-Control" content="no-siteapp" />
|
||
<meta name="keywords" content="<?php echo $keywords ?>">
|
||
<meta name="description" content="<?php echo $description ?>">
|
||
<!--[if lt IE 9]>
|
||
<meta http-equiv="refresh" content="0;ie.html" />
|
||
<![endif]-->
|
||
<link rel="shortcut icon" href="./favicon.ico">
|
||
|
||
<?=Html::cssFile('@web/css/bootstrap.min.css')?>
|
||
<?=Html::cssFile('@web/css/font-awesome.css')?>
|
||
<?=Html::cssFile('@web/css/animate.min.css')?>
|
||
<?=Html::cssFile('@web/css/site.css')?>
|
||
<?=Html::cssFile('@web/css/style.min.css')?>
|
||
|
||
<?=Html::jsFile('@web/js/jquery.min.js')?>
|
||
<?php $this->head() ?>
|
||
</head>
|
||
<body class="fixed-sidebar full-height-layout gray-bg">
|
||
<?php $this->beginBody() ?>
|
||
<?php if((Yii::$app->controller->module->defaultRoute!="site") ||(Yii::$app->controller->module->defaultRoute=="site" && Yii::$app->controller->module->requestedRoute!=""
|
||
&& Yii::$app->controller->module->requestedRoute!="site/login")):?>
|
||
<nav class="breadcrumb fix_top hidden-sm hidden-xs" style="height: 45px;">
|
||
<div class="pull-right">
|
||
<a class="btn btn-primary radius " style="line-height:1.6em;margin-top:3px" href="javascript:history.go(-1);" title="后退">
|
||
<span class="fa fa-reply"></span>
|
||
</a>
|
||
|
||
<a class="btn btn-primary radius" style="line-height:1.6em;margin-top:3px" href="javascript:location.replace(location.href);" title="刷新">
|
||
<span class="fa fa-refresh"></span>
|
||
</a>
|
||
|
||
</div>
|
||
</nav>
|
||
<?php endif;?>
|
||
<?php if(in_array(Yii::$app->controller->module->id,$routes)): ?>
|
||
<div class="wrapper wrapper-content">
|
||
<div class="row">
|
||
<div class="col-sm-12">
|
||
<div class="ibox float-e-margins">
|
||
<div class="ibox-content">
|
||
<?php endif;?>
|
||
<?= $content ?>
|
||
<?php if(in_array(Yii::$app->controller->module->id,$routes)): ?>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
<?php endif;?>
|
||
<?php $this->endBody() ?>
|
||
</body>
|
||
</html>
|
||
<?php $this->endPage() ?>
|