<% Dim img_url Dim str, i, j, item_name, item_type Dim item_name1, item_name2, str1, str2 Dim spon_url, album_url , tour_title_url, gr_url, inter_player_url, bigprz_url,honor_url,star_link_url Dim vf_url Dim fso Dim file_url Dim cur_page Dim cont_wid 'ù¹øÂ°Å×À̺í Dim cont_wid01 'µÎ¹øÂ°Å×À̺í Dim cont_wid02 'ÇÏ´ÜÅ×À̺í Dim server_domain Dim cur_file, cur_folder, cur_imsi dim visit_div '¹æ¹® Ä«Å×°í¸® DIM d_info,u_info,q_info,h_url, fp_focus_url, main_url Dim Realtime_url d_info = Request.ServerVariables("HTTP_HOST") u_info = Request.ServerVariables("PATH_INFO") q_info = Request.ServerVariables("QUERY_STRING") h_url = "http://"&d_info&u_info&"?"&q_info if session("level") = "" then session("level") = 10 ''°Ô½ÃÆÇ ±ÇÇÑ... end if 'À̹ÌÁö URL img_url = "http://www.klpga.com/" spon_url = server.MapPath("/")&"\images\sponsor\" album_url = server.MapPath("/")&"\images\tour_album\" tour_title_url = server.MapPath("/")&"\images\tour_logo\" gr_url = server.MapPath("/")&"\images\mc_green\" inter_player_url = server.MapPath("/")&"\images\intr_player\" 'ÇØ¿Ü¼±¼ö bigprz_url = server.MapPath("/")&"\images\bigprz\" '´ë»ó½Ã»ó½Ä url honor_url = server.MapPath("/")&"\images\honor\" '¸í¿¹ÀÇ Àü´ç star_link_url = server.MapPath("/")&"\images\star_link\" '½ºÅ¸¸µÅ© vf_url = server.MapPath("/")&"\images\view_finder\" '¹ÚÁؼ®ÀÇ ºä ÆÄÀδõ fp_focus_url = server.MapPath("/")&"\images\fp_focus\" '½ºÅ¸ Æ÷Ä¿½º main_url = server.MapPath("/")&"\images\main\" '¸ÞÀÎ À̹ÌÁö '¸®¾óŸÀÓ URL 'Realtime_url ="http://www.kospogolf.com/scoreboard/scoreboard.asp" 'Realtime_url ="http://www.cnps.co.kr/data/se.asp" 'Realtime_url ="http://www.kospogolf.com/scoreboard/scoreboard.asp?riIndex=12" 'Realtime_url ="http://www.ahagolf.net/realtimescoreboard/realtimescore.asp" Realtime_url ="http://www.klpga.com/download/realtime/realtime.htm" server_domain="klpga.com" cur_page = Request.ServerVariables("server_name")&Request.ServerVariables("url") cur_imsi = split(cur_page,"/") cur_file = cur_imsi(Ubound(split(cur_page,"/"))) cur_folder = cur_imsi(Ubound(split(cur_page,"/"))-1) 'ù¹øÂ° Å×À̺í width cont_wid="700" 'µÎ¹øÂ° Å×À̺í width cont_wid01="95%" 'ÇÏ´Ü Å×À̺í width cont_wid02="930" Select Case (cur_folder) Case "tour_info" visit_div = "0002" Case "players" visit_div = "0003" Case "fan_plaza" visit_div = "0004" Case "media_center" visit_div = "0005" Case "memberzone" visit_div = "0006" Case "sitemap" visit_div = "0007" Case "about_klpga" visit_div = "0008" Case "board" if request("tb")="b_Code_1" or request("tb")="b_Code_4" or request("tb")="b_Code_5" or request("tb")="b_Code_6" or request("tb")="b_Code_10" or request("tb")="b_Code_7" or request("tb")="b_Code_8" or request("tb")="b_Code_9" then visit_div = "0004" elseif request("tb")="b_Code_11" then visit_div = "0005" elseif request("tb")="b_Code_2" or request("tb")="b_Code_3" then visit_div = "0006" end if case "admin" case "login" visit_div = "0009" case else if cur_file = "index.asp" THEN visit_div = "0001" end if End Select dim temp_sql, temp_cnt, dbCon_tmp Set dbCon_tmp = new DBCLASS if visit_div <> "" then temp_sql = "select cnt from statistic_dir " temp_sql = temp_sql & "where s_date = CONVERT(varchar(10), GETDATE(), 112) and visit_div = '" & visit_div &"' " dbCon_tmp.query(temp_sql) IF not dbCon_tmp.RS.EOF and not dbCon_tmp.RS.BOF Then temp_cnt = dbCon_tmp.RS(0) + 1 else temp_cnt = 1 END if dbCon_tmp.RS.close() if temp_cnt = 1 then temp_sql = "INSERT INTO statistic_dir (s_date, visit_div, cnt) VALUES " temp_sql = temp_sql & "(CONVERT(varchar(10), GETDATE(), 112) " temp_sql = temp_sql & ",'" & visit_div & "' " temp_sql = temp_sql & ", " & temp_cnt & ")" else temp_sql = "update statistic_dir set " temp_sql = temp_sql & " cnt = " & temp_cnt temp_sql = temp_sql & " where s_date = CONVERT(varchar(10), GETDATE(), 112) and visit_div = '" & visit_div &"' " END IF dbCon_tmp.query(temp_sql) end if if session("c_count")<>"ok" then '### Á¢¼ÓÁßÀÎ »ç¶÷ÀÌ ¾Æ´Ï¶ó¸é »õ·Î¿î Á¤º¸¸¦ Ãß°¡ÇÑ´Ù. temp_sql = "INSERT INTO statistic (s_date,s_week,s_user_agent,s_referer) VALUES " temp_sql = temp_sql & "(getdate()" temp_sql = temp_sql & ",'" & weekday(now) & "'" temp_sql = temp_sql & ",'" & Request.ServerVariables("HTTP_USER_AGENT") & "'" temp_sql = temp_sql & ",'" & Request.ServerVariables("HTTP_REFERER") & "')" dbCon_tmp.query(temp_sql) session("c_count")="ok" end if set dbCon_tmp = nothing '-------------------------------------------------------------- '- Name: iif '- Description: IF...THEN else ¹® ª°Ô '- Example: IIF(Request("r_year"),"",Request("r_year")) '³Ñ°Ü¹ÞÀº°ªÀÌ ¾ø´Ù¸é "" else º¯¼ö°ª '------------------------------------------------------------- Function IIF(ByVal i,ByVal j,ByVal k) if i Then iif = j Else iif = k End Function '-------------------------------------------------------------- '- Name: printf '- Description: Response.write + Äɸ®Áö¸®ÅÏ '- Example: printf(º¯¼ö) ->º¯¼ö È­¸éÃâ·Â '------------------------------------------------------------- Function printf(str) Response.write str & vbCrLf End Function Function Check_Word(str) 'DB¿¡ Àμ­Æ® ÇÒ¶§ Ư¼ö¹®ÀÚ Ã³¸® ÇϱâÀ§ÇÑ... str = replace(str, "'", "''") str = replace(str, "/", "") Check_Word = replace(str, "\", "") End Function '³âµµ ¼¿·ºÆ® ¹Ú½º Sub Sel_Year(item_name, str) response.write "" End Sub ' '½ÃÀÛ ³âµµ¸¦ ¼±ÅÃÇÒ¼ö ÀÖ´Â ³âµµ ¼¿·ºÆ® ¹Ú½º Sub Sel_Year2(item_name, str, str1) response.write "" End Sub '¿ù ¼¿·ºÆ® ¹Ú½º Sub Sel_Mon(item_name, str) response.write "" End Sub 'ÀÏ ¼¿·ºÆ® ¹Ú½º Sub Sel_Day(item_name, str) response.write "" End Sub '³¯Â¥ Æ÷¸ä Sub View_Date(str, item_type) if item_type="1" Then '2004/01/01 00:00 ÇüÅ response.write Left(str,4)&"/"&Mid(str,5,2)&"/"&Mid(str,7,2) if Len(str) > 8 Then response.write " "& Mid(str,9,2)&":"&Mid(str,11,2) End if Elseif item_type="2" Then '04/01/01 00:00 ÇüÅ response.write Mid(str,3, 2)&"/"&Mid(str,5,2)&"/"&Mid(str,7,2) if Len(str) > 8 Then response.write " "& Mid(str,9,2)&":"&Mid(str,11,2) End if Elseif item_type="3" Then '04-01-01 00:00 ÇüÅ response.write Mid(str,3, 2)&"-"&Mid(str,5,2)&"-"&Mid(str,7,2) if Len(str) > 8 Then response.write " "& Mid(str,9,2)&":"&Mid(str,11,2) End if Elseif item_type="4" Then '2004.01.01 00:00 ÇüÅ response.write Left(str,4)&"."&Mid(str,5,2)&"."&Mid(str,7,2) if Len(str) > 8 Then response.write " "& Mid(str,9,2)&":"&Mid(str,11,2) End if End if End Sub Sub View_month(str) if str="01" or str="1" Then response.write "Jan" Elseif str="02" or str="2" Then response.write "Feb" Elseif str="03" or str="3" Then response.write "Mar" Elseif str="04" or str="4" Then response.write "Apr" Elseif str="05" or str="5" Then response.write "May" Elseif str="06" or str="6" Then response.write "Jun" Elseif str="07" or str="7" Then response.write "Jul" Elseif str="08" or str="8" Then response.write "Aug" Elseif str="09" or str="9" Then response.write "Sep" Elseif str="10" Then response.write "Oct" Elseif str="11" Then response.write "Nov" Else response.write "Dec" End if End Sub '´ëȸ ¼±Åà Sub Sel_Tour(item_name, str) response.write "" End Sub '´ëȸ ¼±Åà - °¨¼½ ÀÌ¿ë Sub Form_Tour(item_name, str) response.write "" End Sub '´ëȸ ºÐ·ù º¸±â Sub view_tour_div (str) Select Case str Case "DR" response.write "µå¸²Åõ¾î" Case "SN" response.write "½Ã´Ï¾îÅõ¾î" Case "SE" response.write "½ÃµåÀü" Case "TE" response.write "½Ç±âÆò°¡" Case "RE" response.write "KLPGAÅõ¾î" Case "NR" response.write "Á¤±ÔÅõ¾î(¿¹¿Ü)" Case "PO" response.write "ÇÁ·ÎÅ×½ºÆ®" End Select End Sub '´ëȸ ÆË¾÷ Sub View_Tour(str) dbCon2.Cmd() qry= " SELECT Gname FROM schedule Where gid = ? " with dbCon2.DBCmd .CommandText = qry .CommandType = adCmdText .Parameters.Append .CreateParameter("@gid", adVarChar, adParamInput, 5) .Parameters("@gid") = str End With Set dbCon2.RS = dbCon2.DBCmd.Execute response.write ""&dbCon2.RS(0)&"" End Sub '¼±¼ö ÆË¾÷ Sub View_Player(str) dbCon2.Cmd() qry= " SELECT Gname FROM schedule Where gid = ? " with dbCon2.DBCmd .CommandText = qry .CommandType = adCmdText .Parameters.Append .CreateParameter("@gid", adVarChar, adParamInput, 5) .Parameters("@gid") = str End With Set dbCon2.RS = dbCon2.DBCmd.Execute response.write ""&dbCon2.RS(0)&"" End Sub '´ëȸ Àå¼Ò Sub View_Place(str) dbCon2.Cmd() qry=" SELECT distinct b.name_k FROM schedule_detail a, golfcourse b "&_ " WHERE b.code=a.code and b.sid=a.sid and a.gid= ? " with dbCon2.DBCmd .CommandText = qry .CommandType = adCmdText .Parameters.Append .CreateParameter("@gid", adVarChar, adParamInput, 5, str) End With Set dbCon2.RS = dbCon2.DBCmd.Execute response.write dbCon2.RS(0) Set dbCon2.RS = nothing End Sub '´ëȸ ¿ì½Â »ó±Ý Sub Tour_top_prize (str, str1) qry=" select max(prize) from prize_result where gid= ? " dbCon2.Cmd() with dbCon2.DBCmd .commandText = qry .CommandType = adCmdText .Parameters.Append .CreateParameter("@gid", adVarChar, adParamInput, 5, str) End With Set dbCon2.RS = dbCon2.DBCmd.Execute if NOT dbCon2.RS.EOF Then if dbCon2.RS(0) <> "" Then if Trim(str1) ="\" Then response.write money_won(dbCon2.RS(0)) Else response.write str1&" "&formatnumber(dbCon2.RS(0),0) End if End if End if dbCon2.RS.close() Set dbCon2.DBCmd = nothing End Sub '¶ó¿îµå ¼±Åà ¶óµð¿À ¹öư Sub radio_round(item_name, str) response.write " Preview " response.write " 1¶ó¿îµå " response.write " 2¶ó¿îµå " response.write " 3¶ó¿îµå " End Sub '¶ó¿îµå º¸±â Sub view_round(str) if str = "0" Then response.write " Preview" ELSE response.write str&"¶ó¿îµå" End if End Sub '°³Çà Sub view_br(str) response.write replace(str, chr(13), "
") End Sub 'Ư¼ö ¹®ÀÚ Á¦°Å Function view_str(str) view_str = replace(str, "\", "") End Function Function check_char(str) check_char = replace(str, chr(34), """) End Function 'ÆÄÀÏ »èÁ¦ Sub File_DEL(item_name, str) if item_name = "PH" Then file_url = album_url&str Elseif item_name = "SP" Then file_url = spon_url&str Elseif item_name = "VF" Then file_url = vf_url&str End if Set fso = Server.CreateObject("Scripting.FileSystemObject") if fso.FileExists(file_url) Then fso.DeleteFile(file_url) End if Set fso= nothing End Sub '¼±¼ö ¼±Åà Sub Select_player (item_name1, item_name2, str1, str2 ) response.write "" response.write "" response.write "" response.write " " response.write "" End Sub '´ëȸ ÆÄÀÏ Å¸ÀÌÆ² ¿©ºÎ Sub view_tour_title (str, str1) Set fso = Server.CreateObject("Scripting.FileSystemObject") file_url = tour_title_url&str if fso.FileExists(file_url) Then response.write "" Else response.write str1 End if End Sub '´ëȸ ¿ì½ÂÀÚ Sub Tour_winner (str) Dim win_code Dim tot_hit, tot_text qry=" SELECT Top 1 a.pid, b.Name_k, HttotSum, round , b.inYear+b.inMonth,c.Gdatestr, c.Glevel3 , b.refer "&_ " FROM game_totalrank_result a, profile b , schedule c "&_ " WHERE a.pid=b.pid and a.gid=? and rank=1 and a.gid = c.gid and ( c.Glevel3 <>'TE' and c.Glevel3 <> 'PO') order by sort " dbCon2.Cmd() with dbCon2.DBCmd .commandText = qry .CommandType = adCmdText .Parameters.Append .CreateParameter("@gid", adVarChar, adParamInput, 5, str) End With Set dbCon2.RS = dbCon2.DBCmd.Execute if NOT dbCon2.RS.EOF Then response.write ""&replace(dbCon2.RS(1), " ", "") if left(dbCon2.RS(6),2)="RE" Then if Trim(dbCon2.RS(7)) ="AM" Then response.write "(A)" End if End if response.write "" response.write "" End if End Sub '´ëȸ ¿ì½ÂÀÚ ¼ºÀû Sub winner_score (str, str1) Dim win_sum Dim tot_hit, tot_text tot_hit = 0 win_sum = 0 dbCon2.Cmd() qry =" SELECT a.round, a.Httot , a.Httot - b.ptot "&_ " FROM game a, gamebase b "&_ " WHERE a.gid=? and a.pid=? and a.gid = b.gid order by a.round " with dbCon2.DBCmd .commandText = qry .CommandType = adCmdText .Parameters.Append .CreateParameter("@gid", adVarChar, adParamInput, 5, str) .Parameters.Append .CreateParameter("@pid", adVarChar, adParamInput, 5, str1) End With Set dbCon2.RS = dbCon2.DBCmd.Execute Do While NOT dbCon2.RS.EOF tot_hit = tot_hit + dbCon2.RS(2) if dbCon2.RS(0) >1 Then tot_text = tot_text&"-" End if tot_text = tot_text&dbCon2.RS(1) win_sum = win_sum + dbCon2.RS(1) dbCon2.RS.moveNext Loop dbCon2.RS.close() Set dbCon2.DBCmd = nothing response.write win_sum & "("&tot_hit&") "&tot_text End Sub '´ëȸ Á¤º¸ Sub Tour_info (str) dbCon2.Cmd() qry=" select Gname, name_k, codeName , GLevel3 From View_°æ±âÀÏÁ¤Ç¥¹×Àå¼Ò_Detail_WebOpen where gid= ? " with dbCon2.DBCmd .CommandText =qry .CommandType =adCmdText .Parameters.Append .CreateParameter("@gid", adVarChar, adParamInput, 10, str ) End With Set dbCon2.RS = dbCon2.DBCmd.Execute if Not dbCon2.RS.EOF Then GName = dbCon2.RS(0) courseName = dbCon2.RS(1) areaName = dbCon2.RS(2) GLevel3 = dbCon2.RS(3) End if dbCon2.RS.Close() Set dbCon2.DBCmd = nothing ti_tour_log = tour_title_url&"ti_logo_"&gid&".gif" if fso.FileExists(ti_tour_log) Then ti_tour_log= "klpgaÅõ¾îŸÀÌÆ²" Else ti_tour_log= ""&GName&"" End if End Sub '¶ó¿îµåÀÏ ¼±Åà Sub Round_date (str, str1) dbCon2.Cmd() qry=" select distinct roundday From game where gid=? and round=? and Gameck='F' " with dbCon2.DBCmd .CommandText =qry .CommandType =adCmdText .Parameters.Append .CreateParameter("@gid", adVarChar, adParamInput, 10, str ) .Parameters.Append .CreateParameter("@round", adVarChar, adParamInput, 10, str1 ) End With Set dbCon2.RS = dbCon2.DBCmd.Execute if Not dbCon2.RS.EOF Then rounddate = dbCon2.RS(0) End if dbCon2.RS.Close() Set dbCon2.DBCmd = nothing End Sub '°Ô½ÃÆÇ ÆäÀÌ¡ Sub list_paging (totpage, page, url, str) Dim st_page Dim en_page if trim(str) <> "" Then str="&"&str End if if totpage > 1 Then st_page = (int((page-1)/10)*10)+1 if (st_page+10) <= totpage Then en_page = st_page+9 Else en_page = totpage End if response.write ""&chr(10) response.write "
"&chr(10) response.write "" response.write "" response.write "
"&chr(10) if st_page >1 Then response.write "" Else response.write "" End if response.write "ÀÌÀüÈ­»ìÇ¥" Do while st_page <= en_page if Cint(page) = st_page Then response.write "["&st_page&"] " Else response.write ""&st_page&" " End if st_page = st_page+1 Loop response.write "" if st_page < totpage Then response.write "" Else response.write "" End if response.write "´ÙÀ½È­»ìÇ¥
" End if End Sub '°Ô½ÃÆÇ NEW Ç¥½Ã Sub View_New(str) Dim write_day, to_day write_day = left(replace(str,"-",""),8) to_day = replace(formatdatetime(now(), 2),"-","") if write_day = to_day Then response.write "" End if End Sub ' ¼ÒºÐ·ù ÄÚµå¸í °¡Á®¿Ã °æ¿ì Sub getCode_name(code_div, code_no) '´ëºÐ·ù, ¼ÒºÐ·ù ÀÎÀÚ°ª 'code_div ,code_no, div_name, no_name, use_yn, code_order qry= " SELECT no_name from cm_code " qry = qry + " Where code_div + code_no = '" & code_div & code_no &"'" dbCon.query(qry) IF not dbCon.RS.EOF Then response.write dbCon.RS(0) End IF dbCon.Rs.close() End Sub ' select box¸¦ ÀÌ¿ëÇÒ °æ¿ì '´ëºÐ·ù °ª, select box name ³Ö´Â´Ù. Sub getCode_select(as_code, sel_name) Dim qry qry = " select code_no, no_name " qry = qry + " from cm_code " qry = qry + " where code_div = '" & as_code & "' and use_yn = '1' " qry = qry + " order by code_order" dbCon.query(qry) IF not dbCon.RS.EOF Then response.write "" & vbCrLf End IF dbCon.Rs.close() End Sub '-------------------------------------------------------------- '- Name: getCode_select_sel '- Description: ¼±ÅÃµÈ select box¸¦ ÀÌ¿ëÇÒ °æ¿ì '´ëºÐ·ùÄÚµå', ¼±ÅÃÄÚµå, select box name '- Example: getCode_select_sel(´ëºÐ·ùÄÚµå, ¼±ÅÃÄÚµå , "select box name") '------------------------------------------------------------- Sub getCode_select_sel(as_code, as_sel_code , sel_name) Dim qry qry = " select code_no, no_name " qry = qry + " from cm_code " qry = qry + " where code_div = '" & as_code & "' and use_yn = '1' " qry = qry + " order by code_order" dbCon.query(qry) dim code_check_val IF not dbCon.RS.EOF Then response.write "" & vbCrLf End IF DBcon.Rs.close() End Sub '±×¸°°ú ¿À¼Ö±æ »ö±ò Sub green_Color(str) if str="" Then str=1 End if Select Case Cint(str) Case 1 gr_color= "8FCBBB" Case 2 gr_color = "52C5C5" Case 3 gr_color = "8BCE85" Case 4 gr_color = "67CB41" Case 5 gr_color = "74B157" Case 6 gr_color = "7DCBD6" Case 7 gr_color = "53C5E6" Case 8 gr_color = "3B9FDC" Case 9 gr_color = "BF9C3C" Case 10 gr_color = "B89C63" Case 11 gr_color = "C17B4E" Case 12 gr_color = "BE5050" End Select End Sub ' -------------------------------------------------------- ' Function Name : regular_replace ' Description : Á¤±ÔÇ¥Çö½ÄÀ» ÀÌ¿ëÇÑ ´ëÄ¡ ' -------------------------------------------------------- Function eregi_replace(pattern, replace, text) Dim eregObj ' Create regular expression Set eregObj= New RegExp eregObj.Pattern= pattern ' Set Pattern(ÆÐÅÏ ¼³Á¤) eregObj.IgnoreCase = True ' Set Case Insensitivity(´ë¼Ò¹®ÀÚ ±¸ºÐ ¿©ºÎ) eregObj.Global = True ' Set All Replace(Àüü ¹®¼­¿¡¼­ °Ë»ö) eregi_replace = eregObj.Replace(text, replace) ' Replace String End Function Function delete_tag(atcText) ' Tag¸¦ »èÁ¦ÇÑ´Ù. atcText= eregi_replace("]*)>","",atcText) atcText= eregi_replace("(.*)","",atcText) ' atcText= eregi_replace("","",atcText) atcText= eregi_replace("<[/]*(STRONG|FONT|input|select|textarea|base|IMG|img|p|P|BR)[^>]*>","",atcText) atcText= eregi_replace("<[/]*(div|DIV|SPAN|span|layer|body|html|head|meta|form|FORM)[^>]*>","",atcText) atcText= eregi_replace("<(style|script|title|link)(.*)","",atcText) atcText= eregi_replace("<[/]*(script|style|title|xmp)>","",atcText) atcText= eregi_replace("([a-z0-9]*script:)","deny_$1",atcText) atcText= eregi_replace("<(\?|%)","<$1",atcText) atcText= eregi_replace("(\?|%)>","$1>",atcText) ' Tag°¡ Á¦°ÅµÈ ¹®ÀÚ¿­À» ¸®ÅÏÇÑ´Ù. ' atcText = replace(ucase(atcText),"") if ubound(textlst) < 1 then newcont = newcont & textlst(0) else newcont = newcont & textlst(1) end if next if len(newcont) >= str_len Then strip_text = left(newcont, str_len)&"..." Else strip_text = newcont End if End Function '¿øÈ­ ´ÜÀ§·Î µ· °è»ê Function money_won(str) Dim han_won if str > 0 Then if len(str)>= 9 Then if Fix(str/100000000) >0 Then han_won = Fix(str/100000000)&"¾ï" End if End if if len(str) >= 8 Then if Cint(right(str,8)/10000000) >0 Then han_won = han_won&Fix(right(str,8)/10000000)&"õ" End if End if if len(str) >= 7 Then if Cint(right(str,7)/1000000) >0 Then han_won = han_won&Fix(right(str,7)/1000000)&"¹é" End if End if if len(str) >= 6 Then if Cint(right(str,6)/100000) >0 Then han_won = han_won&Fix(right(str,6)/100000)&"½Ê" End if End if if right(str, 8) <> "00000000" Then han_won =han_won&"¸¸" End if money_won =han_won&"¿ø" End if End Function '´ëȸ ÀÏÁ¤ Ç¥½Ã Sub Tour_term(str, str1) Dim s_date, e_date s_date = replace(str, "-", "") e_date = replace(str1, "-", "") response.write replace(str, "-", ".")&" ~ " if left(s_date,4) <> left(e_date,4) Then response.write left(e_date,4)&"." end if if mid(s_date,4,2) <> mid(e_date,4,2) Then response.write mid(e_date,4,2)&"." end if response.write right(e_date,2) End Sub '¿À´Ã ³¯Â¥ Ç¥½Ã Function Today_date Dim yy, mm, dd yy = Year(Date()) mm = Month(Date()) if mm <10 Then mm = "0"&mm End if dd = Day(Date()) if dd < 10 Then dd = "0"&dd End if Today_date = yy&mm&dd End Function '¿µ¹®¿ù Ç¥½Ã Sub Mon_kor_en (mon) Select Case Cint(mon) Case 1 en_mon= "Jan" Case 2 en_mon = "Feb" Case 3 en_mon = "Mar" Case 4 en_mon = "Apr" Case 5 en_mon = "May" Case 6 en_mon = "Jun" Case 7 en_mon = "Jul" Case 8 en_mon = "Aug" Case 9 en_mon = "Sep" Case 10 en_mon = "Oct" Case 11 en_mon = "Nov" Case 12 en_mon = "Dec" End Select response.write en_mon End Sub Sub getCertiNum (flag) Dim max_num Dim CNum dbCon2.Cmd() qry =" SELECT max(md_seq)+ 1 FROM mb_doc WHERE md_flag =? and md_year = Year(getdate()) " With dbCon2.DBCmd .CommandText = qry .CommandType = adCmdText .Parameters.Append .CreateParameter("@md_flag", adVarChar, adParamInput, 5, flag) End with Set dbCon2.RS = dbCon2.DBCmd.Execute If Not dbCon2.RS.EOF Then max_num = dbCon2.RS(0) End if if isnull(max_num) or max_num = "" Then max_num ="001" Else if len(max_num) = 1 Then max_num = "00"&max_num Elseif len(max_num) = 2 Then max_num = "0"&max_num End if End if dbCon2.RS.Close() Set dbCon2.DBCmd = nothing CNum = Year(Date()) if mid(flag,2,1) ="E" Then CNum = "E"&CNum End if CNum = CNum&"-"&mid(flag, 1,1)&max_num response.write CNum End Sub '¹Ìµð¾îÄ«Æä ¼¼¼Ç üŷ if Session("cafe_id") <> "" and session("level") <> 1 and cur_folder <> "media_center" then if left(cur_file,6) <> "media_" then ' session.Abandon end if end if %>