28,406
社区成员
发帖
与我相关
我的任务
分享<%
sql_top_1="select top 12 * from hotel where op_type like '%"&theclass&"%' order by hots asc,id desc"
set rs_top_1=Server.CreateObject("ADODB.Recordset")
rs_top_1.open sql_top_1,conn,1,1
if (rs_top_1.eof) then
response.write "<td height=30>暂无内容</td>"
else
n=0
rs_top_1.movefirst
do while not rs_top_1.eof
n=n+1
if n=4 then
id1=rs_top_1("id")
end if
if n=4 then
id2=rs_top_1("id")
end if
%>
<div class="movList_li">
<a href="../hotel/show.asp?id=<%=rs_top_1("id")%>" target="_blank" title="<%=rs_top_1("name")%>"><img src="../hotel/top/<%=rs_top_1("url")%>" width="120" height="110" border="0" /></a>
<ul>
<li><a href="show.asp?id=<%=rs_top_1("id")%>" target="_blank"><%=rs_top_1("name")%></a></li>
<li>星级:<%=mystar%></li>
<li>价格:¥团<%=hprice2%>元</li>
<li>位置:<%=left(rs_top_1("address"),8)%></li>
</ul>
</div>
<%if n mod 4=0 then response.write("")
rs_top_1.movenext
loop
end if
rs_top_1.close
set rs_top_1=nothing%><style>.movList ul li {float:left;}</style>