⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 editart.asp

📁 网易论坛 发表新贴子
💻 ASP
字号:
<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<!--include file="opendb.asp"-->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>修改贴子</title>
</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 cellpadding="1" cellpadding="4" width="100%" border="0">
<tr class=header><td colspan=2 align="center">编辑贴子</td></tr>
<form action="postedit.asp" method=post name="editform">
<input type="hidden" name="id" value="<%=id%>">
<tr>
<td width="21%" bgcolor="#3300FF">标题:</td>
<td bgcolor="#FF0000"><input tabindex="1" maxlength="40" size="25" name=title value="<%=rst("title")%>"></td>
</tr>
<tr>
<td bgcolor="#3333FF">内容:</td>
<td bgcolor="#FFFFFF"><textarea cols="40" rows="10" name="content"><%=rst("content")%></textarea></td>
</tr>
<tr>
<td bgcolor="#3300FF" colspan=2 align="center">
<input type=button class="buttonface" value="修改" onClick="editformcheck()">
<input type="reset" class="buttonface" value="重填">
</td>
</tr>
</form>
</table>
</body>
<%end if%>
</html>
<!--include file="closedb.asp"-->

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -