dispatch_jump.tpl 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. <!DOCTYPE html>
  2. <!--[if IE 9]> <html class="ie9 no-focus" lang="zh"> <![endif]-->
  3. <!--[if gt IE 9]><!--> <html class="no-focus" lang="zh"> <!--<![endif]-->
  4. <head>
  5. <meta charset="utf-8">
  6. <title>跳转提示 | {:config('web_site_title')} - DolphinPHP</title>
  7. <meta name="robots" content="noindex, nofollow">
  8. <meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1.0">
  9. <!-- Icons -->
  10. <!-- The following icons can be replaced with your own, they are used by desktop and mobile browsers -->
  11. <link rel="shortcut icon" href="__STATIC__/img/favicons/favicon.png">
  12. <!-- END Icons -->
  13. <!-- Stylesheets -->
  14. <!-- Bootstrap and OneUI CSS framework -->
  15. <link rel="stylesheet" href="__ADMIN_CSS__/bootstrap.min.css">
  16. <link rel="stylesheet" href="__ADMIN_CSS__/oneui.css">
  17. <link rel="stylesheet" href="__ADMIN_CSS__/dolphin.css">
  18. <!-- END Stylesheets -->
  19. </head>
  20. <body>
  21. <!-- Error Content -->
  22. <div class="content bg-white text-center pulldown overflow-hidden">
  23. <div class="row">
  24. <div class="col-sm-6 col-sm-offset-3">
  25. <!-- Error Titles -->
  26. <h1 class="font-w300 {$code? 'text-success' : 'text-city'} push-10 animated flipInX"><i class="fa fa-{$code? 'check' : 'times'}-circle"></i> <?php echo(strip_tags($msg));?></h1>
  27. <p class="font-w300 push-20 animated fadeInUp">页面自动 <a id="href" href="<?php echo($url);?>">跳转</a> 等待时间: <b id="wait"><?php echo($wait);?></b>秒</p>
  28. <div class="push-50">
  29. <a class="btn btn-minw btn-rounded btn-success" href="<?php echo($url);?>"><i class="fa fa-external-link-square"></i> 立即跳转</a>
  30. <button class="btn btn-minw btn-rounded btn-warning" type="button" onclick="stop()"><i class="fa fa-ban"></i> 禁止跳转</button>
  31. <a class="btn btn-minw btn-rounded btn-default" href="{$Request.baseFile}"><i class="fa fa-home"></i> 返回首页</a>
  32. </div>
  33. <!-- END Error Titles -->
  34. </div>
  35. </div>
  36. </div>
  37. <!-- END Error Content -->
  38. <!-- Error Footer -->
  39. <div class="content pulldown text-muted text-center">
  40. 极简 · 极速 · 极致<br>
  41. 海豚PHP,让开发更简单!<br>
  42. 由 <a class="link-effect" href="http://www.dolphinphp.com">DolphinPHP</a> 强力驱动 <a class="link-effect" href="http://www.zrthink.com">卓锐软件</a> 倾情奉献
  43. </div>
  44. <!-- END Error Footer -->
  45. <script type="text/javascript">
  46. (function(){
  47. let wait = document.getElementById('wait'),
  48. href = document.getElementById('href').href,
  49. pop = '{$Request.param._pop}'; //获取窗口索引
  50. let interval = setInterval(function(){
  51. let time = --wait.innerHTML;
  52. if(time <= 0) {
  53. if (pop === '1' && parent.layer !== undefined) {
  54. let index = parent.layer.getFrameIndex(window.name);
  55. parent.layer.close(index);
  56. } else {
  57. location.href = href;
  58. }
  59. clearInterval(interval);
  60. }
  61. }, 1000);
  62. // 禁止跳转
  63. window.stop = function (){
  64. clearInterval(interval);
  65. }
  66. })();
  67. </script>
  68. </body>
  69. </html>