123
<%
Dim Idx : Idx = "8"
Dim strSql, Rs, arrList, k, subcd, grade, orgscore, avgscore, perscore
strSql=" IBIZ_EXAM_GRADE_LIST_SVC "&Idx&""
Set Rs = Con_eclass.query(strSql)
If Not Rs.EOF Then
arrList= Rs.GetRows()
Else
arrList = null
End If
Set Rs = Nothing
' Dim KOR(3,9), MAT1(3,9), MAT2(3,9), ENG(3,9)
Dim str_kor, str_mat1, str_mat2, str_eng
Dim tpl
tpl = "
" & vbcrlf
tpl = tpl & "
ÃÖ°íÁ¡
" & vbcrlf
tpl = tpl & "
@org@
" & vbcrlf
tpl = tpl & "
@avg@
" & vbcrlf
tpl = tpl & "
@per@
" & vbcrlf
tpl = tpl & "
" & vbcrlf
If Not IsNull(arrList) Then
For k=0 To UBound(arrList,2)
subcd = arrList(2, k) '¿µ¿ª
grade = arrList(3, k) 'µî±Þ
orgscore = arrList(4, k) '¿øÁ¡¼ö
avgscore = arrList(5, k) 'Ç¥ÁØÁ¡¼ö
perscore = arrList(6, k) '¹éºÐÀ²
If IsNull(orgscore) Then orgscore = "-"
If IsNull(avgscore) Then avgscore = "-"
If IsNull(perscore) Then perscore = "-"
If orgscore = "" Then orgscore = "-" '¿øÁ¡¼ö
If avgscore = "" Then avgscore = "-" 'Ç¥ÁØÁ¡¼ö
If perscore = "" Then perscore = "-" '¹éºÐÀ²
If subcd = "11" then '¾ð¾î
If grade = "0" then
str_kor = tpl
str_kor = replace(str_kor, "@org@", orgscore)
str_kor = replace(str_kor, "@avg@", avgscore)
str_kor = replace(str_kor, "@per@", perscore)
Else
str_kor = str_kor & "
" & vbcrlf
str_kor = str_kor & "
"& grade &"
" & vbcrlf
str_kor = str_kor & "
"& orgscore &"
" & vbcrlf
str_kor = str_kor & "
"& avgscore &"
" & vbcrlf
str_kor = str_kor & "
"& perscore &"
" & vbcrlf
str_kor = str_kor & "
"
End if
elseIf subcd = "12" then '¼ö¸®(°¡)
If grade = "0" then
str_mat1 = tpl
str_mat1 = replace(str_mat1, "@org@", orgscore)
str_mat1 = replace(str_mat1, "@avg@", avgscore)
str_mat1 = replace(str_mat1, "@per@", perscore)
Else
str_mat1 = str_mat1 & "
" & vbcrlf
str_mat1 = str_mat1 & "
"& grade &"
" & vbcrlf
str_mat1 = str_mat1 & "
"& orgscore &"
" & vbcrlf
str_mat1 = str_mat1 & "
"& avgscore &"
" & vbcrlf
str_mat1 = str_mat1 & "
"& perscore &"
" & vbcrlf
str_mat1 = str_mat1 & "
"
End if
elseIf subcd = "13" then '¼ö¸®(³ª)
If grade = "0" then
str_mat2 = tpl
str_mat2 = replace(str_mat2, "@org@", orgscore)
str_mat2 = replace(str_mat2, "@avg@", avgscore)
str_mat2 = replace(str_mat2, "@per@", perscore)
Else
str_mat2 = str_mat2 & "
" & vbcrlf
str_mat2 = str_mat2 & "
"& grade &"
" & vbcrlf
str_mat2 = str_mat2 & "
"& orgscore &"
" & vbcrlf
str_mat2 = str_mat2 & "
"& avgscore &"
" & vbcrlf
str_mat2 = str_mat2 & "
"& perscore &"
" & vbcrlf
str_mat2 = str_mat2 & "
"
End if
elseIf subcd = "14" then '¿Ü±¹¾î
If grade = "0" then
str_eng = tpl
str_eng = replace(str_eng, "@org@", orgscore)
str_eng = replace(str_eng, "@avg@", avgscore)
str_eng = replace(str_eng, "@per@", perscore)
Else
str_eng = str_eng & "