dispatch_jump.html 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  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. <title>{$Think.lang.jump_message}</title>
  6. <style type="text/css">
  7. *{ padding: 0; margin: 0; }
  8. body{ background: #fff; font-family: "Microsoft Yahei","Helvetica Neue",Helvetica,Arial,sans-serif; color: #333; font-size: 12px; }
  9. .system-message{margin:auto;width:400px;border-radius:5px;border:1px solid #D4D4D4;margin-top:100px;}
  10. .system-message h1{font-weight: normal; line-height:32px;height:32px;font-size:16px;background:#FF9933;color:#fff;padding:5px 0;}
  11. .system-message h1 img{float:left;margin:0 10px;}
  12. .system-message .success,.system-message .error{ line-height:32px; font-size:20px;text-align:center;margin:10px 20px;}
  13. .system-message .detail{ font-size: 12px; line-height: 20px; margin-top: 12px; display: none; }
  14. .system-message .jump{ padding:15px 0; text-align:center;background:#F9F9F9;font-size:13px;}
  15. .system-message .jump a{ color: #333; }
  16. </style>
  17. </head>
  18. <body>
  19. <div class="system-message">
  20. <?php switch ($code) {?>
  21. <?php case 1:?>
  22. <h1><img src="{$Think.ADMIN_SITE_ROOT}/images/dispatch_jump_success.png"/>{$Think.lang.ds_common_op_succ}!</h1>
  23. <p class="success"><?php echo(strip_tags($msg));?></p>
  24. <?php break;?>
  25. <?php case 0:?>
  26. <h1><img src="{$Think.ADMIN_SITE_ROOT}/images/dispatch_jump_error.png"/>{$Think.lang.has_error}!</h1>
  27. <p class="error"><?php echo(strip_tags($msg));?></p>
  28. <?php break;?>
  29. <?php } ?>
  30. <p class="detail"></p>
  31. <p class="jump">{$Think.lang.page_auto} <a id="href" href="{$url}">{$Think.lang.jump}</a> {$Think.lang.wait_time}: <b id="wait">{$wait}</b></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>