planeorder_list.jsp
来自「这是jsp通用模块导航的程序原代码,里面有新闻,bbs等jsp与javabean」· JSP 代码 · 共 115 行
JSP
115 行
<%@ page language="java" contentType="text/html; charset=GB2312"
pageEncoding="GB2312"%>
<%@ page import="java.util.Collection,java.util.Iterator"%>;
<%@ page import="com.wxpn.tutorial.ec.util.TravValueMapBean"%>
<%@ page import="java.util.HashMap"%>
<%@ include file="../include/header.jsp"%>
<TABLE border=0 cellPadding=0 cellSpacing=0 width=760 align="center">
<TBODY>
<tr>
<td align="left" height=25><%if (session.getAttribute("username") != null) {
out.println(session.getAttribute("username"));
}%> 当前位置:<a href="../index.jsp">首页</a> -> 成员服务</td>
<td align="right"><%@ include file="../include/date.jsp"%></td>
</tr>
<TR bgColor=#3399ff>
<TD height=1 colspan="2"><IMG height=1 src="images/spacer.gif"
width=16></TD>
</TR>
<tr>
<td height=10 colspan="2"><IMG height=1 src="images/spacer.gif"
width=16></td>
</tr>
</TBODY>
</TABLE>
<table align="center" border="0" width="760" cellspacing="0"
cellpadding="0" height="355">
<tr>
<td width="150" height="355" valign="top"><%@ include
file="../include/top_banner.jsp"%></td>
<td width="10" height="100%"></td>
<td width="1" height="100%" bgcolor="#3399ff"></td>
<td width="10" height="100%"></td>
<td width="589" height="331" valign="top" background="images/bg1.gif">
<table border="0" width="100%" cellspacing="1" cellpadding="1">
<tr>
<td colspan="7" bgcolor="#00DF00"> <font
color="#ffffff">定单列表</font></td>
</tr>
<tr>
<td width="15%" bgcolor="#FCFCFC">用户名</td>
<td width="20%" bgcolor="#FCFCFC">身份证号</td>
<td width="14%" bgcolor="#FCFCFC">飞机型号</td>
<td width="13%" bgcolor="#FCFCFC">目的地</td>
<td width="15%" bgcolor="#FCFCFC">时间</td>
<td width="9%" bgcolor="#FCFCFC">地址</td>
<td width="14%" bgcolor="#FCFCFC">电话</td>
</tr>
<%if (request.getAttribute("c") == null) {
%>
<tr>
<td 75%"" colspan=7 bgcolor="#FCFCFC" align=center>还没有任何用户。</td>
</tr>
<%} else {
Collection c = (Collection) request.getAttribute("c");
if (c == null) {
%>
<tr>
<td colspan=7 bgcolor="#FCFCFC" align=center>还没有任何信息。</td>
</tr>
<%} else {
int totalPageNum = ((Integer) (request
.getAttribute("totalPageNum"))).intValue();
int currentPage = 1;
if (request.getParameter("page") != null) {
currentPage = Integer.parseInt(request
.getParameter("page"));
}
Iterator iterator = c.iterator();
TravValueMapBean map=new TravValueMapBean();
while (iterator.hasNext()) {
map.setValues((HashMap) iterator.next());
%>
<tr>
<td width="15%" bgcolor="#FCFCFC"><%=map.getValue("PASSNAME")%></td>
<td width="20%" bgcolor="#FCFCFC"><%=map.getValue("personid")%></td>
<td width="14%" bgcolor="#FCFCFC"><%=map.getValue("flyid1")%></td>
<td width="13%" bgcolor="#FCFCFC"><%=map.getValue("destplace")%></td>
<td width="15%" bgcolor="#FCFCFC"><%=map.getValue("departdate")%></td>
<td width="9%" bgcolor="#FCFCFC"><%=map.getValue("address")%></td>
<td width="14%" bgcolor="#FCFCFC"><%=map.getValue("phone")%></td>
</tr>
<%}%>
<form name="form1" method="get">
<tr>
<td colspan=7 align=right bgcolor="#EFEFEF"><%for (int i = 1; i <= totalPageNum; i++) {%>
<a href="AdminOrderServlet?flag=plane&page=<%=i %>">[<%=i%>]</a> <%}
%>共[<%=request.getAttribute("totalPageNum") %>]页
<input type="text" size="2"
name="page" value=""><input type="submit" name="go" value="Go"> </td>
</tr>
</form>
<%}
}
%>
<tr>
<td colspan="3" align="right"> </td>
</tr>
</table>
</td>
</tr>
</table>
<%@ include file="../include/footer.jsp"%>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?