0
使用JQuery/JTemplates/ASP.NET可以使用這種嵌套的UI嗎?在ASP.NET中使用嵌套J模板的JQuery
或多或少的僞代碼:重要的部分是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>
這看起來不錯! – msfanboy 2011-04-20 07:22:16