info.php 4.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  1. <?php
  2. use yii\helpers\Html;
  3. use app\assets\CoreAsset;
  4. $asset = CoreAsset::register($this);
  5. $assetsUrl = $asset->baseUrl;
  6. ?>
  7. <!doctype html>
  8. <html>
  9. <head>
  10. <meta charset="utf-8" />
  11. <title><?php echo $title;?></title>
  12. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  13. <!-- App favicon -->
  14. <link rel="shortcut icon" href="<?= $assetsUrl ?>/images/favicon.ico">
  15. <!-- Bootstrap Css -->
  16. <link href="<?= $assetsUrl ?>/css/bootstrap.css" id="bootstrap-style" rel="stylesheet" type="text/css" />
  17. <!-- Icons Css -->
  18. <link href="<?= $assetsUrl ?>/css/icons.css" rel="stylesheet" type="text/css" />
  19. <!-- App Css-->
  20. <link href="<?= $assetsUrl ?>/css/app.css" id="app-style" rel="stylesheet" type="text/css" />
  21. <link href="<?= $assetsUrl ?>/css/admin.css" id="app-style" rel="stylesheet" type="text/css" />
  22. </head>
  23. <body>
  24. <div class="my-5" style="position:fixed;top:50%;left:50%;transform:translateY(-50%) translateX(-50%);width:100%;margin:0 auto!important;">
  25. <div class="container">
  26. <div class="row">
  27. <div class="col-xl-6 <?php if(!defined('IN_WAP')||IN_WAP==false){?> offset-l-3 <?php }?>">
  28. <div class="card">
  29. <div class="card-body">
  30. <h4 class="card-title mb-4 text-<?php echo $class;?>"><?php echo $title;?></h4>
  31. <div class="text-center">
  32. <?php if($class=='success'){?>
  33. <div class="avatar-sm mx-auto mb-4 ">
  34. <span class="avatar-title rounded-circle bg-success bg-soft font-size-24">
  35. <i class="bx bx-check text-success"></i>
  36. </span>
  37. </div>
  38. <?php }elseif($class=='error'){?>
  39. <div class="avatar-sm mx-auto mb-4">
  40. <span class="avatar-title rounded-circle bg-danger bg-soft font-size-24">
  41. <i class="bx bx-x text-danger"></i>
  42. </span>
  43. </div>
  44. <?php }else if($class=='warning'){?>
  45. <div class="avatar-sm mx-auto mb-4">
  46. <span class="avatar-title rounded-circle bg-warning bg-soft font-size-24">
  47. <i class="bx bx-question-mark text-warning"></i>
  48. </span>
  49. </div>
  50. <?php }else{ ?>
  51. <div class="avatar-sm mx-auto mb-4">
  52. <span class="avatar-title rounded-circle bg-info bg-soft font-size-24">
  53. <font style="color: #50A5F1 !important;font-size:24px;">!</font>
  54. </span>
  55. </div>
  56. <?php }?>
  57. <p class="font-16 text-muted mb-2"></p>
  58. <h5><a href="javascript: void(0);" class="text-dark"><?php echo Html::encode($message); ?></a></h5>
  59. <p class="text-muted"></p>
  60. <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>
  61. <p class="text-muted"></p>
  62. </div>
  63. </div>
  64. </div>
  65. </div>
  66. </div>
  67. </div>
  68. </div>
  69. <!-- JAVASCRIPT -->
  70. <script src="<?= $assetsUrl ?>/libs/jquery/jquery-3.7.0.min.js"></script>
  71. <script src="<?= $assetsUrl ?>/libs/bootstrap/js/bootstrap.bundle.min.js"></script>
  72. <script>
  73. function redirect(target){
  74. if(target=='self')
  75. {
  76. location.href = '<?php echo $url;?>';
  77. }
  78. else if(target=='parent')
  79. {
  80. parent.location.href = '<?php echo $url;?>';
  81. }
  82. else if(target=='top')
  83. {
  84. top.location.href = '<?php echo $url;?>';
  85. }
  86. else
  87. {
  88. location.href = '<?php echo $url;?>';
  89. }
  90. }
  91. <?php if($time){?>
  92. setTimeout(function(){
  93. redirect("<?php echo $target;?>");
  94. },<?php echo $time;?>);
  95. <?php }?>
  96. </script>
  97. </body>
  98. </html>