jsp 页面使用标签遍历

时间:2022-02-24 19:38:39
<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}" onclick="return confirmx('确认要分销该展览吗?', this.href)">我要分销</a> <%-- <c:if test="${fns:getUserRole()!='30'}">
                                 <a href="${ctx }/fenxiao/fenXiaoTuiJianSave?exhiId=${exhiMain.id}" onclick="return confirmx('确认要推荐分销该展览吗?', this.href)">推荐分销</a>
                        </c:if> --%>
                        <td>
                    </tr>
                </c:forEach>
            </tbody>