?? zjfl.asp
字號:
<!--#include file="pwd.asp" -->
<!--#include file="tsgl_conn.inc" -->
<%
tmc=request("mc")
tdm=request("dm")
sql="select * from flk where fldm='"&tdm&"' or flmc='"&tmc&"'"
Set RS = Server.CreateObject("ADODB.RecordSet")
RS.Open sql, tsgl_conn
if not rs.eof then
response.write("<font color=""#FF0000"">分類名稱“"&tmc&"”或分類代碼“"&tdm&"”已存在,不能重復(fù)增加!</font>")
%>
<p>
<a href="zjfl0.asp">返回</a><p>
<%
rs.close
set rs=nothing
response.end
end if
sql="insert into flk (flmc,fldm) values ('"&tmc&"','"&tdm&"')"
tsgl_conn.execute(sql)
rs.close
set rs=nothing
%>
<HTML>
<HEAD><TITLE>增加圖書分類</TITLE></HEAD>
<BODY BGCOLOR=#FFFFFF>
<font color="#0000FF">
“<%=tmc%>”(<%=tdm%>)類圖書增加成功!</font><p>
<%
sql="create table "&tdm&" (bh text (7) CONSTRAINT bh PRIMARY KEY,sm text (60),zzm text (8),cbs text (30),cbrq date,dj Currency ,cs short,kcs short,lrjj longtext)"
on error resume next '忽略錯誤繼續(xù)向下執(zhí)行
tsgl_conn.execute(sql)
if err=0 then
response.write("<font color=""#0000FF"">“"&tmc&"”類書目表("&tdm&")建立成功!"&"<p></font>")
else
response.write("<font color=""#FF0000"">“"&tmc&"”類書目表("&tdm&")已存在,不能再建立!"&"<p></font>")
end if
on error goto 0 '恢復(fù)錯誤檢查
%>
<a href="zjfl0.asp">返回</a>
</BODY>
</HTML>
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -