mirror of
https://gitee.com/ShopeX/OMS
synced 2026-04-13 09:15:41 +08:00
86 lines
2.8 KiB
HTML
86 lines
2.8 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 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> |