📄 index.asp
字号:
<%@ language="vbscript"%>
<!-- #include file="adovbs.inc" -->
<html>
<head>
<title>新闻</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link rel="stylesheet" href="../html/3508.css">
<style type="text/css">
<!--
.yj { font-size: 11px; color: #000000; font-style: italic}
.red { color: #FF0000}
-->
</style>
</head>
<body bgcolor="#FFFFF8">
<table width="740" border="0" cellspacing="0" cellpadding="0" align="center" height="40">
<tr>
<td width="192" height="39" align="center" valign="bottom"><img src="../images/smallmark.gif" width="120" height="25"></td>
<td width="420" valign="bottom" height="39"><a href="../default.asp">本站首页</a>
>> 精品生活</td>
<td width="128" valign="bottom" height="39"><%=formatdatetime(now,vblongdate)%></td>
</tr>
<tr>
<td colspan="3" height="1" bgcolor="006600"></td>
</tr>
</table>
<table width="600" border="0" cellspacing="0" cellpadding="0" align="center">
<tr>
<td class="red" height="41"> </td>
</tr>
<%
set conn=server.createobject("adodb.connection")
conn.open Application("DBCon_ConnectionString")
i=1
while i<=6
mjj="ABCDEFG"
mjjtitle="新闻文化购物休闲体育生活"
wz=midb(mjjtitle,(i-1)*4+1,4)
a="'"&mid(mjj,i,1)&"'"
set rs=server.createobject("adodb.recordset")
sqltext="Select top 10 * from news where upper(classfication)="&a&"order by newsdate desc"
rs.open sqltext,conn,adOpenkeyset,adlockoptimistic,adcmdtext
%> <%if not(rs.eof and rs.bof) then%>
<tr>
<td class="red">【<%=wz%>】</td>
</tr>
<%
while not rs.eof
%>
<tr>
<td> ◆<a href="comment.asp?newsid=<%=rs("newsid")%>" target="_blank"><%=rs("title")%></a> <span class="yj">(<%=formatdatetime(rs("newsdate"),vblongdate)%></span>)</td>
</tr>
<%
rs.movenext
wend
rs.close
set rs=nothing%>
<tr>
<td height="1" bgcolor="006600"></td>
</tr>
<tr>
<td align="right"><a href="more.asp?class=<%=a%>">更多>></a></td>
</tr>
<%
end if
%> <%
i=i+1
wend
%>
</table>
<!-- #include file="../include/end.htm" -->
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -