0
0

dispatch_jump.tpl 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  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. <meta name="viewport" content="width=device-width,initial-scale=1.0,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no"/>
  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(strip_tags($msg));?></p>
  24. <?php break;?>
  25. <?php case 0:?>
  26. <h1>:(</h1>
  27. <p class="error"><?php echo(strip_tags($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. }, 1000);
  46. })();
  47. </script>
  48. </body>
  49. </html>