%
course="tcatycoon"
step=1
lev=0
sec=20
mun_su = trim(request("mun_su"))
if mun_su <> "" then
mun_su = cint(mun_su)
end if
correct_su1 = 0
dim PartNum1, PartNum2, PartNum3, PartNum4, PartNum5, PartNum6, PartNum7, PartNum8, PartNum9
DIM muncnt, tmpsound, arr_exp, isAudio
isAudio = false
idir="http://gva.ybmsisa.com/"&course&"/step"&step&"/checkup/"
adir="http://gva.ybmsisa.com/"&course&"/step"&step&"/checkup"
'°ü·ÃµÈ ¹®Á¦ ÃßÃâ
Sql = "Select idx, select_example, select_content from lecture_checkup where intro_idx in (select idx from lecture_intro where course = "&fncdbvalue(course)&" and lev = "&fncdbvalue(lev)&" and step = "&fncdbvalue(step)&" and sec = "&fncdbvalue(sec)&") order by number"
Set chk = Server.CreateObject("ADODB.Recordset")
chk.Open Sql, cybercon, 1
arr_corr_ans = split(total_corr_ans, "/")
arr_user_ans = split(total_user_ans, "/")
%>
"221.142.252" Then
%>
bgproperties=fixed oncontextmenu='return false' ondragstart='return false' onselectstart='return false'
<%
End If
%>bgcolor="#FFFFFF" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<%
'°ü·ÃµÈ ¹®Á¦ ÃßÃâ
If chk.BOF And chk.EOF Then
response.write "¹®Á¦°¡ ÀԷµÇÁö ¾Ê¾Ò½À´Ï´Ù."
Else
chk.MOVEFIRST
a = 0
Do Until chk.EOF
Set mun = server.createobject("ADODB.Recordset")
If chk("select_example") = 1 Then '°´°ü½Ä ¹®Á¦ °¡Á®¿À±â
sql = "select * from lecture_chk_ga where idx = "& fncdbvalue(chk("idx")) &" order by part, num"
mun.open sql, cybercon, 1
part = mun("part")
a = a + 1
Select Case part
case 1
PART1
case 2
PART2
case 3
PART3
case 4
PART4
case 5
PART5
case 6
PART6
case 7
PART7
End Select
End If
mun.close
Set mun = Nothing
chk.movenext
Loop
End IF
chk.close
Set chk = Nothing
cybercon.close
Set cybercon = Nothing
%>
<%
END SUB
SUB MakeAudio(strID, width, height, AutoStart, FileName)
%>
<%
END SUB
SUB PartHeader(partnum)
Select Case part
case 1 : strPART = "I" : case 2 : strPART = "II" : case 3 : strPART = "III" : case 4 : strPART = "IV"
case 5 : strPART = "V" : case 6 : strPART = "VI" : case 7 : strPART = "VII"
End Select
%>
Part <%=strPART%>
<%
END SUB
SUB PART1
explain = mun("explain")
arr_exp = split(explain, "//")
if ubound(arr_exp)>3 then
exp_sound = arr_exp(4)
else
end if
%><%
Sql = "select con_header, sound, start_num, relation_num from lecture_chk_ji where idx in (select idx from lecture_intro where course = "&fncdbvalue(course)&" and lev = "&fncdbvalue(lev)&" and step = "&fncdbvalue(step)&" and sec = "&fncdbvalue(sec)&") and start_num = "& fncdbvalue(mun("num"))
Set chk_ji = cybercon.execute(Sql)
If Not(chk_ji.eof) Then
sound = trim(chk_ji("sound"))
End if
chk_ji.close
SET chk_ji = nothing
if partnum1 <> 99 then
if not isAudio then
CALL MakeAudio("SPlay", 0, 0, "False", adir&"/"&sound)
CALL ChronoAndSound(1)
isAudio = true
end if
CALL PartHeader(1)
muncnt = 0
partnum1 = 99
End If
CALL OXTable(mun("num"), arr_user_ans(mun("num")-1), arr_corr_ans(mun("num")-1))
%>
<%
CALL ExplainTable(mun("explain"))
END SUB
SUB PART2
explain = mun("explain")
arr_exp = split(explain, "//")
if ubound(arr_exp)>3 then
exp_sound = arr_exp(4)
else
end if%>
<%
Sql = "select con_header, sound, start_num, relation_num from lecture_chk_ji where idx in (select idx from lecture_intro where course = "&fncdbvalue(course)&" and lev = "&fncdbvalue(lev)&" and step = "&fncdbvalue(step)&" and sec = "&fncdbvalue(sec)&") and start_num = "& fncdbvalue(mun("num"))
Set chk_ji = cybercon.execute(Sql)
If Not(chk_ji.eof) Then
sound = trim(chk_ji("sound"))
End if
chk_ji.close
SET chk_ji = nothing
if partnum2 <> 99 then
if not isAudio then
CALL MakeAudio("SPlay", 0, 0, "False", adir&"/"&sound)
CALL ChronoAndSound(2)
isAudio = true
end if
CALL PartHeader(2)
muncnt=0
partnum2 = 99
End If
CALL OXTable(mun("num"), arr_user_ans(mun("num")-1), arr_corr_ans(mun("num")-1))
%>
<%
CALL ExplainTable(mun("explain"))
END SUB
'Part3
SUB PART3
explain = mun("explain")
arr_exp = split(explain, "//")
if ubound(arr_exp)>3 then
exp_sound = arr_exp(4)
else
end if
Sql = "select con_header, sound, start_num, relation_num, explain, content from lecture_chk_ji where idx in (select idx from lecture_intro where course = "&fncdbvalue(course)&" and lev = "&fncdbvalue(lev)&" and step = "&fncdbvalue(step)&" and sec = "&fncdbvalue(sec)&") and start_num = "& fncdbvalue(mun("num"))
Set chk_ji = cybercon.execute(Sql)
If Not(chk_ji.eof) Then
sound = trim(chk_ji("sound"))
arr_exp3 = split(chk_ji("explain"),"//")
content = TRIM(chk_ji("content"))
End if
chk_ji.close
SET chk_ji = nothing
if partnum3 <> 99 then
if not isAudio then
CALL MakeAudio("SPlay", 0, 0, "False", adir&"/"&sound)
CALL ChronoAndSound(3)
isAudio = true
end if
CALL PartHeader(3)
CALL Passage("", content, arr_exp3(0), 3)
muncnt=0
partnum3 = 99
End If
CALL OXTable(mun("num"), arr_user_ans(mun("num")-1), arr_corr_ans(mun("num")-1))
%>
<%=mun("num")%>.
<%=trim(mun("content"))%>
(A) <%=trim(mun("exam1"))%>
(B) <%=trim(mun("exam2"))%>
(C) <%=trim(mun("exam3"))%> <%
if trim(mun("exam4"))<>"" then%>
(D) <%response.write trim(mun("exam4"))
end if%>
<%
CALL ExplainTable(mun("explain"))
END SUB
'Part4
SUB PART4
explain = mun("explain")
arr_exp = split(explain, "//")
if ubound(arr_exp)>3 then
exp_sound = arr_exp(4)
else
end if
Sql = "select con_header, sound, start_num, relation_num, explain, content from lecture_chk_ji where idx in (select idx from lecture_intro where course = "&fncdbvalue(course)&" and lev = "&fncdbvalue(lev)&" and step = "&fncdbvalue(step)&" and sec = "&fncdbvalue(sec)&") and start_num = "& fncdbvalue(mun("num"))
Set chk_ji = cybercon.execute(Sql)
If Not(chk_ji.eof) Then
sound = trim(chk_ji("sound"))
content = trim(chk_ji("content"))
arr_exp4 = split(chk_ji("explain"),"//")
End if
chk_ji.close
SET chk_ji = nothing
if partnum4 <> 99 then
if not isAudio then
CALL MakeAudio("SPlay", 0, 0, "False", adir&"/"&sound)
CALL ChronoAndSound(4)
isAudio = true
end if
CALL PartHeader(4)
CALL Passage("", content, arr_exp4(0), 4)
muncnt=0
partnum4 = 99
End If
CALL OXTable(mun("num"), arr_user_ans(mun("num")-1), arr_corr_ans(mun("num")-1))
%>
<%
CALL ExplainTable(mun("explain"))
END SUB
'Part5
SUB PART5
If partnum5 <> 99 Then
muncnt=0
CALL PartHeader(5)
partnum5 = 99
End If
CALL OXTable(mun("num"), arr_user_ans(mun("num")-1), arr_corr_ans(mun("num")-1))
%>
<%
CALL ExplainTable(mun("explain"))
END SUB
SUB PART6
if partnum6 <> 99 then
muncnt=0
CALL PartHeader(6)
partnum6 = 99
End If
Sql = "select con_header, start_num, relation_num from lecture_chk_ji where idx in (select idx from lecture_intro where course = "&fncdbvalue(course)&" and lev = "&fncdbvalue(lev)&" and step = "&fncdbvalue(step)&" and sec = "&fncdbvalue(sec)&") and start_num = "& fncdbvalue(mun("num"))
Set chk_ji = cybercon.execute(Sql)
If Not(chk_ji.eof) Then
%>
<%
CALL ExplainTable(mun("explain"))
END SUB
SUB PART7
if partnum7 <> 99 then
muncnt=0
CALL PartHeader(7)
partnum7 = 99
End If
%>
<%
Sql = "select con_header, content, image, start_num, relation_num, explain from lecture_chk_ji where idx in (select idx from lecture_intro where course = "&fncdbvalue(course)&" and lev = "&fncdbvalue(lev)&" and step = "&fncdbvalue(step)&" and sec = "&fncdbvalue(sec)&") and start_num = "& fncdbvalue(mun("num"))
Set chk_ji = cybercon.execute(Sql)
If Not(chk_ji.eof) Then%>