template.php 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. <style type="text/css">
  2. *{ padding: 0; margin: 0; }
  3. body{ background: #fff; font-family: '微软雅黑'; color: #333; font-size: 16px; }
  4. .system-message{ width:500px; margin:auto;border:6px solid #999;text-align:center; position:relative;top:50px;}
  5. .system-message legend{font-size:24px;font-weight:bold;color:#999;margin:auto;width:100px;}
  6. .system-message h1{ font-size: 100px; font-weight: normal; line-height: 120px; margin-bottom: 12px; }
  7. .system-message .jump{ padding-right:10px;height:25px;line-height:25px;font-size:14px;position:absolute;bottom:0px;left:0px;background-color:#e6e6e1 ; display:block;width:490px;text-align:right;}
  8. .system-message .jump a{ color: #333;}
  9. .system-message .success,.system-message .error{ line-height: 1.8em; font-size: 15px;min-height:80px; }
  10. .system-message .detail{ font-size: 12px; line-height: 20px; margin-top: 12px; display:none}
  11. #href{color:gray;font-weight:bold;}
  12. .system-message{border:6px solid #619aff !important;}
  13. .system-message legend{color:#619aff !important;}
  14. .system-message legend{border-bottom: 1px solid #fff !important;}
  15. </style>
  16. <div class="content">
  17. <fieldset class="system-message">
  18. <legend style="margin-left:20px;">提示信息</legend>
  19. <div style="text-align:left;padding-left:10px;width:490px; ">
  20. <?php if($status):?>
  21. <p class="success">恭喜^_^!~<?php echo($message); ?></p>
  22. <?php else:?>
  23. <p class="error"><?php echo($error); ?></p>
  24. <?php endif;?>
  25. <p class="detail"> <?php echo($message); ?></p>
  26. </div>
  27. <p class="jump">
  28. 页面自动 <a title="点击跳转" id="href" href="<?php if($go>0){echo 'javascript::history.go(-2);';}else{echo $jumpUrl;}; ?>">跳转</a> 等待时间: <b id="wait"><?php echo($waitSecond); ?></b>。
  29. </p>
  30. </fieldset>
  31. </div>
  32. <script type="text/javascript">
  33. (function(){
  34. var wait = document.getElementById('wait'),href = document.getElementById('href').href;
  35. var go = <?php echo $go?>;
  36. totaltime=parseInt(wait.innerHTML);
  37. var interval = setInterval(function(){
  38. var time = --totaltime;
  39. wait.innerHTML=""+time;
  40. if(time === 0) {
  41. if(go==0)
  42. {
  43. location.href = href;
  44. }else{
  45. history.go(-2);
  46. }
  47. clearInterval(interval);
  48. };
  49. }, 1000);
  50. })();
  51. </script>