You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

4b835c1306b35f7045df8272ad02e884.php 1.6 KiB

3 years ago
123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. <?php if (!defined('THINK_PATH')) exit(); if(C('LAYOUT_ON')) { echo ''; } ?>
  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 http-equiv="Content-Type" content="text/html; charset=utf-8" />
  6. <title>跳转提示</title>
  7. <style type="text/css">
  8. *{ padding: 0; margin: 0; }
  9. body{ background: #fff; font-family: '微软雅黑'; color: #333; font-size: 16px; }
  10. .system-message{ padding: 24px 48px; }
  11. .system-message h1{ font-size: 100px; font-weight: normal; line-height: 120px; margin-bottom: 12px; }
  12. .system-message .jump{ padding-top: 10px}
  13. .system-message .jump a{ color: #333;}
  14. .system-message .success,.system-message .error{ line-height: 1.8em; font-size: 36px }
  15. .system-message .detail{ font-size: 12px; line-height: 20px; margin-top: 12px; display:none}
  16. </style>
  17. </head>
  18. <body>
  19. <div class="system-message">
  20. <?php if(isset($message)) {?>
  21. <h1>:)</h1>
  22. <p class="success"><?php echo($message); ?></p>
  23. <?php }else{?>
  24. <h1>:(</h1>
  25. <p class="error"><?php echo($error); ?></p>
  26. <?php }?>
  27. <p class="detail"></p>
  28. <p class="jump">
  29. 页面自动 <a id="href" href="<?php echo($jumpUrl); ?>">跳转</a> 等待时间: <b id="wait"><?php echo($waitSecond); ?></b>
  30. </p>
  31. </div>
  32. <script type="text/javascript">
  33. (function(){
  34. var wait = document.getElementById('wait'),href = document.getElementById('href').href;
  35. var interval = setInterval(function(){
  36. var time = --wait.innerHTML;
  37. if(time <= 0) {
  38. location.href = href;
  39. clearInterval(interval);
  40. };
  41. }, 1000);
  42. })();
  43. </script>
  44. </body>
  45. </html>