<% dim command, txtmonth, search_year, search_month, Curr_date dim cnt dim Query dim Last_day command = Request("command") txtmonth = request("txtmonth") if txtmonth = "" then txtmonth = mid(cdate(date),1,7) end if search_year = left(txtmonth, 4) search_month = right(txtmonth, 2) Curr_date = FormatDateTime(date,0) Last_day = Day(DateSerial(search_year, search_month + 1, 0)) ''그달의 마지막 날짜 구하기 if command <> "excel" then %>

내근직 근태현황

<% End If if command = "excel" then Response.ContentType = "application/vnd.ms-excel" Response.AddHeader "Content-Disposition","attachment;filename=" & replace(txtmonth,"-","년") & "월_내근직_근태현황.xls" end if if command <> "excel" then %> <% Dim f_menu : f_menu = "nk" %> <% End If %>
<% if command <> "excel" then %> <% end if %> <% if command <> "" then query = " select * from neakeun_in_out_time " query = query & " where substring(date,1,7) = '" & txtmonth & "'" query = query & " order by date, neakeun_name " 'Response.Write query & "
" adors.open query, adoconn,adopenstatic, adlockreadonly %> <% end if %>
월별 보기 
조회 기간 : <%=txtmonth%>-01 ∼ <%=txtmonth%>-<%=zeroformat(last_day,2)%>
<%do while not adors.EOF %> <% adors.MoveNext loop 'next jj %>
이름 생년월일 날짜 요일 출근시각 퇴근시각
<%=adors("neakeun_name")%> <%=left(adors("neakeun_jumin"), 6)%> <%=adors("date")%> "><%=dayofweek(adors("date"))%> <%=adors("in_time")%> <%=adors("out_time")%>
<%if command <> "excel" then%>
<% end if %>