Files
OMS/app/desktop/view/finder/detail.html
2025-12-28 23:13:25 +08:00

75 lines
2.3 KiB
HTML
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<!--
Copyright © ShopeX http://www.shopex.cn. All rights reserved.
See LICENSE file for license details.
-->
<div class="tableform">
<h3>明细信息</h3>
<div class="division">
<table>
<tbody>
<tr>
<{assign var='counter' value=0}>
<{assign var='cols_per_row' value=$cols_per_row|default:5}>
<{foreach from=$data.header item=col key=hk}>
<{if !$col.in_list}> <{continue}> <{/if}>
<{assign var='counter' value=$counter+1}>
<th><{$col.label}></th>
<{assign var='dd' value=$data.body}>
<td><{$dd[$hk]}></td>
<{if $counter % $cols_per_row == 0}>
</tr><tr>
<{/if}>
<{/foreach}>
</tr>
</tbody>
</table>
</div>
<div class="division">
<table class="gridlist">
<thead>
<tr>
<{foreach from=$lines.header item=h key=hk}>
<{if !$h.in_list}> <{continue}> <{/if}>
<th><{$h.label}></th>
<{/foreach}>
</tr>
</thead>
<tbody>
<{foreach from=$lines.body item=b}>
<tr>
<{foreach from=$lines.header item=h key=hk}>
<{if !$h.in_list}> <{continue}> <{/if}>
<td>
<{if $h.filtertype == 'image'}>
<{if is_array($b[$hk]) }>
<{foreach from=$b[$hk] item=img}>
<img src="<{$img}>" style="max-width: 20px; max-height: 20px;" />
<{/foreach}>
<{else}>
<img src="<{$b[$hk]}>" style="max-width: 20px; max-height: 20px;" />
<{/if}>
<{else}>
<{$b[$hk]}>
<{/if}>
</td>
<{/foreach}>
</tr>
<{/foreach}>
</tbody>
</table>
</div>
</div>
<style>
.gridlist tbody td {
/* 内容超出宽度时显示滚动条 */
overflow: auto;
text-overflow: ellipsis;
white-space: nowrap;
}
</style>