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

📄 product_class_add.asp

📁 多多网店系统v3.01 完全免费可用版-功能简介: 支持多模板皮肤色切换[8套] 支持按商品特性[推荐商品/特价商品/新品分类]浏览 支持按商品类别浏览 支持单件商品用支付宝交易按钮直接支付订
💻 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()
    product_class_name=my_request("product_class_name",0)
    
    ErrMsg=""
    if product_class_name="" then
    	FoundErr=True
	    ErrMsg=ErrMsg & "<li>目录名称不能为空!</li>"
    end if
    
    if FoundErr<>True then
        Set rs= Server.CreateObject("ADODB.Recordset")
        sql="select * from product_class"
        rs.open sql,conn,1,3
        rs.addnew
        rs("product_class_name")=product_class_name
        rs.update
        rs.close
        set rs=nothing
        call ok("您已成功添加了一条目录!","product_class_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="Product_Class_Add.asp" method="post" name="form1">
<input type="hidden" name="action" value="save">
    <tr>
		<td colspan="2" class="title">商品类别添加</td>
	</tr>
	<tr>
		<td>类别名称:</td>
		<td><input type="text" name="product_class_name" size="20"></td>
	</tr>
	<tr>
		<td> </td>
		<td><input type="submit" value="提交" name="B1">&nbsp;&nbsp;&nbsp;
			<input type="reset" value="重置" name="B2">
		</td>
	</tr>
</form>
</tbody>
</table>
</body>

</html>

⌨️ 快捷键说明

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