Velocity代码片段

来源:互联网 发布:python离线安装包下载 编辑:程序博客网 时间:2024/06/08 17:26
<table id="tableExcelAll"class="table table-striped datagrid m-b-sm table1"><thead><tr><th width="20"><input type="checkbox"></th><th style="width: 10%">二維碼ID</th><th style="width: 10%">啟動碼</th><th style="width: 20%">列印碼</th><th style="width: 10%">商品編號</th><th style="width: 10%">會員</th><th style="width: 10%">寵物</th><th style="width: 20%">啟動時間</th></tr></thead>#foreach($code in $allTagList)<tr><th width="20"><input type="checkbox"></th><td style="text-align: center">$!code.identityNo</td><td style="text-align: center">$!code.startCode</td><td style="text-align: center">http://jiume.co/jiumephone/login.html?startCode=$!code.startCode&identityNo=$!code.identityNo</td><td style="text-align: center">$!code.modifier</td><td style="text-align: center">#if($!code.cell)$!code.cell #else 當前無會員 #end</td><td style="text-align: center">#if($!code.getIdentityNo()&&$!code.getIdentityNo()!="")#set ($protype=$!code.identityNo.substring(0,1))#if($!protype=="A")狗#elseif($!protype=="B")貓#else 其他#end#else 當前無寵物#end</td><td style="text-align: center">$!dateUtils.format($!code.gmtModified,'yyyy-MM-ddHH:mm:ss')</td><td style="text-align: center">$!dateUtils.format($!code.gmtModified,'yyyy-MM-ddHH:mm:ss')</td></tr>#end</table>

0 0
原创粉丝点击