<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>




<!DOCTYPE html>
<html>

<jsp:include page="head.jsp"></jsp:include>


<body class="products-view">

<!-- PAGE WRAPPER -->
<div id="page-wrapper">


    <jsp:include page="header.jsp"></jsp:include>



    <!-- BREADCRUMB -->
    <div class="breadcrumb-container">
        <div class="container">
            <div class="relative">
                <ul class="bc push-up unstyled clearfix">
                    <li><a href="index.do">首页</a></li>
                    <li class="active">${tableNameCn}列表</li>
                </ul>
            </div>
        </div>
    </div>
    <!-- // BREADCRUMB -->


    <!-- SITE MAIN CONTENT -->
    <main id="main-content" role="main">


        <section class="section">



            <div class="container">

                <div class="col-xs-12 col-sm-12 col-md-12 center-xs shopcart-total pull-right clearfix" style="width: 100%;">
                    <ul class="paginator li-m-r-l pull-right">
                        <c:if test="${r"${"}sessionScope.p==1${r"}"}">
                            <li><c:if test="${r"${"}pageInfo.pageNum>1${r"}"}">
                                <a href="show${Domain}List.do?page=${r"${"}pageInfo.prePage ${r"}"}"> 上一页</a></c:if></li>
                            <c:forEach items="${r"${"}pageInfo.navigatepageNums${r"}"}" var="items">
                                <li><a href="show${Domain}List.do?page=${r"${"}items ${r"}"}"> ${r"${"}items${r"}"}</a></li>
                            </c:forEach>
                            <li><c:if test="${r"${"}pageInfo.pageNum<pageInfo.pages${r"}"}">
                                <a href="show${Domain}List.do?page=${r"${"}pageInfo.nextPage ${r"}"}"> 下一页</a></c:if></li>
                            <li><a>【当前第<b style="color: red;">${r"${"}pageInfo.pageNum${r"}"}</b>页;每页${r"${"}pageInfo.pageSize${r"}"}条记录;共${r"${"}pageInfo.pages${r"}"}页;】</a></li>
                        </c:if>

                    </ul>
                </div>

                <table class="tbl-cart">
                    <thead>
                    <tr><td colspan="8"><a href="doAdd${Domain}.do" onclick="window.location.href='doAdd${Domain}.do'" class="btn btn-round btn-default uppercase" >添加</a></td></tr>
                    <tr>
                        <th style="width: 5%;">序号</th>
                         <#list fieldList as field>
                             <#if field.nameHump!="pubtime" && field.nameHump!="id"&& field.nameHump!="note">
                                <th>${field.nameCn}</th>
                             </#if>
                         </#list>
                        <th class="hidden-xs" style="width: 30%;">操作</th>
                    </tr>
                    </thead>
                    <tbody>
                    <tr class="hide empty-cart">
                        <td colspan="5">
                            列表没有数据!<a href="doAdd${Domain}.do">添加</a>.
                        </td>
                    </tr>
                    <c:forEach items=${r'"${'}list${r'}"'} var="u" varStatus="num">
                        <tr>
                            <th>${r"${"}num.count${r"}"}</th>
                                <#list fieldList as field>
                                    <#if field.nameHump!="pubtime" && field.nameHump!="id"&& field.nameHump!="img"&& field.nameHump!="note">
                                    <th>${r'${'}u.${field.nameHump}${r'}'}</th>
                                    </#if>
                                    <#if field.nameHump=="img" >
                                     <th><img src="../upload/${r'${'}u.${field.nameHump}${r'}'}" style="width: 50px;height: 50px;" ></th>
                                    </#if>
                                </#list>
                            <th>
                            <td class="hidden-xs">
                                <a class="btn btn-round btn-default uppercase" href="show${Domain}.do?id=${r"${"}u.id${r"}"}">查看</a>
                                <a class="btn btn-round btn-default uppercase" href="doUpdate${Domain}.do?id=${r"${"}u.id${r"}"}">修改</a>
                                <a class="btn btn-primary btn-round uppercase padder" href="delete${Domain}.do?id=${r"${"}u.id${r"}"}">删除</a>
                                </td>
                        </tr>
                    </c:forEach>
                    </tbody>
                </table>

            </div>
        </section>


    </main>
    <!-- // SITE MAIN CONTENT -->

    <jsp:include page="footer.jsp"></jsp:include>
</div>
</body>
</html>

