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.

49 lines
1.6 KiB

пре 3 година
  1. <?php
  2. if(C('LAYOUT_ON')) {
  3. echo '{__NOLAYOUT__}';
  4. }
  5. ?>
  6. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  7. <html xmlns="http://www.w3.org/1999/xhtml">
  8. <head>
  9. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  10. <title>跳转提示</title>
  11. <style type="text/css">
  12. *{ padding: 0; margin: 0; }
  13. body{ background: #fff; font-family: '微软雅黑'; color: #333; font-size: 16px; }
  14. .system-message{ padding: 24px 48px; }
  15. .system-message h1{ font-size: 100px; font-weight: normal; line-height: 120px; margin-bottom: 12px; }
  16. .system-message .jump{ padding-top: 10px}
  17. .system-message .jump a{ color: #333;}
  18. .system-message .success,.system-message .error{ line-height: 1.8em; font-size: 36px }
  19. .system-message .detail{ font-size: 12px; line-height: 20px; margin-top: 12px; display:none}
  20. </style>
  21. </head>
  22. <body>
  23. <div class="system-message">
  24. <?php if(isset($message)) {?>
  25. <h1>:)</h1>
  26. <p class="success"><?php echo($message); ?></p>
  27. <?php }else{?>
  28. <h1>:(</h1>
  29. <p class="error"><?php echo($error); ?></p>
  30. <?php }?>
  31. <p class="detail"></p>
  32. <p class="jump">
  33. 页面自动 <a id="href" href="<?php echo($jumpUrl); ?>">跳转</a> 等待时间: <b id="wait"><?php echo($waitSecond); ?></b>
  34. </p>
  35. </div>
  36. <script type="text/javascript">
  37. (function(){
  38. var wait = document.getElementById('wait'),href = document.getElementById('href').href;
  39. var interval = setInterval(function(){
  40. var time = --wait.innerHTML;
  41. if(time <= 0) {
  42. location.href = href;
  43. clearInterval(interval);
  44. };
  45. }, 1000);
  46. })();
  47. </script>
  48. </body>
  49. </html>