?? 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%>同學(xué)錄</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>標(biāo) 題:</strong></div></td>
<td width="280" bgcolor="#fafbf2"><%=primsgtitle%> </td>
</tr>
<tr>
<td bgcolor="E3E3CF"> <div align="right"><strong>內(nèi) 容:</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()">關(guān)閉</a></td>
</tr>
</table>
</td>
</tr>
<tr>
<td bgcolor="#FFFFFF"><img src="images/dxfoot.gif" width="360" height="10"></td>
</tr>
</table>
</body>
</html>
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -