是否可以使用 JQuery/JTemplates/ASP.NET 拥有这样的嵌套 UI?
或多或少的伪代码:重要的部分是 td 内的第二个 foreach 循环。
<table>
<thead style="font-weight: bold">
<tr>
<td>{$P.lang['pupilName']}</td>
<td>{$P.lang['mail']}</td>
</tr>
</thead>
<tbody>
{#foreach $T.table as record}
<tr>
<td>{$T.record.name}</td>
<td>{$T.record.mail}</td>
<td> // thats the 3rd column containing a listbox/list with documents
{#foreach $T.table1 as doc}
<ul>
<li>excel sheet 1</li>
<li>word document 2</li>
<li>pdf document 4</li>
</ul>
{#/for}
</td>
</tr>
{#/for}
</tbody>
</table>