控制台应用,yzncms本身基于tp5.1框架,里面的队列用不了,bug,坑
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

dispatch_jump.tpl 3.1KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. {__NOLAYOUT__}<!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  5. <title>跳转提示</title>
  6. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  7. <style type="text/css">
  8. *{box-sizing:border-box;margin:0;padding:0;font-family:Lantinghei SC,Open Sans,Arial,Hiragino Sans GB,Microsoft YaHei,"微软雅黑",STHeiti,WenQuanYi Micro Hei,SimSun,sans-serif;-webkit-font-smoothing:antialiased}
  9. body{padding:70px 0;background:#edf1f4;font-weight:400;font-size:1pc;-webkit-text-size-adjust:none;color:#333}
  10. a{outline:0;color:#3498db;text-decoration:none;cursor:pointer}
  11. .system-message{margin:20px 5%;padding:40px 20px;background:#fff;box-shadow:1px 1px 1px hsla(0,0%,39%,.1);text-align:center}
  12. .system-message h1{margin:0;margin-bottom:9pt;color:#444;font-weight:400;font-size:40px}
  13. .system-message .jump,.system-message .image{margin:20px 0;padding:0;padding:10px 0;font-weight:400}
  14. .system-message .jump{font-size:14px}
  15. .system-message .jump a{color:#333}
  16. .system-message p{font-size:9pt;line-height:20px}
  17. .system-message .btn{display:inline-block;margin-right:10px;width:138px;height:2pc;border:1px solid #44a0e8;border-radius:30px;color:#44a0e8;text-align:center;font-size:1pc;line-height:2pc;margin-bottom:5px;}
  18. .success .btn{border-color:#69bf4e;color:#69bf4e}
  19. .error .btn{border-color:#ff8992;color:#ff8992}
  20. .info .btn{border-color:#3498db;color:#3498db}
  21. .copyright p{width:100%;color:#919191;text-align:center;font-size:10px}
  22. .system-message .btn-grey{border-color:#bbb;color:#bbb}
  23. .clearfix:after{clear:both;display:block;visibility:hidden;height:0;content:"."}
  24. @media (max-width:768px){body {padding:20px 0;}}
  25. @media (max-width:480px){.system-message h1{font-size:30px;}}
  26. </style>
  27. </head>
  28. <body>
  29. {php}$codeText=$code == 1 ? 'success' : ($code == 0 ? 'error' : 'info');{/php}
  30. <div class="system-message {$codeText}">
  31. <div class="image">
  32. <img src="__STATIC__/common/img/{$codeText}.svg" alt="" width="150" />
  33. </div>
  34. <h1>{$msg}</h1>
  35. {if $url}
  36. <p class="jump">
  37. 页面自动 <a id="href" href="<?php echo($url);?>">跳转</a> 等待时间: <span id="wait"><?php echo($wait);?></span>秒
  38. </p>
  39. {/if}
  40. <p class="clearfix">
  41. <a href="{$Think.ROOT_URL}" class="btn btn-grey">返回首页</a>
  42. {if $url}
  43. <a href="{$url}" class="btn btn-primary">立即跳转</a>
  44. {/if}
  45. </p>
  46. </div>
  47. <div class="copyright">
  48. <p>Powered by <a href="http://www.yzncms.com/">YznCMS</a></p>
  49. </div>
  50. {if $url}
  51. <script type="text/javascript">
  52. (function () {
  53. var wait = document.getElementById('wait');
  54. var interval = setInterval(function () {
  55. var time = --wait.innerHTML;
  56. if (time <= 0) {
  57. location.href = "{$url}";
  58. clearInterval(interval);
  59. }
  60. }, 1000);
  61. })();
  62. </script>
  63. {/if}
  64. </body>
  65. </html>