dispatch_jump.tpl 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  5. <meta name="renderer" content="webkit"/>
  6. <meta http-equiv="X-UA-Compatible" content="IE=Edge,chrome=1">
  7. <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
  8. <title>跳转提示</title>
  9. <?php if(is_mobile()==true){?>
  10. <style type="text/css">
  11. body, h1, h2, p,dl,dd,dt{margin: 0;padding: 0;font: 15px/1.5 微软雅黑,tahoma,arial;}
  12. body{background:#efefef;}
  13. h1, h2, h3, h4, h5, h6 {font-size: 100%;cursor:default;}
  14. ul, ol {list-style: none outside none;}
  15. a {text-decoration: none;color:#447BC4}
  16. a:hover {text-decoration: underline;}
  17. .ip-attack{width:100%; margin:200px auto 0;}
  18. .ip-attack dl{ background:#fff; padding:30px; border-radius:8px;border: 1px solid #ddd;-webkit-box-shadow: 0 0 8px #ddd;-moz-box-shadow: 0 0 8px #ddd;box-shadow: 0 0 8px #ddd;}
  19. .ip-attack dt{text-align:center;}
  20. .ip-attack dd{font-size:16px; color:#333; text-align:center;}
  21. .tips{text-align:center; font-size:14px; line-height:50px; color:#999;}
  22. </style>
  23. <?php }else{ ?>
  24. <style type="text/css">
  25. body, h1, h2, p,dl,dd,dt{margin: 0;padding: 0;font: 15px/1.5 微软雅黑,tahoma,arial;}
  26. body{background:#efefef;}
  27. h1, h2, h3, h4, h5, h6 {font-size: 100%;cursor:default;}
  28. ul, ol {list-style: none outside none;}
  29. a {text-decoration: none;color:#447BC4}
  30. a:hover {text-decoration: underline;}
  31. .ip-attack{width:600px; margin:200px auto 0;}
  32. .ip-attack dl{ background:#fff; padding:30px; border-radius:8px;border: 1px solid #ddd;-webkit-box-shadow: 0 0 8px #ddd;-moz-box-shadow: 0 0 8px #ddd;box-shadow: 0 0 8px #ddd;}
  33. .ip-attack dt{text-align:center;}
  34. .ip-attack dd{font-size:16px; color:#333; text-align:center;}
  35. .tips{text-align:center; font-size:14px; line-height:50px; color:#999;}
  36. </style>
  37. <?php }?>
  38. </head>
  39. <body>
  40. <div class="ip-attack"><dl>
  41. <?php switch ($code) {?>
  42. <?php case 1:?>
  43. <dt style="color: green"><?php echo(strip_tags($msg));?></dt>
  44. <?php break;?>
  45. <?php case 0:?>
  46. <dt style="color: red"><?php echo(strip_tags($msg));?></dt>
  47. <?php break;?>
  48. <?php } ?>
  49. <br>
  50. <dt>
  51. 页面自动 <a id="href" href="<?php echo($url);?>">跳转</a>,等待时间: <b id="wait"><?php echo($wait);?></b>
  52. </dt></dl>
  53. </div>
  54. <script type="text/javascript">
  55. (function(){
  56. var wait = document.getElementById('wait'),
  57. href = document.getElementById('href').href;
  58. var interval = setInterval(function(){
  59. var time = --wait.innerHTML;
  60. if(time <= 0) {
  61. location.href = href;
  62. clearInterval(interval);
  63. };
  64. }, 1000);
  65. })();
  66. </script>
  67. </body>
  68. </html>