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

📄 save_edit_product.asp

📁 购物系统时尚版.强大的后台文章编辑器的功能
💻 ASP
字号:
<!--#include file="chk.asp"-->
<!--#include file="db_conn.asp"-->
<!--#include file="../my_lib/my_request.asp"-->
<%
bid=cint(my_request("bid",0))
sid=cint(my_request("sid",0))
p_name=my_request("p_name",0)
p_spec=my_request("p_spec",0)
p_unit=my_request("p_unit",0)
p_nums=cint(my_request("nums",0))
p_cmoney=my_request("p_cmoney",1)
p_mmoney=my_request("p_mmoney",1)
big_pic=my_request("big_pic",0)
small_pic=my_request("small_pic",0)
content=request("content")
flag=my_request("flag",0)
issale=cint(my_request("issale",0))
free_freight=cint(my_request("free_freight",0))
id=my_request("id",1)

if bid="" or sid="" or p_name="" or p_spec="" or p_unit="" or p_nums="" or p_cmoney="" or p_mmoney="" or big_pic="" or small_pic="" or content="" or flag="" or issale="" or id="" then
response.write"<SCRIPT language=JavaScript>alert('信息未填写完整!');"
response.write"javascript:history.go(-1)</SCRIPT>"
response.end
else
sql="select * from yqj_product where id="&id
Set rs= Server.CreateObject("ADODB.Recordset")
rs.open sql,conn,1,3
rs("bid")=bid
rs("sid")=sid
rs("p_name")=p_name
rs("p_spec")=p_spec
rs("p_unit")=p_unit
rs("p_nums")=p_nums
rs("p_cmoney")=p_cmoney
rs("p_mmoney")=p_mmoney
rs("big_pic")=big_pic
rs("small_pic")=small_pic
rs("content")=content
rs("flag")=flag
rs("issale")=issale
rs("free_freight")=free_freight
rs.update
rs.close
set rs=nothing
conn.close
set conn=nothing
end if
response.redirect "manage_product.asp"
%>

⌨️ 快捷键说明

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