dispatch_jump.tpl 2.0 KB

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