success.html 2.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. <!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>{:L("_JUMP_CUE_")}</title>
  6. <style type="text/css">
  7. *{ padding: 0; margin: 0; }
  8. body{ background: rgb(79, 138, 208); font-family: 'Microsoft YaHei'; color: #fff; font-size: 16px;text-align: center; }
  9. .system-message{position: fixed;left: 50%;top: 50%;margin-left: -222px;margin-top: -230px}
  10. .system-message h1{ font-size: 80px; font-weight: normal; line-height: 120px; margin-bottom: 12px }
  11. .system-message .jump{ padding-top: 10px;margin-bottom:20px}
  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. #wait {
  16. font-size:46px;
  17. }
  18. #btn-stop,#href{
  19. display: inline-block;
  20. margin-right: 10px;
  21. font-size: 16px;
  22. line-height: 18px;
  23. text-align: center;
  24. vertical-align: middle;
  25. cursor: pointer;
  26. border: 0 none;
  27. background-color: white;
  28. padding: 10px 20px;
  29. color: rgb(79, 138, 208);
  30. border-radius: 3px;
  31. font-weight: bold;
  32. border-color: transparent;
  33. text-decoration:none;
  34. }
  35. #btn-stop:hover,#href:hover{
  36. color: rgba(79, 138, 208,0.9);
  37. background: rgba(255,255,255,0.9);
  38. }
  39. </style>
  40. </head>
  41. <body>
  42. <div class="system-message">
  43. <h1>{:L("_CONGRATULATIONS_")}</h1>
  44. <p class="error"><?php echo($message); ?></p>
  45. <p class="detail"></p>
  46. <p class="jump">
  47. <b id="wait"><?php echo($waitSecond); ?></b>{:L("_SECONDS_AFTER_THE_PAGE_WILL_AUTOMATICALLY_JUMP_")}
  48. </p>
  49. <div>
  50. <a id="href" id="btn-now" href="<?php echo($jumpUrl); ?>">{:L("_JUMP_IMMEDIATELY_")}</a>
  51. <button id="btn-stop" type="button" onclick="stop()">{:L("_STOP_JUMP_")}</button>
  52. <a id="href" id="btn-now" href="<?php echo(U('Public/logout')); ?>">{:L("_RE_LOGIN_")}</a>
  53. </div>
  54. </div>
  55. <script type="text/javascript">
  56. (function(){
  57. var wait = document.getElementById('wait'),href = document.getElementById('href').href;
  58. var interval = setInterval(function(){
  59. var time = --wait.innerHTML;
  60. if(time <= 0) {
  61. location.href = href;
  62. clearInterval(interval);
  63. };
  64. }, 1000);
  65. window.stop = function (){
  66. console.log(111);
  67. clearInterval(interval);
  68. }
  69. })();
  70. </script>
  71. </body>
  72. </html>