首页 > 代码库 > freemarker 分页取值

freemarker 分页取值

<#if pagination??&&pagination.list??>
<#list pagination.list as video>
<td align="center">${video.videoId}</td>
<#assign layMenu = video.videoExts>
<#list layMenu as videoExt>
<td align="center"> ${(videoExt.title)?default("")}</td>

<#if (videoExt.origin ==1)> <td align="center">哔哩哔哩</td> </#if>
<#if (videoExt.origin ==2)> <td align="center">腾讯</td> </#if>
<#if (videoExt.origin ==3)> <td align="center">风行</td> </#if>
<#if (videoExt.origin ==4)> <td align="center">搜狐</td> </#if>
<#if (videoExt.origin ==5)> <td align="center">土豆</td> </#if>
<#if (videoExt.origin ==6)> <td align="center">优酷</td> </#if>
<#if (videoExt.origin ==7)> <td align="center">新浪</td> </#if>
<#if (videoExt.origin ==8)> <td align="center">爱奇艺</td> </#if>

<td align="center">${(videoExt.description)?default("")}</td>
<td align="center"> ${(videoExt.duration)?default("")}</td>

<#if (videoExt.classification ==1)> <td align="center">搞笑</td> </#if>
<#if (videoExt.classification ==2)> <td align="center">美食</td> </#if>
<#if (videoExt.classification ==3)> <td align="center">动物圈</td> </#if>
<#if (videoExt.classification ==4)> <td align="center">运动</td> </#if>
<#if (videoExt.classification ==5)> <td align="center">鬼畜调教</td> </#if>
<#if (videoExt.classification ==6)> <td align="center">美妆</td> </#if>
<#if (videoExt.classification ==7)> <td align="center">服饰</td> </#if>
<#if (videoExt.classification ==8)> <td align="center">健身</td> </#if>
<#if (videoExt.classification ==9)> <td align="center">资讯</td> </#if>
<#if (videoExt.classification ==10)> <td align="center">明星</td> </#if>
<#if (videoExt.classification ==11)> <td align="center">Korea相关</td> </#if>
<#if (videoExt.classification ==12)> <td align="center">电影相关</td> </#if>
<#if (videoExt.classification ==13)> <td align="center">电视剧相关</td> </#if>

<td align="center"> ${(videoExt.crawlTime)?default("")}</td>

<#if videoExt.similarRate?exists>
<#if (videoExt.similarRate >=0.8)> <td align="center" bgcolor="e91e6f"; > ${(videoExt.similarRate)?default("")}</td> </#if>
<#if (videoExt.similarRate < 0.8)> <td align="center"> ${(videoExt.similarRate)?default("")}</td> </#if>
<#else>
<td align="center"> </td>
</#if>

<td align="center">
<a href="http://www.mamicode.com/#" onclick="showWindow(‘${(videoExt.sourceUrl)?default(‘‘)}‘);" class="pn-opt">预览</a>&nbsp;
<a href="http://www.mamicode.com/#" onclick="showCover(${video.videoId});" class="pn-opt">审核</a>
</td>
</#list>
<!--
<a href="http://www.mamicode.com/v_edit.do?id=571482&cid=&pageNo=&queryTitle=&queryInputUsername=&queryTopLevel=false&queryRecommend=false&queryTypeId=&queryStatus=&queryOrderBy=0" class="pn-opt">修改</a> -->
<!--
<a href="http://www.mamicode.com/o_delete.do?ids=571482&cid=&pageNo=&queryTitle=&queryInputUsername=&queryTopLevel=false&queryRecommend=false&queryTypeId=&queryStatus=&queryOrderBy=0" onclick="if(!confirm(‘您确定删除吗?‘)) {return false;}" class="pn-opt">删除</a>
-->
</td>
</tr>
</#list>
</#if>

freemarker 分页取值