mirror of
https://gitee.com/ShopeX/OMS
synced 2026-04-13 01:05:42 +08:00
61 lines
2.4 KiB
HTML
61 lines
2.4 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 method="post" action="index.php?app=eccommon&ctl=regions&act=addDlArea" class="tableform" id="area_add_form">
|
|
<div class="division">
|
|
<table width="100%" border="0" cellpadding="0" cellspacing="0">
|
|
<tr>
|
|
<th><{t}>地区名称:<{/t}></th>
|
|
<td><input type="text" name="local_name" maxlength="20"></td>
|
|
</tr>
|
|
<tr>
|
|
<th><{t}>上级地区:<{/t}></th>
|
|
<td>
|
|
<input type='text' readonly=true class="lnk" id="set_p_region_name" onclick='regionSelect(this)' value='<{if $parent.local_name == ""}><{t}>[无上级]<{/t}><{else}><{$parent.local_name}><{/if}>'/><span class="notice-inline"><{t}>点击输入框可以更换地区的上级节点<{/t}></span>
|
|
<input type='hidden' id="set_p_region_id" name='p_region_id' value='<{$parent.region_id}>'/>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<th><{t}>排序:<{/t}></th>
|
|
<td><input type="number" name="ordernum" size="2" vtype="digits" class="_x_ipt" value="50"><span class="notice-inline"><{t}>数字越小越靠前<{/t}></span></td>
|
|
</tr
|
|
></table>
|
|
</div>
|
|
|
|
<div class="table-action">
|
|
<{button label=$___ectools="保存"|t:'eccommon' type="submit"}><input type="hidden" name="package" value="mainland">
|
|
<{button label=$___ectools="取消"|t:'eccommon' isCloseDialogBtn="true"}>
|
|
</div>
|
|
|
|
|
|
</form>
|
|
<script>
|
|
function regionSelect(el){
|
|
var el=$(el);
|
|
Ex_Loader('modedialog',function(){
|
|
new ModeDialog('index.php?app=eccommon&ctl=regions&act=showRegionTreeList&p[0]='+el.uid,{
|
|
width:250,height:340,params:{iptText:el,iptHidden:el.getParent().getElement('input[type=hidden]')}});
|
|
});
|
|
}
|
|
|
|
$('area_add_form').store('target',{
|
|
onComplete:function(){
|
|
if($('area_add_form').getParent('.dialog'))
|
|
$('area_add_form').getParent('.dialog').retrieve('instance').close();
|
|
}
|
|
});
|
|
</script>
|