📄 help_info_add.asp
字号:
<!--#include file="admin_check.asp"-->
<%dim dbpath
dbpath="../"
%>
<!--#include file="../Conn.asp"-->
<!--#include file="../include/MyRequest.asp"-->
<%
action=my_request("action",0)
if action="save" then
call save()
end if
sub save()
help_info_title = my_request("help_info_title",0)
help_info_content = my_request("Content",0)
ErrMsg=""
if help_info_title="" then
FoundErr=True
ErrMsg=ErrMsg & "<li>信息标题不能为空!</li>"
end if
if help_info_content="" then
FoundErr=True
ErrMsg=ErrMsg & "<li>信息内容不能为空!</li>"
end if
if FoundErr<>True then
Set rs= Server.CreateObject("ADODB.Recordset")
sql="select * from help_info"
rs.open sql,conn,1,3
rs.addnew
rs("help_info_title") = help_info_title
rs("help_info_content") = help_info_content
rs.update
rs.close
set rs=nothing
call ok("您已成功添加了一条帮助信息!","help_info_List.asp")
else
call WriteErrMsg(ErrMsg)
end if
end sub
%>
<html>
<head>
<meta http-equiv="Content-Language" content="zh-cn">
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>帮助信息-添加</title>
<link rel="stylesheet" type="text/css" href="style.css">
<script src="Editor/edit.js" type="text/javascript"></script>
</head>
<body>
<table cellspacing="1" cellpadding="4" width="100%" class="tableborder">
<tbody class="altbg2">
<form action="help_info_add.asp" method="post" name="form1" onsubmit="return checkdata();">
<input type="hidden" name="action" value="save">
<tr>
<td colspan="2" class="header">帮助信息-添加</td>
</tr>
<tr>
<td>信息标题:</td>
<td><input type="text" name="help_info_title" size="40"></td>
</tr>
<tr>
<td>信息内容:</td>
<td>
<!--#include file="editor/editor.asp"-->
<script language="javascript">
document.write ('<iframe src="Help_TxtBox.asp" id="message" width="95%" height="400"></iframe>')
frames.message.document.designMode = "On";
</script>
</td>
</tr>
<tr>
<td> </td>
<td>
<input type="submit" value=" 提 交 " name="B1" onclick="document.form1.Content.value = frames.message.document.body.innerHTML;">
<input type="reset" value="重置" name="B2"><input type="hidden" name="Content" value>
</td>
</tr>
</form>
</tbody>
</table>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -