zoukankan      html  css  js  c++  java
  • 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=" 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>
  • 相关阅读:
    省选测试28
    省选测试27
    省选测试26
    省选测试25
    省选测试24
    省选测试23
    省选测试22
    省选测试21
    关于maven 导入依赖的最终处理问题
    Dubbo 2 之抽取公共接口
  • 原文地址:https://www.cnblogs.com/SHMILYHP/p/5392185.html
Copyright © 2011-2022 走看看