maininner.php 6.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194
  1. <?php
  2. use app\assets\CoreAsset;
  3. use app\assets\PluginsAsset;
  4. $asset = CoreAsset::register($this);
  5. $assetsUrl = $asset->baseUrl;
  6. $pluginsAsset = PluginsAsset::register($this);
  7. $pluginsUrl = $pluginsAsset->baseUrl;
  8. ?>
  9. <?php $this->beginPage() ?>
  10. <!DOCTYPE html>
  11. <html>
  12. <head>
  13. <meta charset="<?php echo CHARSET;?>" />
  14. <title><?php echo Yii::t('admin','system name');?> - <?php echo Yii::t("admin","system full name");?></title>
  15. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  16. <!-- App favicon -->
  17. <link rel="shortcut icon" href="<?php echo $assetsUrl;?>/images/favicon.ico">
  18. <!-- Bootstrap Css -->
  19. <link href="<?php echo $assetsUrl;?>/css/bootstrap.min.css" id="bootstrap-style" rel="stylesheet" type="text/css" />
  20. <!-- Icons Css -->
  21. <link href="<?php echo $assetsUrl;?>/css/icons.min.css" rel="stylesheet" type="text/css" />
  22. <!-- App Css-->
  23. <link href="<?php echo $assetsUrl;?>/css/app.min.css" id="app-style" rel="stylesheet" type="text/css" />
  24. <link href="<?php echo $assetsUrl;?>/css/admin.css?v=13" rel="stylesheet" type="text/css" />
  25. <script src="<?php echo $assetsUrl;?>/libs/jquery/jquery-3.7.0.min.js?v=13"></script>
  26. <script src="<?php echo $assetsUrl;?>/libs/bootstrap/js/bootstrap.bundle.min.js"></script>
  27. <!-- Toast-->
  28. <link href="<?php echo $pluginsUrl;?>/toast/jquery.toast.css" rel="stylesheet" >
  29. <script src="<?php echo $pluginsUrl;?>/toast/jquery.toast.js"></script>
  30. <!-- Sweet Alerts js -->
  31. <link href="<?php echo $assetsUrl;?>/libs/sweetalert2/sweetalert2.min.css" rel="stylesheet" type="text/css" />
  32. <script src="<?php echo $assetsUrl;?>/libs/sweetalert2/sweetalert2.min.js"></script>
  33. <script src="<?php echo $assetsUrl;?>/js/jquery.table2excel.min.js"></script>
  34. <link rel="stylesheet" href="<?php echo $assetsUrl;?>/libs/dselect/dist/css/dselect.css">
  35. <?php $this->head() ?>
  36. </head>
  37. <body class="iframebody" style="padding:0;">
  38. <?php $this->beginBody() ?>
  39. <script>
  40. const Toast = Swal.mixin({
  41. toast: true,
  42. position: 'top-end',
  43. showConfirmButton: false,
  44. timer: 2000,
  45. timerProgressBar: false,
  46. showClass: {
  47. popup: ''
  48. }
  49. })
  50. </script>
  51. <?php if(Yii::$app->session->hasFlash('success')): ?>
  52. <script type="text/javascript">
  53. Toast.fire({
  54. icon: 'success',
  55. title: '<?php echo Yii::$app->session->getFlash('success');?>',
  56. didClose: (toast) => {
  57. }
  58. })
  59. </script>
  60. <?php
  61. endif; ?>
  62. <?php if(Yii::$app->session->hasFlash('successrefresh')): ?>
  63. <script type="text/javascript">
  64. Toast.fire({
  65. icon: 'success',
  66. title: '<?php echo Yii::$app->session->getFlash('successrefresh');?>',
  67. didClose: (toast) => {
  68. var url = window.location.href;
  69. window.location.href = url;
  70. }
  71. })
  72. </script>
  73. <?php
  74. endif; ?>
  75. <?php if(Yii::$app->session->hasFlash('warning')): ?>
  76. <script type="text/javascript">
  77. Toast.fire({
  78. icon: 'warning',
  79. title: '<?php echo Yii::$app->session->getFlash('warning');?>'
  80. })
  81. </script>
  82. <?php endif; ?>
  83. <?php if(Yii::$app->session->hasFlash('error')): ?>
  84. <script type="text/javascript">
  85. Toast.fire({
  86. icon: 'error',
  87. title: '<?php echo Yii::$app->session->getFlash('error');?>'
  88. })
  89. </script>
  90. <?php endif; ?>
  91. <?php if(Yii::$app->session->hasFlash('info')): ?>
  92. <script type="text/javascript">
  93. Toast.fire({
  94. icon: 'info',
  95. title: '<?php echo Yii::$app->session->getFlash('info');?>'
  96. })
  97. </script>
  98. <?php endif; ?>
  99. <div class="container-fluid" style="padding:0;overflow-x: hidden;">
  100. <!-- start page title -->
  101. <div class="row" style="display:none;">
  102. <div class="col-12">
  103. <div class="page-title-box d-sm-flex align-items-center justify-content-between">
  104. <h4 class="mb-sm-0 font-size-18"><?php echo Yii::t('resource',Yii::$app->controller->currentResource['name']);?></h4>
  105. <div class="page-title-right">
  106. <ol class="breadcrumb m-0">
  107. <li class="breadcrumb-item"><a href="javascript: void(0);"><?php echo Yii::$app->controller->resourceBlock[Yii::$app->controller->currentResource['block']];?></a></li>
  108. <li class="breadcrumb-item active"><?php echo Yii::t('resource',Yii::$app->controller->currentResource['name']);?></li>
  109. </ol>
  110. </div>
  111. </div>
  112. </div>
  113. </div>
  114. <!-- end page title -->
  115. <?php echo $content;?>
  116. </div>
  117. <!-- end main content-->
  118. <!-- sample modal content -->
  119. <div id="koujing" class="modal fade" tabindex="-1" aria-labelledby="myModalLabel" aria-hidden="true">
  120. <div class="modal-dialog">
  121. <div class="modal-content">
  122. <div class="modal-header">
  123. <h5 class="modal-title" id="myModalLabel">口径描述</h5>
  124. <button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
  125. </div>
  126. <div class="modal-body" id="koujing_content">
  127. </div>
  128. <div class="modal-footer">
  129. <button type="button" class="btn btn-secondary waves-effect" data-bs-dismiss="modal">关闭</button>
  130. </div>
  131. </div><!-- /.modal-content -->
  132. </div><!-- /.modal-dialog -->
  133. </div><!-- /.modal -->
  134. <!-- JAVASCRIPT -->
  135. <script src="<?php echo $assetsUrl;?>/libs/dselect/dist/js/dselect.js"></script>
  136. <script src="<?php echo $assetsUrl;?>/libs/metismenu/metisMenu.min.js"></script>
  137. <script src="<?php echo $assetsUrl;?>/libs/simplebar/simplebar.min.js"></script>
  138. <script src="<?php echo $assetsUrl;?>/libs/node-waves/waves.min.js"></script>
  139. <script src="<?php echo $assetsUrl;?>/js/app.js"></script>
  140. <script src="<?php echo $assetsUrl;?>/js/admin.js"></script>
  141. <script>
  142. $(function(){
  143. //搜索车牌
  144. $('#searchcar').keyup(function(){
  145. searchCar();
  146. })
  147. })
  148. function searchCar()
  149. {
  150. var kw = $('#searchcar').val();
  151. if(kw!=''&&kw.length>1&&kw.length<7)
  152. {
  153. $.get('<?php echo Yii::$app->controller->createRealUrl('ajax/searchcar');?>',{kw:kw},function(result){
  154. var carList = result.data.carList;
  155. if(typeof carList !='undefined' && carList !=null)
  156. {
  157. var html = '';
  158. for(var i=0;i<carList.length;i++)
  159. {
  160. html+="<option>"+carList[i]+"</option>";
  161. }
  162. $('#carOptions').html(html);
  163. }
  164. })
  165. }
  166. }
  167. </script>
  168. <style>
  169. .card {
  170. margin-bottom: 12px !important;
  171. }
  172. .p-3 {
  173. padding: 0.2rem!important;
  174. }
  175. .bootstrap-table .fixed-table-container .table thead th .th-inner {
  176. padding: 0.35rem;
  177. }
  178. .table > :not(caption) > * > * {
  179. padding: 0.35rem;
  180. }
  181. .row>* {padding-right:0 !important;}
  182. </style>
  183. <?php $this->endBody() ?>
  184. </body>
  185. </html>
  186. <?php $this->endPage() ?>