fm453 314745edf8 优化ctms-api语法、修复已知BUG;
主要修复ctms-api、dacms对PHP新版本的支持问题
2025-04-10 23:19:15 +08:00

83 lines
2.9 KiB
PHP
Executable File
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<?php
/* @var $this \yii\web\View */
/* @var $content string */
use backend\assets\AppAsset;
use yii\helpers\Html;
use yii\helpers\Url;
use yii\bootstrap5\Nav;
use yii\bootstrap5\NavBar;
use yii\bootstrap5\ActiveForm;
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>
&nbsp;
<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>
&nbsp;
</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() ?>