최초커밋
This commit is contained in:
495
ess/doc_consultation_print.asp
Normal file
495
ess/doc_consultation_print.asp
Normal file
@@ -0,0 +1,495 @@
|
||||
<!-- #include virtual = "lib/config.asp" -->
|
||||
<%
|
||||
dim tmpstr
|
||||
dim Query
|
||||
dim i
|
||||
dim user_name(4) '<27><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>,0:<3A><><EFBFBD><EFBFBD><EFBFBD>ڵ<EFBFBD>, 1:<3A≯<EFBFBD>,2:<3A><><EFBFBD><EFBFBD>,3:<3A><>ȭ<EFBFBD><C8AD>ȣ, 4:<3A>μ<EFBFBD><CEBC>ڵ<EFBFBD>(<28><>)
|
||||
dim Max_Width
|
||||
dim title
|
||||
dim target_name '<27>߱<DFB1><DEB4><EFBFBD><EFBFBD><EFBFBD> <20≯<EFBFBD>
|
||||
dim Curr_date '<27><><EFBFBD>ó<EFBFBD>¥
|
||||
dim Company(6)
|
||||
dim Gap(10) '1:<3A><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ <20>ڵ<EFBFBD>, 2:ǰ<>Ǹ<EFBFBD><C7B8><EFBFBD>, 3:<3A><>ǰ<EFBFBD><C7B0><EFBFBD><EFBFBD>, 4:<3A><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>, 5:<3A><><EFBFBD>ް<EFBFBD><DEB0><EFBFBD>, 6:<3A>ΰ<EFBFBD><CEB0><EFBFBD><EFBFBD><EFBFBD>, 7:<3A>Ѿ<EFBFBD>, 8:<3A>ŷ<EFBFBD>ó, 9:<3A><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ<EFBFBD>ڵ<EFBFBD>, 10:ǰ<><C7B0>
|
||||
dim krc_no
|
||||
dim print_type '1:<3A><><EFBFBD><EFBFBD>, 2:<3A><>¥<EFBFBD><C2A5><EFBFBD><EFBFBD>Ʈ
|
||||
dim db_table_name
|
||||
|
||||
d_no = request("d_no")
|
||||
x = request("x")
|
||||
krc_no = d_no
|
||||
print_type = request("print_type")
|
||||
view_chk= request("view_chk")
|
||||
|
||||
db_table_name = "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>"
|
||||
|
||||
title="ǰ <20><> <20><>"
|
||||
Max_Width =750
|
||||
Curr_date = year(date) & "<22><> " & zeroformat(month(date),2) & "<22><> " & zeroformat(day(date),2) & "<22><>"
|
||||
|
||||
|
||||
|
||||
''//==========================================
|
||||
''2010<31><30> 3<><33> 3<><33>
|
||||
'''<27>μ<CEBC><E2BFA9> ǥ<><C7A5>
|
||||
if print_type = "2" then
|
||||
query = "update <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> set print_chk = 'Yes', print_cnt = print_cnt + 1 where <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ='" & d_no & "' "
|
||||
adoConn.Execute query
|
||||
end if
|
||||
|
||||
|
||||
query = "SELECT * "
|
||||
query = query & "FROM <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> as a "
|
||||
query = query & " INNER JOIN Document as b on a.<2E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ = b.d_no "
|
||||
query = query & "WHERE a.<2E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ='" & d_no & "' "
|
||||
|
||||
if x = "99" then
|
||||
else
|
||||
if session("admin_ip") = Request.ServerVariables("remote_host") then
|
||||
else
|
||||
query = query & " AND b.d_delok = 'N' "
|
||||
end if
|
||||
end if
|
||||
|
||||
rsc.Open query, adoConn, 1
|
||||
if rsc.RecordCount > 0 then
|
||||
|
||||
tmp_date = split(rsc("d_write_date"), "-")
|
||||
Curr_date = tmp_date(0) & "<22><> " & tmp_date(1) & "<22><> " & tmp_date(2) & "<22><>"
|
||||
|
||||
tmp_0 = split(rsc("target97"), "^^")
|
||||
user_name(0) = rsc("login_p_no") '<27><><EFBFBD><EFBFBD>
|
||||
user_name(1) = tmp_0(0) '<27≯<EFBFBD>
|
||||
user_name(2) = tmp_0(1) '<27><><EFBFBD><EFBFBD> <20>ڵ<EFBFBD>
|
||||
user_name(3) = tmp_0(2) '<27><><EFBFBD><EFBFBD> <20><>ȭ
|
||||
user_name(4) = tmp_0(3) '<27>μ<EFBFBD><CEBC>ڵ<EFBFBD>
|
||||
|
||||
tmp_00 = split(rsc("target98"), "^^")
|
||||
Company(1) = tmp_00(0)
|
||||
Company(2) = tmp_00(1)
|
||||
Company(3) = tmp_00(2)
|
||||
Company(4) = tmp_00(3)
|
||||
Company(5) = tmp_00(4)
|
||||
Company(6) = tmp_00(5)
|
||||
|
||||
tmp_7 = split(rsc("target99"), "^^")
|
||||
tmp_8 = split(rsc("target100"), "^^")
|
||||
|
||||
if instr(1,tmp_7(0), "<22>ݷ<EFBFBD>") then
|
||||
tmp_txt1 = tmp_7(0)
|
||||
elseif instr(1,tmp_7(0), "<BR>") then
|
||||
tmp_t1 = split(tmp_7(0), "<BR>")
|
||||
tmp_txt1 = "<img src='/images/sign/" & tmp_t1(0) & "_" & tmp_t1(2) & ".jpg' border=0 width=40 height=40>"
|
||||
else
|
||||
tmp_txt1 = tmp_7(0)
|
||||
end if
|
||||
|
||||
if instr(1,tmp_7(1), "<22>ݷ<EFBFBD>") then
|
||||
tmp_txt2 = tmp_7(1)
|
||||
elseif instr(1,tmp_7(1), "<BR>") then
|
||||
tmp_t2 = split(tmp_7(1), "<BR>")
|
||||
tmp_txt2 = "<img src='/images/sign/" & tmp_t2(0) & "_" & tmp_t2(2) & ".jpg' border=0 width=40 height=40>"
|
||||
else
|
||||
tmp_txt2 = tmp_7(1)
|
||||
end if
|
||||
|
||||
if instr(1,tmp_7(2), "<22>ݷ<EFBFBD>") then
|
||||
tmp_txt3 = tmp_7(2)
|
||||
elseif instr(1,tmp_7(2), "<BR>") then
|
||||
tmp_t3 = split(tmp_7(2), "<BR>")
|
||||
tmp_txt3 = "<img src='/images/sign/" & tmp_t3(0) & "_" & tmp_t3(2) & ".jpg' border=0 width=40 height=40>"
|
||||
else
|
||||
tmp_txt3 = tmp_7(2)
|
||||
end if
|
||||
|
||||
if instr(1,tmp_7(3), "<22>ݷ<EFBFBD>") then
|
||||
tmp_txt4 = tmp_7(3)
|
||||
elseif instr(1,tmp_7(3), "<BR>") then
|
||||
tmp_t4 = split(tmp_7(3), "<BR>")
|
||||
tmp_txt4 = "<img src='/images/sign/" & tmp_t4(0) & "_" & tmp_t4(2) & ".jpg' border=0 width=40 height=40>"
|
||||
else
|
||||
tmp_txt4 = tmp_7(3)
|
||||
end if
|
||||
|
||||
if instr(1,tmp_7(4), "<22>ݷ<EFBFBD>") then
|
||||
tmp_txt5 = tmp_7(4)
|
||||
elseif instr(1,tmp_7(4), "<BR>") then
|
||||
tmp_t5 = split(tmp_7(4), "<BR>")
|
||||
tmp_txt5 = "<img src='/images/sign/" & tmp_t5(0) & "_" & tmp_t5(2) & ".jpg' border=0 width=40 height=40>"
|
||||
else
|
||||
tmp_txt5 = tmp_7(4)
|
||||
end if
|
||||
|
||||
if uBound(tmp_7) - Lbound(tmp_7) + 1 > 5 then
|
||||
if instr(1,tmp_7(5), "<22>ݷ<EFBFBD>") then
|
||||
tmp_txt5_1 = tmp_7(5)
|
||||
elseif instr(1,tmp_7(5), "<BR>") then
|
||||
tmp_t5_1 = split(tmp_7(5), "<BR>")
|
||||
tmp_txt5_1 = "<img src='/images/sign/" & tmp_t5_1(0) & "_" & tmp_t5_1(2) & ".jpg' border=0 width=40 height=40>"
|
||||
else
|
||||
tmp_txt5_1 = tmp_7(5)
|
||||
end if
|
||||
else
|
||||
tmp_txt5_1 = ""
|
||||
end if
|
||||
tmp_txt6 = tmp_8(0)
|
||||
tmp_txt7 = tmp_8(1)
|
||||
tmp_txt8 = tmp_8(2)
|
||||
tmp_txt9 = tmp_8(3)
|
||||
tmp_txt10 = tmp_8(4)
|
||||
if uBound(tmp_8) - Lbound(tmp_8) + 1 > 5 then
|
||||
tmp_txt10_1 = tmp_8(5)
|
||||
else
|
||||
tmp_txt10_1 = ""
|
||||
end if
|
||||
|
||||
gap(1) = rsc("target1")
|
||||
gap(2) = rsc("target2")
|
||||
gap(3) = rsc("target3")
|
||||
gap(4) = rsc("target4")
|
||||
gap(5) = rsc("target5")
|
||||
gap(6) = rsc("target6")
|
||||
gap(7) = rsc("target7")
|
||||
gap(8) = rsc("target8")
|
||||
gap(9) = rsc("p_sn")
|
||||
gap(10) = rsc("target9")
|
||||
|
||||
d_order_cnt = int(rsc("d_order_cnt"))
|
||||
|
||||
print_type = request("print_type")
|
||||
|
||||
''<27><><EFBFBD>ڸ<EFBFBD> '-'<27><><EFBFBD><EFBFBD> <20><>,<2C><><EFBFBD><EFBFBD> <20><>ü
|
||||
gap(3) = mid(gap(3),1,4) & "<22><> " & mid(gap(3),6,2) & "<22><> " & mid(gap(3),9,2) & "<22><>"
|
||||
for i=1 to 9
|
||||
if trim(gap(i)) = "" then
|
||||
gap(i) = " "
|
||||
end if
|
||||
next
|
||||
for i=5 to 7
|
||||
if gap(i) = " " then
|
||||
gap(i) = "0"
|
||||
end if
|
||||
next
|
||||
|
||||
|
||||
''<27>α<EFBFBD><CEB1><EFBFBD><EFBFBD><EFBFBD>
|
||||
query = "insert into " & db_table_name & "_log (<28><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ, <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>, <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>_p_no, <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>_<EFBFBD≯<EFBFBD>, <20><><EFBFBD><EFBFBD>,"
|
||||
query = query & " <20>߱<EFBFBD><DFB1><EFBFBD>, <20>߱ð<DEBD>, <20>߱<EFBFBD><DFB1><EFBFBD>_p_no, <20>߱<EFBFBD><DFB1><EFBFBD>_<EFBFBD≯<EFBFBD>, <20>߱<EFBFBD><DFB1><EFBFBD>_ip) values ( "
|
||||
query = query & "'" & krc_no & "', "
|
||||
query = query & "'" & replace(title, " ", "") & "', "
|
||||
query = query & "'" & Session("User_Number") & "', "
|
||||
query = query & "'" & Session("loginuser") & "', "
|
||||
query = query & "'<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>', "
|
||||
query = query & "'" & year(date) & "-" & zeroformat(month(date),2) & "-" & zeroformat(day(date),2) & "', "
|
||||
query = query & "'" & time() & "', "
|
||||
query = query & "'" & user_name(0) & "', "
|
||||
query = query & "'" & user_name(1) & "', "
|
||||
query = query & "'" & Session("USERIP") & "')"
|
||||
|
||||
if Request.ServerVariables("REMOTE_ADDr") = session("admin_ip") then
|
||||
else
|
||||
adoconn.execute query
|
||||
end if
|
||||
|
||||
%>
|
||||
|
||||
<html>
|
||||
<head>
|
||||
<title><%=GNB_TITLE%></title>
|
||||
<link rel="stylesheet" type="text/css" href="/css/basic.css">
|
||||
</head>
|
||||
|
||||
<script language=javascript>
|
||||
function win_close()
|
||||
{
|
||||
window.close();
|
||||
}
|
||||
function win_print()
|
||||
{
|
||||
var txt_name = document.ess.txt_name.value;
|
||||
var txt_prj_name = document.ess.txt_prj_name.value;
|
||||
var txt_pay_target = document.ess.txt_pay_target.value;
|
||||
var txt_date = document.ess.txt_date.value;
|
||||
var txt_date2 = document.ess.txt_date2.value;
|
||||
var txt_pay = document.ess.txt_pay.value;
|
||||
var txt_pay_vat = document.ess.txt_pay_vat.value;
|
||||
var txt_pay_tot = document.ess.txt_pay_tot.value;
|
||||
var txt_client = document.ess.txt_client.value;
|
||||
var txt_p_sn = document.ess.txt_p_sn.value;
|
||||
|
||||
var url = "doc_consultation_print.asp"
|
||||
url = url + "?txt_prj_name=" + txt_prj_name;
|
||||
url = url + "&txt_pay_target=" + txt_pay_target;
|
||||
url = url + "&txt_date=" + txt_date;
|
||||
url = url + "&txt_date2=" + txt_date2;
|
||||
url = url + "&txt_pay=" + txt_pay;
|
||||
url = url + "&txt_pay_vat=" + txt_pay_vat;
|
||||
url = url + "&txt_pay_tot=" + txt_pay_tot;
|
||||
url = url + "&txt_client=" + txt_client;
|
||||
url = url + "&print_type=2";
|
||||
url = url + "&txt_p_sn=" + txt_p_sn;
|
||||
url = url + "&txt_name=" + txt_name;
|
||||
document.ess.action=url;
|
||||
document.ess.submit();
|
||||
}
|
||||
|
||||
|
||||
|
||||
function print_ie()
|
||||
{
|
||||
|
||||
//
|
||||
if(navigator.userAgent.toLowerCase().indexOf('chrome') > -1){ // Chrome Browser Detected?
|
||||
window.PPClose = false; // Clear Close Flag
|
||||
window.onbeforeunload = function(){ // Before Window Close Event
|
||||
if(window.PPClose === false){ // Close not OK?
|
||||
return 'Leaving this page will block the parent window!\nPlease select "Stay on this Page option" and use the\nCancel button instead to close the Print Preview Window.\n';
|
||||
}
|
||||
}
|
||||
window.print(); // Print preview
|
||||
window.PPClose = true; // Set Close Flag to OK.
|
||||
}else{
|
||||
window.print();
|
||||
window.close();
|
||||
}
|
||||
}
|
||||
|
||||
function clsit()
|
||||
{
|
||||
alert('<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>û <20>Ǿ<EFBFBD><C7BE><EFBFBD><EFBFBD>ϴ<EFBFBD>');
|
||||
self.close();
|
||||
}
|
||||
|
||||
function subit(a, b)
|
||||
{
|
||||
var tmp_txt;
|
||||
var approve_pass;
|
||||
|
||||
if (a == 1)
|
||||
{
|
||||
tmp_txt = "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> ";
|
||||
approve_pass = 1;
|
||||
}
|
||||
else
|
||||
{
|
||||
tmp_txt = "";
|
||||
}
|
||||
|
||||
if (confirm(tmp_txt + "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>Ͻðڽ<C3B0><DABD>ϱ<EFBFBD>?"))
|
||||
{
|
||||
document.ess.action = "allow_ok.asp?approve_pass="+approve_pass;
|
||||
document.ess.action = "allow_ok.asp?approve_pass="+approve_pass+"&tmp_pass_psn="+b+"&title="+"<%=replace(title," ","")%>";
|
||||
document.ess.submit();
|
||||
}
|
||||
}
|
||||
|
||||
function backit(a)
|
||||
{
|
||||
alert("<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>ۼ<EFBFBD><DBBC><EFBFBD> <20>ּ<EFBFBD><D6BC><EFBFBD>");
|
||||
var url = "reason.asp?d_no="+a;
|
||||
window.open(url,'','left=0,top=0,width=400,height=180,scrollbars=yes,resizable=yes')
|
||||
}
|
||||
|
||||
//-->
|
||||
|
||||
</script>
|
||||
|
||||
<body topmargin="10" leftmargin="10" <%if cint(print_type) = 2 then%> onLoad="print_ie();" <% end if %>>
|
||||
|
||||
<form method='post' name='ess'>
|
||||
|
||||
<input type="hidden" name="d_no" value="<%=d_no%>">
|
||||
<input type="hidden" name="x" value="<%=x%>">
|
||||
|
||||
<input type=hidden name = "txt_name" value="<%=gap(10)%>">
|
||||
<input type=hidden name = "txt_prj_name" value="<%=gap(1)%>">
|
||||
<input type=hidden name = "txt_pay_target" value="<%=gap(2)%>">
|
||||
<input type=hidden name = "txt_date" value="<%=gap(3)%>">
|
||||
<input type=hidden name = "txt_date2" value="<%=gap(4)%>">
|
||||
<input type=hidden name = "txt_pay" value="<%=gap(5)%>">
|
||||
<input type=hidden name = "txt_pay_vat" value="<%=gap(6)%>">
|
||||
<input type=hidden name = "txt_pay_tot" value="<%=gap(7)%>">
|
||||
<input type=hidden name = "txt_client" value="<%=gap(8)%>">
|
||||
<input type=hidden name = "txt_p_sn" value='<%=gap(9)%>'>
|
||||
|
||||
<%if x = "99" then%>
|
||||
<!-- #include file = "inc_delreason.asp" -->
|
||||
<%end if '''if x = "99" then%>
|
||||
|
||||
<%
|
||||
if cint(print_type) <> 2 and (d_order_cnt = "99" or d_order_cnt = "77") and (tmp_admin_chk = "1" or tmp_request_chk = "1" or int(rsc("login_p_no")) = int(Session("User_Number"))) then
|
||||
%>
|
||||
<!-- #include file = "inc_print.asp" -->
|
||||
<%end if%>
|
||||
|
||||
<table width="100%" cellpadding="0" cellspacing="0" border="0">
|
||||
<tr>
|
||||
<td colspan="2" style="padding:20;">
|
||||
<table cellpadding="0" cellspacing="0" border="0">
|
||||
<tr>
|
||||
<td><img width = "100%" src="/images/approval/docbg_top.jpg"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="710" align="center" style="padding:10;border-left:1px solid #dedede;border-right:1px solid #dedede;">
|
||||
<table width="95%" cellpadding="0" cellspacing="0" border="0">
|
||||
<tr>
|
||||
<td colspan="2" style="padding:0 0 10 0">
|
||||
<table width="100%" cellpadding="0" cellspacing="0" border="0" style="border-collapse:collapse;">
|
||||
<tr>
|
||||
<td width="255"><img src="/images/approval/doc_stit20.jpg"></td>
|
||||
<td>
|
||||
<!-- #include file = "inc_approval.asp" -->
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2" bgcolor="#d8d8d8" height="1"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="20%" style="padding:7 0 7 20"><b><3E><> <3B><> <3B><> ȣ</b></td>
|
||||
<td width="80%" class="tahoma"><%=d_no%></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2" bgcolor="#d8d8d8" height="1"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="20%" style="padding:7 0 7 20"><b><3E><> <3B><> <3B><> <3B><></b></td>
|
||||
<td width="80%" class="tahoma"><%=Curr_date%></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2" bgcolor="#d8d8d8" height="1"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="20%" style="padding:7 0 7 20"><b><3E><> <3B><></b></td>
|
||||
<td width="80%"><%=user_name(1)%></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2" bgcolor="#d8d8d8" height="1"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="20%" style="padding:7 0 7 20"><b><3E><> <3B><></b></td>
|
||||
<td width="80%"><%=user_name(4)%></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2" bgcolor="#d8d8d8" height="1"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="20%" style="padding:7 0 7 20"><b><3E><> <3B><></b></td>
|
||||
<td width="80%"><%=user_name(2)%></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2" bgcolor="#d8d8d8" height="1"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2" align="center" style="padding:10 0 10 0;font-size:14;font-family:dotum;"><b><3E>ϱ<EFBFBD><CFB1><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ(<28><><EFBFBD><EFBFBD>)<29><> <20><><EFBFBD><EFBFBD><EFBFBD>Ͽ<EFBFBD>, ǰ<>Ǹ<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>Ͽ<EFBFBD><CFBF><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>Ͽ<EFBFBD> <20>ֽñ<D6BD> <20>ٶ<EFBFBD><D9B6>ϴ<EFBFBD>.</b></td>
|
||||
</tr>
|
||||
<%
|
||||
'----------------------------------------------------------------------------------------
|
||||
'### <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ<EFBFBD><C6AE><EFBFBD><EFBFBD> <20>ش<EFBFBD><D8B4>ϴ<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>ִٸ<D6B4> <20><>ũ<EFBFBD><C5A9> - 2010<31><30> 1<><31> 26<32><36> <20><><EFBFBD><EFBFBD>
|
||||
'### <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ<EFBFBD><C6AE> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD>ý<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><>ũ <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><> - 2011<31><31> 6<><36> 07<30><37> <20>߰<EFBFBD>
|
||||
tmp_link = ""
|
||||
tmp_p_sn = split(rsc("p_sn"),",")
|
||||
'Response.Write ubound(tmp_p_sn)
|
||||
if ubound(tmp_p_sn) = 0 then
|
||||
end_i = 1
|
||||
tmp_p_sn(0) = rsc("p_sn")
|
||||
else
|
||||
end_i = ubound(tmp_p_sn)
|
||||
end if
|
||||
'Response.Write rsc("p_sn") & "<br>"
|
||||
for i = 0 to end_i - 1
|
||||
query = "SELECT * "
|
||||
query = query & "FROM Document a "
|
||||
query = query & " INNER JOIN <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> b on a.d_no = b.<2E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ "
|
||||
query = query & "WHERE a.d_delok = 'N' "
|
||||
query = query & " AND a.d_name = '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>' "
|
||||
query = query & " AND b.p_sn = '" & tmp_p_sn(i) & "' "
|
||||
'Response.Write query & "<BR>"
|
||||
adoRs.open query, adoConn, 1
|
||||
'Response.Write "adoRs.recordcount : " & adoRs.recordcount & "<BR>"
|
||||
if adoRs.recordcount > 0 then
|
||||
'tmp_link = " - <a href='direct_cost_print.asp?p_sn=" & rsc("p_sn") & "' target='_blank'><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD></a>"
|
||||
tmp_link = tmp_link & "<a href='direct_cost_print.asp?p_sn=" & tmp_p_sn(i) & "' target='_blank' class='blue'><img src='/images/approval/btn_directcost_view.jpg' align='absmiddle' style='CURSOR:pointer;'></a>"
|
||||
else
|
||||
tmp_link = tmp_link & "<font color=blue><b>[<5B><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>]</b></font>"
|
||||
end if
|
||||
adoRs.close
|
||||
next
|
||||
'----------------------------------------------------------------------------------------
|
||||
%>
|
||||
<tr>
|
||||
<td colspan="2" align="center" style="padding:10 0 0 0">
|
||||
<table width="100%" cellpadding="5" cellspacing="0" border="0" style="border-collapse:collapse;">
|
||||
<tr>
|
||||
<td width="20%" class='tit2' align="center"><3E><> <3B><></td>
|
||||
<td width="80%" class='tit7'><font class="tahoma"><%=gap(10)%></font></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="20%" class='tit2' align="center"><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ <20><>(<28><><EFBFBD><EFBFBD>)</td>
|
||||
<td width="80%" class='tit7'><font class="tahoma"><%=gap(1)%>(<%=gap(9)%>) <%=tmp_link%></font></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2" align="center" style="padding:10 0 0 0">
|
||||
<table width="100%" cellpadding="5" cellspacing="0" border="0" style="border-collapse:collapse;">
|
||||
<tr>
|
||||
<td width="20%" class='tit2' align="center">ǰ<>Ǹ<EFBFBD><C7B8><EFBFBD> <20><> <20><>Ÿ<EFBFBD><C5B8><EFBFBD><EFBFBD></td>
|
||||
<td width="80%" class='tit7'><font class="tahoma"><%=ViewWord(gap(2))%></font></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2" align="center" style="padding:10 0 0 0">
|
||||
<table width="100%" cellpadding="5" cellspacing="0" border="0" style="border-collapse:collapse;">
|
||||
<tr>
|
||||
<td width="20%" class='tit2' align="center"><3E><><EFBFBD><EFBFBD><E0BFB9><EFBFBD><EFBFBD><EFBFBD><EFBFBD></td>
|
||||
<td width="30%" class='tit7'><font class="tahoma"><%=gap(3)%></font></td>
|
||||
<td class='tit2' align="center"><3E>ŷ<EFBFBD>ó</td>
|
||||
<td class='tit7' ><font class="tahoma"><%=gap(8)%></font></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class='tit2' align="center"><3E><><EFBFBD>ް<EFBFBD><DEB0><EFBFBD></td>
|
||||
<td class='tit7'><font class="tahoma"><%=gap(5)%> <20><></font></td>
|
||||
<td class='tit2' align="center" rowspan="2"><3E><><EFBFBD><EFBFBD><EFBFBD>Ѿ<EFBFBD></td>
|
||||
<td class='tit7' rowspan="2"><font class="tahoma"><%=gap(7)%> <20><></font></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="20%" class='tit2' align="center"><3E>ΰ<EFBFBD><CEB0><EFBFBD><EFBFBD><EFBFBD></td>
|
||||
<td width="30%" class='tit7'><font class="tahoma"><%=gap(6)%> <20><></font></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<!-- #include file = "inc_reply.asp" -->
|
||||
<tr>
|
||||
<td colspan="2" style="padding:20 0 0 0" align="right">
|
||||
<pre><font class="tahoma"> </font></pre>
|
||||
<pre><font class="tahoma"> </font></pre>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2" align="center" style="padding:15 0 5 0"><!-- #include virtual= "approval/inc_logo.asp" --></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><img width = "100%" src="/images/approval/docbg_btm.jpg"></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
</form>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
<%
|
||||
end if
|
||||
rsc.Close
|
||||
%>
|
||||
Reference in New Issue
Block a user