%'####################################################
'경영지원실에서 증명서 및 공문 출력하는 부분입니다.
'경영지원실만 사용 가능합니다.
'####################################################
%>
<%
Currdate = year(date) & "-" & zeroformat(month(date),2) & "-" & zeroformat(day(date),2)
db_table_name = "문서내용"
title=request("title")
txt_date = request("txt_date")
sel_month = request("sel_month")
if trim(sel_month) = "" then
sel_month = mid(date,1,7)
end if
'문서번호의 년도가 현년도 인것만 보기
query = "select * from " & db_table_name
query = query & " where 문서제목 ='" & title & "' "
query = query & " and 발급일 > '2007-05-12' "
query = query & " and substring(발급일,1,7) = '" & sel_month & "' "
query = query & " and del_yes_no = 'no' order by 문서번호 desc, 발급시각 desc"
adors.open query, adoconn, adopenstatic, adlockreadonly
' Response.Write query &"
"
%>