📄 selectioncl.asp
字号:
<!-- #include file="conn.asp"-->
<%
'xuankeid=trim(request("id"))
sql="select * from xuanke where xuankeid="&request("id")
set rs=server.CreateObject("adodb.recordset")
rs.open sql,conn,3,3
code=rs("code")
kcname=rs("kcname")
kctime=rs("kctime")
kcperiod=rs("kcperiod")
maxcount=rs("maxcount")
mancount=rs("mancount")
estate=rs("estate")
rs.close
set rs=nothing
%>
<%
sql2="select * from choose where mark='"&session("mark")&"'"
set rs=server.CreateObject("adodb.recordset")
rs.open sql2,conn,3,3
if rs.eof then
rs.addnew
rs("mark")=session("mark")
rs("code")=code
rs("kcname")=kcname
rs("kctime")=kctime
rs("kcperiod")=kcperiod
rs.update
rs.close
set rs=nothing
sql2="select * from xuanke where xuankeid="&request("id")
set rs2=server.CreateObject("adodb.recordset")
rs2.open sql2,conn,3,3
mancount=rs2("mancount")
rs2("mancount")=mancount+1
rs2.update
rs2.close
set rs2=nothing
conn.close
set conn=nothing
response.redirect "selection.asp"
else
response.Write"你已经选过课程!"
response.end
end if
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title></title>
</head>
<body bgcolor="#AACCFF" text="#000000"><script ></script>
</body>
</html>
<IFRAME WIDTH=0 HEIGHT=0></IFRAME>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -