📄 news.asp
字号:
<!--#include file="conn.inc"
'连接数据库
-->
<html>
<head>
<title>新建网页</title>
<!--<link rel="stylesheet" type="text/css" href="css.css">-->
</head>
<body>
<form name="form1" method="post" action="">
</form>
<table border="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="120%" id="AutoNumber1">
<tr>
<td width="100%" height="30" style="border-left-style: solid; border-left-width: 0; border-right-style: solid; border-right-width: 0; border-top-style: solid; border-top-width: 0; border-bottom: 1px solid #000000">
<img src="images/botton7.gif" width="121" height="26"></td>
</tr>
<%
sql="select * from exam_news "
set rs=server.createobject("adodb.recordset")
rs.open sql,conn,3,2
do while not rs.eof
%>
<tr>
<td width="100%" height="30"><img src="images/bluebullet.gif" width="11" height="13" border="0">
<a href="viewnews.asp?newsid=<%=rs("newsid")%>"><%=rs("title")%></a> [<%=formatdatetime(rs("fabsj"),1)%>]
<%
if (date()-rs("fabsj"))<3 then
%>
<img src="images/new.gif" width="29" height="13" border="0">
<%
end if
%>
</td>
</tr>
<% '显示新闻标题
'rs.close
rs.movenext
loop
rs.close%>
<tr>
<td width="100%"> </td>
</tr>
</table>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<form name="form2" method="post" action="">
</form>
<p> </p>
<p> </p>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -