<table id="tbl" border="1"> <tr> <c:forEach begin="1" end="${list[0].id}" varStatus="day1"> <td width=""> <c:choose> <c:when test="${day1.count <= 9}">0${day1.count}</c:when> <c:otherwise> <c:choose> <c:when test="${day1.count <= list[0].name}">${day1.count}</c:when> <c:otherwise> <c:choose> <c:when test="${day1.count-list[0].name <= 9}">0${day1.count-list[0].name}</c:when> <c:otherwise> ${day1.count-list[0].name} </c:otherwise> </c:choose> </c:otherwise> </c:choose> </c:otherwise> </c:choose> </td> </c:forEach> </tr> <c:forEach var="row" items="${list}"> <tr> <c:forEach var="td" begin="1" end="${row.id}" varStatus="day2"> <td bgcolor="${(day2.count >= row.sid && day2.count < row.sid+row.gongqi) ? 'red' : ''}"> </td> </c:forEach> </tr> </c:forEach> </table>
详细解决方案
jsp跨月格局高亮
热度:126 发布时间:2012-08-27 21:21:57.0
相关解决方案