zoukankan      html  css  js  c++  java
  • Java高级架构师(一)第14节:新增和列表页面和分页tag

    <%@ page language="java" contentType="text/html; charset=utf-8"
        pageEncoding="utf-8"%>
    <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <title>Insert title here</title>
    <link href="${pageContext.request.contextPath}/static/css/application.css" rel="stylesheet">
    <script src="${pageContext.request.contextPath}/static/js/application.js"></script>
    <script src="${pageContext.request.contextPath}/static/js/jquery-1.11.0.js"></script>
    </head>
    <body>
    <%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
    <%@taglib prefix="myTag" tagdir="/WEB-INF/tags" %>
    
    
    <table  width="100%" border="1" cellpadding="0" cellspacing="1" class="tableLine DoubleColorTable" >
    	
    	<tr>
    		<td colspan="6">
    			<a href="${pageContext.request.contextPath}/customer/toQuery">转到查询</a>
    			  
    			<a href="${pageContext.request.contextPath}/customer/toAdd">转到新增</a>
    		</td>
    	</tr>
    	<tr>
    		<td colspan="6" align="center" class="tableLineBg">
    			客户列表
    		</td>
    	</tr>
    	<tr>
    		<td>客户编号</td>
    		<td>显示名称</td>
    		<td>真实姓名</td>
    		<td>客户密码</td>
    		<td>注册时间</td>
    		<td>操作</td>
    	</tr>
    	<c:forEach var="m" items="${page.result}">	
    	<tr>
    		<td>${m.customerId}</td>
    		<td>${m.showName}</td>
    		<td>${m.trueName}</td>
    		<td>${m.pwd}</td>
    		<td>${m.registerTime}</td>
    		<td>
    			<a href="${pageContext.request.contextPath}/customer/toUpdate/${m.uuid}">修改</a> |
    			<a href="${pageContext.request.contextPath}/customer/toDelete/${m.uuid}">删除</a>
    		</td>
    	</tr>
    	</c:forEach>
    	<tr>
    		<td colspan="6" align="center">
    			<input type="hidden" id="queryJsonStr" value='${wm.queryJsonStr}'/>
    			<myTag:page page="${page}"></myTag:page>
    		</td>
    	</tr>
    </table>
    
    </body>
    </html>
    

      

  • 相关阅读:
    HDU 1850 Being a Good Boy in Spring Festival
    UESTC 1080 空心矩阵
    HDU 2491 Priest John's Busiest Day
    UVALive 6181
    ZOJ 2674 Strange Limit
    UVA 12532 Interval Product
    UESTC 1237 质因子分解
    UESTC 1014 Shot
    xe5 android listbox的 TMetropolisUIListBoxItem
    xe5 android tts(Text To Speech)
  • 原文地址:https://www.cnblogs.com/sunrunzhi/p/10118945.html
Copyright © 2011-2022 走看看