a110d949b0dc53ec8bd6210a8df6a198.php 3.0 KB

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