模板文件PART 2
程序代码:
<table width="100%" height="40" border="0" cellpadding="0" cellspacing="1">
<tr bgcolor="#FFA800">
<td width="25%" rowspan="2" class="hotel_1">房间类型</td>
<td width="12%" rowspan="2" class="hotel_1">前台价格</td>
<td colspan="2" bgcolor="#FF6600" class="hotel_1">网络价格</td>
<td width="12%" rowspan="2" class="hotel_1">早餐情况</td>
<td width="18%" rowspan="2" class="hotel_1">备注</td>
<td width="9%" rowspan="2" class="hotel_1">预订</td>
</tr>
<tr bgcolor="#FFA800">
<td width="12%" bgcolor="#FF6600" class="hotel_1">今日价格</td>
<td width="12%" bgcolor="#FF6600" class="hotel_1">周末价格</td>
</tr>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<%
set rs=conn.execute("select ID,Name,Price_Front,Price_Net_N,Price_Net_W,Breakfast,Room_Note from DB_HotelRoom where Hotel_ID="&getID&" and Is_Show=True order by Price_Net_W,ID Desc")
if rs.bof and rs.eof then
response.write "暂无酒店房间数据"
else
i=0
do while not rs.eof
i=i+1
if (i mod 2)=0 then txtcolor="#FFF1D9" else txtcolor="#FFFFFF"
%>
<tr bgcolor="<%=txtcolor%>" onMouseOver="javaScript:this.bgColor='#FFDEA2';" onMouseOut="javaScript:this.bgColor='<%=txtcolor%>';">
<td width="25%" height="26" style="text-align:left; padding-left:5px;"><%=rs("Name")%></td>
<td width="12%" align="center"><b><s>¥<%=rs("Price_Front")%></s></b></td>
<td width="12%" align="center" style="color:#FF6600;"><b>¥<%=rs("Price_Net_N")%></b></td>
<td width="12%" align="center" style="color:#FF6600;"><b>¥<%=rs("Price_Net_W")%></b></td>
<td width="12%" align="center"><%=cutstring(rs("Breakfast"),12)%></td>
<td width="18%" align="center"><%=cutstring(rs("Room_Note"),20)%></td>
<td width="9%" align="center"><form name="B<%=rs("ID")%>" method="post" action="/hotel-booking.asp"><input type="hidden" name="Hotel_ID" value="<%=getID%>" /><input type="hidden" name="Room_ID" value="<%=rs("ID")%>" /><input type="image" src="/images/yuding.gif" name="Submit" alt="预订<%=HotelName%>" onClick="javascript:B<%=rs("ID")%>.submit();" /></form></td>
</tr>
<%
rs.movenext
loop
end if
rs.close
%>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="2" bgcolor="#FFA800"></td>
</tr>
</table>
<script type="text/javascript" src="/js/tbtx.asp"></script>
<table width="100%" border="0" cellspacing="0" cellpadding="0" style="margin-bottom:10px;">
<%if Info_Jbxx<>"" then%>
<tr>
<td width="9%" nowrap="nowrap" class="hotel_2">基本信息:</td>
<td width="91%" class="hotel_3"> <%=changeCHR(Info_Jbxx)%></td>
</tr>
<%end if%>
<%if Info_Fjss<>"" then%>
<tr>
<td nowrap="nowrap" class="hotel_2">房间设施:</td>
<td class="hotel_3"><%=changeCHR(Info_Fjss)%></td>
</tr>
<%end if%>
<%if Info_Cyss<>"" then%>
<tr>
<td nowrap="nowrap" class="hotel_2">餐饮设施:</td>
<td class="hotel_3"><%=changeCHR(Info_Cyss)%></td>
</tr>
<%end if%>
<%if Info_Ylss<>"" then%>
<tr>
<td nowrap="nowrap" class="hotel_2">娱乐设施:</td>
<td class="hotel_3"><%=changeCHR(Info_Ylss)%></td>
</tr>
<%end if%>
<%if Info_Hyss<>"" then%>
<tr>
<td nowrap="nowrap" class="hotel_2">会议设施:</td>
<td class="hotel_3"><%=changeCHR(Info_Hyss)%></td>
</tr>
<%end if%>
<%if Info_Dlwz<>"" then%>
<tr>
<td nowrap="nowrap" class="hotel_2">地理位置:</td>
<td class="hotel_3"><%=changeCHR(Info_Dlwz)%></td>
</tr>
<%end if%>
<%if Info_Ccxl<>"" then%>
<tr>
<td nowrap="nowrap" class="hotel_2">乘车线路:</td>
<td class="hotel_3"><%=changeCHR(Info_Ccxl)%></td>
</tr>
<%end if%>
<%if Info_Gyjz<>"" then%>
<tr>
<td nowrap="nowrap" class="hotel_2">关于结帐:</td>
<td class="hotel_3"><%=changeCHR(Info_Gyjz)%></td>
</tr>
<%end if%>
<%if Hotel_Map<>"" then%>
<tr>
<td nowrap="nowrap" class="hotel_2">电子地图:</td>
<td align="left" style="padding:0 3px 5px 3px;"><a href="<%=Map_Url%>" target="_blank"><img src="/<%=Hotel_Map%>" alt="点击放大查看<%=HotelName%>的详细位置及公交线路" border="0"/></a></td>
</tr>
<%end if%>
<%if Info_Tbtx<>"" then%>
<tr>
<td height="24" colspan="2" class="hotel_4"><%=changeCHR(Info_Tbtx)%></td>
</tr>
<%end if%>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="0" style="border:#FF7E00 1px dashed;">
<tr>
<td width="50%" height="22" style="padding-left:5px;"> </td>
<td width="50%"> </td>
</tr>
</table>
</td>
</tr>
</table>
</td>
<td width="10"> </td>
<td width="220" valign="top">
<!--#include file="left_top.asp"-->
<!--#include file="left_contact.asp"-->
<!--#include file="left_tour.asp"-->
<!--#include file="left_service.asp"-->
</td>
</tr>
</table>
<!--#include file="bottom.asp"-->
</center>
</body>
</html>