<!--#include file="conn.asp"-->
<%
if request("id")<>"" then
	set rs=server.createobject("adodb.recordset")
	sqltext="select * from hotelb where id="&request("id")&"" 
	rs.open sqltext,conn,1,1
elseif request("userid")<>"" then
	set rs=server.createobject("adodb.recordset")
	sqltext="select * from hotelb where userid='"&request("userid")&"'" 
	rs.open sqltext,conn,1,1
end if
%>
<html>
<head>
<meta http-equiv="Content-Language" content="zh-cn">
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<LINK href="images/site.css" type=text/css rel=stylesheet>
<script language="JavaScript">
<!--
var imageObject;
function ResizeImage(obj, MaxW, MaxH)
{
    if (obj != null) imageObject = obj;
    var state=imageObject.readyState;
    var oldImage = new Image();
    oldImage.src = imageObject.src;
    var dW=oldImage.width; var dH=oldImage.height;
    if(dW>MaxW || dH>MaxH) {
        a=dW/MaxW; b=dH/MaxH;
        if(b>a) a=b;
        dW=dW/a; dH=dH/a;
    }
    if(dW > 0 && dH > 0)
        imageObject.width=dW;imageObject.height=dH;
    if(state!='complete' || imageObject.width>MaxW || imageObject.height>MaxH) {
        setTimeout("ResizeImage(null,"+MaxW+","+MaxH+")",40);
    }
}
//-->
</script>
<script language="JavaScript">
<!--
function OpenWin(URL,Title){
window.open(URL,Title,"toolbar=0,location=0,status=0,menubar=0,resizable=1,scrollbars=1,top=100,left=200,width=500,height=360"); 
}
//-->
</script>
<title>ÉÏÈÄÕÛ¿ÛÍø---ÕÛ¿ÛÏû·Ñ´óÎèÌ¨!</title>
</head>

<body background="../../img/right-bg.jpg" topmargin="0" leftmargin="0">

<table border="0" width="900" cellspacing="0" cellpadding="0" id="table1">
	<tr>
		<td colspan="4">
		<img border="0" src="img/1.jpg" width="841" height="198"></td>
	</tr>
	<tr>
		<td width="150" background="left-bg.jpg" valign="top"><img border="0" src="img/left.jpg"></td>
		<td width="591" bgcolor="#FFFFFF" valign="top">
		<table cellSpacing="0" cellPadding="0" width="582" border="0" id="table28">
			<tr>
				<td><img height="2" src="img/detail_tl_01.gif" width="594"></td>
			</tr>
			<tr>
				<td>
				<table cellSpacing="0" cellPadding="0" width="590" border="0" id="table29">
					<tr>
						<td width="30">
						<img height="40" src="img/detail_tl_02.gif" width="29" align="absMiddle"></td>
						<td width="412"><font color="#ff6600" style="font-size:14px">
						<strong><%=rs("name")%></strong></font><%if rs("huiyuan")=1 then%><font color="#FF0000">£¨¼ÓÃËµê£©</font><%end if%></td>
						<!-- »çÀå´Ô Áö½Ã·Î Àá½Ã »èÁ¦
					  <td width="131"><img src="images/detail_sky.gif" width="111" height="29"></td>
-->
						<td width="148">
						<p align="center">
						<a href="javascript:OpenWin('yuding.asp?userid=<%=rs("userid")%>','')">
						<img border="0" src="images/buy_phone.gif" width="20" height="14"><font color="#FF0000"> 
						ÎÒÒªÔ¤¶©</font></a></td>
					</tr>
				</table>
				</td>
			</tr>
			<tr>
				<td>
				<div align="right">
					<img height="10" src="img/detail_tl_04.gif" width="594"></div>
				</td>
			</tr>
			<tr>
				<td>
				<div align="right">
					<table cellSpacing="0" cellPadding="0" width="569" border="0" id="table30">
						<tr>
							<!-- À½½ÄÁ¡ ¸ÞÀÎ ÀÌ¹ÌÁö ½ÃÀÛ -->
							<td width="250">
							<p align="center">
							<img src="<%if rs("hotelpic")="" then %>img/nopic.gif<%else%>pic/shotelpic/<%=rs("hotelpic")%><%end if%>" onload="javascript:ResizeImage(this, 250, 250);"></td>
							<!-- À½½ÄÁ¡ ¸ÞÀÎ ÀÌ¹ÌÁö ³¡ -->
							<td width="22">
							<img height="250" src="img/detail_img_right.gif" width="22"></td>
							<td width="280" valign="top"><!-- À½½ÄÁ¡ ¸ÞÀÎ ÀÌ¹ÌÁö ¿·ÀÇ À½½ÄÁ¡ »ó¼¼ Á¤º¸ ½ÃÀÛ-->
							<table cellSpacing="0" cellPadding="0" width="243" border="0" id="table31">
								<tr style="font-size:12px">
									<td width="36" height="32" align="center">
									<img height="19" src="img/detail_ico01.gif" width="22" align="absMiddle">
									</td>
									<td height="32" align="right" width="207">
									<p align="left">
									<strong><font color="#FF6600">ÀàÐÍ£º</font></strong><%=rs("htype")%><strong>&nbsp;&nbsp;&nbsp;     <font color="#FF6600">ÇøÓò£º</font></strong><%=rs("eara")%></td>
								</tr>
								<tr>
									<td colSpan="2" align="center">
									<img height="1" src="img/detail_line01.gif" width="275"></td>
								</tr>
								<tr style="font-size:12px">
									<td width="36" height="31" align="center">
									<img height="19" src="img/detail_ico01.gif" width="22" align="absMiddle">
									</td>
									<td height="31" align="left" width="207">
									<strong><font color="#FF6600">½»Í¨£º</font></strong><%=rs("busline")%></td>
								</tr>
								<tr>
									<td colSpan="2" align="center">
									<img height="1" src="img/detail_line01.gif" width="275"></td>
								</tr>
								<tr style="font-size:12px">
									<td width="36" height="36" align="center">
									<img height="19" src="img/detail_ico01.gif" width="22" align="absMiddle">
									</td>
									<td height="36" align="right" width="207">
									<p align="left">
									<strong><font color="#FF6600">µØÖ·£º</font></strong><%=rs("address")%></td>
								</tr>
								<tr>
									<td colSpan="2" align="center">
									<img height="1" src="img/detail_line01.gif" width="275"></td>
								</tr>
								<tr style="font-size:12px">
									<td width="36" height="30" align="center">
									<img height="19" src="img/detail_ico01.gif" width="22" align="absMiddle">
									</td>
									<td  height="30" align="right" width="207">
									<p align="left">
									<strong><font color="#FF6600">ÓªÒµÊ±¼ä£º</font></strong><%=rs("worktime")%></td>
								</tr>
								<tr>
									<td colSpan="2" align="center">
									<img height="1" src="img/detail_line01.gif" width="275"></td>
								</tr>
									<tr style="font-size:12px">
																		<td width="36" height="34" align="center">
									<img height="19" src="img/detail_ico01.gif" width="22" align="absMiddle">
									</td>
									<td height="34" align="right" width="207">
									<p align="left"><strong>
									<font color="#FF6600">Í£³µÎ»£º</font></strong><%=rs("careara")%></td>
									</tr>
								<tr>
									<td colSpan="2">
									<img height="1" src="img/detail_line01.gif" width="275"></td>
								</tr>
								<tr style="font-size:12px">
																		<td width="36" height="37" align="center">
									<img height="19" src="img/detail_ico01.gif" width="22" align="absMiddle">
									</td>
									<td height="37" align="right" width="207">
									<p align="left"><strong>
									<font color="#FF6600">ÁªÏµµç»°£º</font></strong><%=rs("tel")%></td>
									</tr>
								<tr>
									<td colSpan="2">
									<img height="1" src="img/detail_line01.gif" width="275"></td>
								</tr>

								<tr style="font-size:12px">
																		<td width="36" height="38" align="center">
									<img height="19" src="img/detail_ico01.gif" width="22" align="absMiddle">
									</td>
									<td height="38" align="right" width="207">
									<p align="left"><strong>
									<font color="#FF6600">¿ÍÈÝÁ¿£º</font></strong><%=rs("roomnum")%></td>
								</tr>
								<tr>
									<td colSpan="2">
									<img height="1" src="img/detail_line01.gif" width="275"></td>
								</tr>
								<%if rs("huiyuan")=1 then%>
								<tr style="font-size:12px">
																		<td width="36" height="38" align="center">
									<img height="19" src="img/detail_ico01.gif" width="22" align="absMiddle">
									</td>
									<td height="38" align="right" width="207">
									<p align="left"><strong>
									<font color="#FF6600">ÕÛ¿ÛÓÅ»Ý£º</font></strong><%=rs("youhui")%></td>
								</tr>
								<%end if%>
								<tr>
									<td colSpan="2">
									<img height="1" src="img/detail_line01.gif" width="275"></td>
								</tr>
								</table>
							</td>
							<td vAlign="top">
							<div align="right">
								<img height="223" src="img/detail_jump_left.gif" width="7"></div>
							</td>
						</tr>
					</table>
				</div>
				</td>
			</tr>
			<tr>
				<td height="17" style="font-size:14px">
				</td>
			</tr>
			<tr>
				<td height="36" style="font-size:14px" bgcolor="#F7F7F7">
				<p align="center">
				<img border="0" src="img/1.gif" width="23" height="17"><a href="hotelpiclist.asp?userid=<%=rs("userid")%>" style="font-size:14px">ÉÌ¼Ò×°ÊÎ</a>&nbsp; 
				<img border="0" src="img/2.gif" width="23" height="17"><a href="hotelcplist.asp?userid=<%=rs("userid")%>" style="font-size:14px">ÉÌ¼ÒÉÌÆ·</a>&nbsp; 
				<img border="0" src="img/3.gif" width="23" height="17"><a href="hotelteselist.asp?userid=<%=rs("userid")%>" style="font-size:14px">ÌØÉ«·þÎñ</a>&nbsp; 
				<img border="0" src="img/4.gif" width="23" height="17"><a href="hotelyhlist.asp?userid=<%=rs("userid")%>" style="font-size:14px">ÕÛ¿ÛÓÅ»Ý</a>&nbsp; 
				<img border="0" src="img/5.gif" width="23" height="17"><a href="hotelzplist.asp?userid=<%=rs("userid")%>" style="font-size:14px">ÉÌ¼ÒÕÐÆ¸</a></td>
			</tr>
			<tr>
				<td height="18" style="font-size:14px">
				</td>
			</tr>
			<tr>
				<td>
				<div align="center">
					<table cellSpacing="0" cellPadding="0" width="547" border="0" id="table32">
						<tr>
							<td>
							<img height="32" src="img/detail_sub01.gif" width="547"></td>
						</tr>
						<tr>
							<td>
							<img height="8" src="img/spacer.gif" width="547"></td>
						</tr>
						<!-- À½½ÄÁ¡ ¼Ò°³ ±ÛºÎºÐ ½ÃÀÛ -->
						<tr>
							<td>
							<table width="545" border="0" id="table33">
								<tr>
									<td vAlign="top">
									<table cellSpacing="0" cellPadding="0" width="540" border="0" id="table34">
										<tr>
											<td>
											<img style="BORDER-RIGHT: #e6e6e6 3px solid; BORDER-TOP: #e6e6e6 3px solid; BORDER-LEFT: #e6e6e6 3px solid; CURSOR: hand; COLOR: black; BORDER-BOTTOM: #e6e6e6 3px solid"   hspace="10" src="<%if rs("mapic")="" then %>img/nomap.gif<%else%>pic/shotelpic/<%=rs("mapic")%><%end if%>" onload="javascript:ResizeImage(this, 250, 250);" align="left">
											<%=rs("inf")%></td>
										</tr>
									</table>
									</td>
									<td>¡¡</td>
									<td width="7">¡¡</td>
								</tr>
							</table>
							</td>
						</tr>
						<!-- À½½ÄÁ¡ ¼Ò°³ ±ÛºÎºÐ ³¡ -->
					</table>
				</div>
				</td>
			</tr>
			<tr>
				<td>¡¡</td>
			</tr>
			<!-- ÄíÆù ºÎºÐ ½ÃÀÛ -->
			<tr>
				<td>
				<div align="center">
					<table cellSpacing="0" cellPadding="0" width="547" border="0" id="table35">
						<!-- ÄíÆù ºÎºÐ ³¡ -->
					</table>
				</div>
				</td>
			</tr>
			<tr>
				<td>¡¡</td>
			</tr>
			<!-- ÀÌº¥Æ® ºÎºÐ ½ÃÀÛ-->
			<tr>
				<td>
				<div align="center">
					<table cellSpacing="0" cellPadding="0" width="547" border="0" id="table36">
					</table>
				</div>
				</td>
			</tr>
			<!-- ÀÌº¥Æ® ºÎºÐ ³¡-->
			<tr>
				<td>¡¡</td>
			</tr>
			<tr>
				<td>
				<div align="center">
					<table cellSpacing="0" cellPadding="0" width="547" border="0" id="table37">
						<tr>
							<td>
							<map name="FPMap0">
							<area href="hotelpiclist.asp?userid=<%=rs("userid")%>" shape="rect" coords="468, 3, 519, 26">
							</map>
							<img height="32" src="img/detail_sub04.gif" width="547" usemap="#FPMap0" border="0"></td>
						</tr>
						<tr>
							<td>
							<img height="8" src="img/spacer.gif" width="547"></td>
						</tr>
						<tr>
							<td><!-- ³»ºÎ/¿ÜºÎ Àü°æ ÀÌ¹ÌÁö ½ÃÀÛ -->
							<table cellSpacing="3" cellPadding="0" width="547" border="0" id="table38">
<%set rspic=server.createobject("adodb.recordset")
	sqltext="select top 3 * from hotelpicb where userid='"&rs("userid")&"' order by id desc" 
	rspic.open sqltext,conn,1,1%>							
								<tr>
								<%do while not rspic.eof%>
									<td width="182">
									<a href="hotelpicdetail.asp?id=<%=rspic("id")%>&userid=<%=rspic("userid")%>"><img style="BORDER-RIGHT: #e6e6e6 3px solid; BORDER-TOP: #e6e6e6 3px solid; BORDER-LEFT: #e6e6e6 3px solid; BORDER-BOTTOM: #e6e6e6 3px solid" src="pic/hotelpic/<%=rspic("pic")%>" onload="javascript:ResizeImage(this, 143, 170);"></a></td>
									
								<%rspic.movenext
								loop%>								</tr>
							</table>
							<!-- ³»ºÎ/¿ÜºÎ Àü°æ ÀÌ¹ÌÁö ³¡ --></td>
						</tr>
					</table>
				</div>
				</td>
			</tr>
			<tr>
				<td>¡¡</td>
			</tr>
			<!-- »ó¼¼Á¤º¸ ½ÃÀÛ -->
			<tr>
				<td>
				<div align="center">
					<table cellSpacing="0" cellPadding="0" width="547" border="0" id="table39">
						<tr>
							<td>
							<map name="FPMap1">
							<area coords="469, 6, 516, 26" shape="rect" href="hotelcplist.asp?userid=<%=rs("userid")%>">
							</map>
							<img height="32" src="img/detail_sub05.gif" width="547" usemap="#FPMap1" border="0"></td>
						</tr>
						<tr>
							<td>
							<img height="8" src="img/spacer.gif" width="547"></td>
						</tr>
						<tr>
							<td>
							<table cellSpacing="0" cellPadding="0" width="547" border="0" id="table40">
<%
set rscp=server.createobject("adodb.recordset")
sqltext="select top 10 * from cpb where userid='"&rs("userid")&"' order by id desc" 
rscp.open sqltext,conn,1,1
i=1
%>

								<tr>
<%
do while not rscp.eof%>

									<td width="300" height=30>
									<img height="19" src="img/detail_ico01.gif" width="22" align="absMiddle">
									<font color="#ff6600"><a href="hotelcpdetail.asp?id=<%=rscp("id")%>&userid=<%=rscp("userid")%>" style="font-size:14px"><%=rscp("cpname")%></a></font> 
									</td>
									<td width="123"><%=rscp("cptype")%></td>
									<td width="124"><%=rscp("price")%>Ôª<%if rscp("danwei")<>"" then response.write "/"&rscp("danwei")%></td>
									<%if i mod 2=0 then response.write "</tr><tr>"%>
<%
i=i+1
rscp.movenext
loop
%>								
									
</tr>

							</table>
							</td>
						</tr>
					</table>
				</div>
				</td>
			</tr>
			<!-- »ó¼¼Á¤º¸ ³¡ -->
			<tr>
				<td>¡¡</td>
			</tr>
			<!-- ´ëÇ¥¸Þ´ºÀÌ¹ÌÁö¿Í ¸í°ú °¡°Ý ½ÃÀÛ -->
			<tr>
				<td>
				<div align="center">
					<table cellSpacing="0" cellPadding="0" width="547" border="0" id="table41">
						<tr>
							<td>
							<map name="FPMap2">
							<area href="hotelteselist.asp?userid=<%=rs("userid")%>" shape="rect" coords="472, 4, 515, 26">
							</map>
							<img height="32" src="img/detail_sub06.gif" width="547" usemap="#FPMap2" border="0"></td>
						</tr>
						<tr>
							<td>
							<img height="8" src="img/spacer.gif" width="547"></td>
						</tr>
						<tr>
							<td>
							<table cellSpacing="3" cellPadding="0" width="547" border="0" id="table42">
								<tr>
<%
set rstesecp=server.createobject("adodb.recordset")
sqltext="select top 3 * from cpb where userid='"&rs("userid")&"' and tese=1 order by id desc" 
rstesecp.open sqltext,conn,1,1
i=1
do while not rstesecp.eof
%>
									<td>
									<table width="182" id="table43">
										<tr>
											<td width="182">
											<a href="hotelcpdetail.asp?id=<%=rstesecp("id")%>&userid=<%=rstesecp("userid")%>"><img style="BORDER-RIGHT: #e6e6e6 3px solid; BORDER-TOP: #e6e6e6 3px solid; BORDER-LEFT: #e6e6e6 3px solid; BORDER-BOTTOM: #e6e6e6 3px solid" src="pic/cpic/<%=rstesecp("pic")%>" onload="javascript:ResizeImage(this, 143, 170);"></a></td>
										</tr>
										<tr>
											<td width="182" height="40">
											<div align="center">
												<strong><font color="#ff6600">
												<a href="hotelcpdetail.asp?id=<%=rstesecp("id")%>&userid=<%=rstesecp("userid")%>"><%=rstesecp("cpname")%></a></font></strong><br>
												£¨<%=rstesecp("price")%>Ôª<%if rstesecp("danwei")<>"" then response.write "/"&rstesecp("danwei")%>£©</div>
											</td>
										</tr>
									</table>
									</td>
<%rstesecp.movenext
loop
rstesecp.close%>
								</tr>
							</table>
							</td>
						</tr>
					</table>
				</div>
				</td>
			</tr>
			<!-- ´ëÇ¥¸Þ´ºÀÌ¹ÌÁö¿Í ¸í°ú °¡°Ý ³¡ -->
			<tr>
				<td>¡¡</td>
			</tr>
			<tr>
				<td>
				<div align="center">
					<table cellSpacing="0" cellPadding="0" width="547" border="0" id="table46">
						<tr>
							<td>
							<map name="FPMap3">
							<area href="hotelyhlist.asp?userid=<%=rs("userid")%>" shape="rect" coords="472, 6, 516, 25">
							</map>
							<img height="32" src="img/detail_sub07.gif" width="547" usemap="#FPMap3" border="0"></td>
						</tr>
						<tr>
							<td>
							<img height="8" src="img/spacer.gif" width="547"></td>
						</tr>
						<!-- À½½ÄÁ¡ Æò°¡ ½ÃÀÛ -->
						<tr>
							<td>
							<table cellSpacing="0" cellPadding="0" width="100%" border="0" id="table47">
								<tr>
									<td width="100%">
									<table cellSpacing="0" cellPadding="0" width="100%" border="0" id="table48">
<%
set rsyh=server.createobject("adodb.recordset")
sqltext="select top 5 * from hotelyhb where userid='"&rs("userid")&"' order by id desc" 
rsyh.open sqltext,conn,1,1
i=1
if not rsyh.eof then
do while not rsyh.eof
%>
										<tr>
											<td width="26" height="25">
											<img height="19" src="img/detail_ico01.gif" width="22" align="absMiddle">&nbsp; 
											</td>
											<td width="286" height="25"><!-- ¸ÀÀÇ ¸·´ë±×·¡ÇÁ¸¦ %·Î Ç¥½Ã ÇÏ¿© º¸¿©ÁØ´Ù. ½ÃÀÛ-->
											<!-- ¸ÀÀÇ ¸·´ë±×·¡ÇÁ¸¦ %·Î Ç¥½Ã ÇÏ¿© º¸¿©ÁØ´Ù. ³¡-->
											<span lang="en-us"><a href="hotelyhdetail.asp?id=<%=rsyh("id")%>&userid=<%=rsyh("userid")%>"><%=rsyh("title")%></a></span></td>
											<td width="235">
											<div align="left">
												<strong>ÓÐÐ§ÆÚ£º</strong><%=rsyh("endtime")%></div>
											</td>
										</tr>
<%
rsyh.movenext
loop
end if%>
										<tr>
											<td colSpan="3">
											¡¡</td>
										</tr>
										</table>
									</td>
								</tr>
								<!-- À½½ÄÁ¡ Æò°¡ ³¡ -->
							</table>
							</td>
						</tr>
					</table>
				</div>
				</td>
			</tr>
		</table>
		</td>
		<td width="118" valign="top">
		<map name="FPMap4">
		<area href="hoteldetail.asp?userid=<%=rs("userid")%>" shape="circle" coords="35, 146, 21">
		<area href="http://www.17zk.cn" shape="circle" coords="36, 90, 20">
		</map>
		<img border="0" src="img/right1.jpg" usemap="#FPMap4"> </td>
		<td width="55">¡¡</td>
	</tr>
	<tr>
		<td background="left-bg.jpg">¡¡</td>
		<td bgcolor="#FFFFFF">¡¡</td>
		<td background="img/right-bg.jpg" width="118">¡¡</td>
		<td width="55">¡¡</td>
	</tr>
	<tr>
		<td  colspan="2">
		<img border="0" src="img/bottom.jpg" height="45"></td>
		<td background="img/right-bg.jpg" width="118">¡¡</td>
		<td width="55">¡¡</td>
	</tr>
</table>

</body>

</html>