20261007 :: 경영문화본부 요청사항 반영

This commit is contained in:
2026-10-07 09:31:50 +09:00
parent b1bdb33a23
commit 88be1142bc
17 changed files with 73 additions and 299 deletions

View File

@@ -32,7 +32,7 @@
dim xadmin : xadmin = request("xadmin") '-- <20><><EFBFBD><EFBFBD>(edit)
dim attachClientIp, attachEditAllowed
attachClientIp = Replace(Replace(Trim(Request.ServerVariables("REMOTE_ADDR")), "10.10.20.", "10.10.13."), "10.10.17.", "10.10.13.")
attachEditAllowed = (attachClientIp = "10.10.13.47" Or attachClientIp = "10.10.13.105" Or attachClientIp = "10.10.13.48" Or attachClientIp = "10.10.13.6" Or attachClientIp = "10.10.13.29")
attachEditAllowed = (attachClientIp = "10.10.13.47" Or attachClientIp = "10.10.13.105" Or attachClientIp = "10.10.13.48" Or attachClientIp = "10.10.13.6" Or attachClientIp = "10.10.13.29" Or attachClientIp = "10.10.13.186")
'response.write "[" & xadmin & "]"
dim pay_type(4)
@@ -888,6 +888,7 @@ if rsc.RecordCount > 0 then
Dim attachFolderPath, attachFolderObj, attachOneFile, attachUs, attachDt, attachIdxPart, attachExt
Dim attachFileMap(20), attachIsImage(20)
Dim imageExtList : imageExtList = "|jpg|jpeg|png|gif|"
Dim attachCacheVersion : attachCacheVersion = CStr(CLng(Timer() * 1000))
attachFolderPath = Server.Mappath("/") & "/Upload/DOC_ATTACH/" & krc_no
If fso.FolderExists(attachFolderPath) Then
Set attachFolderObj = fso.GetFolder(attachFolderPath)
@@ -917,7 +918,7 @@ if rsc.RecordCount > 0 then
If attachIsImage(i) Then
%>
<div class="attach_preview">
<img src="<%="/Upload/DOC_ATTACH/" & krc_no & "/" & attachFileMap(i)%>" />
<img src="<%="/Upload/DOC_ATTACH/" & krc_no & "/" & attachFileMap(i) & "?v=" & attachCacheVersion%>" />
<% If xadmin = "edit" And attachEditAllowed Then %>
<span class="attach_del_btn" data-idx="<%=i%>">&times;</span>
<% End If %>
@@ -926,7 +927,7 @@ if rsc.RecordCount > 0 then
Else
%>
<div class="attach_file_box">
<a href="<%="/Upload/DOC_ATTACH/" & krc_no & "/" & attachFileMap(i)%>" target="_blank" class="attach_file_link">
<a href="<%="/Upload/DOC_ATTACH/" & krc_no & "/" & attachFileMap(i) & "?v=" & attachCacheVersion%>" target="_blank" class="attach_file_link">
<span class="attach_file_ext"><%=Ucase(Mid(attachFileMap(i), InStrRev(attachFileMap(i),".")+1))%></span>
<span class="attach_file_name"><%=attachFileMap(i)%></span>
</a>
@@ -1303,7 +1304,12 @@ if rsc.RecordCount > 0 then
return;
}
var fd = new FormData();
fd.append("attach_file", files[idx]);
var uploadName = "upload";
var dotIdx = files[idx].name.lastIndexOf(".");
if(dotIdx >= 0){
uploadName += files[idx].name.substring(dotIdx).toLowerCase();
}
fd.append("attach_file", files[idx], uploadName);
fd.append("krc_no", "<%=krc_no%>");
$.ajax({
url: "/ess/doc_attach_add.asp",