hot.asp

来自「旅游管理系统 用ASP+SQL 2」· ASP 代码 · 共 52 行

ASP
52
字号
<html>
<head>
<meta name=vs_targetSchema content="HTML 4.0">
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link rel="stylesheet" href="css/css1.css" type="text/css">
</head>
<body bgcolor="#FFFFFF" text="#000000" topmargin="0">

  <!--#include file="includefile/conn.asp" -->
<%
sql="select top 10 * from xianlu order by x_n desc"
rs.open sql,,1,2
if rs.RecordCount = 0 then
Response.Write "<div align='center'><font color='#9933FF' size='5'>被操作的数据库暂时还为空!</font></div>"
else
%>
<div align="center">
    <center>
<table width="363" border="0" cellspacing="0" cellpadding="0" bgcolor="#CCCCCC" style="border-collapse: collapse" bordercolor="#111111">
  <tr> 

    <td height="22" width="418" bgcolor="#EFEFEF" align="center" class="xia">热门旅游线路</td>
    <td height="22" width="68" align="center" bgcolor="#EFEFEF">报价(元)</td>
    <td height="22" width="67" align="center" bgcolor="#EFEFEF">预订</td>
  </tr>
  <tr> 
<%
	while not Rs.eof 
%>
    
    <td height="20" width="418"  bgcolor="#FFFFFF"> <a href="listxianlu.asp?id=<%=rs("id")%>" target =_blank title="点击这里查看此线路的祥细信息" ><%=left(rs("x_name"),18)%>...</a> </td>
    
    
    <td height="20" width="68" align="center" bgcolor="#FFFFFF"><%=rs("x_baojia")%></td>
    <td height="20" width="67" align="center"  bgcolor="#FFFFFF"><a href="giveme.asp?id=<%=rs("id")%>" target=_blank title="我要预订这条线路">预订</a></td>
  </tr>
    <%

Rs.MoveNext
		wend
%>
</table>
    </center>
  </div>
<%
rs.close
conn.close
end if
%>
</body>
</html>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?