Files
KIN/inspection/neakeun_work_week_ajax.asp
2025-09-29 17:55:08 +09:00

29 lines
954 B
Plaintext

<%
p_field_date_month = request("p_field_date_month")
Response.CharSet = "EUC-KR" 'ÇѱÛ
Response.AddHeader "Pragma","no-cache"
Response.AddHeader "cache-control", "no-staff"
Response.Expires = -1
Response.Write "<option value="""">ÁÖÂ÷ ¼±ÅÃ</option>"
tmp_date = p_field_date_month + "-01"
tmp_last_day = DateAdd("d", -1, DateAdd("m", 1, tmp_date))
For i=1 To 6
tmp_max_day = DateAdd("d", 7 - weekday(tmp_date), cDate(tmp_date))
If tmp_max_day > tmp_last_day Then
tmp_max_day = tmp_last_day
End If
Response.Write "<option value=""" & tmp_date & "@" & tmp_max_day & """>" & cstr(i) & "ÁÖÂ÷(" & tmp_date & "~" & tmp_max_day & ")</option>"
tmp_date = DateAdd("d", 1, DateAdd("d", 7 - weekday(tmp_date), cDate(tmp_date)))
if tmp_max_day = tmp_last_day then
Exit for
end if
Next
%>