dispatch_jump.tpl 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. {__NOLAYOUT__}
  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: "Microsoft Yahei","Helvetica Neue",Helvetica,Arial,sans-serif; 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 switch ($code) {?>
  21. <?php case 1:?>
  22. <h1>:)</h1>
  23. <p class="success"><?php echo($msg);?></p>
  24. <?php break;?>
  25. <?php case 0:?>
  26. <h1>:(</h1>
  27. <p class="error"><?php echo($msg);?></p>
  28. <?php break;?>
  29. <?php } ?>
  30. <p class="detail"></p>
  31. <p class="jump">
  32. 页面自动 <a id="href" href="<?php echo($url);?>">跳转</a> 等待时间: <b id="wait"><?php echo($wait);?></b>
  33. </p>
  34. </div>
  35. <script type="text/javascript">
  36. (function () {
  37. var wait = document.getElementById('wait'),
  38. 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. ;
  46. }, 1000);
  47. })();
  48. </script>
  49. </body>
  50. </html>