%
x = "2"
if request("gotopage") <> "" then
tmp_currentpage = request("gotopage")
else
tmp_currentpage = 1
end if
%>
<%
Function ExtractTargetValue(val)
Dim arr, s, p
arr = Split(val, "^//^")
s = arr(0)
p = InStr(s, "^^")
if p > 0 then
ExtractTargetValue = Mid(s, p + 2)
else
ExtractTargetValue = s
end if
End Function
%>
<%
query = "SELECT * "
query = query & "FROM Document a "
query = query & " INNER JOIN 문서내용 b on a.d_no = b.문서번호 "
query = query & "WHERE b.login_p_no <> '" & Session("User_Number") & "' "
query = query & " AND a.d_delok = 'N' "
query = query & " AND a.d_name <> '업무일지' "
query = query & " AND a.d_order_cnt in ('77') "
query = query & " AND (a.d_order1 = '" & Session("User_Number") & "' "
for tmp_i = 2 to 4
query = query & " OR a.d_order" & tmp_i & " = '" & Session("User_Number") & "' "
next
query = query & " OR a.d_order5 = '" & Session("User_Number") & "') "
query = query & "ORDER BY a.d_sn DESC "
Rs.Open query, adoConn, 1
tmp_count = Rs.RecordCount
%>
| 목록결과 : 총 <%=tmp_count%>개의 항목이 있습니다. |
| No. |
문서분류 |
작성일 |
작성자 |
요청 |
<%
if Rs.RecordCount > 0 then
Rs.PageSize = 20
tmp_ok = 1
PageCount = Rs.PageCount
Rs.absolutepage = tmp_Currentpage
tmp_total_record = Rs.RecordCount
tmp_for = Cint(tmp_total_record) - ((Cint(tmp_Currentpage) - 1) * Rs.PageSize)
if Rs.PageSize <= tmp_for then
if Rs.RecordCount <= Rs.PageSize then
tmp_for = Rs.recordcount
else
tmp_for = Rs.PageSize
end if
else
tmp_for = tmp_for
end if
for i = 1 to tmp_for
tmp_txt = "완료"
if Cint(tmp_Currentpage)=1 then
Num=Cint(tmp_total_record)- i+1
else
Num=Cint(tmp_total_record) - ((Cint(tmp_Currentpage) - 1) * Rs.PageSize) - i +1
end if
tmp_flag = mid(Rs("d_no"), 10, 1)
if Rs("d_name") = "직접비" then
tmpstr = Rs("p_sn")
else
tmpstr = Rs("d_no")
end if
if Rs("d_name") = "문화체육비신청서" then
tmp_flag = "o2"
end If
if Rs("d_name") = "면접원수당지출결의서" then
tmp_flag = "t2"
end If
tmp_display_name = Rs("d_name")
if tmp_display_name = "부서비신청서" then
tmp_display_name = "그룹(장)활동비"
end if
if Rs("d_name") = "면접원수당지출결의서" or Rs("d_name") = "내근직수당지출결의서" then
tmp_doc_code = ExtractTargetValue(Rs("target20"))
tmp_doc_desc = ExtractTargetValue(Rs("target21"))
else
tmp_doc_code = Rs("target10")
tmp_doc_desc = Rs("target1")
end if
%>
| <%=Num%> |
','1','<%=x%>','<%=Rs("p_sn") %>')" class="blue"><%=tmp_display_name%>[<%=Rs("d_no")%>] ◆([<%=tmp_doc_code%>] <%=tmp_doc_desc%>) |
<%=Rs("d_write_date")%> |
<%=Rs("login_이름")%> |
처리완료 |
<%
Rs.MoveNext
next
end if
Rs.Close
%>
<%=Pagelist("allow_listall.asp",tmp_currentpage ,tmp_bcolor , "", pagecount, "&b_type=" & b_type)%>
|