📄 disp.asp
字号:
<!--#include file="conn.ini"-->
<!--#include file="UBBencode.ini"-->
<!--#include file="textencode.ini"-->
<!doctype html public "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>内容</title>
<LINK href="style.css" rel=Stylesheet type=text/css>
</head>
<body leftmargin="0" topmargin="0">
<table>
<tr>
<td colspan="2"><!--#include file="top.ini"--></td>
</tr>
<tr>
<%
set rs=server.createobject("adodb.recordset")
sql="SELECT * from body where id="&request("id")&""
rs.open sql,conn,1,3
%>
<td width="50">主题:</td>
<td width="604">
<%=server.htmlencode(rs("title"))%>
<%if session("board_admin")<>"" then%>
<img src="images/delete.gif" alt="删除" width="12" height="12" border="0" onClick="if(confirm('您确定要删除此留言和相关回复吗?')){location='admin_delete.asp?id=<%=rs("id")%>'}else{return(false)}" onMouseMove="this.style.cursor='hand'">
<%end if%> </td>
</tr>
<tr>
<td>作者:</td>
<td><%=server.htmlencode(rs("writer"))%></td>
</tr>
<tr>
<td>时间:</td>
<td><%=rs("posttime")%></td>
</tr>
<tr>
<td valign="top">内容:</td>
<td style="word-wrap:break-word;word-break:break-all;width:604;"><%=UBBencode(textencode(rs("body")))%></td>
</tr>
<%
rs.close
%>
<%
sql="SELECT * from re where post_id="&request("id")&""
rs.open sql,conn,1,3
for x=1 to int(rs.recordcount)
if x mod 2 then
tr_color="#EBEBEB"
else
tr_color="#ffffff"
end if
%>
<tr bgcolor="<%=tr_color%>">
<td>主题:</td>
<td>
<%if rs("top")=true then response.write "固顶"%>
<%=server.htmlencode(rs("title"))%>
<%if session("board_admin")<>"" then%> <img src="images/delete.gif" alt="删除" width="12" height="12" border="0" onClick="if(confirm('您确定要删除此回复吗?')){location='admin_delete_re.asp?id=<%=rs("id")%>&post_id=<%=rs("post_id")%>'}else{return(false)}" onMouseMove="this.style.cursor='hand'">
<%end if%>
</td>
</tr>
<tr bgcolor="<%=tr_color%>">
<td>作者:</td>
<td><%=server.htmlencode(rs("writer"))%></td>
</tr>
<tr bgcolor="<%=tr_color%>">
<td>时间:</td>
<td><%=rs("time")%></td>
</tr>
<tr bgcolor="<%=tr_color%>">
<td valign="top">内容:</td>
<td style="word-wrap:break-word;word-break:break-all;width:604;"><%=UBBencode(textencode(rs("body")))%></td>
</tr>
<%
rs.movenext
next
%>
<tr>
<td>动作:</td>
<td>
<input type="button" name="Submit" value="回复留言" onclick="location.href='post.asp?id=<%=request("id")%>&action=re_add'">
<input type="button" name="Submit2" value="返回" onClick="history.back()"></td>
</tr>
</table>
</body>
</html>
<script language = "JavaScript" src = "bottom.js"/></script>
<%
rs.close
set rs=nothing
call connclose
%>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -