mirror of
https://gitee.com/ShopeX/OMS
synced 2026-03-22 10:25:35 +08:00
43 lines
1.7 KiB
HTML
43 lines
1.7 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.
|
|
-->
|
|
|
|
<div id="<{$params.domid}>" class="object-select clearfix" style="display:inline-block;*zoom:1;" <{$addons}> >
|
|
<div class="label" id="<{$id}>" rel="<{$string}>"><{$string}></div>
|
|
<div class="handle"> </div>
|
|
<input type="hidden" name="<{$params.name}>" vtype="<{$params.vtype}>" value="<{if is_array($params.value)}><{$params.value|implode:','}><{else}><{$params.value}><{/if}>" />
|
|
</div>
|
|
<{if $params.replacehtml}>
|
|
<{$params.replacehtml}>
|
|
<{/if}>
|
|
<script>
|
|
var current_url = $empty; var change_url = function(url){return url;};
|
|
$('<{$params.domid}>').getElements('.label,.handle').addEvent('click', function(e){
|
|
var newurl = change_url.call(current_url,'<{$url}>');
|
|
Ex_Loader('modedialog',function(){
|
|
new finderDialog(newurl, {
|
|
handle:'handle_<{$params.domid}>',
|
|
onCallback:function(rs){<{if $callback}><{$callback}>(rs,$('handle_<{$params.domid}>'));<{/if}>},
|
|
params:{
|
|
url:'<{$return_url}>',
|
|
type:'<{$params.type}>',
|
|
name:'data[]',
|
|
postdata:'app_id=<{$params.app_id}>&<{$object}>'
|
|
}
|
|
});
|
|
});
|
|
});
|
|
</script>
|