header-renew-account.html 1.0 KB

123456789101112131415161718192021222324
  1. {if empty($_COOKIE['check_setmeal']) && !empty($_W['account']['endtime']) && ($_W['account']['endtime'] - TIMESTAMP < (6*86400))}
  2. <div class="system-tips we7-body-alert" id="setmeal-tips">
  3. <div class="container text-right">
  4. <div class="alert-info">
  5. <a href="{if $_W['isfounder']}{php echo url('user/edit', array('uid' => $_W['account']['uid']));}{else}javascript:void(0);{/if}">
  6. 您的服务有效期限:{php echo date('Y-m-d', $_W['account']['starttime']);} ~ {php echo date('Y-m-d', $_W['account']['endtime']);}.
  7. {if $_W['account']['endtime'] < TIMESTAMP}
  8. 目前已到期,请联系管理员续费
  9. {else}
  10. 将在{php echo floor(($_W['account']['endtime'] - strtotime(date('Y-m-d')))/86400);}天后到期,请及时续费
  11. {/if}
  12. </a>
  13. <span class="tips-close" onclick="check_setmeal_hide();"><i class="wi wi-error-sign"></i></span>
  14. </div>
  15. </div>
  16. </div>
  17. <script>
  18. function check_setmeal_hide() {
  19. util.cookie.set('check_setmeal', 1, 1800);
  20. $('#setmeal-tips').hide();
  21. return false;
  22. }
  23. </script>
  24. {/if}