123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194 |
- <?php
- use app\assets\CoreAsset;
- use app\assets\PluginsAsset;
- $asset = CoreAsset::register($this);
- $assetsUrl = $asset->baseUrl;
- $pluginsAsset = PluginsAsset::register($this);
- $pluginsUrl = $pluginsAsset->baseUrl;
- ?>
- <?php $this->beginPage() ?>
- <!DOCTYPE html>
- <html>
- <head>
- <meta charset="<?php echo CHARSET;?>" />
- <title><?php echo Yii::t('admin','system name');?> - <?php echo Yii::t("admin","system full name");?></title>
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
- <!-- App favicon -->
- <link rel="shortcut icon" href="<?php echo $assetsUrl;?>/images/favicon.ico">
- <!-- Bootstrap Css -->
- <link href="<?php echo $assetsUrl;?>/css/bootstrap.min.css" id="bootstrap-style" rel="stylesheet" type="text/css" />
- <!-- Icons Css -->
- <link href="<?php echo $assetsUrl;?>/css/icons.min.css" rel="stylesheet" type="text/css" />
- <!-- App Css-->
- <link href="<?php echo $assetsUrl;?>/css/app.min.css" id="app-style" rel="stylesheet" type="text/css" />
- <link href="<?php echo $assetsUrl;?>/css/admin.css?v=13" rel="stylesheet" type="text/css" />
- <script src="<?php echo $assetsUrl;?>/libs/jquery/jquery-3.7.0.min.js?v=13"></script>
- <script src="<?php echo $assetsUrl;?>/libs/bootstrap/js/bootstrap.bundle.min.js"></script>
- <!-- Toast-->
- <link href="<?php echo $pluginsUrl;?>/toast/jquery.toast.css" rel="stylesheet" >
- <script src="<?php echo $pluginsUrl;?>/toast/jquery.toast.js"></script>
- <!-- Sweet Alerts js -->
- <link href="<?php echo $assetsUrl;?>/libs/sweetalert2/sweetalert2.min.css" rel="stylesheet" type="text/css" />
- <script src="<?php echo $assetsUrl;?>/libs/sweetalert2/sweetalert2.min.js"></script>
- <script src="<?php echo $assetsUrl;?>/js/jquery.table2excel.min.js"></script>
- <link rel="stylesheet" href="<?php echo $assetsUrl;?>/libs/dselect/dist/css/dselect.css">
- <?php $this->head() ?>
- </head>
- <body class="iframebody" style="padding:0;">
- <?php $this->beginBody() ?>
- <script>
- const Toast = Swal.mixin({
- toast: true,
- position: 'top-end',
- showConfirmButton: false,
- timer: 2000,
- timerProgressBar: false,
- showClass: {
- popup: ''
- }
- })
- </script>
- <?php if(Yii::$app->session->hasFlash('success')): ?>
- <script type="text/javascript">
- Toast.fire({
- icon: 'success',
- title: '<?php echo Yii::$app->session->getFlash('success');?>',
- didClose: (toast) => {
- }
- })
- </script>
- <?php
- endif; ?>
- <?php if(Yii::$app->session->hasFlash('successrefresh')): ?>
- <script type="text/javascript">
- Toast.fire({
- icon: 'success',
- title: '<?php echo Yii::$app->session->getFlash('successrefresh');?>',
- didClose: (toast) => {
- var url = window.location.href;
- window.location.href = url;
- }
- })
- </script>
- <?php
- endif; ?>
- <?php if(Yii::$app->session->hasFlash('warning')): ?>
- <script type="text/javascript">
- Toast.fire({
- icon: 'warning',
- title: '<?php echo Yii::$app->session->getFlash('warning');?>'
- })
- </script>
- <?php endif; ?>
- <?php if(Yii::$app->session->hasFlash('error')): ?>
- <script type="text/javascript">
- Toast.fire({
- icon: 'error',
- title: '<?php echo Yii::$app->session->getFlash('error');?>'
- })
- </script>
- <?php endif; ?>
- <?php if(Yii::$app->session->hasFlash('info')): ?>
- <script type="text/javascript">
- Toast.fire({
- icon: 'info',
- title: '<?php echo Yii::$app->session->getFlash('info');?>'
- })
- </script>
- <?php endif; ?>
- <div class="container-fluid" style="padding:0;overflow-x: hidden;">
- <!-- start page title -->
- <div class="row" style="display:none;">
- <div class="col-12">
- <div class="page-title-box d-sm-flex align-items-center justify-content-between">
- <h4 class="mb-sm-0 font-size-18"><?php echo Yii::t('resource',Yii::$app->controller->currentResource['name']);?></h4>
- <div class="page-title-right">
- <ol class="breadcrumb m-0">
- <li class="breadcrumb-item"><a href="javascript: void(0);"><?php echo Yii::$app->controller->resourceBlock[Yii::$app->controller->currentResource['block']];?></a></li>
- <li class="breadcrumb-item active"><?php echo Yii::t('resource',Yii::$app->controller->currentResource['name']);?></li>
- </ol>
- </div>
- </div>
- </div>
- </div>
- <!-- end page title -->
- <?php echo $content;?>
- </div>
- <!-- end main content-->
- <!-- sample modal content -->
- <div id="koujing" class="modal fade" tabindex="-1" aria-labelledby="myModalLabel" aria-hidden="true">
- <div class="modal-dialog">
- <div class="modal-content">
- <div class="modal-header">
- <h5 class="modal-title" id="myModalLabel">口径描述</h5>
- <button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
- </div>
- <div class="modal-body" id="koujing_content">
- </div>
- <div class="modal-footer">
- <button type="button" class="btn btn-secondary waves-effect" data-bs-dismiss="modal">关闭</button>
- </div>
- </div><!-- /.modal-content -->
- </div><!-- /.modal-dialog -->
- </div><!-- /.modal -->
- <!-- JAVASCRIPT -->
- <script src="<?php echo $assetsUrl;?>/libs/dselect/dist/js/dselect.js"></script>
- <script src="<?php echo $assetsUrl;?>/libs/metismenu/metisMenu.min.js"></script>
- <script src="<?php echo $assetsUrl;?>/libs/simplebar/simplebar.min.js"></script>
- <script src="<?php echo $assetsUrl;?>/libs/node-waves/waves.min.js"></script>
- <script src="<?php echo $assetsUrl;?>/js/app.js"></script>
- <script src="<?php echo $assetsUrl;?>/js/admin.js"></script>
- <script>
- $(function(){
- //搜索车牌
- $('#searchcar').keyup(function(){
- searchCar();
- })
- })
- function searchCar()
- {
- var kw = $('#searchcar').val();
- if(kw!=''&&kw.length>1&&kw.length<7)
- {
- $.get('<?php echo Yii::$app->controller->createRealUrl('ajax/searchcar');?>',{kw:kw},function(result){
- var carList = result.data.carList;
- if(typeof carList !='undefined' && carList !=null)
- {
- var html = '';
- for(var i=0;i<carList.length;i++)
- {
- html+="<option>"+carList[i]+"</option>";
- }
- $('#carOptions').html(html);
- }
- })
- }
- }
- </script>
- <style>
- .card {
- margin-bottom: 12px !important;
- }
- .p-3 {
- padding: 0.2rem!important;
- }
- .bootstrap-table .fixed-table-container .table thead th .th-inner {
- padding: 0.35rem;
- }
- .table > :not(caption) > * > * {
- padding: 0.35rem;
- }
- .row>* {padding-right:0 !important;}
- </style>
- <?php $this->endBody() ?>
- </body>
- </html>
- <?php $this->endPage() ?>
|