主题 : 如何判断cms.ChnlList内容为空记录???
级别: 秀才
UID: 1701
积分:26 加为好友
威望: 0 精华: 0
主题:3 回复:13
注册时间:2010-01-17
在线时长:0
1#   发表于:2010-06-14 18:23:37  IP:119.137.*.*
如何判断cms.ChnlList内容为空记录???

<table border="0" cellspacing="0" cellpadding="0" width="239" height="88">
  <tbody>
${chnl.id}<br/>
${chnl.name}<br/>
[@cms.ChnlList id=chnl.id inner='1';c,i,has_next] 
[#if (i+1)%2==1]
<tr>
      <td width="26">&nbsp;</td>
      <td width="115" align="left"><a href="${c.url}">>>${c.name}</a></td>
  [#if !has_next]<td width="98">&nbsp;</td></tr>[/#if] 
[#else]
  <td width="98" align="left"><a href="${c.url}">>>${c.name}</a></td>
    </tr>
[/#if]
[/@cms.ChnlList]
  </tbody>
</table>
1 共1页