<%@ page language="java" pageEncoding="UTF-8" contentType="text/html; charset=UTF-8"%>
<%@ page isELIgnored="false" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
<%
    String basePath = request.getContextPath();
%>
<div class="table-responsive">
    <table class="table table-striped table-bordered table-hover " >
        <thead>
        <tr>
            <th colspan="2" >资源</th>
        </tr>
        <tr>
            <th>资源名称</th>
            <th>数量</th>
        </tr>
        </thead>
        <tbody>
        <c:set var="dataCount" value="0"></c:set>
        <c:set var="shuTongji1" value="0"></c:set>
        <c:choose>
            <c:when test="${list!=null}">
                <c:forEach items="${list}" var="item" >
                    <tr>
                        <td>${item.catelogName}</td>
                        <td>${item.dataCount}</td>
                        <c:set var="dataCount" value="${dataCount +(item.dataCount) }" />
                    <c:set var="shuTongji1" value="${shuTongji1 +(item.dataCount)}" />
                    </tr>
                </c:forEach>
            </c:when>
            <c:otherwise>
                <tr>
                    <td colspan="4">无数据</td>
                </tr>
            </c:otherwise>
        </c:choose>
        <tr>
            <td>统计</td>
            <td>${shuTongji1}</td>
        </tr>
        </tbody>
    </table>
</div>

<script type="text/javascript">

</script>