jsp 页面使用标签遍历

<tbody>
                <c:forEach items="${page.list}" var="exhiMain">
                    <c:set var="exhihuiLv" value="${fns:getDictLabel(exhiMain.huiLvValue,'hui_lv','1') }" />
                    <c:set value="${exhiMain.zhanweiTypes }" var="zhanweiTypesList" />
                    <tr>
                        <td>${exhiMain.id }</td>
                        <td>
                            <div class="col_content" style="width: 197px" title="${exhiMain.tiMu}">${exhiMain.tiMu}</div>
                        </td>
                        <td title="${fns:getDictLabel(exhiMain.hangYe, 'hang_ye', '')}">${fns:getDictLabel(exhiMain.hangYe, 'hang_ye', '')}</td>
                        <td>${fns:getDictLabel(exhiMain.area, 'five_continents', '')}</td>
                        <td class="moreCol createDate"><fmt:formatDate value="${exhiMain.juBanTime }" pattern="yyyy-MM-dd HH:mm" /></td>
                        <td class="moreCol createDate"><fmt:formatDate value="${exhiMain.signEndTime }" pattern="yyyy-MM-dd HH:mm" /></td>
                        <td><c:forEach items="${zhanweiTypesList}" var="zhanweiType">
                             ${fns:getDictLabel(zhanweiType.cuXiaoType, 'zhan_wei_cu_xiao', '')}
                        </c:forEach></td>
                        <td><c:forEach items="${zhanweiTypesList}" var="zhanweiTypes">
                                <c:choose>
                                    <c:when test="${zhanweiTypes.cuXiaoType=='tejia'}">
                            ${zhanweiTypes.teJiaPrice*exhihuiLv*0.1 }
                            </c:when>
                                    <c:when test="${zhanweiTypes.cuXiaoType=='tuangou'}">
                             ${zhanweiTypes.tuanGouPrice*exhihuiLv*0.1 }
                            </c:when>
                                </c:choose>
                            </c:forEach>
                            </td>
                        <td>推广链接</td>
                        <td><a href="${ctx }/fenxiao/fenXiaoSave?exhiId=${exhiMain.id}" οnclick="return confirmx('确认要分销该展览吗?', this.href)">我要分销</a> <%-- <c:if test="${fns:getUserRole()!='30'}">
                                 <a href="${ctx }/fenxiao/fenXiaoTuiJianSave?exhiId=${exhiMain.id}" οnclick="return confirmx('确认要推荐分销该展览吗?', this.href)">推荐分销</a>
                        </c:if> --%>
                        <td>
                    </tr>
                </c:forEach>
            </tbody>

 

转载于:https://www.cnblogs.com/SHMILYHP/p/5392185.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值