📄 edit_notice.asp
字号:
<%sub edit_notice()
if userid="" or request("noticeid")="" or session("user")="" then
response.write("<meta HTTP-EQUIV='REFRESH' CONTENT='0;URL=?user="&request("user")&"'")
else
set rs_notice=server.createobject("adodb.recordset")
sql_notice="select id,title,message from notice where id="&request("noticeid")&""
rs_notice.open sql_notice,conn,3,2
if rs_notice.bof and rs_notice.eof then
response.write("<meta HTTP-EQUIV='REFRESH' CONTENT='0;URL=?user="&request("user")&"'")
else
%>
<%tablefirst()%>
<table width=100% border=1 cellspacing=0 cellpadding=2 bordercolorlight=#333333 bordercolordark=#FFFFFF align="center">
<form name=submitok method=POST action=index.asp?action=editok_notice&user=<%=user%>¬iceid=<%=request("noticeid")%> onkeydown="if(event.keyCode==13 && event.ctrlKey)submitok.submit()" >
<tr>
<td align=center valign="top">
<font class=link > <br>
</font>
<table width=100% border=0 cellspacing=0 cellpadding=6 height=103>
<tr>
<td colspan="2" class=link align="center">发 表 公 告</td>
</tr>
<tr>
<td width=24% class=link align="right">公告主题: </td>
<td width=76%>
<input type=text name=title size=46 maxlength=50 class=link value="<%=rs_notice("title")%>">
</td>
</tr>
<tr>
<td width=24% class=link align="right">公告内容:<br>
<%if ubb=1 then%>
支持UBB,<br>
<a href=javascript:openScript('?user=<%=request("user")%>&action=help_ubb',580,400)>UBB帮助</a>!
<%end if%>
<br>
</td>
<td width="76%">
<textarea rows=8 name=message cols=45 class=link wrap="PHYSICAL" title=可以使用Ctrl+Enter直接提交><%=rs_notice("message")%></textarea>
</td>
</tr>
<tr align="center">
<td colspan="2" class=link >
<input type=submit value=编辑完成 class=link name="submit2">
[<font
color=#ff0000>Ctrl+Enter直接提交</font>] </td>
</tr>
</table>
<p> </p>
</td>
</tr>
</form>
</table>
<%tablelast()%>
<%
end if
end if
end sub%>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -