📄 primsgview.asp
字号:
<%@LANGUAGE="VBScript" CODEPAGE="936"%>
<!--#include file="session.asp" -->
<!--#include file="conn.asp" -->
<%
PrimsgID=request.QueryString("id")
If PrimsgID="" or Isnumeric(PrimsgID)=False then
response.Redirect("error.asp")
end if
'response.Write(primsgid)
set rs=server.CreateObject("adodb.recordset")
strsql="select * from primsg where primsgid="&PrimsgID
rs.open strsql,conn,1,3
If rs.bof or rs.eof then
response.Redirect("error.asp")
end if
rs("primsgtype")=2
rs.update
primsgtitle=trim(rs("primsgtitle"))
PrimsgText=trim(rs("PrimsgText"))
rs.close
set rs=nothing
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title><%=classname%>同学录</title>
<link href="css/class.css" rel="stylesheet" type="text/css">
</head>
<body bgcolor="#F2F2EA">
<table width="360" border="0" cellpadding="0" cellspacing="0" background="images/dxbj.gif">
<tr>
<td><table width="360" border="0" cellpadding="0" cellspacing="0" background="images/gnymtbz.gif">
<tr>
<td width="135"><img src="images/dxxx.gif" width="135" height="36"></td>
<td> </td>
<td width="100"><img src="images/gnymtyb.gif" width="100" height="36"></td>
</tr>
</table></td>
</tr>
<tr>
<td><br>
<table width="350" border="0" align="center" cellpadding="2" cellspacing="1" bgcolor="#666B52">
<tr>
<td bgcolor="E3E3CF"> <div align="right"><strong>标 题:</strong></div></td>
<td width="280" bgcolor="#fafbf2"><%=primsgtitle%> </td>
</tr>
<tr>
<td bgcolor="E3E3CF"> <div align="right"><strong>内 容:</strong></div></td>
<td bgcolor="#fafbf2"><%=PrimsgText%> </td>
</tr>
<tr align="center" bgcolor="#fafbf2">
<td colspan="2"><a href="primsgdel.asp?id=<%=PrimsgID%>">删除</a>
<a href="primsg.asp">返回</a> <a href="javascript:window.close()">关闭</a></td>
</tr>
</table>
</td>
</tr>
<tr>
<td bgcolor="#FFFFFF"><img src="images/dxfoot.gif" width="360" height="10"></td>
</tr>
</table>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -