?? searchhouseresult.jsp
字號:
<%@ page contentType="text/html; charset=gb2312" language="java" import="java.util.*,java.sql.*,mydesign.*"%>
<%
if(session.getAttribute("admin")==null)
out.print("<script>alert('請先登錄!');window.location.href='login.htm'</script>");
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>房間查詢結果</title>
<link href="css/mycss.css" rel="stylesheet" type="text/css">
</head>
<body>
<%@ include file="head.htm" %>
<p> </p>
<form action="/MyDesign/SearchHouse" method="post" name="PageForm" id="PageForm">
<table width="100%" border="1" bordercolor="#660000">
<tr>
<td width="4%"><div align="center"> </div></td>
<td width="8%"><div align="center">棟號</div></td>
<td width="8%"><div align="center">房號</div></td>
<td width="12.5%"><div align="center">入住性別</div></td>
<td width="12.5%"><div align="center">電話號碼</div></td>
<td width="12.5%"><div align="center">可住人數</div></td>
<td width="12.5%"><div align="center">入住人數</div></td>
<td width="12.5%"><div align="center">住宿費用</div></td>
<td><div align="center">備注</div></td>
</tr>
<%
session.setAttribute("jumppage",null);
PageBean pageCt1=(PageBean)session.getAttribute("pageCt1");
ArrayList search=pageCt1.getResult();
int x=search.size();
int count=0;
while(count<x)
{
House house=(House)search.get(count);
%>
<tr>
<td><div align="center">
<input type="radio" name="select" value="<%=count%>" <%=(count==0)?"Checked":""%>>
</div></td>
<td><div align="center"><%=house.getDonghao()%></div></td>
<td><div align="center"><%=house.getHouseid()%></div></td>
<td><div align="center"><%=house.getSex()%></div></td>
<td><div align="center"><%=house.getPhone()%> </div></td>
<td><div align="center"><%=house.getKezhu()%></div></td>
<td><div align="center"><%=house.getRuzhu()%></div></td>
<td><div align="center"><%=house.getExpense()%></div></td>
<td><div align="center"><%=house.getExtra()%> </div></td>
</tr>
<%
count++;
}
%>
<tr>
<td colspan="9"><div align="center">
<input name="update" type="submit" id="update" value="修改">
<input name="del" type="submit" id="del" value="刪除">
</div></td>
</tr>
</table>
<%@ include file="Pageman.inc" %>
</body>
</html>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -