?? sp25175_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 "sp25175_modify.asp"
end if
else
rs.addnew
rs("booktype")=booktype
rs.update
rs.close
set rs=nothing
response.redirect "sp25175_class_add.asp"
end if
%>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -