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

📄 help_info_modi.asp

📁 多多网店系统v3.01 完全免费可用版-功能简介: 支持多模板皮肤色切换[8套] 支持按商品特性[推荐商品/特价商品/新品分类]浏览 支持按商品类别浏览 支持单件商品用支付宝交易按钮直接支付订
💻 ASP
字号:
<!--#include file="admin_check.asp"-->
<%dim dbpath
dbpath="../"
%>
<!--#include file="../Conn.asp"-->
<!--#include file="../include/MyRequest.asp"-->
<%
id=my_request("id",1)
if id="" or isnull(id) or IsNumeric(id)=False then
  response.write("<script>alert(""参数错误!"");location.href=""help_info_List.asp"";</script>")
  response.end
end if

Set rs= Server.CreateObject("ADODB.Recordset")
sql="select help_info_title from help_info where id="&id
rs.open sql,conn,1,1
help_info_title	= rs(0)
rs.close
set rs=nothing

action=my_request("action",0)
if action="save" then
    call save()
end if

sub save()
    id				  = my_request("id",1)
    help_info_title   = my_request("help_info_title",0)
    help_info_content = my_request("Content",0)
    ErrMsg=""
    if id="" then
    	FoundErr=True
	    ErrMsg=ErrMsg & "<li>帮助信息ID不能为空!</li>"
    end if
    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 where id="&id
        rs.open sql,conn,1,3
        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">
</head>

<body>

<table cellspacing="1" cellpadding="4" width="100%" class="tableborder">
<tbody class="altbg2">
<form action="Help_Info_Modi.asp" method="post" name="form1" onsubmit="return checkdata();">
<input type="hidden" name="action" value="save">
<input type="hidden" name="id" value="<%=id%>"> 
	<tr>
		<td colspan="2" class="header">帮助信息-编辑</td>
	</tr>
	<tr>
		<td>信息标题:</td>
		<td>
		<input type="text" name="help_info_title" size="40" value="<%=help_info_title%>"></td>
	</tr>
	<tr>
		<td>信息内容:</td>
		<td>
		    <!--#include file="editor/editor.asp"-->
            <script language="javascript">
                document.write ('<iframe src="Help_TxtBox.asp?id=<%=id%>&action=modify" 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;">&nbsp; 
		    <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 + -