This repository has been archived on 2025-09-14. You can view files and clone it, but cannot push or open issues or pull requests.
Files
k18-ntcs-web-ntc/src/main/webapp/WEB-INF/views/report/label.jsp

35 lines
1.0 KiB
Plaintext

<%@ page contentType="text/html;charset=UTF-8"%>
<%@ include file="/WEB-INF/include/taglib.jsp"%>
<table id="tagTable" class="table table-striped table-bordered table-condensed text-nowrap">
<thead>
<tr>
<th><spring:message code="label"/></th>
<th><spring:message code="log_total"/></th>
<c:forEach items="${titles}" var="title">
<th>${title}</th>
</c:forEach>
</tr>
</thead>
<tbody>
<script type="text/javascript">
var trContent = "";
<c:forEach items="${datas}" var="data">
trContent += "<tr>";
<c:forEach items="${labels}" var="label">
<c:if test="${label.serviceDictId==data.key}">
trContent += "<td>${label.itemValue}</td>";
</c:if>
</c:forEach>
<c:forEach items="${data.value}" var="cloumn" varStatus="status">
trContent += "<td>${cloumn}</td>";
</c:forEach>
trContent += "</tr>";
</c:forEach>
$('tbody').remove();
$('#tagTable').append("<tbody></tbody>");
$('tbody').html(trContent);
pagination();
</script>
</tbody>
</table>
<div class="page"></div>