论文首页哲学论文经济论文法学论文教育论文文学论文历史论文理学论文工学论文医学论文管理论文艺术论文 |
5.2.2公交线路
<%@ page contentType="text/html; charset=ISO8859_1" %>
<%@ page import="java.util.*,java.sql.*,com.lanyuer.util.*;" %>
<jsp:useBean id="reader" scope="request" class="com.lanyuer.util.JspParamReader"/>
<%
reader.setRequest(request);
List routes = null;
Connection connection;
com.lanyuer.route.route_Manager route_Manager = com.lanyuer.route.route_Manager.getInstance();
com.lanyuer.route.route route1 = null;
connection = DataConnectionManager.getInstance().getConnection();
try {
if (reader.getString("delRoute_Pk","").length() > 0) route_Manager.deleteByPk(connection,com.lanyuer.route.route_Pk.valueOf(reader.getString("delRoute_Pk","")));
routes = route_Manager.selectes(connection);
if (reader.getString("route_Pk","").length() > 0) route1 = route_Manager.selectByPk(connection,com.lanyuer.route.route_Pk.valueOf(reader.getString("route_Pk","")));
} catch (Exception e) {
throw e;
} finally {
if (connection != null) {
connection.close();
connection = null;
}
}
%>
<html>
<head>
<title>公交查询</title>
<meta http-equiv="Content-Type" content="text/html; charset=ISO8859_1">
</head>
<link rel="STYLESHEET" type="text/css" href="../css/all.css">
<style type="text/css">
<!--
body { font-size: 9pt}
table { font-size: 9pt}
a:active { font-size: 9pt; color: #000000;}
A:hover { font-size: 9pt; COLOR: #000000; TEXT-DECORATION: none}
a:link { font-size: 9pt; color: #000000;}
a:visited { font-size: 9pt; color: #000000;}
-->
</style>
<body bgcolor="#000000" text="#000000" topmargin="0" leftmargin="0" background="../image/back.gif">
<table width="100%" height="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="100%" height="100%" align="center">
<table width="600" height="400" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="100%" width="100%" align="center" valign="top">
<table width="500" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="24">编号</td>
<td align="center">起始时间</td>
<td align="center">结束时间</td>
<td align="center">备注</td>
<td align="center">操作</td>
</tr>
<tr>
<form action="route_save.jsp">
<%
if (route1 != null) {
%>
<td height="24"><input type="hidden" name="pkValue" value="<%=route1.getPrimaryKey().toString()%>"><input type="text" name="cRouteCode" value="<%=route1.getcRouteCode()%>"></td>
<td align="center"><input type="text" name="iStartTime" value="<%=route1.getiStartTime()%>"></td>
<td align="center"><input type="text" name="iEndTime" value="<%=route1.getiEndTime()%>"></td>
<td align="center"><input type="text" name="cNote" value="<%=route1.getcNote()%>"></td>
<td align="center"><input type="submit" value="保存"></td>
<%
} else {
%>
<td height="24"><input type="hidden" name="pkValue" value=""><input type="text" name="cRouteCode" value=""></td>
<td align="center"><input type="text" name="iStartTime" value=""></td>
<td align="center"><input type="text" name="iEndTime" value=""></td>
<td align="center"><input type="text" name="cNote" value=""></td>
<td align="center"><input type="submit" value="保存"></td>
<%
}
%>
</form>
</tr>
<%
Iterator iterator = routes.iterator();
while(iterator.hasNext()) {
com.lanyuer.route.route route = (com.lanyuer.route.route)iterator.next();
%>
<tr>
<td height="24"><a href="?route_Pk=<%=java.net.URLEncoder.encode(route.getPrimaryKey().toString())%>"><%=route.getcRouteCode()%></a></td>
<td align="center"><%=route.getiStartTime()%></td>
<td align="center"><%=route.getiEndTime()%></td>
<td align="center"><%=route.getcNote()%></td>
<td align="center"><a href="?delRoute_Pk=<%=java.net.URLEncoder.encode(route.getPrimaryKey().toString())%>">删除</a></td>
</tr>
<%
}
%>
</table>
</td>
</tr>
<tr>
<td height="180" align="center">
<A style="cursor:hand" onclick=javascript:history.back() ><IMG height=34 src="../image/back1.gif"></A>
</td>
</tr>
</table>
</td>
</tr>
</table>
</body>
</html>
参考书目:
1、《Java2核心技术:卷I 基础知识》 作者:[美]霍斯特曼等 著,程峰等 译
出版社
2、《Java实用编程100例》 作者:杜江,管佩森 编著
中国铁道出版社
3、《Java数据库编程实例》 作者:孙一林,彭波 编著
清华大学出版社
4、《Java技术手册(影印版)》 作者:Cay S. Horstmann
清华大学出版社
5、《Java,XML和Web服务宝典》 作者:[美]贾西诺斯基 著,盖江南等 译
工业出版社
6、《JSP编程指南(第三版)》 作者:(美)布朗(Brown,s.)著,白雁 等译
电子工业出版社