mirror of
https://gitee.com/ShopeX/OMS
synced 2026-03-30 21:15:34 +08:00
46 lines
1.9 KiB
HTML
46 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.
|
|
-->
|
|
|
|
<{if $type.dialog}>
|
|
<span>
|
|
<span onclick="new Dialog($E('div',this.parentNode).clone().setStyle('display',''),{modal:true,title:'<{t}>帮1助<{/t}> <{$label}>'});"><img src="<{$type.icon}>" /><{if $label}><{$label}><{/if}></span>
|
|
<div style="display:none; padding:15px;">
|
|
<p><{$text}></p>
|
|
<{if $url}><p><a target="blank" href="<{$url}>"><{t}>更多<{/t}></a></p><{/if}>
|
|
<{if $movie}><p><a href="http://docs.shopex.cn/videos/<{$movie}>"><{t}>观看视频<{/t}></a></p><{/if}>
|
|
</div>
|
|
</span>
|
|
<{else}>
|
|
<{if $docid}>
|
|
<a href="http://click.shopex.cn/free_click.php?id=<{$docid}>" target="_blank" style="margin:0;padding:0" title="<{$text|escape:"html"}>">
|
|
<img src="<{$type.icon}>" style="cursor:pointer;" title="<{$text|escape:"html"}>" /><{if $label}><{$label}><{/if}>
|
|
</a>
|
|
<{elseif $href}>
|
|
<a href="<{$href}>" target="_blank" style="margin:0;padding:0" title="<{$text|escape:"html"}>">
|
|
<img src="<{$type.icon}>" style="cursor:pointer;" title="<{$text|escape:"html"}>" /><{if $label}><{$label}><{/if}>
|
|
</a>
|
|
<{else}>
|
|
<span id="<{$dom_id}>">
|
|
<img src="<{$type.icon}>" /><{if $label}><{$label}><{/if}>
|
|
</span>
|
|
<{if $text}>
|
|
<script>
|
|
$('<{$dom_id}>').store('tip:title','').store('tip:text',"<{$text|replace:'"':'\\"'}>");
|
|
Xtip.attach($('<{$dom_id}>'));
|
|
</script>
|
|
<{/if}>
|
|
<{/if}>
|
|
<{/if}> |