% '------------------------------------------------------------------------------- '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 %>
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 %> |