%
dim Action,BigClassName,SmallClassName,rs,FoundErr,ErrMsg,smBigid,SmallcID,SmallName,SmallClassID
bigclasstable=trim(Request("bigclasstable"))
SmallClasstable=trim(Request("SmallClasstable"))
infotable=trim(Request("infotable"))
Action=trim(Request("Action"))
BigClassName=trim(request("BigClassName"))
SmallClassName=trim(request("SmallClassName"))
SmallName=trim(request("SmallName"))
SmallcID=trim(Request("SmallcID"))
SmallClassID=trim(Request("SmallClassID"))
tableSm="SmallPicSml"
if SmallClassID<>"" then
set rsmall=server.createobject("adodb.recordset")
sql="select * from "&SmallClasstable&" where SmallClassID="&cint(SmallClassID)
rsmall.open sql,conn,1,1
if not rsmall.eof then
smBigid=cstr(rsmall("BigClassName"))
else
response.Write("Operation of the illegal")
response.End()
end if
rsmall.close
set rsmall=nothing
end if
FoundErr=false
if Action="Add" then
if BigClassName="" then
FoundErr=True
ErrMsg=ErrMsg & "
返回列表 |