최초커밋

This commit is contained in:
2025-09-29 17:55:08 +09:00
parent 90af30c0d0
commit e39813395a
3334 changed files with 338522 additions and 0 deletions

241
ess/Donfile_folder.asp Normal file
View File

@@ -0,0 +1,241 @@
<!-- #include virtual = "lib/config.asp" -->
<script>
window.resizeTo(400, 450);
</script>
<%
set rsp = server.CreateObject("ADODB.RECORDSET")
set rsf = server.CreateObject("ADODB.RECORDSET")
d_no = request("d_no")
dcode = request("dcode")
'Response.Write d_no & "<BR>"
if dcode = "0" then
tmp_type = "consultation"
end if
Dim RootDir
Dim tmp_folder(50, 50)
tmp_y = right(year(date), 2)
'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
'<27><><EFBFBD><EFBFBD> <20>ٿ<EFBFBD><D9BF>ε<EFBFBD> <20><><EFBFBD>ɿ<EFBFBD><C9BF>θ<EFBFBD> üũ
'tmp_downok<6F><6B> 1<≯<EFBFBD> <20>ٿ<D9BF><EEB0A1> 0<≯<EFBFBD> <20>Ұ<EFBFBD><D2B0><EFBFBD>
tmp_downok = 1
'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
'RootDir = "D:\project_db\data\" & tmp_y & "\consultation\" & d_no & "\"
RootDir = "D:\project_db\data\" & tmp_y & "\Document\" & tmp_type & "\"' & d_no & "\"
tmp_folder_cnt = 1
call getFolder(RootDir, 0, true, true)
'===================================================================
' func : getFolder(<28><><EFBFBD><EFBFBD>, <20><><EFBFBD><EFBFBD>, <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>, <20><><EFBFBD><EFBFBD>)
' param :
' memo :
'===================================================================
function getFolder(sPath, iDepth, bSonFdr, bShowFile)
Dim fso, objFolder
Dim folders, folder
Dim files, file
Dim sSpace
sSpace = ""
for i=0 to iDepth
sSpace = sSpace & ":tab:"
next
'Response.Write sPath & " 1<BR>"
Set fso = CreateObject("Scripting.FileSystemObject")
Set objFolder = fso.GetFolder(sPath)
set fso = nothing
set folders = objFolder.SubFolders
Set files = objFolder.Files
set objFolder = nothing
For Each folder in folders
if instr(1, folder, d_no) then
'Response.Write folder & "<BR>"
'<27>ش<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>
Set fso = CreateObject("Scripting.FileSystemObject")
Set objFolder = fso.GetFolder(sPath & "\" & folder.name)
set fso = nothing
Set hfiles = objFolder.Files
'Response.Write sPath & folder.name & "<BR>"
tmp_folder(tmp_folder_cnt,0) = sPath & folder.name
i = 1
For Each file in hfiles
tmp_folder(tmp_folder_cnt,i) = file.name
i = i + 1
Next
tmp_folder_cnt = tmp_folder_cnt + 1
'++ <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
if bSonFdr then
call getFolder(sPath & folder.name & "\", iDepth+1, bSonFdr, bShowFile)
end if
end if
Next
'++ <20><><EFBFBD>ϵ<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>شٸ<D8B4>
if bShowFile then
For Each file in files
'response.write sSpace& "<font color='#5D5D5D'>[<5B><>]</font>" &file.name & "<br>"& vbCRLF
Next
end if
end function
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ks_c_5601-1987">
<!--meta http-equiv="content-type" content="text/html; charset=euc-kr"-->
<LINK rel="stylesheet" type="text/css" href="/lib/text.css">
<title>
KRI INTRANET
</title>
<script language=javascript>
function clsit() {
self.close();
}
function downit(z,x) {
document.pms.action = 'Dfiledown_folder.asp?DnFilePath=' + z + '&d_no=' + document.pms.d_no.value;
document.pms.submit();
}
function chkit() {
document.pms.action = 'onfile_req.asp';
document.pms.submit();
}
function upit() {
if (document.pms.down_tip.value == '') {
alert('<27><> <20>Է<EFBFBD><D4B7>϶<EFBFBD><CFB6><EFBFBD> <20>ſ<EFBFBD>ȿ~ -0-;;');
document.pms.down_tip.focus();
return false;
}
document.pms.action = 'upcoment_ok.asp';
document.pms.submit();
}
</script>
</head>
<meta http-equiv="refresh" content="300;url=onfile.asp">
<body>
<form name="pms" method="post">
<input type="hidden" value="<%=d_no%>" name="d_no">
<table border="0" cellspacing="0" cellpadding="0" width="350">
<tr>
<td valign="top">
<table border="0" cellspacing="0" cellpadding="0" width="100%">
<tr>
<td align="center"><font color="blue" size="3"><b><%=tmp_name%></b></font>
</td>
</tr>
</table>
<%
tmp_folder_link = ""
'Response.Write tmp_folder(2,0)
for j = 1 to ubound(tmp_folder)
%>
<% if tmp_folder(j,0) <> "" then %>
<table border="0" cellspacing="0" cellpadding="0" width="100%">
<tr>
<td>
<%
tmp_subject_folder = ""
tmp_aa = split(tmp_folder(j,0), "\")
tmp_subject_cnt = left(tmp_aa(ubound(tmp_aa)), 1)
tmp_subject_name = "<BR>" & tmp_aa(ubound(tmp_aa))
tmp_link = tmp_folder(j,0)
%>
<b><%=tmp_subject_name%></b>
<table border="1" cellspacing="0" cellpadding="5" width="100%">
<tr>
<td>
<%
tmp = 0
tmp_folder(j,0) = replace(tmp_folder(j,0),"\","/")
'Response.Write RootDir & "<BR>"
'Response.Write tmp_folder(j,0) & "<BR>"
'Response.Write mid(tmp_folder(j,0), len(RootDir) + 1, len(tmp_folder(j,0)) - len(RootDir)) & "<BR>"
tmp_tmp_folder = mid(tmp_folder(j,0), len(RootDir) + 1, len(tmp_folder(j,0)) - len(RootDir))
'Response.Write tmp_tmp_folder & " " & instr(1, tmp_tmp_folder, "/") & "<BR>"
'------------------------------------------------------
'6<><36> <20><><EFBFBD><EFBFBD><EFBFBD>߿<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>ٿ<EFBFBD><D9BF>ε<EFBFBD> <20>ϰ<EFBFBD><CFB0><EFBFBD> <20><> (<28><><EFBFBD><EFBFBD> <20>ش<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> root<6F><74> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>ؾ<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>, <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>)
'<27><>) 6Man <20><><EFBFBD><EFBFBD> <20>ؿ<EFBFBD> <20><><EFBFBD><EFBFBD> <20>Ӹ<EFBFBD> <20>ƴ϶<C6B4> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>ؾ<EFBFBD> <20><>
'if instr(1, tmp_tmp_folder, "/") then
'
'else
' tmp_folder_link = tmp_folder(j,0)
'end if
'<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
if left(tmp_tmp_folder, 4) = tmp_tmp_folder_base then
else
tmp_folder_link = tmp_folder(j,0)
tmp_tmp_folder_base = left(tmp_tmp_folder, 4)
end if
'------------------------------------------------------
'------------------------------------------------------
'<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>ٿ<EFBFBD><D9BF>ε<EFBFBD> <20>ϰ<EFBFBD><CFB0><EFBFBD> <20><>
'<27>ѱ<EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>ȵdz<C8B5>.. <20><>.<2E><>
'if isnumeric(left(tmp_tmp_folder, 1)) then
' tmp_folder_link = tmp_folder(j,0)
'else
'
'end if
'------------------------------------------------------
'Response.Write j & " " & tmp_folder_link & "<BR>"
for i = 1 to ubound(tmp_folder,2)
if tmp_folder(j,i) <> "" then
if tmp_downok = 1 then
Response.Write "<a href=javascript:downit('" & Server.UrlEncode(tmp_folder_link) & "')>" & tmp_subject_folder & tmp_folder(j,i) & "</a><BR>"
else
Response.Write tmp_subject_folder & tmp_folder(j,i) & "<BR>"
end if
tmp = 1
end if
next
'if tmp = 0 then
'Response.Write "<center><font color='red'><b><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>ϴ<EFBFBD></b></font></center>"
'end if
%>
</td>
</tr>
</table>
</td>
</tr>
</table>
<% end if %>
<%
next
%>
<br>
<table border="0" cellspacing="0" cellpadding="0" width="100%">
<tr>
<td align="center">
<input type="button" value="<22><> <20><>" onclick="clsit()">
</td>
</tr>
</table>
</td>
</tr>
</table>