- <td style="text-align: center">${res.date}</td>
- <c:set var="daytotal" value="0"/>
- <c:forEach items="${res.timeRez}" var="time">
- <c:set var="daytotal" value="${daytotal + time}"/>
- </c:forEach>
- <td style="text-align: right">${daytotal}</td>
- <c:forEach items="${res.timeRez}" var="time">
- <td style="text-align: right">${time}</td>
- </c:forEach>
+ <td style="text-align: center">${res.key}</td>
+ <c:set var="value" value="${res.value}"/>
+ <td style="text-align: right">${value.total}</td>
+ <td style="text-align: right">
+ <c:choose>
+ <c:when test="${value.total0_30s == 0}">0</c:when>
+ <c:otherwise><a href="${oneday_query}?date=${res.key}&interval=ZERO_THIRTY_SEC">${value.total0_30s}</a></c:otherwise>
+ </c:choose>
+ </td>
+ <td style="text-align: right">
+ <c:choose>
+ <c:when test="${value.total0_30s == 0}">0</c:when>
+ <c:otherwise><a href="${oneday_query}?date=${res.key}&interval=THIRTY_SIXTY_SEC">${value.total30_60s}</a></c:otherwise>
+ </c:choose>
+ </td>
+ <td style="text-align: right">
+ <c:choose>
+ <c:when test="${value.total0_30s == 0}">0</c:when>
+ <c:otherwise><a href="${oneday_query}?date=${res.key}&interval=ONE_TWO_MIN">${value.total1_2m}</a></c:otherwise>
+ </c:choose>
+ </td>
+ <td style="text-align: right">
+ <c:choose>
+ <c:when test="${value.total0_30s == 0}">0</c:when>
+ <c:otherwise><a href="${oneday_query}?date=${res.key}&interval=TWO_TEN_MIN">${value.total2_10m}</a></c:otherwise>
+ </c:choose>
+ </td>
+ <td style="text-align: right">
+ <c:choose>
+ <c:when test="${value.total0_30s == 0}">0</c:when>
+ <c:otherwise><a href="${oneday_query}?date=${res.key}&interval=MORE_THEN_TEN_MIN">${value.total10m}</a></c:otherwise>
+ </c:choose>
+ </td>