📄 addhousetype.jsp
字号:
<%@ page contentType="text/html;charset=GBK"%>
<%@ page import="com.abc.hotel.*,javax.rmi.*,java.util.*"%>
<%
Integer hotelPK = (Integer)session.getAttribute("session_hotelPK");
String str = hotelPK.toString();
out.print(str);
%>
<table border="0" width="100%" cellspacing="0" cellpadding="0">
<tr>
<td width="25%" bgcolor="#C0C0C0">房间类型</td>
<td width="25%" bgcolor="#C0C0C0">门市价</td>
<td width="25%" bgcolor="#C0C0C0">会员价</td>
<td width="25%" bgcolor="#C0C0C0">早餐情况</td>
</tr>
<%
Iterator it = (Iterator)request.getAttribute("session_it");
while(it.hasNext()){
Object object = it.next();
HouseTypeRemote houseTypeRemote = (HouseTypeRemote)PortableRemoteObject.narrow(object,HouseTypeRemote.class);
%>
<tr>
<td width="25%"><%=houseTypeRemote.getHouseName()%></td>
<td width="25%"><%=houseTypeRemote.getNormalPrice()%></td>
<td width="25%"><%=houseTypeRemote.getVipPrice()%></td>
<td width="25%"><%=houseTypeRemote.getBreakfast()%></td>
</tr>
<%
}
%>
</table>
<hr>
<form method="POST" action="<%=request.getContextPath()%>/HouseTypeServlet?action=addHouseType">
<table><tr><td width="100%" bgcolor="#C0C0C0">请添加新的房间类型:</td>
<td></tr></table><br>
房间类型:<input type="text" name="houseName" size="20"><br>
门市价: <input type="text" name="normalPrice" size="20"><br>
会员价: <input type="text" name="vipPrice" size="20"><br>
早餐情况:<input type="text" name="breakfast" size="20"><br>
<input type="submit" value="确定" name="B1"><input type="reset" value="重写" name="B2">
</form>
<BR><a href="<%=request.getContextPath()%>/HotelServlet?action=HotelManagement">返回管理页面</a>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -