▶DIAT
- <% Dim strNow If cate2_code = "" Then strNow = strNow & " 전체과정" Else strNow = strNow & " " & print_cateName(2,cate2_code) & "" End If %>

%
response.Cookies("sett_book") = ""
%>
<%
test2code = request("test2code")
'response.write test2code
'response.write test2code
Dim is_type ': is_type = trimReq("is_type")
Dim cate1_code : cate1_code = trimReq("cate1_code")
Dim cate2_code : cate2_code = trimReq("cate2_code")
Dim arrLecture
Sub load()
arrLecture = LectureList(is_type)
End Sub
Function LectureList(is_type)
Dim strSql, rs, addSql, sql_lec, rs_lec, lec_sub_list
sql_lec = " select top 1 lec_sub_list from lecture_organ where site_key = '"& appVendorDB &"' "
if request.ServerVariables("REMOTE_HOST") = "121.186.19.33" then
'response.write "
"& sql_lec
end if
Set rs_lec = conn.execute(sql_lec)
If Not rs_lec.bof And Not rs_lec.eof Then
lec_sub_list = rs_lec("lec_sub_list")
End If
'Response.write appVendorDB
'교제용 수강신청페이지
If appVendorDB = "study_license" then
lec_sub_list = "438,439"
End if
addSql = " Where a.lec_num=d.lec_num "
addSql = addSql & " and a.cate2_code = b.cate2_code "
addSql = addSql & " and a.teacher_id = c.ti_id "
addSql = addSql & " and a.cate1_code = d.cate1_code "
addSql = addSql & " and a.cate2_code = d.cate2_code "
addSql = addSql & " and datediff(day,a.reg_date2,getdate()) <= 0 "
addSql = addSql & " and a.is_del='no' and b.is_del='no' and c.is_del='no' and a.subscribe <> 'no' "
If Len(cate2_code) > 0 Then
addSql = addSql & "AND d.cate2_code = '"& cate2_code &"'"
End if
addSql = addSql & "AND a.cate2_code='05005' "
strSql = "Select "
strSql = strSql & " a.lec_num, a.cate2_code, a.lec_subject, a.lec_period, a.price_normal "
strSql = strSql & " , c.ti_name, a.lec_code, b.cate2_name, a.is_insure, a.return_rate, a.lec_period_day"
strSql = strSql & ", lec_period_month "
strSql = strSql & ", a.college, a.spCollege, a.division, a.grade, a.price_grade, a.subscribe "
strSql = strSql & ", lec_date1, lec_date2 , a.cnt_progress"
strSql = strSql & " , lecMyCnt = (select count(log_num) from mem_study_log where lec_num = a.lec_num and is_del='no' and mem_id = '"& request.Cookies(appvendordb)("member_id") &"') "
strSql = strSql & ", a.content8, a.main_images, a.content4, a.content5, a.content1"
strSql = strSql & " From lecture a, lec_cate2 b, teacher_info c, cate_dir d"
strSql = strSql & addSql
strSql = strSql & " ORDER BY a.college asc, a.spCollege asc "
if request.ServerVariables("REMOTE_HOST") = "121.186.19.33" then
'response.write "
"& strSql
end if
set rs = conn.Execute(strSql)
If Not rs.EOF AND Not rs.BOF Then
LectureList = rs.getrows()
End if
rs.Close()
End Function
Function print_cateName(num, cateCode)
Dim strSql, rs
strSql = "SELECT cate" & num & "_name "
strSql = strSql & " FROM lec_cate" & num
strSql = strSql & " Where is_del='no' AND cate" & num & "_code = '"&cateCode&"' "
'Response.Write strSql
Set rs = conn.Execute(strSql)
If Not rs.BOF AND Not rs.EOF Then
print_cateName=rs(0)
End If
rs.Close()
End Function
Function ImgSubscribe(val)
Dim imgNum
Select Case val
Case "on"
imgNum = 1
Case "oo"
imgNum = 2
Case "no"
imgNum = 3
End Select
ImgSubscribe = ""
End Function
Call load()
%>