动态控制table每行显示固定个数
<table width="100%"? border="0" cellpadding="0" cellspacing="0" >
?? ?????[#if onLineUser??]
???????[#list onLineUser as tu]
???????[#if !tu_has_next]
????????[#if tu_index%2==0]
?????????<tr style="vertical-align: top;">
???? ???????<td align="center" width="60" height="15"><span ><a href="#" onmouseover="followcursor();" onmouseout="closeDiv();';"><img src="${base}/res_team/images/online_2.gif"> ${tu.user.realName}</a></span></td>
???? ???????<td align="center" width="60" height="15"></td>
?????????</tr>
????????[/#if]
????????[#if tu_index%2!=0]
?????????<tr style="vertical-align: top;">
???? ???????<td align="center" width="60" height="15"><a href="" onmouseover="followcursor();" onmouseout="closeDiv();"><img src="${base}/res_team/images/online_2.gif"> ${_user.user.realName}</a></td>
???? ???????<td align="center" width="60" height="15"><a href="" onmouseover="followcursor();" onmouseout="closeDiv();" ><img src="${base}/res_team/images/online_2.gif"> ${tu.user.realName}</a></td>
?????????</tr>
????????[/#if]
???????[#else]
????????[#if tu_index%2==0]
????????[#assign _user=tu]
????????[/#if]
????????[#if tu_index%2!=0]
?????????<tr style="vertical-align: top;">
???? ???????<td align="center" width="60" height="15"><a href="" onmouseover="followcursor();" onmouseout="closeDiv();"><img src="${base}/res_team/images/online_2.gif"> ${_user.user.realName}</a></td>
???? ???????<td align="center" width="60" height="15"><a href="" onmouseover="followcursor();" onmouseout="closeDiv();"><img src="${base}/res_team/images/online_2.gif"> ${tu.user.realName}</a></td>
?????????</tr>
????????[/#if]
???????[/#if]
???????[/#list]
??????[/#if]
??????</table>