<%
d = 0
syoil = datepart("W" ,cdate(tyear &"-"& tmonth &"-01"))
for i = 1 to 42 step 1
if i mod 7 = 1 then
response.write "
"
end if
if syoil <= i then
d = d + 1
end if
if d > 0 and d <= endday then
if cint(d) = day( now() ) and cint(tyear) = year( now() ) and cint(tmonth) = month( now()) then
dtext = ""& d &""
overout = "bgcolor=#60D4D5"
else
dtext = d
overout = "onmouseover='over2(this)' onmouseout='out(this)'"
end if
if i mod 7 = 1 then
response.write "
"& toDay &"
"
elseif i mod 7 = 0 then
response.write "
"& toDay &"
"
else
response.write "
"& toDay &"
"
end if
else
response.write "
"
end if
if i mod 7 = 0 then
response.write "
"
end if
next
%>
<%
Dbcon.close
Set Dbcon = Nothing
Function toDay()
table = "bbs_15" 'Å×À̺í¸í
a_num = "19113837"
DayColor = "#FF9900" 'ÀÏÁ¤µî·ÏµÈ ³¯Â¥ »ö
If Len(tmonth) = 1 Then
tmon = "0" & tmonth
Else
tmon = tmonth
End If
If Len(d) = 1 Then
tday = "0" & dtext
Else
tday = d
End If
toDayInfo = tyear & "-" & tmon & "-" & d
sql = "select b_num, b_subject from "&table&" where b_regdate = '"&toDayInfo&"'"
'response.write sql
Set rs = Dbcon.Execute(sql)
If rs.bof Or rs.eof Then
toDay = dtext
Else
dtext = ""& dtext & ""
Do Until rs.eof
linkUrl = ""
subject = subject &linkUrl & StringToHTML(rs("b_subject"), 20, fale) & " "
rs.movenext
Loop
toDay = "