📄 editboard.asp
字号:
<!--#include file="conn.asp"-->
<!--#include file="func.asp"-->
<%
logchk session("userid"),session("password")
if session("userid")<>"" and session("password")<>"" and session("manbid")=0 then
method=request.querystring("method")
bid=request.querystring("bid")
if method="new" and bid="" then
ename=""
cname=""
bdinfo=""
end if
if bid<>"" and method="" then
set bidreco=server.createobject("adodb.recordset")
sqlstr="select * from board where bid=" &bid
bidreco.open sqlstr,conn,1,1
if not bidreco.eof then
bid=bidreco("bid")
ename=bidreco("ename")
cname=bidreco("cname")
bdinfo=bidreco("bdinfo")
set bidreco=nothing
set conn=nothing
else
errmsg="修 改 版 面 错 误 !"
errshow(errmsg)
end if
end if
%>
<html>
<head>
<title>版面资料修改</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link rel="stylesheet" type="text/css" href="style.css">
</head>
<body bgcolor="#FFFFFF">
<form method="post" action="saveboard.asp">
<table border="1" cellspacing="0" cellpadding="0" width="600" align="center" height="10" bordercolor="#7C96B8" bordercolordark="#FFFFFF">
<%if bid<>"" and method="" then%>
<tr>
<td width="100">版面编号:</td>
<td width="500"><b><%=bid%></b>
<input type="hidden" name="bid" value=<%=bid%>></td>
</tr>
<%end if%>
<tr>
<td width="100">版面中文名:</td>
<td width="500">
<input type="text" name="cname" size="30" maxlength="30" class=input value="<%=cname%>">
</td>
</tr>
<tr>
<td width="100">版面英文名:</td>
<td width="500">
<input type="text" name="ename" size="30" maxlength="30" class=input value="<%=ename%>">
</td>
</tr>
<tr>
<td width="100">版面简介:</td>
<td width="500">
<textarea name="bdinfo" rows="2" cols="40" class=txtinput><%=bdinfo%></textarea>
</td>
</tr>
<%if method="new" and bid="" then%>
<input type="hidden" name="method" value="new">
<%end if%>
<tr>
<td width="100"> </td>
<td width="500">
<input type="submit" value=" 确定 " name="send" class=buinput>
</td>
</tr>
</table>
</form>
</body>
</htmL>
<%
else
errmsg="您无权修改或增加版面!"
errshow(errmsg)
end if
%>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -