e4f2ac11a38c2642696f4ed965cf592a.php 2.2 KB

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