%
dim mem_id
mem_id = Request.Cookies(appVendorDB)("member_id")
Dim clsCPClient
Dim iRtn, sEncData, sPlainData
Dim sRequestNO, sSiteCode, sSitePassword , sReturnUrl , sErrorUrl, popgubun, customize
SET clsCPClient = SERVER.CREATEOBJECT("CPClient.Kisinfo")
sSiteCode = "BO833" 'NICE로부터 부여받은 사이트 코드
sSitePassword = "7uqWWh0TvKUX" 'NICE로부터 부여받은 사이트 패스워드
sAuthType = "" '없으면 기본 선택화면, M: 핸드폰, C: 카드, X: 공인인증서
popgubun = "N" 'Y : 취소버튼 있음 / N : 취소버튼 없음
customize = "" '없으면 기본 웹페이지 / Mobile : 모바일페이지
'CheckPlus(본인인증) 처리 후, 결과 데이타를 리턴 받기위해 다음예제와 같이 http부터 입력합니다.
sReturnUrl = "/2tSub07/checkplus_success.asp?log_num="&trimReq("log_num")&"&hp_chk=1&mem_id="&mem_id&" " '성공시 이동될 URL
sErrorUrl = "/2tSub07/checkplus_fail.asp" '실패시 이동될 URL
sRequestNO = "REQ0000000001" '요청 번호, 이는 성공/실패후에 같은 값으로 되돌려주게 되므로
'업체에 적절하게 변경하여 쓰거나, 아래와 같이 생성한다.
iRtn = clsCPClient.fnRequestNO(sSiteCode)
IF iRtn = 0 THEN
sRequestNO = clsCPClient.bstrRandomRequestNO
session("REQ_SEQ") = sRequestNO '해킹등의 방지를 위하여 세션을 사용한다면, 세션에 요청번호를 넣는다.
END IF
sPlainData = fnGenPlainData(sRequestNO, sSiteCode, sAuthType, sReturnUrl, sErrorUrl, popgubun, customize)
'실제적인 암호화
iRtn = clsCPClient.fnEncode(sSiteCode, sSitePassword, sPlainData)
IF iRtn = 0 THEN
sEncData = clsCPClient.bstrCipherData
ELSE
RESPONSE.WRITE "요청정보_암호화_오류:" & iRtn & "
"
' -1 : 암호화 시스템 에러입니다.
' -2 : 암호화 처리오류입니다.
' -3 : 암호화 데이터 오류입니다.
' -4 : 입력 데이터 오류입니다.
END IF
Set clsCPClient = Nothing
%>
<%
'**************************************************************************************
'문자열 생성
'**************************************************************************************
Function fnGenPlainData(aRequestNO, aSiteCode, aAuthType, aReturnUrl, aErrorUrl, popgubun, customize)
'입력 파라미터로 plaindata 생성
retPlainData = "7:REQ_SEQ" & fnGetDataLength(aRequestNO) & ":" & aRequestNO & _
"8:SITECODE" & fnGetDataLength(aSiteCode) & ":" & aSiteCode & _
"9:AUTH_TYPE" & fnGetDataLength(aAuthType) & ":" & aAuthType & _
"7:RTN_URL" & fnGetDataLength(aReturnUrl) & ":" & aReturnUrl & _
"7:ERR_URL" & fnGetDataLength(aErrorUrl) & ":" & aErrorUrl & _
"11:POPUP_GUBUN" & fnGetDataLength(popgubun) & ":" & popgubun & _
"9:CUSTOMIZE" & fnGetDataLength(customize) & ":" & customize
fnGenPlainData = retPlainData
End Function
'**************************************************************************************
'입력파라미터의 문자열길이 추출
'**************************************************************************************
Function fnGetDataLength(aData)
Dim iData_len
if (len(aData) > 0) then
for i = 1 to len(aData)
if (ASC(mid(aData,i,1)) < 0) then '한글인경우
iData_len = iData_len + 2
else '한글이아닌경우
iData_len = iData_len + 1
end if
next
else
iData_len = 0
end if
fnGetDataLength = iData_len
End Function
%>
<%
Dim arrRs, arrCha, log_num, PageSize, goPage, objcount, chkTest, arrIp, macIP, TotProgress ,hp_chk
log_num = trimReq("log_num")
hp_chk = trimReq("hp_chk")
If Len(hp_chk) = 0 Then
hp_chk = 0
End if
'response.write log_num
if log_num <> "" then
Response.Cookies("log_num") = log_num
else
log_num = Request.Cookies("log_num")
end If
If len(PageSize) = 0 Then PageSize = 20
goPage = trimReq("goPage")
If len(goPage) = 0 Then goPage = 1
if log_num <> "" then
Response.Cookies("log_num") = log_num
else
log_num = Request.Cookies("log_num")
end if
arrRs = LectureMemberList(Request.Cookies(appVendorDB)("member_id"),"on", log_num, 20, goPage)
arrIp = MemberMACIP()
macIP = Request.Cookies("macIP")
arrCha = LectureList(arrRs(5, 0))
arrSubChapter = ChapterAllList(arrRs(5, 0))
'response.write arrRs(0,0)
'response.write request.Cookies("mobileSD")("licmember_id")
arrSubFile = LectureListened2(Request.Cookies(appVendorDB)("member_id"), arrRs(0, 0))
If IsArray(arrCha) Then
For j = Lbound(arrCha, 2) To Ubound(arrCha, 2)
'response.write trim(arrCha(0, j))&"
"
'response.write Ubound(arrSubChapter, 2)&"
"
If IsArray(arrSubChapter) Then
k = 0
Do While k <= Ubound(arrSubChapter, 2)
'response.write trim(arrCha(0, j))&","&trim(arrSubChapter(0, k))&"
"
If trim(arrCha(0, j)) = trim(arrSubChapter(0, k)) Then
'response.write listen_percent
listen_percent = 0
listen_see = 0
listen_duration = 0
lis_date = ""
icon_img = "n"
sch_time = CInt(Left(arrSubChapter(6, k),2))*60 + CInt(mid(arrSubChapter(6, k), 4, 2))
'response.write sch_time&"
"
If IsArray(arrSubFile) Then
lis_num = 0
For m=0 To UBound(arrSubFile, 2)
'response.write arrCha(0, j) &"="& arrSubFile(0, m)&"
"
'response.write trim(arrSubChapter(2, k)) &"="& Trim(arrSubFile(1,m))&"
"
If arrCha(0, j) = arrSubFile(0, m) And trim(arrSubChapter(2, k))=Trim(arrSubFile(1,m)) Then
'listen_percent = 0
listen_percent = arrSubFile(2, m)
listen_see = arrSubFile(3, m)
listen_duration = arrSubFile(4, m)
lis_date = arrSubFile(5, m)
lis_num = arrSubFile(7, m)
'response.write arrSubFile(2, m)&","&k&"
"
TotProgress = TotProgress + listen_percent
If listen_percent => 100 Then icon_img = "p"
Exit For
End If
Next
End If
End If
'response.write listen_percent&"
"
'response.write TotProgress&"
"
'listen_percent = 0
k = k + 1
Loop
TotCount = k
'response.write TotCount&","&TotProgress&"
"
End If
Next
'response.write TotProgress
TotProgress = round( TotProgress / (TotCount-1) )
End If
'response.write TotProgress
%>
<%If appVendorDB = "korea005_licens" Then%>
<%elseif appVendorDB = "cyber2_license" then%>
<%Else%>
<%End If%>
번호 | 시험유형 | 시험응시조건 | 응시상태 | 점수 | 합격상태 |
---|---|---|---|---|---|
1 | 평가시험 |
<%' If arrRs(65, i) <> "" Then %>
<%' Else %>
출석률 60%이상 <%' End If %> |
<%
Dim teArray(15)
teArray(0) = "기말"
teArray(1) = arrRs(52,i)
teArray(2) = arrRs(35,i)
teArray(3) = arrRs(8,i)
teArray(4) = arrRs(41,i)
teArray(5) = arrRs(42,i)
teArray(6) = arrRs(5,i)
teArray(7) = arrRs(0,i)
teArray(8) = arrRs(49,i)
teArray(9) = arrRs(85,i)
teArray(10) = arrRs(86,i)
teArray(11) = arrRs(97,i)
teArray(12) = arrRs(98,i)
teArray(13) = ""
teArray(14) = arrRs(90,i)
'response.write left(arrRs(42, i),10)
'response.end
%>
<%=TestTake(arrRs(35, i), arrRs(38, i), left(arrRs(41, i),10), left(arrRs(42, i),10), teArray )%> |
<%
'If now() >= DateAdd("d",1,CDate(left(arrRs(42, i),10) & " 15:00:00")) Then%>
<%if TestPoint("기말",arrRs(42,i),arrRs(47, i),1) = 0 Then%>
<%=TestPoint("기말",arrRs(42,i),arrRs(47, i),1) %> <%else%> <%=TestPoint("기말",arrRs(42,i),arrRs(47, i),1) %> <%'if request.ServerVariables("REMOTE_HOST") = "121.186.19.33" or appVendorDB = "kjob_license" or appVendorDB = "met_license" then%> <%=TestMark("기말",arrRs(36,i), arrRs(54,i), arrRs(5,i), left(arrRs(42, i),10), 2)%> <%'end if%> <%end if%> <% 'Else ' response.write "-" 'End If %> |
<% sql_4chk = " select test4cnt_d from lecture where lec_num = '"& arrRs(5, i) &"' " 'Response.write sql_4chk Set rs_4chk = conn.execute(sql_4chk) sql_5chk = " select is_scoring from test2_result where tr_num = '"& arrRs(54, i) &"' " Set rs_5chk = conn.execute(sql_5chk) If Not rs_5chk.EOF AND Not rs_5chk.BOF Then'시험봤냐 안봤냐 If rs_4chk("test4cnt_d") <> 0 then'주관식있냐없냐 is_scoring = rs_5chk("is_scoring") if is_scoring = "on" then'채점했냐 If TestPoint("기말",arrRs(42,i),arrRs(47, i),1) < 60 Then response.write "불합격" ElseIf TestPoint("기말",arrRs(42,i),arrRs(47, i),1) > 59 Then response.write "합격" end if else response.write "주관식 채점중" end if Else If TestPoint("기말",arrRs(42,i),arrRs(47, i),1) < 60 Then response.write "불합격" ElseIf TestPoint("기말",arrRs(42,i),arrRs(47, i),1) > 59 Then response.write "합격" End If End if else response.write "미응시" End If %> |
-관련시험이 없습니다.- |