📄 editart.asp
字号:
<!--#include file="opendb.asp"-->
<html>
<head>
<title>编辑帖子</title>
<meta http-equiv="content-type" content="text/html; charset=gb2312">
<script language=vbscript src="images/function.vbs" ></script>
<style type="text/css">
<!--
.style3 {color: #666600}
.style4 {color: #000099}
-->
</style>
</head>
<body>
<%
ID=request.QueryString("index")
strSQL = "Select * from Forum Where ID=" & ID
rst.CursorType=3
rst.open strSQL
if rst.RecordCount>0 then
author=rst("Username")
end if
%>
<%if session("UserName")<> author and session("UserName")<> "admin" then%>
<script language=vbscript>
msgbox "只有管理员或帖子的所有者才可以编辑该帖子",48,"无权限编辑帖子"
window.location="index.asp"
</script>
<%else%>
<table cellspacing="0" cellpadding="0" width="99%" align="center" border="0">
<tr><td valign="top" align="left" rowspan="2"><img src="images/logo.gif" border="0"></td></tr>
</table>
<table cellspacing=0 cellpadding=0 width="97%" align=center border=0>
<tr>
<td bgcolor="#FFCCCC">
<table cellspacing=1 cellpadding=4 width="100%" border=0>
<tr class=header><td colspan=2 align=center><span class="style3">编辑帖子</span></td>
</tr>
<form action="postedit.asp" method=post name="editform">
<input type=hidden name=id value=<%=ID%>>
<tr>
<td width="21%" bgcolor=#f8f8f8><span class="style4">标题:</span></td>
<td bgcolor=#ffffff><input tabindex=2 maxlength=40 size=25 name=title value=<%=rst("Title")%>></td>
</tr>
<tr>
<td bgcolor=#f8f8f8><span class="style4">内容:</span></td>
<td bgcolor=#ffffff><textarea cols=40 rows=10 name=content><%=rst("Content")%></textarea></td>
</tr>
<tr>
<td bgcolor=#f8f8f8 colspan=2 align=center>
<input type=button class="buttonface" value="修改" onclick="editformcheck()">
<input type=reset class="buttonface" value="重填">
</td>
</tr>
</form>
</table>
</td>
</tr>
</table>
<%end if%>
</body>
</html>
<!--#include file="closedb.asp"-->
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -