최초커밋
This commit is contained in:
29
inspection/neakeun_work_week_ajax.asp
Normal file
29
inspection/neakeun_work_week_ajax.asp
Normal file
@@ -0,0 +1,29 @@
|
||||
|
||||
<%
|
||||
p_field_date_month = request("p_field_date_month")
|
||||
|
||||
Response.CharSet = "EUC-KR" '<27>ѱ<EFBFBD>
|
||||
Response.AddHeader "Pragma","no-cache"
|
||||
Response.AddHeader "cache-control", "no-staff"
|
||||
Response.Expires = -1
|
||||
|
||||
Response.Write "<option value=""""><3E><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD></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) & "<22><><EFBFBD><EFBFBD>(" & 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
|
||||
%>
|
||||
Reference in New Issue
Block a user