Files
OMS/app/desktop/view/system/debug/debug.html
2026-01-04 19:08:31 +08:00

48 lines
2.0 KiB
HTML

<!--
Copyright 2012-2026 ShopeX (https://www.shopex.cn)
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<form action='index.php?ctl=system/debug&act=editShopMode' method='POST' class="tableform">
<div class="note"><{t}>当您的商店需要暂停营业的时候,您可以在下面输入框输入停业公告,并点击下面“暂停营业”按钮,这样当用户访问商店的时候就会看到商店关闭停业的通知,并且无法访问商店的任何链接。<{/t}><BR>
<{t}> 当您需要恢复营业的时候,点击“开启商店”按钮即可。<{/t}></div>
<div class="division">
<table>
<tr>
<th><{t}>商店当前状态:<{/t}></th>
<td><{if $systemShopMode==1}><div class='success'><{t}>正常营业中<{/t}></div><{else}><div class='error'><{t}>暂停营业<{/t}></div><{/if}></td>
</tr>
</table>
<table>
<tr>
<th><{t}>停业公告:<{/t}></th>
<td><input type='hidden' id="value_shop_mode" name='shop_mode' />
<{input type="html" name="announcement" value=$announcement}>
</td>
</tr>
</table>
</div>
<div class="table-action">
<{if $systemShopMode==1}>
<{button label=$___desktop="暂停营业"|t:'desktop' type="submit" onclick=";$('value_shop_mode').value=1"}>
<{else}>
<{button label=$___desktop="更新停业公告"|t:'desktop' type="submit" onclick=";$('value_shop_mode').value=1"}>
<{button label=$___desktop="开启商店"|t:'desktop' type="submit" onclick=";$('value_shop_mode').value=0"}>
<{/if}>
</div>
</form>