81 lines
2.4 KiB
Plaintext
81 lines
2.4 KiB
Plaintext
<%@ page language="java" contentType="text/html; charset=GB18030"
|
|
pageEncoding="GB18030" import="java.sql.*"%>
|
|
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
|
|
<jsp:useBean id="gg" class="com.DB" scope="page" />
|
|
<html>
|
|
<head>
|
|
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
|
|
<title>Insert title here</title>
|
|
<link href="../css/style.css" rel="stylesheet" type="text/css">
|
|
</head>
|
|
<body>
|
|
<table width="985" height="548" border="0" cellpadding="0"
|
|
cellspacing="0">
|
|
<tr>
|
|
<td valign="top" background="../image/RIGHT.jpg"><table
|
|
width="985" height="50" border="0" cellpadding="0" cellspacing="0">
|
|
<tr>
|
|
<td> </td>
|
|
</tr>
|
|
</table>
|
|
|
|
<table width="600" height="40" border="0" align="center"
|
|
cellpadding="0" cellspacing="0">
|
|
<tr>
|
|
<td width="165" height="30" align="center" bgcolor="#ECE9D8">车位位置</td>
|
|
<td width="165" align="center" bgcolor="#ECE9D8">空闲车位</td>
|
|
<td width="136" align="center" bgcolor="#ECE9D8">预订车位</td>
|
|
<td width="136" align="center" bgcolor="#ECE9D8">使用车位</td>
|
|
</tr>
|
|
<%
|
|
String sqlt="select distinct(chewei_didian) from chewei";
|
|
ResultSet rs=gg.GetRs(sqlt);
|
|
try{
|
|
while(rs.next()){
|
|
%>
|
|
<tr>
|
|
<td align="center"><%=rs.getString("chewei_didian")%></td>
|
|
<td align="center">
|
|
<%
|
|
|
|
String sqlo1="select * from chewei where chewei_state='空闲' and chewei_didian='"+rs.getString("chewei_didian")+"'";
|
|
ResultSet rs31=gg.GetRs(sqlo1);
|
|
int i1=0;
|
|
while(rs31.next()){
|
|
i1=i1+1;
|
|
}
|
|
%> <% out.println (i1); %>
|
|
|
|
|
|
</td>
|
|
<td align="center">
|
|
<%
|
|
|
|
String sqlo12="select * from chewei where chewei_state='预订' and chewei_didian='"+rs.getString("chewei_didian")+"' ";
|
|
ResultSet rs312=gg.GetRs(sqlo12);
|
|
int i12=0;
|
|
while(rs312.next()){
|
|
i12=i12+1;
|
|
}
|
|
%> <% out.println (i12); %>
|
|
|
|
</td>
|
|
<td align="center">
|
|
<%
|
|
|
|
String sqlo13="select * from chewei where chewei_state='使用' and chewei_didian='"+rs.getString("chewei_didian")+"'";
|
|
ResultSet rs313=gg.GetRs(sqlo13);
|
|
int i13=0;
|
|
while(rs313.next()){
|
|
i13=i13+1;
|
|
}
|
|
%> <% out.println (i13); %>
|
|
|
|
</td>
|
|
</tr>
|
|
<%}}catch (Exception e){}%>
|
|
</table></td>
|
|
</tr>
|
|
</table>
|
|
</body>
|
|
</html> |