1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798 |
- <?php
- use yii\helpers\Html;
- use app\assets\CoreAsset;
- $asset = CoreAsset::register($this);
- $assetsUrl = $asset->baseUrl;
- ?>
- <!doctype html>
- <html>
- <head>
- <meta charset="utf-8" />
- <title><?php echo $title;?></title>
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
- <!-- App favicon -->
- <link rel="shortcut icon" href="<?= $assetsUrl ?>/images/favicon.ico">
- <!-- Bootstrap Css -->
- <link href="<?= $assetsUrl ?>/css/bootstrap.css" id="bootstrap-style" rel="stylesheet" type="text/css" />
- <!-- Icons Css -->
- <link href="<?= $assetsUrl ?>/css/icons.css" rel="stylesheet" type="text/css" />
- <!-- App Css-->
- <link href="<?= $assetsUrl ?>/css/app.css" id="app-style" rel="stylesheet" type="text/css" />
- <link href="<?= $assetsUrl ?>/css/admin.css" id="app-style" rel="stylesheet" type="text/css" />
- </head>
- <body>
- <div class="my-5" style="position:fixed;top:50%;left:50%;transform:translateY(-50%) translateX(-50%);width:100%;margin:0 auto!important;">
- <div class="container">
- <div class="row">
- <div class="col-xl-6 <?php if(!defined('IN_WAP')||IN_WAP==false){?> offset-l-3 <?php }?>">
- <div class="card">
- <div class="card-body">
- <h4 class="card-title mb-4 text-<?php echo $class;?>"><?php echo $title;?></h4>
- <div class="text-center">
- <?php if($class=='success'){?>
- <div class="avatar-sm mx-auto mb-4 ">
- <span class="avatar-title rounded-circle bg-success bg-soft font-size-24">
- <i class="bx bx-check text-success"></i>
- </span>
- </div>
- <?php }elseif($class=='error'){?>
- <div class="avatar-sm mx-auto mb-4">
- <span class="avatar-title rounded-circle bg-danger bg-soft font-size-24">
- <i class="bx bx-x text-danger"></i>
- </span>
- </div>
- <?php }else if($class=='warning'){?>
- <div class="avatar-sm mx-auto mb-4">
- <span class="avatar-title rounded-circle bg-warning bg-soft font-size-24">
- <i class="bx bx-question-mark text-warning"></i>
- </span>
- </div>
- <?php }else{ ?>
- <div class="avatar-sm mx-auto mb-4">
- <span class="avatar-title rounded-circle bg-info bg-soft font-size-24">
- <font style="color: #50A5F1 !important;font-size:24px;">!</font>
- </span>
- </div>
- <?php }?>
- <p class="font-16 text-muted mb-2"></p>
- <h5><a href="javascript: void(0);" class="text-dark"><?php echo Html::encode($message); ?></a></h5>
- <p class="text-muted"></p>
- <a href="javascript: void(0);" class="text-primary font-16" onclick="redirect('<?php echo $target;?>')"><?php echo Yii::t('admin','if your browser did not redirect,please click here');?><i class="mdi mdi-chevron-right"></i></a>
- <p class="text-muted"></p>
- </div>
- </div>
- </div>
- </div>
- </div>
- </div>
- </div>
- <!-- JAVASCRIPT -->
- <script src="<?= $assetsUrl ?>/libs/jquery/jquery-3.7.0.min.js"></script>
- <script src="<?= $assetsUrl ?>/libs/bootstrap/js/bootstrap.bundle.min.js"></script>
- <script>
- function redirect(target){
- if(target=='self')
- {
- location.href = '<?php echo $url;?>';
- }
- else if(target=='parent')
- {
- parent.location.href = '<?php echo $url;?>';
- }
- else if(target=='top')
- {
- top.location.href = '<?php echo $url;?>';
- }
- else
- {
- location.href = '<?php echo $url;?>';
- }
- }
- <?php if($time){?>
- setTimeout(function(){
- redirect("<?php echo $target;?>");
- },<?php echo $time;?>);
- <?php }?>
- </script>
- </body>
- </html>
|