📄 product_class_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()
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">
<input type="reset" value="重置" name="B2">
</td>
</tr>
</form>
</tbody>
</table>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -