<% '------------------------------------------------------------------------------- 'Template '------------------------------------------------------------------------------- %> <% '------------------------------------------------------------------------------- 'Config '------------------------------------------------------------------------------- Public Sub Config() ' À̺¥Æ® ½ÃÇàÀ¸·Î Àӽ÷ΠÄÚµå »ðÀÔÇÔ. (À̺¥Æ® Ŭ¸¯½Ã °¡ÀԵǾî ÀÖÀ¸¸é Placement Test·Î À̵¿, °¡ÀԾȵǾúÀ¸¸é °¡ÀÔÆäÀÌÁö·Î À̵¿ ' 2010³â4¿ù1ÀÏ ½ÅÁ¤¿Á ÆÀÀå¿äû ' if len(us.gets("webid")) = 0 then ' ' ·Î±×ÀÎÀÌ ¾ÈµÇ¾úÀ¸¸é °¡ÀÔÈ­¸éÀ¸·Î ' response.write "" ' response.end ' end if Page.S = fn.dic("s") Page.Cate = "1050000" End Sub '------------------------------------------------------------------------------- 'Local Function '------------------------------------------------------------------------------- '------------------------------------------------------------------------------- 'Content '------------------------------------------------------------------------------- Public Sub RenderContent() %> <% if US.GETS("WEBID") = "" then%> <%elseif US.GETS("WEBID")<>"" and US.GETS("LECTYPE")<>"MEMBER" then%> <%else%> <% dim courseNm,courseIdx,useridx,ssql set db = new dbclass ssql = " select * from consult_ec " ssql = ssql & " inner join course_apply_info on idx = app2_useridx " ssql = ssql & " left join category on app2_courselevel = cateidx " ssql = ssql & " left join course_info on app2_courseidx = co_idx " ssql = ssql & " where webid ='"&us.gets("WEBID")&"' " ssql = ssql & " and ( app2_State ='A' or app2_State ='R' )" ssql = ssql & " order by app2_sugangDate desc " 'ssql = ssql & " and (app2_LecState='A' or app2_LecState='R') " db.sql = ssql ' db.view() set rs = db.execrs() set db = nothing %>
<% dim TotSuNum, TotAddNum, TotRegNum, TotSugNum1, TotSugNum2, TotStudyNum, TotRegSuNum do until rs.eof TotSuNum = rs("app2_TotSuNum") TotAddNum = rs("app2_TotAddNum") TotRegNum = rs("¿¹¾à") TotSugNum1 = rs("Ãâ¼®") TotSugNum2 = rs("°á¼®") TotStudyNum = TotSuNum + TotAddNum - (TotRegNum + TotSugNum1+TotSugNum2) ' ÀÜ¿© : ÃÑ¿¹¾à°¡´É¼ö - ¼ÒÁø¼ö(Ãâ,°á¼®) - ¿¹¾à¼ö TotRegSuNum = TotSugNum1 + TotSugNum2 ' ¼ÒÁø : Ãâ°á¼® ó¸®µÈ °Í °è %> <% rs.MoveNext : loop%>
Lecture ¼ö°­±â°£ µî·ÏÀÏ »óÅÂ
<% if isNull(rs("CateName")) then response.write rs("co_mark") else response.write fn.courseChgNm(rs("CateName")) end if %> <% if rs("app2_LecState") <> "R" then response.write formatdatetime ( rs("app2_startDate"),2 ) & "~" &formatdatetime ( rs("app2_endDate"),2 ) end if %> <%=formatdatetime ( rs("app2_sugangDate"),2 )%> <% if rs("app2_State") = "A" and rs("app2_LecState")<>"E" and TotRegNum+TotStudyNum>0 then response.write "¼ö°­Áß" elseif rs("app2_State") = "A" and (rs("app2_LecState")="E" or TotRegNum+TotStudyNum=0) then response.write "¼ö°­¿Ï·á" elseif rs("app2_LecState") = "R" then response.write "¹Ì¼ö¾÷" end if %>
<%end if%> <% End Sub %>