mirror of
https://gitee.com/ShopeX/OMS
synced 2026-03-23 10:55:34 +08:00
51 lines
1.9 KiB
HTML
51 lines
1.9 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 id="shortcuts_from" method="post" action="index.php?app=desktop&ctl=default&act=set_shortcuts">
|
|
<div class="gridlist">
|
|
<{foreach from=$menus item=item}>
|
|
<div class="row"><div class="row-line" style="padding:0 10px;"><strong><{$item.menu_title}></strong></div></div>
|
|
<{foreach from=$item.menu_group item=item1 key=key}>
|
|
<div class="row"><div class="row-line" style="padding:0 20px;">
|
|
<div class="span-2"><{$key}> --</div>
|
|
<{foreach from=$item1 item=item2}>
|
|
<div class="span-auto">
|
|
<label><input style="float:left;" type="checkbox" name="shortcuts[]" value="<{$item2.menu_title}>|<{$item2.menu_path}>" <{if $item2.menu_path|in_array:$shortcuts_menus}>checked<{/if}>/> <strong style="line-height: 36px;padding-left: 10px;"><{$item2.menu_title}></strong></label>
|
|
</div>
|
|
<{/foreach}>
|
|
</div>
|
|
</div>
|
|
<{/foreach}>
|
|
<div class="clear"></div>
|
|
<{/foreach}>
|
|
</div>
|
|
|
|
<{area inject=".mainFoot"}>
|
|
<div class="table-action">
|
|
<{button label=$___desktop="确定"|t:'desktop' class="btn-primary" type="submit" onclick="$('shortcuts_from').fireEvent('submit',{stop:function(){}})"}>
|
|
<{button label=$___desktop="取消"|t:'desktop' class="btn-secondary" isCloseDialogBtn='true' }>
|
|
</div>
|
|
<{/area}>
|
|
<script>
|
|
$('shortcuts_from').store('target',{
|
|
|
|
onComplete:function(){
|
|
location.reload();
|
|
}
|
|
|
|
});
|
|
</script>
|
|
</form> |