📄 news.asp
字号:
<html>
<!--#include file="conn.asp"-->
<!--#include file="ubb.asp"-->
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<meta name="GENERATOR" content="Microsoft FrontPage 4.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<LINK href="style.css" rel=stylesheet>
<title>站内新闻系统</title>
</head>
<body>
<div align="center">
<table width="503">
<td width="495">
<p align="right"></table>
</div>
<div align="center">
<center>
<% Set rs = Server.CreateObject("ADODB.Recordset")
sql="select * from news where news_id="&request("news_id")
rs.open sql,conn,3,3
if rs.eof then
response.write "暂时没有信息"
else%>
<table border="0" cellpadding="0" cellspacing="0" width="500">
<tr>
<td background="pic/line_gb.gif" height="1"></td>
</tr>
</table>
</center>
</div>
<div align="center">
<center>
<table border="0" cellpadding="0" cellspacing="1" width="500" height="24">
<tr>
<td height="22">
<p align="center"><%=rs("news_time")%> ┊ <b><font color="#FF0000"><%=rs("news_title")%></font></b> ┊ <%=rs("news_writer")%></td>
</tr>
</table>
</center>
</div>
<div align="center">
<center>
<table border="0" cellpadding="0" cellspacing="1" width="500">
<tr>
<td background="pic/line_gb.gif" height="1"></td>
</tr>
</table>
</center>
</div>
<div align="center">
<center>
<table border="0" cellpadding="0" cellspacing="1" width="500" style="border-collapse:collapse; word-break:break-all">
<tr>
<td><%=code_jk(rs("news_text"))%></td>
</tr>
</table>
<%end if
rs.Close
set rs=Nothing
conn.Close
set conn=Nothing
%>
</center>
</div>
<div align="center">
<center>
<table border="0" cellpadding="0" cellspacing="1" width="500">
<tr>
<td background="pic/line_gb.gif" height="1"></td>
</tr>
</table>
</center>
</div>
<p align="center"><a href="javascript:window.close()">〖关闭窗口〗</a></p>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -