dispatch_jump.html 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. {include file="default/base/mall_top" /}
  2. {include file="default/base/mall_header" /}
  3. <style type="text/css">
  4. .system-message{ padding:120px 0;border: 1px solid #E6E6E6;margin-top:20px;}
  5. .system-message p{margin-left:400px;}
  6. .system-message .jump{ padding-top: 10px; }
  7. .system-message .jump a{ color: #333; }
  8. .system-message i{float: left;padding-right: 10px;width: 41px;height: 40px;background: url({$Think.HOME_SITE_ROOT}/images/pw-icon.gif) no-repeat;}
  9. .system-message .success i{background-position: 0 -40px !important;}
  10. .system-message .error i{background-position: 0 -85px !important;}
  11. .system-message .success,.system-message .error{ line-height:40px; font-size:26px;}
  12. .system-message .detail{ font-size: 12px; line-height: 20px; margin-top: 12px; display: none; }
  13. </style>
  14. <div class="w1200">
  15. <div class="system-message">
  16. <?php switch ($code) {?>
  17. <?php case 1:?>
  18. <p class="success"><i></i><?php echo(strip_tags($msg));?></p>
  19. <?php break;?>
  20. <?php case 0:?>
  21. <p class="error"><i></i><?php echo(strip_tags($msg));?></p>
  22. <?php break;?>
  23. <?php } ?>
  24. <p class="detail"></p>
  25. <p class="jump">
  26. {$Think.lang.page_automatic} <a id="href" href="<?php echo($url);?>">{$Think.lang.jump}</a> {$Think.lang.waiting_time}: <b id="wait"><?php echo($wait);?></b>
  27. </p>
  28. </div>
  29. </div>
  30. <script type="text/javascript">
  31. (function(){
  32. var wait = document.getElementById('wait'),
  33. href = document.getElementById('href').href;
  34. var interval = setInterval(function(){
  35. var time = --(wait.innerHTML);
  36. if(time <= 0) {
  37. location.href = href;
  38. clearInterval(interval);
  39. };
  40. }, 1000);
  41. })();
  42. </script>
  43. {include file="default/base/mall_server" /}
  44. {include file="default/base/mall_footer" /}