📄 hotelsearchresult.jsp
字号:
src="<%=request.getContextPath()%>/jsp/hotel/img/hotel_fangda.gif" width=16 align=absMiddle
vspace=3><STRONG><FONT
color=#ffffff>酒店查询结果</FONT></STRONG> </TD></TR></TBODY></TABLE>
<table width="586" border="0" cellspacing="0" cellpadding="0" height="1">
<tr>
<td width="10" valign="top" height="1"><img src="<%=request.getContextPath()%>/jsp/hotel/img/newdownarrow.gif" width="17" height="18" vspace="9" align="top"></td>
<td width="576" valign="top" height="1">您好!您查询<font color='#CC0000'><strong><%=(String)session.getAttribute("indate")%></strong></font>至<strong><font color='#DC441C'><%=(String)session.getAttribute("outdate")%></font></strong>,位于<strong><font color='#DC441C'><%=(String)request.getAttribute("session_city")%></font></strong>的酒店 共<font color='#FF0000'>285</font>家</td>
</tr>
</table>
<table width="586" border="0" cellspacing="0" cellpadding="0">
<tr>
<td align="right" height="28">
第<font color='#FF0000'>1</font>页/共<font color='#FF0000'>29</font>页 请继续浏览 <strong><font color=red size='2'>1</font></strong> <a href='findhotel.asp?display=D&page=2&hotel_name=&arrive_date=2004-6-27&leave_date=2004-6-29&city_id=&area_id=&guest_type_id=内宾&price=&star=&city_name=Beijing' target='_self' class='pagenum'>2</a> <a href='findhotel.asp?display=D&page=3&hotel_name=&arrive_date=2004-6-27&leave_date=2004-6-29&city_id=&area_id=&guest_type_id=内宾&price=&star=&city_name=Beijing' target='_self' class='pagenum'>3</a> <a href='findhotel.asp?display=D&page=4&hotel_name=&arrive_date=2004-6-27&leave_date=2004-6-29&city_id=&area_id=&guest_type_id=内宾&price=&star=&city_name=Beijing' target='_self' class='pagenum'>4</a> <a href='findhotel.asp?display=D&page=5&hotel_name=&arrive_date=2004-6-27&leave_date=2004-6-29&city_id=&area_id=&guest_type_id=内宾&price=&star=&city_name=Beijing' target='_self' class='pagenum'>5</a> <a href='findhotel.asp?display=D&page=6&hotel_name=&arrive_date=2004-6-27&leave_date=2004-6-29&city_id=&area_id=&guest_type_id=内宾&price=&star=&city_name=Beijing' target='_self' class='pagenum'>6</a> <a href='findhotel.asp?display=D&page=7&hotel_name=&arrive_date=2004-6-27&leave_date=2004-6-29&city_id=&area_id=&guest_type_id=内宾&price=&star=&city_name=Beijing' target='_self' class='pagenum'>7</a> <a href='findhotel.asp?display=D&page=8&hotel_name=&arrive_date=2004-6-27&leave_date=2004-6-29&city_id=&area_id=&guest_type_id=内宾&price=&star=&city_name=Beijing' target='_self' class='pagenum'>8</a> <a href='findhotel.asp?display=D&page=9&hotel_name=&arrive_date=2004-6-27&leave_date=2004-6-29&city_id=&area_id=&guest_type_id=内宾&price=&star=&city_name=Beijing' target='_self' class='pagenum'>9</a> <a href='findhotel.asp?display=D&page=10&hotel_name=&arrive_date=2004-6-27&leave_date=2004-6-29&city_id=&area_id=&guest_type_id=内宾&price=&star=&city_name=Beijing' target='_self' class='pagenum'>10</a>
[<a href="findhotel.asp?display=D&page=2&hotel_name=&arrive_date=2004-6-27&leave_date=2004-6-29&city_id=&c_id=&city_name=Beijing&area_id=&guest_type_id=内宾&price=&star=" target="_self" style="color:black">下一页</a>]
[<a href="findhotel.asp?display=D&page=11&hotel_name=&arrive_date=2004-6-27&leave_date=2004-6-29&city_id=&c_id=&area_id=&guest_type_id=内宾&price=&star=&city_name=Beijing" target="_self" style="color:black">后十页</a>]
</td>
</tr>
</table>
<!----------------------------------------------------订购记录查询开始----------------------------------------------------------------->
<%
SearchHotelHome searchHotelHome = null;
SearchHotel searchHotel = null;
Context ctx = new InitialContext();
Object o = ctx.lookup("SearchHotelJndiName");
searchHotelHome = (SearchHotelHome)PortableRemoteObject.narrow(o,SearchHotelHome.class);
searchHotel = searchHotelHome.create();
//request.setAttribute("session_price_str",price_str);
CachedRowSet crs = (CachedRowSet)request.getAttribute("main_result");
if(!crs.next()){
%>
没有查询到相应的记录!
<%}else{
do{
%>
<table width="586" height="30" border="0" cellpadding="2" cellspacing="0" bgcolor="#FFFFDE" class="tabinfo1">
<tr>
<td width="23" align="center"><img src="<%=request.getContextPath()%>/jsp/hotel/img/list_arrowdown.gif" width="15" height="14"></td>
<td width="300" style="font-size:14px;font-weight:bold;"><a href="<%=request.getContextPath()%>/HotelServlet?action=findone&hotelid=<%=crs.getString("hotelid")%>"><%=crs.getString("name")%></a>
<%=crs.getString("hotel_level")%>星级酒店</td>
<td width="253" align="right" id="list_td_sum" style="position:relative;height:25;">
用户评分:100
</td>
</tr>
</table>
<table width="586" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="8" align="center"><img src="/img/z.gif" width="1" height="1"></td>
<td valign="top"><img src="/img/z.gif" width="1" height="1"></td>
<td height="8" valign="top"><img src="/img/z.gif" width="1" height="1"></td>
</tr>
<tr>
<td width="93" align="center" valign="top"><a href="<%=request.getContextPath()%>/HotelServlet?action=findone&hotelid=<%=crs.getString("hotelid")%>"><img border="0" src="<%=request.getContextPath()%>/image/<%=crs.getString("pic")%>" width="115" height="130"></a> </td>
<td width="17" valign="top"> </td>
<td width="476" valign="top"><!--<table width="179" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="10"><img src="/img/list_1yuan.gif" width="10" height="24"></td>
<td align="center" bgcolor="#F8750B" style="font-weight:bold;color:white;"><a href="#" style="color:white;text-decoration:none;">1元钱入住5星级酒店!</a></td>
</tr>
</table>-->
<table width="456" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="4" style="color:#DC441C;font-weight:bold;"><img src="/img/z.gif" width="1" height="1"></td>
</tr>
<tr>
<td><p style="line-height:150%"><%=crs.getString("hotel_desc")%></p></td>
</tr>
<tr>
<td height="20" align="right" style="color:blue;"></td>
</tr>
<tr>
<td height="20">酒店地址:<%=crs.getString("address")%> </td>
</tr>
</table></td>
</tr>
</table>
<table width="586" height="7" border="0" cellpadding="0" cellspacing="0">
<tr>
<td align="left">请选择房型(价格单位:RMB) 周末:星期五到星期日</td>
</tr>
</table>
<table width="586" border="0" cellspacing="0" cellpadding="0"><form method="post" action="findhotel.asp" name="form1">
<tr bgcolor="#5A9FB5">
<td width="153" align="center"><strong><font color="#FFFFFF">房型</font></strong></td>
<td width="88" align="center"><strong><font color="#FFFFFF">门市价</font></strong></td>
<td width="82" align="center"><strong><font color="#FFFFFF">会员价</font></strong></td>
<td width="84" align="center"><strong><font color="#FFFFFF">周末会员价</font></strong></td>
<!--网上支付价暂时不显示-->
<!--<td width="99" align="center"><strong><font color="#FFFFFF">网上支付价</font></strong></td>-->
<td width="54" align="center"><strong><font color="#FFFFFF">早餐</font></strong></td>
<td width="106" align="center"></td>
</tr>
<tr bgcolor="#d9e7eb" height="2"><td colspan=6 width="480"></td></tr>
<!--------------------------------------------------house type------------------------------------------------------------------------------->
<%
String hotelPK = crs.getString("hotelid");
String price_str = (String)request.getAttribute("session_price_str");
javax.sql.RowSet houseTypeResult = searchHotel.getHouseTypeContent(hotelPK,price_str);
CachedRowSet house_type_crs = (CachedRowSet)houseTypeResult;
while(house_type_crs.next()){
%>
<tr bgcolor="#E6F0F6">
<td width="153" align="center"><b><%=house_type_crs.getString("house_name")%></b></td>
<td width="88" align="center"><%=house_type_crs.getInt("normal_price")%></td>
<td width="82" align="center"><%=house_type_crs.getInt("vip_price")%></td>
<td width="84" align="center">
<%=house_type_crs.getInt("vip_price")%></td>
<!--网上支付价暂时不显示-->
<!--<td width="99" align="center"> </td>-->
<td width="54" align="center"><%=house_type_crs.getString("breakfast")%></td>
<td width="106" align="center"><a href="<%=request.getContextPath()%>/jsp/hotel/CheckOrder.jsp?houseName=<%=house_type_crs.getString("house_name")%>&vipPrice=<%=house_type_crs.getInt("vip_price")%>&hotelid=<%=crs.getString("hotelid")%>"><img src="<%=request.getContextPath()%>/jsp/hotel/img/list_reserv.gif" width="90" height="24" border="0"></a></td>
</tr>
<%
}
%>
<!--------------------------------------------------house type------------------------------------------------------------------------------->
<tr bgcolor="#5A9FB5">
<td height="1" colspan="7" align="right" width="584"><img src="<%=request.getContextPath()%>/jsp/hotel/img/z.gif" width="1" height="1"></td>
</tr>
<tr bgcolor="#5A9FB5">
<td height="1" colspan="7" align="right" width="584"><img src="<%=request.getContextPath()%>/jsp/hotel/img/z.gif" width="1" height="1"></td>
</tr>
<tr><td colspan=7 width="584"><table><tr><td width=86 align=left><nowrap></nowrap></td>
<td width=500 align=right></td>
</tr></table></td></tr></form>
</table>
<% }while(crs.next());
}
%>
<!-----------------------------------------------------酒店搜索结束-------------------------------------------------------------->
<TABLE id=Table15 height=8 cellSpacing=0 cellPadding=0 width=586
border=0><TBODY>
<TR>
<TD><IMG height=1 src="<%=request.getContextPath()%>/jsp/hotel/img/z.gif"
width=1></TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE><!----------第二屏开始--->
<p><BR><!-----联系方式开始---->
</p>
<TABLE id=Table21 cellSpacing=0 cellPadding=0 width=750 border=0>
<TBODY>
<TR>
<TD>
<TABLE id=Table22 cellSpacing=0 cellPadding=0 width=750 border=0>
<TBODY>
<TR>
<TD width=8><IMG height=8 src="<%=request.getContextPath()%>/jsp/hotel/img/newbotcor1.gif"
width=8></TD>
<TD>
<TABLE id=Table23 cellSpacing=0 cellPadding=0 width=734 border=0>
<TBODY>
<TR>
<TD bgColor=#52a6c6 height=2><IMG height=1
src="<%=request.getContextPath()%>/jsp/hotel/img/z.gif" width=1></TD></TR>
<TR>
<TD bgColor=#ffffde height=6><IMG height=1
src="<%=request.getContextPath()%>/jsp/hotel/img/z.gif" width=1></TD></TR></TBODY></TABLE></TD>
<TD width=8><IMG height=8 src="<%=request.getContextPath()%>/jsp/hotel/img/newbotcor2.gif"
width=8></TD></TR></TBODY></TABLE></TD></TR>
<TR>
<TD>
<TABLE id=Table24 cellSpacing=0 cellPadding=0 width=750 border=0>
<TBODY>
<TR>
<TD width=2 bgColor=#52a6c6><IMG height=1
src="<%=request.getContextPath()%>/jsp/hotel/img/z.gif" width=1></TD>
<TD align=middle bgColor=#ffffde height=45>
<P
style="FONT-SIZE: 12px; LINE-HEIGHT: 150%; FONT-FAMILY: Arial">电话(TEL):<STRONG><FONT
color=#df451c>800-810-1010或010-82917219</FONT></STRONG> 传真(FAX):010-82917219<BR>E-mail:<A
style="COLOR: blue"
href="mailto:cs@yunchat.elong.com">cs@yunchat.elong.com</A></P></TD>
<TD width=2 bgColor=#52a6c6><IMG height=1
src="<%=request.getContextPath()%>/jsp/hotel/img/z.gif" width=1></TD></TR></TBODY></TABLE></TD></TR>
<TR>
<TD>
<TABLE id=Table25 cellSpacing=0 cellPadding=0 width=750 border=0>
<TBODY>
<TR>
<TD width=8><IMG height=8 src="<%=request.getContextPath()%>/jsp/hotel/img/newbotcor3.gif"
width=8></TD>
<TD>
<TABLE id=Table26 cellSpacing=0 cellPadding=0 width=734 border=0>
<TBODY>
<TR>
<TD bgColor=#ffffde height=6><IMG height=1
src="<%=request.getContextPath()%>/jsp/hotel/img/z.gif" width=1></TD></TR>
<TR>
<TD bgColor=#52a6c6 height=2><IMG height=1
src="<%=request.getContextPath()%>/jsp/hotel/img/z.gif" width=1></TD></TR></TBODY></TABLE></TD>
<TD width=8><IMG height=8 src="<%=request.getContextPath()%>/jsp/hotel/img/newbotcor4.gif"
width=8></TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE><!-----联系方式结束---->
<TABLE id=Table27 height=14 cellSpacing=0 cellPadding=0 width=760 border=0>
<TBODY>
<TR>
<TD><IMG height=1 src="<%=request.getContextPath()%>/jsp/hotel/img/z.gif"
width=1></TD></TR></TBODY></TABLE>
<SCRIPT language=javascript
src="<%=request.getContextPath()%>/jsp/hotel/img/travelnewbottom.js"></SCRIPT>
</CENTER>
</BODY></HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -