📄 booktypesave.asp
字号:
<!--#include file="conn.asp"-->
<%
booktype=trim(request.form("booktype"))
booktypeid=trim(request.form("booktypeid"))
set rs=server.createobject("adodb.recordset")
if booktypeid="" then sql="select * from booktype where booktype='"&booktype&"'"
if booktypeid<>"" then sql="select * from booktype where booktypeid="&booktypeid
rs.open sql,db,1,3
if not rs.eof or not rs.bof then
if booktypeid="" then response.write "<script language=javascript>alert('对不起已经有这个分类');history.back(-1)</script>"
if booktypeid<>"" then
rs("booktype")=booktype
rs.update
rs.close
set rs=nothing
response.redirect "2fly_book_class.asp"
end if
else
rs.addnew
rs("booktype")=booktype
rs.update
rs.close
set rs=nothing
response.redirect "2fly_book_class.asp"
end if
%>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -