Files
KIN/approval/inc_logo.asp
2025-09-29 17:55:08 +09:00

176 lines
6.7 KiB
Plaintext

<%
Dim lors
Dim loQuery
Dim loi
Dim loj
Set lors = server.CreateObject("ADODB.RECORDSET")
loQuery = ""
'@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
if split(request.servervariables("HTTP_url"), "/")(2) = "approval" then
if IsArray(user_name) = true then
if user_name(4) = "PnC" then
sel_logo="pnc"
end if
end if
if IsArray(target21) = true then
if trim(split(split(target21(1), "^//^")(0), "^^")(1)) = "9999034" then
sel_logo="pnc"
end if
if InStr(1, trim(split(split(target21(1), "^//^")(0), "^^")(1)), "_") > 0 then
loQuery = ""
loQuery = loQuery & " SELECT p_rsch_dept FROM project2.dbo.V_PROJECT_METHOD Where p_child_sn = '" & trim(split(split(target21(1), "^//^")(0), "^^")(1)) & "' "
lors.open loQuery, adoconn,adopenstatic, adlockreadonly
if lors.recordCount > 0 then
if lors("p_rsch_dept") = "34" then
sel_logo="pnc"
end if
end if
lors.close
end if
elseif isArray(gap) = true then
if title <> "부서비신청서" and title <> "출퇴근보고서" then
if UBound(gap) > 8 Then
if trim(gap(9)) <> "" then
if trim(gap(9)) = "9999034" then
sel_logo="pnc"
end if
if InStr(1, trim(gap(9)), "_") > -1 then
loQuery = ""
loQuery = loQuery & " SELECT p_rsch_dept FROM project2.dbo.V_PROJECT_METHOD Where p_child_sn = '" & trim(gap(9)) & "' "
lors.open loQuery, adoconn,adopenstatic, adlockreadonly
if lors.recordCount > 0 then
if lors("p_rsch_dept") = "34" then
sel_logo="pnc"
end if
end if
lors.close
end if
if InStr(1, trim(gap(9)), ",") > -1 then
For loi=0 To uBound(split(trim(gap(9)), ","))
if split(trim(gap(9)), ",")(loi) = "9999034" then
sel_logo="pnc"
end if
Next
end if
end if
end if
end if
end if
if trim(p_child_sn) <> "" then
loQuery = ""
loQuery = loQuery & " SELECT p_rsch_dept FROM project2.dbo.V_PROJECT_METHOD Where p_child_sn = '" & trim(p_child_sn) & "' "
lors.open loQuery, adoconn,adopenstatic, adlockreadonly
if lors.recordCount > 0 then
if lors("p_rsch_dept") = "34" then
sel_logo="pnc"
end if
end if
lors.close
end if
end if
'@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
if split(request.servervariables("HTTP_url"), "/")(2) = "ess" then
if IsArray(user_name) = true then
if user_name(4) = "PnC" then
sel_logo="pnc"
end if
end if
if IsArray(tmp_2) = true then
if tmp_2(0) = "PnC" then
sel_logo="pnc"
end if
end if
if IsArray(gap) = true Then
if title <> "부서비신청서" and title <> "출퇴근보고서" then
if mid(krc_no, 10,1) = "A" then
For loi = 1 To contents_cnt
if trim(gap(loi,1)) = "9999034" then
sel_logo="pnc"
end if
if InStr(1, trim(gap(loi,1)), "_") > -1 then
loQuery = ""
loQuery = loQuery & " SELECT p_rsch_dept FROM project2.dbo.V_PROJECT_METHOD Where p_child_sn = '" & trim(gap(loi,1)) & "' "
lors.open loQuery, adoconn,adopenstatic, adlockreadonly
if lors.recordCount > 0 then
if lors("p_rsch_dept") = "34" then
sel_logo="pnc"
end if
end if
lors.close
end if
if InStr(1, trim(gap(loi,1)), ",") > -1 then
For loj=0 To uBound(split(trim(gap(loi,1)), ","))
if split(trim(gap(loi,1)), ",")(loj) = "9999034" then
sel_logo="pnc"
end if
Next
end if
Next
else
if UBound(gap) >= 9 Then
if InStr(1, trim(gap(9)), ",") > -1 then
For loj=0 To uBound(split(trim(gap(9)), ","))
if split(trim(gap(9)), ",")(loj) = "9999034" then
sel_logo="pnc"
end if
Next
end if
end if
end if
end if
End If
end if
'@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
if split(request.servervariables("HTTP_url"), "/")(2) = "management" then
if IsArray(target_gap) = true then
if uBound(target_gap) > 5 then
if target_gap(5) = "PnC" then
sel_logo="pnc"
end if
else
loQuery = ""
loQuery = loQuery & " SELECT p_depart FROM project2.dbo.PERSON Where p_no = '" & trim(target_gap(0)) & "' "
lors.open loQuery, adoconn,adopenstatic, adlockreadonly
if lors.recordCount > 0 then
if lors("p_depart") = "34" then
sel_logo="pnc"
end if
end if
lors.close
end if
end if
end if
'@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
if split(request.servervariables("HTTP_url"), "/")(2) = "project" then
if tmp_teamname = "PnC" then
sel_logo="pnc"
end if
end if
'@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
if split(request.servervariables("HTTP_url"), "/")(2) = "business" then
if IsArray(user_name) = true then
if user_name(4) = "PnC" then
sel_logo="pnc"
end if
end if
end if
%>
<img src="/images/approval/doc_<%=sel_logo %>_logo.jpg" align="absmiddle">
<%
Set lors = Nothing
%>