📄 news.asp
字号:
<!--#include file="check.asp"-->
<!--#INCLUDE FILE="connect.asp" -->
<%id=request("id")
set rs=server.createobject("adodb.recordset")
sql="select * from news where id="&id
rs.open sql,conn,1,3
rs("clicknum")=rs("clicknum")+1
rs.update
%>
<HTML>
<HEAD>
<style>
<!--
BODY { background-attachment: fixed; background-image: url(images/bgground.gif) }
.p9 {
FONT-SIZE: 9pt; LINE-HEIGHT: 20pt
}
TABLE {
FONT-SIZE:15pt; LINE-HEIGHT: 15pt
}
TD {
FONT-SIZE: 10.5pt; COLOR: #555555; LINE-HEIGHT: 18pt; FONT-FAMILY: 宋体
}
.2bold{
FONT-SIZE: 10pt;font-weight:bold; COLOR: #555555; LINE-HEIGHT: 18pt; FONT-FAMILY: 宋体
}
.4title{
FONT-SIZE: 14pt;font-weight:bold; COLOR: #555555; LINE-HEIGHT: 18pt; FONT-FAMILY: 宋体
}
A:link {
COLOR: #555555; TEXT-DECORATION: none
}
A:visited {
COLOR: #555555; TEXT-DECORATION: none
}
A:hover {
COLOR: #555555; TEXT-DECORATION: underline
}
textarea {
BACKGROUND: url(images/);BORDER-BOTTOM: #ffffff 1px solid; BORDER-LEFT: #ffffff 1px solid; BORDER-RIGHT: #ffffff 0px solid; BORDER-TOP: #ffffff 1px solid; COLOR: #000000; FONT-SIZE: 15px
}
-->
</style>
<TITLE><%=rs("title")%></TITLE>
<META http-equiv=Content-Type content="text/html; charset=gb2312">
</HEAD>
<BODY>
<script language=javascript>
function delnews(td){
if(confirm("您确定要删除这条记录吗?")){
document.location="delnews.asp?id="+td;
}
}
</script>
<TABLE cellSpacing=0 cellPadding=4 width="100%" align=center border=0>
<TBODY>
<TR>
<TD width="100%"></TD></TR></TBODY></TABLE>
<TABLE cellSpacing=0 cellPadding=0 width="100%" align=center border=0>
<TBODY>
<TR>
<TD align=center class="4title"><%=rs("title")%></TD>
</TR>
<TR>
<TD align=center height="24" class="p9"><%=rs("senddate")%> 点击<font color="#ff5bad"><%=rs("clicknum")%></font>次
</TD>
</TR>
<TR>
<TD align=center height="10">
<table width="90%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td bgcolor="A7BAE4" height="1"></td>
</tr>
<tr>
<td bgcolor="ffffff" height="1"></td>
</tr>
</table>
</TD>
</TR>
<tr>
<td height="300" valign="top" align="center">
<table width="90%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td>
<%
temp=" "&rs("news")
response.write temp
%></td>
</tr>
</table>
</td>
</tr>
<TR height="10">
<TD align=center valign="middle">
<table width="90%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td bgcolor="A7BAE4" height="1"></td>
</tr>
<tr>
<td bgcolor="ffffff" height="1"></td>
</tr>
</table></TD>
</TR>
</TBODY>
</TABLE>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td align="center" class="2bold">
<%
if trim(session("type"))="admin" then
response.write "【<A href='javascript:delnews("&request("id")&")'>删 除</A>】"
end if
%>
【<A href="javascript:window.print()">打印此信息</A>】【<A href="javascript:window.close()">关闭本窗口</A>】</td>
</tr>
</table>
<!--#include file="close.asp"-->
</BODY></HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -