최초커밋
This commit is contained in:
116
ess/reply_work.asp
Normal file
116
ess/reply_work.asp
Normal file
@@ -0,0 +1,116 @@
|
||||
<!-- #include virtual = "lib/config.asp" -->
|
||||
<%
|
||||
d_no = request("d_no")
|
||||
target_sn = request("target_sn")
|
||||
go_url = request("go_url")
|
||||
work_flag = request("work_flag")
|
||||
reply = request("reply")
|
||||
modi_reply = request("modi_reply")
|
||||
|
||||
modi_reply=replace(modi_reply,"%26","&")
|
||||
modi_reply=replace(modi_reply,"%2B","+")
|
||||
modi_reply=replace(modi_reply,"%3E",">")
|
||||
modi_reply=replace(modi_reply,"%3C","<")
|
||||
modi_reply=replace(modi_reply,"%3F","?")
|
||||
modi_reply=replace(modi_reply,"%5C","\")
|
||||
modi_reply=replace(modi_reply,"%5B","[")
|
||||
modi_reply=replace(modi_reply,"%5D","]")
|
||||
modi_reply=replace(modi_reply,"%2F","/")
|
||||
modi_reply=replace(modi_reply,"%25","%")
|
||||
|
||||
if work_flag = "1" then '<27><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>
|
||||
query = "SELECT * "
|
||||
query = query & "FROM <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> "
|
||||
query = query & "WHERE <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ = '" & d_no & "' "
|
||||
|
||||
rsc.open query, adoConn, 1
|
||||
if rsc.recordcount > 0 then
|
||||
for i = 2 to 6
|
||||
if cint(i) = cint(target_sn) then
|
||||
else
|
||||
if ISNULL(rsc("target9" & i)) OR rsc("target9" & i) = "" then
|
||||
tmp_chk = tmp_chk + 1
|
||||
end if
|
||||
end if
|
||||
next
|
||||
end if
|
||||
rsc.close
|
||||
|
||||
query = "UPDATE <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> "
|
||||
query = query & "SET "
|
||||
if tmp_chk = 4 then
|
||||
query = query & " target91 = null, "
|
||||
end if
|
||||
query = query & " target9" & target_sn & " = null "
|
||||
query = query & "WHERE <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ = '" & d_no & "' "
|
||||
|
||||
adoconn.execute query
|
||||
|
||||
elseif work_flag = "2" then '<27><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>
|
||||
query = "SELECT * "
|
||||
query = query & "FROM <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> "
|
||||
query = query & "WHERE <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ = '" & d_no & "' "
|
||||
|
||||
rsc.open query, adoConn, 1
|
||||
if rsc.recordcount > 0 then
|
||||
target91 = rsc("target91")
|
||||
end if
|
||||
rsc.close
|
||||
|
||||
if target91 = "" OR ISNULL(target91) then
|
||||
for i = 2 to 6
|
||||
if cint(i) = cint(target_sn) then
|
||||
target91 = target91 & Session("loginuser") & "-" & Session("User_Number")
|
||||
else
|
||||
target91 = target91 & " "
|
||||
end if
|
||||
|
||||
if i <> 6 then
|
||||
target91 = target91 & "^^"
|
||||
end if
|
||||
next
|
||||
else
|
||||
array_tmp = split(target91, "^^")
|
||||
array_tmp(target_sn - 2) = Session("loginuser") & "-" & Session("User_Number")
|
||||
|
||||
for i = 0 to UBOUND(array_tmp)
|
||||
if i <> 0 then
|
||||
tmp_target91 = tmp_target91 & "^^"
|
||||
end if
|
||||
tmp_target91 = tmp_target91 & array_tmp(i)
|
||||
next
|
||||
target91 = tmp_target91
|
||||
end if
|
||||
|
||||
query = "UPDATE <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> "
|
||||
query = query & "SET "
|
||||
query = query & " target91 = '" & target91 & "', "
|
||||
query = query & " target9" & target_sn & " = '" & CheckWord(modi_reply) & "' "
|
||||
query = query & "WHERE <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ = '" & d_no & "' "
|
||||
|
||||
adoconn.execute query
|
||||
|
||||
end if
|
||||
%>
|
||||
<html>
|
||||
<head>
|
||||
<title>
|
||||
|
||||
</title>
|
||||
<script language=javascript>
|
||||
function goit(a, b)
|
||||
{
|
||||
alert('ó<><C3B3><EFBFBD>Ǿ<EFBFBD><C7BE><EFBFBD><EFBFBD>ϴ<EFBFBD>');
|
||||
|
||||
document.pms.action = b + "?d_no=" + a;
|
||||
document.pms.submit();
|
||||
}
|
||||
</script>
|
||||
</head>
|
||||
<body onLoad="goit('<%=d_no%>','<%=go_url%>')">
|
||||
<form name="pms" method="post">
|
||||
|
||||
<input type="hidden" name="p_sn" value="<%=p_sn%>">
|
||||
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user