0
0

dispatch_jump.tpl 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  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. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  8. <meta name="renderer" content="webkit">
  9. <link rel="Shortcut Icon" href="/img/logo.png" type="image/x-icon" />
  10. <link href="/static/hplus/css/bootstrap.min.css?v=3.3.6" rel="stylesheet">
  11. <link href="/static/hplus/css/animate.css" rel="stylesheet">
  12. <link href="/static/hplus/css/style.css?v=4.1.0" rel="stylesheet">
  13. </head>
  14. <body>
  15. <div class="ibox">
  16. <div class="ibox-content">
  17. <?php switch ($code) {?>
  18. <?php case 1:?>
  19. <div class="alert alert-success">
  20. <strong style="font-size:18px;"><?php echo(strip_tags($msg));?></strong>
  21. <p class="jump" style="margin-top:10px;">
  22. 页面自动 <a id="href" href="<?php echo($url);?>">跳转</a> 等待时间: <b id="wait"><?php echo($wait);?></b>
  23. </p>
  24. </div>
  25. <?php break;?>
  26. <?php case 0:?>
  27. <div class="alert alert-danger">
  28. <strong style="font-size:18px;"><?php echo(strip_tags($msg));?></strong>
  29. <p class="jump" style="margin-top:10px;">
  30. 页面自动 <a id="href" href="<?php echo($url);?>">跳转</a> 等待时间: <b id="wait"><?php echo($wait);?></b>
  31. </p>
  32. </div>
  33. <?php break;?>
  34. <?php } ?>
  35. </div>
  36. </div>
  37. <script type="text/javascript">
  38. (function(){
  39. var wait = document.getElementById('wait'),
  40. href = document.getElementById('href').href;
  41. var interval = setInterval(function(){
  42. var time = --wait.innerHTML;
  43. if(time <= 0) {
  44. location.href = href;
  45. clearInterval(interval);
  46. };
  47. }, 1000);
  48. })();
  49. </script>
  50. </body>
  51. </html>