최초커밋
This commit is contained in:
434
management/cert_poa_print.asp
Normal file
434
management/cert_poa_print.asp
Normal file
@@ -0,0 +1,434 @@
|
||||
<!-- #include virtual = "lib/config.asp" -->
|
||||
<%
|
||||
dim print_type '1:<3A>ۼ<EFBFBD>, 2:<3A><><EFBFBD><EFBFBD>, 3: <20><>¥ <20><><EFBFBD><EFBFBD>Ʈ
|
||||
print_type = request("print_type")
|
||||
%>
|
||||
<%if cint(print_type) <> 2 then%>
|
||||
<!-- #include file = "../include/top_menu.asp" -->
|
||||
<%end if%>
|
||||
<%'####################################################
|
||||
'0:<3A><> ȭ<><C8AD><EFBFBD><EFBFBD> viewer <20><> <20>μ<EFBFBD><CEBC>ϴ´<CFB4> ȭ<><C8AD><EFBFBD>Դϴ<D4B4>.
|
||||
'1. <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>μ<EFBFBD>
|
||||
'2. <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ B<><42> <20><><EFBFBD><EFBFBD>
|
||||
'3. <20>Ϲݿ<CFB9><DDBF><EFBFBD><EFBFBD><EFBFBD> <20>μ<EFBFBD>
|
||||
'<27>α<CEB1> <20><><EFBFBD><EFBFBD><EFBFBD>ϱ<EFBFBD> -
|
||||
'<27><><EFBFBD>뵵 <20><><EFBFBD><EFBFBD><EFBFBD>ϱ<EFBFBD> -
|
||||
'2006<30><36> 12<31><32> <20><> <20>Ϸ<EFBFBD>
|
||||
'####################################################
|
||||
%>
|
||||
<%
|
||||
|
||||
|
||||
|
||||
Response.Expires = 0
|
||||
'Response.Buffer = false
|
||||
call Time_Check(Session("Login_Check"))
|
||||
|
||||
dim tmpstr
|
||||
dim p_no
|
||||
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 krc_no '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>߱<DFB1>ȣ
|
||||
dim target_name '<27>߱<DFB1><DEB4><EFBFBD><EFBFBD><EFBFBD> <20≯<EFBFBD>
|
||||
dim target_gap(4) '<27>߱<DFB1><DEB4><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><>, 0:<3A><><EFBFBD><EFBFBD><EFBFBD>ڵ<EFBFBD>, 1:<3A≯<EFBFBD>, 2:<3A>ֹι<D6B9>ȣ, 3:<3A><><EFBFBD>ּ<EFBFBD>1,4::<3A><><EFBFBD>ּ<EFBFBD>2
|
||||
dim Curr_date '<27><><EFBFBD>ó<EFBFBD>¥
|
||||
dim Company(6)
|
||||
dim client_name
|
||||
dim gap(4) '<27><><EFBFBD>ӳ<EFBFBD><D3B3><EFBFBD>
|
||||
dim db_table_name
|
||||
|
||||
db_table_name = "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>"
|
||||
|
||||
client_name = request("txt_client")
|
||||
print_type = request("print_type")
|
||||
gap(1) = request("txt_gap_1")
|
||||
gap(2) = request("txt_gap_2")
|
||||
gap(3) = request("txt_gap_3")
|
||||
gap(4) = request("txt_date")
|
||||
if print_type=2 then
|
||||
gap(4) = mid(gap(4),1,4) & "<22><> " & mid(gap(4),6,2) & "<22><> " & mid(gap(4),9,2) & "<22><>"
|
||||
end if
|
||||
|
||||
title="<22><> <20><> <20><>"
|
||||
Max_Width =750
|
||||
Curr_date = year(date) & "<22><> " & month(date) & "<22><> " & day(date) & "<22><>"
|
||||
|
||||
|
||||
''//===============
|
||||
''ȸ<><C8B8> ȸ<><C8B8><EFBFBD><EFBFBD>, <20><><EFBFBD><EFBFBD><EFBFBD>ڵ<EFBFBD><DAB5>Ϲ<EFBFBD>ȣ, <20><>ǥ<EFBFBD>ڸ<EFBFBD>, <20>ּ<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
Query = "select * from company"
|
||||
adoRs.open Query, adoconn,adopenstatic, adlockreadonly
|
||||
Company(1) = adors("com_name")
|
||||
Company(2) = adors("<22><><EFBFBD><EFBFBD><EFBFBD>ڵ<EFBFBD><DAB5>Ϲ<EFBFBD>ȣ")
|
||||
Company(3) = adors("<22><>ǥ<EFBFBD>ڸ<EFBFBD>")
|
||||
Company(4) = adors("<22>ּ<EFBFBD>")
|
||||
Company(5) = adors("<22><><EFBFBD>ε<EFBFBD><CEB5>Ϲ<EFBFBD>ȣ")
|
||||
Company(6) = adors("ȸ<><C8B8><EFBFBD><EFBFBD>ǥ<EFBFBD><C7A5>ȭ<EFBFBD><C8AD>ȣ")
|
||||
adoRs.close
|
||||
|
||||
''///===============
|
||||
''<27>α<EFBFBD><CEB1><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>
|
||||
user_name(0) = Session("User_Number")
|
||||
Query = "SELECT p_name, p_team_name, p_rank_name, p_tel3 FROM project2.dbo.V_Person WHERE p_no = '" & user_name(0) & "'"
|
||||
adoRs.open Query, adoconn,adopenstatic, adlockreadonly
|
||||
user_name(1) = adoRs("p_name") '<27≯<EFBFBD>
|
||||
user_name(2) = adoRs("p_rank_name") '<27><><EFBFBD><EFBFBD> <20>ڵ<EFBFBD>
|
||||
user_name(3) = adoRs("p_tel3") '<27><><EFBFBD><EFBFBD> <20><>ȭ
|
||||
user_name(4) = adoRs("p_team_name") '<27>μ<EFBFBD><CEBC>ڵ<EFBFBD>
|
||||
adoRs.close
|
||||
|
||||
|
||||
''//====================
|
||||
'' '<27><><EFBFBD>ӹ<D3B9><DEB4><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
if print_type=2 or print_type=3 then
|
||||
target_gap(0) = request("p_no")
|
||||
else
|
||||
target_gap(0) = request("sel_p_no_in")
|
||||
end if
|
||||
Query = "select * from person where p_no ='" & target_gap(0) & "'"
|
||||
adoRs.open Query, adoconn,adopenstatic, adlockreadonly
|
||||
target_gap(1) = adoRs("p_name")
|
||||
target_gap(2) = adoRs("jumin")
|
||||
target_gap(2) = left(decode(target_gap(2), 0),8) + "******"
|
||||
target_gap(3) = adoRs("address1_1")
|
||||
target_gap(4) = adoRs("address1_2")
|
||||
adoRs.close
|
||||
|
||||
|
||||
if print_type =3 then '<27><>¥ <20><><EFBFBD><EFBFBD>Ʈ<EFBFBD≯<EFBFBD> <20>α<EFBFBD><CEB1><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ϱ<EFBFBD>
|
||||
'//========================
|
||||
''<27>α<EFBFBD><CEB1><EFBFBD><EFBFBD><EFBFBD>
|
||||
'<27><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>ΰ<EFBFBD><CEB0><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ <20><><EFBFBD><EFBFBD>
|
||||
''///===============
|
||||
''<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ <20><><EFBFBD><EFBFBD>
|
||||
Query = "select <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ as krc_no from " & db_table_name
|
||||
query = query & " where <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> = '" & replace(title, " ", "") & "' "
|
||||
query = query & " and substring(<28><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ,5,4) = '" & year(date) & "' "
|
||||
query = query & " order by <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ"
|
||||
adoRs.open Query, adoconn,adopenstatic, adlockreadonly
|
||||
if adoRs.recordcount <= 0 then
|
||||
krc_no = 0
|
||||
else
|
||||
adoRs.movelast
|
||||
tmpstr = split(trim(adoRs("krc_no")),"-")
|
||||
krc_no = tmpstr(3)
|
||||
end if
|
||||
adoRs.close
|
||||
krc_no = int(krc_no) + 1
|
||||
tmpstr = "KRC-" & year(date) & "-"
|
||||
tmpstr = tmpstr & "B-"
|
||||
krc_no = tmpstr & ZeroFormat(krc_no,5)
|
||||
|
||||
'//========================
|
||||
'<27><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>ϱ<EFBFBD>
|
||||
query = "insert into " & db_table_name & " (<28><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ, <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>,target1, target2, target3, target4, target5, target6, target7, target8, target9,target10,"
|
||||
query = query & " <20>߱<EFBFBD><DFB1><EFBFBD>, <20>߱ð<DEBD>, login_p_no, login_<6E≯<EFBFBD>,login_ip) values ( "
|
||||
query = query & "'" & krc_no & "', "
|
||||
query = query & "'" & replace(title, " ", "") & "', "
|
||||
query = query & "'" & target_gap(0) & "', "
|
||||
query = query & "'" & target_gap(1) & "', "
|
||||
query = query & "'" & target_gap(2) & "', "
|
||||
query = query & "'" & target_gap(3) & "', "
|
||||
query = query & "'" & target_gap(4) & "', "
|
||||
query = query & "'" & client_name & "', "
|
||||
query = query & "'" & gap(1) & "', "
|
||||
query = query & "'" & gap(2) & "', "
|
||||
query = query & "'" & gap(3) & "', "
|
||||
query = query & "'" & gap(4) & "', "
|
||||
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") & "') "
|
||||
' Response.Write query & "<br>"
|
||||
' if session("loginuser") = "<22><>ȫ<EFBFBD><C8AB>" or session("loginuser") = "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>" then
|
||||
if session("loginuser") = "<22><>ȫ<EFBFBD><C8AB>" then
|
||||
else
|
||||
adoconn.execute query
|
||||
end if
|
||||
|
||||
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 & "'" & user_name(0) & "', "
|
||||
query = query & "'" & user_name(1) & "', "
|
||||
query = query & "'" & client_name & "', "
|
||||
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 session("loginuser") = "<22><>ȫ<EFBFBD><C8AB>" or session("loginuser") = "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>" then
|
||||
if session("loginuser") = "<22><>ȫ<EFBFBD><C8AB>" then
|
||||
else
|
||||
adoconn.execute query
|
||||
end if
|
||||
end if
|
||||
%>
|
||||
<%if cint(print_type) = 2 then%>
|
||||
<body onload="print_ie();">
|
||||
<%end if%>
|
||||
|
||||
<form method='post' name='frm_Uiim'>
|
||||
<td width="100%" valign="top">
|
||||
<table width="100%" cellpadding="0" cellspacing="0" border="0">
|
||||
<%if cint(print_type) <> 2 then%>
|
||||
<tr>
|
||||
<!-- Ȯ<><C8AE> -->
|
||||
</tr>
|
||||
<%end if%>
|
||||
<tr>
|
||||
<td colspan="2" style="padding:20;">
|
||||
<table cellpadding="0" cellspacing="0" border="0">
|
||||
<%if cint(print_type) = 1 then%>
|
||||
<tr>
|
||||
<td style="padding:0 0 5 0;">
|
||||
|
||||
<font class="brown"><3E><><EFBFBD>ӳ<EFBFBD><D3B3><EFBFBD> <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ڸ<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>߱<EFBFBD> <20><>ư<EFBFBD><C6B0> Ŭ<><C5AC><EFBFBD>ϼ<EFBFBD><CFBC><EFBFBD>.</font><br>
|
||||
<img src="/images/common/blank.gif" width="19" height="1" align="absmiddle">
|
||||
<font class="k_darkorange"><3E>濵<EFBFBD><E6BFB5><EFBFBD><EFBFBD><EFBFBD>Ǹ<EFBFBD> <20><><EFBFBD>밡<EFBFBD><EBB0A1><EFBFBD>մϴ<D5B4>.</font>
|
||||
</td>
|
||||
</tr>
|
||||
<%end if%>
|
||||
<%if cint(print_type) = 2 then%>
|
||||
<tr height=100>
|
||||
<td> </td>
|
||||
</tr>
|
||||
<%end if%>
|
||||
<tr>
|
||||
<td><img 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="100%" cellpadding="3" cellspacing="0" border="0" style="border-collapse:collapse;">
|
||||
<tr height=50>
|
||||
<td align="center"><b style="font-size:22px;font-family:Dotum;"><%=replace(title," "," ")%></b></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="center" style="padding:10 0 10 0">
|
||||
<table width="98%" cellpadding="5" cellspacing="0" border="1" >
|
||||
<tr height=30>
|
||||
<td width="20" align="center" rowspan="3"><3E><><EFBFBD><EFBFBD><EFBFBD>ϴ<EFBFBD><CFB4><EFBFBD></td>
|
||||
<td width="120"><3E><> <3B><> <3B><></td>
|
||||
<td > <%=company(1)%></td>
|
||||
</tr>
|
||||
<tr height=30>
|
||||
<td ><3E><> <3B><></td>
|
||||
<td ><font class="tahoma"> <%=company(4)%></font></td>
|
||||
</tr>
|
||||
<tr height=30>
|
||||
<td ><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD>Ϲ<EFBFBD>ȣ</td>
|
||||
<td ><font class="tahoma"> <%=company(2)%></font></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="center" style="padding:10 0 10 0">
|
||||
<table width="98%" cellpadding="5" cellspacing="0" border="1" >
|
||||
<tr height=30>
|
||||
<td width="20" align="center" rowspan="3"><3E><><EFBFBD>ӹ<D3B9><DEB4><EFBFBD></td>
|
||||
<td width="120"><3E><> <3B><></td>
|
||||
<td > <%=target_gap(1)%></td>
|
||||
</tr>
|
||||
<tr height=30>
|
||||
<td ><3E>ֹ<EFBFBD> <3B><><EFBFBD><EFBFBD> <3B><>ȣ</td>
|
||||
<td ><font class="tahoma"> <%=target_gap(2)%></font></td>
|
||||
</tr>
|
||||
<tr height=30>
|
||||
<td ><3E><> <3B><></td>
|
||||
<td ><font class="tahoma"> <%=target_gap(3)%><br><br> <%=target_gap(4)%></font></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<%if cint(print_type) = 2 then%>
|
||||
<tr height=30>
|
||||
<td> </td>
|
||||
</tr>
|
||||
<%end if%>
|
||||
<tr>
|
||||
<td align="center" style="padding:10 0 10 0">
|
||||
<table width="98%" cellpadding="5" cellspacing="0" border="1" >
|
||||
<tr height=30>
|
||||
<td width="150" align="center" rowspan="3"><3E><> <3B><> ó</td>
|
||||
<td > <%=client_name%></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<%if cint(print_type) = 2 then%>
|
||||
<tr height=30>
|
||||
<td> </td>
|
||||
</tr>
|
||||
<%end if%>
|
||||
<tr>
|
||||
<td align="center" style="padding:10;"><b style="font-size:14px;font-family:Dotum;"><3E><><EFBFBD><EFBFBD> "<22><><EFBFBD>ӹ<D3B9> <20><>"<22><> <20><><EFBFBD>Ͽ<EFBFBD> <%=company(1)%><3E><> <20>Ʒ<EFBFBD><C6B7><EFBFBD> <20><><EFBFBD><EFBFBD> <20><>ü<EFBFBD><C3BC> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>. </b></td>
|
||||
</tr>
|
||||
<%if cint(print_type) = 2 then%>
|
||||
<tr height=30>
|
||||
<td> </td>
|
||||
</tr>
|
||||
<%end if%>
|
||||
<tr>
|
||||
<td align="center" style="padding:10 0 10 0">
|
||||
<table width="98%" cellpadding="5" cellspacing="0" border="1" >
|
||||
<tr>
|
||||
<td width="150" align="center" rowspan="3"><3E><> <3B><> <3B><> <3B><></td>
|
||||
<td >
|
||||
<%if print_type=2 or print_type=3 then
|
||||
for i=1 to 3
|
||||
' if trim(gap(i)) <> "" then
|
||||
Response.Write trim(gap(i)) & "<br>"
|
||||
' end if
|
||||
next
|
||||
else%>
|
||||
<input type=text style="width:100%" name='txt_gap_1'><br>
|
||||
<input type=text style="width:100%" name='txt_gap_2'><br>
|
||||
<input type=text style="width:100%" name='txt_gap_3'>
|
||||
<%end if%>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="center">
|
||||
<%if cint(print_type)= 2 or cint(print_type) =3 then%>
|
||||
<font class="tahoma"><%=gap(4)%>
|
||||
<%else%>
|
||||
<input type="text" class="number" name="txt_date" style="width:100px;text-align:right" maxlength="8" OnBlur="OnFormatDate(this)" OnFocus="OnReplaceDate(this)" OnKeyup="OnlyNumber(this)" value="<%=date()%>">
|
||||
<img src="/images/common/btn_calendar.jpg" align="absmiddle" OnClick="winopn('/include/calendar.html?actval=txt_date')" class="imglink" title='<27><>¥<EFBFBD><C2A5> <20><><EFBFBD><EFBFBD><EFBFBD>ϼ<EFBFBD><CFBC><EFBFBD>' style="cursor:pointer">
|
||||
<%end if%>
|
||||
<br><br><br>
|
||||
<b style="font-size:18px;font-family:Dotum;line-height:200%"><%=company(1)%></b><br>
|
||||
<%tmpstr=split(company(3),",")
|
||||
for i=0 to ubound(tmpstr)%>
|
||||
<b style="font-size:14px;font-family:Dotum;line-height:200%"><3E><> ǥ <20><> <20><> <%=trim(tmpstr(i))%></b><br>
|
||||
<%next%>
|
||||
</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 src="/images/approval/docbg_btm.jpg"></td>
|
||||
</tr>
|
||||
<%if cint(print_type) = 1 then%>
|
||||
<tr>
|
||||
<td style="padding:10 0 0 0;" align="center">
|
||||
<img src="/images/management/btn_cert.jpg" title='<27>ۼ<EFBFBD><DBBC>Ϸ<EFBFBD>' onclick='goPrint();' style='cursor:pointer'>
|
||||
<a href="/management/certificate_select.asp"> <img src="/images/common/btn_cancel.jpg"></a>
|
||||
</td>
|
||||
</tr>
|
||||
<%end if%>
|
||||
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
|
||||
<input type=hidden name='txt_client' value ='<%=client_name%>'>
|
||||
<input type=hidden name='txt_p_no' value ='<%=target_gap(0)%>'>
|
||||
<%if print_type=2 then%>
|
||||
<input type=hidden name='txt_gap_1' value ='<%=gap(1)%>'>
|
||||
<input type=hidden name='txt_gap_2' value ='<%=gap(2)%>'>
|
||||
<input type=hidden name='txt_gap_3' value ='<%=gap(3)%>'>
|
||||
<input type=hidden name='txt_date' value ='<%=gap(4)%>'>
|
||||
<%end if%>
|
||||
|
||||
|
||||
</form>
|
||||
<%if cint(print_type) = 2 then%>
|
||||
</body>
|
||||
<%else%>
|
||||
|
||||
<%end if%>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<script language=javascript>
|
||||
function win_close()
|
||||
{
|
||||
window.close();
|
||||
}
|
||||
function win_print()
|
||||
{
|
||||
|
||||
var txt_gap_1 = document.frm_Uiim.txt_gap_1.value;
|
||||
var txt_gap_2 = document.frm_Uiim.txt_gap_2.value;
|
||||
var txt_gap_3 = document.frm_Uiim.txt_gap_3.value;
|
||||
var txt_date = document.frm_Uiim.txt_date.value;
|
||||
var p_no = document.frm_Uiim.txt_p_no.value;
|
||||
var txt_client = document.frm_Uiim.txt_client.value;
|
||||
|
||||
var url = "cert_poa_print.asp?print_type=3";
|
||||
url = url + "&txt_gap_1=" + txt_gap_1;
|
||||
url = url + "&txt_gap_2=" + txt_gap_2;
|
||||
url = url + "&txt_gap_3=" + txt_gap_3;
|
||||
url = url + "&txt_date=" + txt_date;
|
||||
url = url + "&txt_client=" + txt_client;
|
||||
url = url + "&p_no=" + p_no;
|
||||
document.frm_Uiim.action=url;
|
||||
document.frm_Uiim.submit();
|
||||
}
|
||||
|
||||
|
||||
function goPrint()
|
||||
{//<2F><><EFBFBD><EFBFBD>Ʈ <20>ϱ<EFBFBD>
|
||||
|
||||
var txt_gap_1 = document.frm_Uiim.txt_gap_1.value;
|
||||
var txt_gap_2 = document.frm_Uiim.txt_gap_2.value;
|
||||
var txt_gap_3 = document.frm_Uiim.txt_gap_3.value;
|
||||
var txt_date = document.frm_Uiim.txt_date.value;
|
||||
var p_no = document.frm_Uiim.txt_p_no.value;
|
||||
var txt_client = document.frm_Uiim.txt_client.value;
|
||||
|
||||
var url = "cert_poa_print.asp?print_type=2";
|
||||
url = url + "&txt_gap_1=" + txt_gap_1;
|
||||
url = url + "&txt_gap_2=" + txt_gap_2;
|
||||
url = url + "&txt_gap_3=" + txt_gap_3;
|
||||
url = url + "&txt_date=" + txt_date;
|
||||
url = url + "&txt_client=" + txt_client;
|
||||
url = url + "&p_no=" + p_no;
|
||||
window.open(url,"","left=50, top=50, menubar=no, location=no, status=no, toolbar=no, width=850 ,height=600 ,scrollbars=yes, resizable=no");
|
||||
|
||||
|
||||
// document.frm_Uiim.action="<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>_print.asp?print_type=1&p_no="+p_no;
|
||||
// document.frm_Uiim.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();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
//-->
|
||||
</script>
|
||||
Reference in New Issue
Block a user