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