133 lines
4.0 KiB
Plaintext
133 lines
4.0 KiB
Plaintext
<%
|
|
'if tmp_admin_chk = "1" then
|
|
'Response.Write Request.ServerVariables("PATH_INFO") & "<BR>"
|
|
tmp_path = split(Request.ServerVariables("PATH_INFO"), "/")
|
|
'Response.Write ubound(tmp_path) & "<BR>"
|
|
'Response.Write tmp_path(ubound(tmp_path)) & "<BR>"
|
|
%>
|
|
<script>
|
|
|
|
function rep_work(a, b, c, d)
|
|
{
|
|
//삭제
|
|
if (a == 1)
|
|
{
|
|
//alert(a + "\n" + b);
|
|
if (confirm("삭제하시겠습니까? 삭제한 글은 되살릴 수 없습니다"))
|
|
{
|
|
document.ess.action = "reply_work.asp?work_flag=" + a + "&d_no=" + b + "&target_sn=" + c + "&go_url=" + d;
|
|
//alert("reply_work.asp?d_no=" + b + "&target_sn=" + c + "&go_url=" + d);
|
|
document.ess.submit();
|
|
}
|
|
}
|
|
//저장
|
|
else if (a == 2)
|
|
{
|
|
if (document.ess.reply.value == "")
|
|
{
|
|
alert("내용이 없습니다");
|
|
document.ess.reply.focus();
|
|
return false;
|
|
}
|
|
|
|
var txt = document.ess.reply.value.replace(/\n/g,"<br/>");
|
|
txt = txt.replace(/\&/g,"%26");
|
|
txt = txt.replace(/\"/g,""");
|
|
txt = txt.replace(/\'/g,"'");
|
|
txt = txt.replace(/\+/g,"%2B");
|
|
txt = txt.replace(/\>/g,"%3E");
|
|
txt = txt.replace(/\</g,"%3C");
|
|
txt = txt.replace(/\?/g,"%3F");
|
|
txt = txt.replace(/\\/g,"%5C");
|
|
txt = txt.replace(/\[/g,"%5B");
|
|
txt = txt.replace(/\]/g,"%5D");
|
|
txt = txt.replace(/\//g,"%2F");
|
|
txt = txt.replace(/\%/g,"%25");
|
|
|
|
for (var i=0;i<txt.length;i++)
|
|
{
|
|
var uniCode = txt.charCodeAt(i);
|
|
if(uniCode == 13 && txt.charCodeAt(i+1) == 10){
|
|
txt = txt.replace(txt.charAt(i)+txt.charAt(i+1),"<br>");
|
|
}
|
|
}
|
|
|
|
document.ess.action = "reply_work.asp?work_flag=" + a + "&d_no=" + b + "&target_sn=" + c + "&go_url=" + d + "&modi_reply=" + txt;
|
|
document.ess.submit();
|
|
}
|
|
}
|
|
|
|
</script>
|
|
<%
|
|
if rsc("target91") <> "" then
|
|
if replace(replace(rsc("target91"), " ", ""), "^^", "") <> "" then
|
|
|
|
array_reply = split(rsc("target91"), "^^")
|
|
'Response.Write rsc("target95") & "<BR>"
|
|
%>
|
|
<tr>
|
|
<td colspan="2" style="padding:10 0 0 0">
|
|
<table width="100%" cellpadding="5" cellspacing="0" border="0" style="border-collapse:collapse;">
|
|
<%
|
|
for loop_i = 2 to 6
|
|
if rsc("target9" & loop_i) <> "" then
|
|
|
|
array_tmp = split(array_reply(loop_i - 2), "-")
|
|
%>
|
|
<tr>
|
|
<td width="20%" align="center"><%=array_tmp(0)%>의 코멘트</td>
|
|
<td width="75%" class="tit12">
|
|
<table border="0">
|
|
<tr><td>
|
|
<font class="tahoma"><%=ViewWord(rsc("target9" & loop_i))%></font>
|
|
</td></tr>
|
|
</table>
|
|
</td>
|
|
<td width="5%" class="tit13">
|
|
<%
|
|
if cstr(array_tmp(1)) = cstr(Session("User_Number")) then
|
|
%>
|
|
<table border="0" align="right">
|
|
<tr><td>
|
|
<img src="/images/common/btn_popclose.jpg" align="absmiddle" onClick="rep_work('1','<%=rsc("d_no")%>','<%=loop_i%>','<%=tmp_path(ubound(tmp_path))%>')" style="CURSOR:pointer;">
|
|
</td></tr>
|
|
</table>
|
|
<%
|
|
end if
|
|
%>
|
|
</td>
|
|
</tr>
|
|
<%
|
|
end if
|
|
next
|
|
%>
|
|
</table>
|
|
</td>
|
|
</tr>
|
|
<%
|
|
end if
|
|
end if
|
|
if print_type <> "2" then
|
|
if cstr(Session("User_Number")) = cstr(rsc("d_orders")) AND cstr(rsc("d_order_cnt")) <> "77" AND cstr(rsc("d_order_cnt")) <> "99" then
|
|
%>
|
|
<tr>
|
|
<td colspan="2" style="padding:10 0 0 0">
|
|
<table width="100%" cellpadding="5" cellspacing="0" border="0" style="border-collapse:collapse;">
|
|
<tr>
|
|
<td width="10%" align="center">코멘트 달기</td>
|
|
<td width="90%" >
|
|
<textarea cols="77" rows="3" name="reply"></textarea>
|
|
<img src="/images/board/btn_write.jpg" align="absmiddle" style="CURSOR:pointer;" onClick="rep_work('2','<%=rsc("d_no")%>','<%=rsc("d_order_cnt")%>','<%=tmp_path(ubound(tmp_path))%>')">
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
</tr>
|
|
<%
|
|
end if
|
|
end if
|
|
%>
|
|
|
|
<%
|
|
'end if
|
|
%> |