addhousetype.jsp
来自「本软件系统可以实现预定酒店的多方位查询、预订酒店的功能。可以方便人们入住酒店,增」· JSP 代码 · 共 42 行
JSP
42 行
<%@ 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 + =
减小字号Ctrl + -
显示快捷键?