?? newsinfo.asp
字號:
<!--#include file="conn.asp"-->
<html>
<head>
<title>新聞動態</title>
<link href="css.css" rel="stylesheet">
</head>
<body>
<%
set rs=server.createobject("adodb.recordset")
sql="select * from news where id="&request("id")
rs.open sql,conn,1,1
if rs.eof then
response.write"<br><br><div align=center>沒有此新聞動態的詳細信息</div>"
response.end
else
%>
<table width="460" border="0" align="center" cellpadding="0" cellspacing="0">
<tr class="tabbgcolorli">
<td> <font color="#FFFFFF">☆ 新聞動態</font></td>
</tr>
</table>
<br>
<table width="460" height="139" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#FFA6DF">
<tr bgcolor="#FFFFFF">
<td height="18" colspan="2"> <div align="center"><%=rs("title")%></div></td>
</tr>
<tr bgcolor="#FFFFFF">
<td width="228" height="18"><div align="center">來源:<%=rs("pname")%></div></td>
<td width="229"><div align="center"><%=rs("date")%></div></td>
</tr>
<tr bgcolor="#FFFFFF">
<td colspan="2"><%=rs("body")%> </td>
</tr>
</table>
<%
end if
rs.close
set rs=nothing
%>
</body></html>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -