dispatch_jump.tpl 3.0 KB

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