页面模板内容:
<table width="840" border="0" align="center" cellpadding="0" cellspacing="0" class="juim2"> <tr> <td height="5" colspan="9"></td> </tr> <tr> [!--empirenews.listtemp--] <!--list.var1--> [!--empirenews.listtemp--] </tr> <tr> <td height="2" colspan="9"></td> </tr> </table>
列表内容模板:
<td width="153" background="[!--news.url--]template/junshi/jua16.gif" class="juim lk39"> <div><a target="_blank" href="[!--this.classlink--]"><img border="0" width="151" height="91" src="[!--titlepic--]"></a></div> <div class="juim1">[!--title--]</div> </td> <td width="25"></td>
我需要整个<table ></table>循环两次。。。。如何搞?
注意这个地方需要两个独立的循环,一个是:列表内容模板循环5次
另一个是大的<table></table>循环两次
最终效果是这样的:
<table width="840" border="0" align="center" cellpadding="0" cellspacing="0" class="juim2"> <tr> <td height="5" colspan="9"></td> </tr> <tr> [!--empirenews.listtemp--] <!--list.var1--> [!--empirenews.listtemp--] </tr> <tr> <td height="2" colspan="9"></td> </tr> </table>
<table width="840" border="0" align="center" cellpadding="0" cellspacing="0" class="juim2"> <tr> <td height="5" colspan="9"></td> </tr> <tr> [!--empirenews.listtemp--] <!--list.var1--> [!--empirenews.listtemp--] </tr> <tr> <td height="2" colspan="9"></td> </tr> </table>
|