<!--#include file="Connection.asp"-->
<!--#include file="admin/system/WebConfig.asp"-->
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link rel="stylesheet" href="style.css" type="text/css">
<title><%=webname%>--酒店查询结果</title>
</head>
<TABLE width="770" border=0 align="center" cellPadding=0 cellSpacing=0>
  <TBODY>
    <TR>
      <TD width="35%" height="81" align=left 
                  bgColor=#ffffff class=b><div align="center"><img src="<%=weblogo%>"></div></TD>
      <TD width="65%" align=middle vAlign=center  
                bgColor=#ffffff class=b><div align="center"><img src="<%=webbanner%>"></div></TD>
    </TR>
    <TR vAlign=middle bgcolor="#0F77B1">
      <TD height=27 
                colSpan=2 align=left class=b><TABLE width="100%" height="100%" border=0 
                  align=center cellPadding=0 cellSpacing=0 class=9>
          <TBODY>
            <TR>
              <TD align=left vAlign=middle background="images/top_bar.gif" class=b>
                <div align="center"><FONT color=#ffffff><a href="default.htm"><FONT color=#ffffff>首页</Font></a> | <a href="News.asp"><FONT color=#ffffff>新闻动态</Font></a> | <a href="xl.html"><FONT color=#ffffff>度假产品</FONT></a> | <a href="hotel.html"><FONT color=#ffffff>酒店预定</FONT></a> |<a href="ticket.asp"><font color="#FFFFFF"> 机票预定</font></a> | <a href="guide.asp"><font color="#FFFFFF">导游推荐</font></a> | <a href="pic.asp"><font color="#FFFFFF">美图欣赏</font></a> | <a href="Gbook.asp"><font color="#FFFFFF">留下意见</font></a> | <a href="userinfo/userInfo.asp"><font color="#FFFFFF">会员中心</font></a> | <a href="Help.asp"><font color="#FFFFFF">在线帮助</font></a></FONT> <img src="images/b_start.gif" width=122 height=16 border=0 align="absmiddle"></div></TD>
            </TR>
          </TBODY>
      </TABLE></TD>
    </TR>
  </TBODY>
</TABLE>
<TABLE width="770" border=0  align=center cellPadding=0 cellSpacing=0 background="images/top_nav_menu.gif">
  <TBODY>
    <TR bgColor=#ffffff>
      <TD colSpan=3 height=2></TD>
    </TR>
    <TR>
      <TD width="44" height=25 align=right><img src="images/arrow3.gif" width="29" height="11"></TD>
      <TD width="715"><FONT color=#333333>&nbsp;您的位置：&nbsp;</FONT><a href="default.htm">网站的首页</a> &gt;&gt; <a href="hotel.html">酒店预定</a> &gt;&gt; 酒店查询结果</TD>
      <TD width="11">&nbsp;</TD>
    </TR>
  </TBODY>
</TABLE>
<%
session("starttime")=request.form("starttime")
session("deptime")=request.form("deptime")
star=request.form("star")
jiage=request.form("jiage")
shucity=request.form("shucity")
hotelname=request.form("name")
set rs=server.createobject("adodb.recordset")
sqltext="select * from hotelb where city like '%"&shucity&"%' and c_name like '%"&hotelname&"%'" 

if star="all" then
else
	sqltext=sqltext &"and ( "
	if star=0 then
		sqltext=sqltext &" level='无标准' or"
	end if
	if star=1 then
		sqltext=sqltext &" level='一星级' or level='准一星级' or"
	end if
	if star=2 then
		sqltext=sqltext &" level='二星级' or level='准二星级' or"
	end if
	if star=3 then
		sqltext=sqltext &" level='三星级' or level='准三星级' or"
	end if
	if star=4 then
		sqltext=sqltext &" level='四星级' or level='准四星级' or"
	end if
	if star=5 then
		sqltext=sqltext &" level='五星级' or level='准五星级' or"
	end if
	sqltext=sqltext & " level='其他')"
end if

sqltext=sqltext & "order by id desc"
rs.open sqltext,conn
%>
<script language="javascript">
function OpenSmallWindows(strURL)
{
window.open (strURL,"_blank",
"status=no,resizable=0,toolbar=no,menubar=no,scrollbars=no,width=780,height=300,left=2,top=100");
}
</script>
    <table width="770" border="0" align="center" cellpadding="0" cellspacing="0">
      <tr>
        <td height="30"> 以下是你所要查询的结果：</td>
      </tr>
</table>
    <%
  if rs.eof then 
  	response.write "<script language=JavaScript>{window.alert('没有找到符合条件的宾馆信息，返回重新查找!');window.history.go(-1);}</script>"
  	response.end
  end if
  if not rs.eof then
  	
  	do while not rs.eof 
  	
	c_id=rs("id")
	set rsroom=server.createobject("adodb.recordset")
	sqltext="select * from roomb where c_id="&c_id&"" 
	
	if jiage="all" then
	else
		sqltext=sqltext & " and ( "
		if jiage<>"" then
			sqltext=sqltext & jiage &" or "
		end if
		sqltext=sqltext & " breakfast='其他')"
	end if
	
	sqltext=sqltext & " order by id asc"
	rsroom.open sqltext,conn
  if not rsroom.eof then
  %>
  <table width="770" border=1 align="center" cellPadding=0 cellSpacing=0 bordercolor="#999999" borderColorDark=#ffffff bgcolor="#F9F9F9">
    <tr>
            <td width="35%" height="31" background="images/topBar_bg.gif">
      <font class="medium" color="#000080">
      <b><%=rs("c_name")%></b></font>      </td>
            <td width="20%"><div align="center">酒店星级:<font color="#FF0000">
            <%if rs("level")="无标准" then 
      		response.write "无标准"
      	elseif rs("level")="一星级" then
      		response.write "★"	
      	elseif rs("level")="准一星级" then
      		response.write "★"
      		response.write"<img src=star/zhun.gif>"
      	elseif rs("level")="二星级" then
      		response.write "★★"	
      	elseif rs("level")="准二星级" then
      		response.write "★★"
      		response.write"<img src=star/zhun.gif>"
      	elseif rs("level")="三星级" then
      		response.write "★★★"	
      	elseif rs("level")="准三星级" then
      		response.write "★★★"
      		response.write"<img src=star/zhun.gif>"
      	elseif rs("level")="四星级" then
      		response.write "★★★★"	
      	elseif rs("level")="准四星级" then
      		response.write "★★★★"
      		response.write"<img src=star/zhun.gif>"
      	elseif rs("level")="五星级" then
      		response.write "★★★★★"	
      	elseif rs("level")="准五星级" then
      		response.write "★★★★★"
      		response.write"<img src=star/zhun.gif>"
      	end if
      %>
        </font></div></td>
        <td width="21%" height="31"><div align="center"><span class="main1">所在省份:<%=rs("province")%></span></div></td>
      <td width="24%" height="31"><div align="center"><span lang="zh-cn">所在城市：<%=rs("city")%></span></div></td>
    </tr>
    <tr>
      <td colspan="5" height="16">
      <table width="100%" border=1 cellPadding=0 cellSpacing=0 bordercolor="#999999" borderColorDark=#ffffff bgcolor="#F9F9F9">
       <tr>
          <td width="23%" height="25" background="images/topBar_bg.gif"><div align="center">房型</div></td>
          <td width="7%" height="25" background="images/topBar_bg.gif">
          <p align="center">早餐</td>
          <td width="11%" height="25" background="images/topBar_bg.gif"><div align="center">门市价</div></td>
          <td width="22%" height="25" colspan="2" background="images/topBar_bg.gif"><div align="center">前台现付价</div></td>
          <td width="12%" height="25" background="images/topBar_bg.gif"><div align="center">网上支付价</div></td>
          <td width="13%" height="25" background="images/topBar_bg.gif"><div align="center">支付方式</div></td>
          <td width="12%" height="25" background="images/topBar_bg.gif">
          <p align="center">首日房态</td>
        </tr>
      <%if not rsroom.eof then
      do while not rsroom.eof%>
        <tr>
          <td width="23%" height="14"><%=rsroom("type")%></td>
          <td width="7%" height="14">
          <p align="center"><%=rsroom("breakfast")%></td>
          <td width="11%" height="14">RMB <%=rsroom("marketprice")%></td>
          <td width="12%" height="14">RMB <%=rsroom("stageprice")%></td>
          <td width="10%" height="14">
          <p align="center">
          <a href="userinfo/login.asp?hotelid=<%=rs("id")%>&roomid=<%=rsroom("id")%>"><strong><font color="#FF0000">预订</font></strong></a></td>
          <td width="12%" height="14">RMB <%=rsroom("netprice")%></td>
          <td width="13%" height="14"><%=rsroom("paytype")%></td>
          <td width="12%" height="14">
          <p align="center"><%=rsroom("state")%></td>
        </tr>
        <%
        rsroom.movenext
        loop
        rsroom.close
        end if%>
      </table>
      </td>
    </tr>
    <tr bgcolor="#EBEBEB">
      <td height="30" colspan="5">
      <p align="right"><a href="#" onclick="Javascript:OpenSmallWindows('HotelRoomAll.asp?id=<%=rs("Id")%>')" >全部房型</a></td>
    </tr>
</table>
  <%
  end if
  rs.movenext
  loop
  end if
  rs.close
  conn.close
  %>
<TABLE width="770" border=0 align="center" cellPadding=0 cellSpacing=0>
  <TBODY>
    <TR>
      <TD 
height=25 align=middle background=images/foot_patt01.gif><a href=Default.htm>网站首页</a> | <a href=about.asp?action=about >关于我们</a> | <a href=about.asp?action=lxwm >业务联系</a> | <a href=help.asp?action=shiyongfalv >版权声明</a> | <a href=help.asp?action=fukuan >付款方式</a> | <a href=gbook.asp >留言/建议/投诉</a></TD>
    </TR>
    <TR>
      <TD height=60><div align="center">
<%dim endtime
endtime=timer()
response.Write "　公司地址："&dizhi&"　邮政编码："&youbian&"<br>"
response.Write "　客服邮箱：<a href=mailto:"&webemail&">"&webemail&"</a>　客服电话："&dianhua&"<br>　"
response.Write "  <font color=#000000><b>"&weburl&"</b></font> &copy; <font color=red> "&copyright&" </font>"
response.Write "　页面执行时间："&FormatNumber((endtime-startime)*1000,3)&" 毫秒"
%>
      </div></TD>
    </TR>
  </TBODY>
</TABLE>
</body>
</html>