📄 genjs.asp
字号:
<!--#include file="../global/inc/CheckSession.asp"-->
<!--#include file="../global/inc/global.inc.asp"-->
<%
oConn_Start
strSql = "Select * From sm_Class Where ClassType=4 and FatherId=0"
Set oRs = oConn.Execute(strSql)
While Not oRs.Eof
ClassId = oRs("ClassId")
Response.Write("new aClass('"&ClassId&"','"&ClassId&"','"&oRs("ClassName")&"'),<br>")
Set tempORs = oConn.Execute("Select * From sm_Class Where ClassType=4 And FatherId="&ClassId)
While not tempORs.Eof
tempClassId = tempORs("ClassId")
Response.Write("new aClass('"&ClassId&"','"&tempClassId&"','"&tempORs("ClassName")&"'),<br>")
tempORs.MoveNext
Wend
tempORs.Close
Set tempORs = Nothing
oRs.MoveNext
Wend
oRs.Close
Set oRs = Nothing
oConn_Close
%>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -