jtemplate给予;预计下面是我的代码

时间:2012-03-03 09:45:09

标签: jtemplates

我的代码是:

<table border="1" rules="all" cellpadding="0" width="100%" cellspacing="1" id="table1" style="text-align:center">
    <thead>
      {var tmpchannelid = '0'}
      {#foreach $T as ChannelRoomBind}

    {#if $T.ChannelRoomBind.channelid neq ${tmpchannelid}}
        <tr class="midhead2_calen">
           <td>{$T.ChannelRoomBind.ChannelName }</td>
        </tr>
     {#/if}
     { tmpchannelid = {$T.ChannelRoomBind.channelId}}
        {#/for}
    </thead>
    <tbody>
        <tr>
        </tr>
    </tbody>
</table>

0 个答案:

没有答案