최초커밋
This commit is contained in:
365
management/cert_cos_print.asp
Normal file
365
management/cert_cos_print.asp
Normal file
@@ -0,0 +1,365 @@
|
||||
<!-- #include virtual = "lib/config.asp" -->
|
||||
<%'####################################################
|
||||
'0:<3A><> ȭ<><C8AD><EFBFBD><EFBFBD> viewer <20><> <20>μ<EFBFBD><CEBC>ϴ´<CFB4> ȭ<><C8AD><EFBFBD>Դϴ<D4B4>.
|
||||
'1. <20><><EFBFBD><EFBFBD><EFBFBD>ΰ<EFBFBD><CEB0><EFBFBD> <20>μ<EFBFBD>
|
||||
'2. <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ A<><41> <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>
|
||||
'####################################################
|
||||
%>
|
||||
<%
|
||||
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%>
|
||||
<%
|
||||
|
||||
|
||||
|
||||
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 Curr_date '<27><><EFBFBD>ó<EFBFBD>¥
|
||||
dim Company(6)
|
||||
dim client_name
|
||||
dim print_date
|
||||
dim db_table_name
|
||||
|
||||
db_table_name = "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>"
|
||||
|
||||
|
||||
client_name = request("txt_client")
|
||||
|
||||
|
||||
title="<22><> <20><> <20><> <20><> <20><>"
|
||||
Max_Width =750
|
||||
Curr_date = year(date) & "-" & zeroformat(month(date),2) & "-" & zeroformat(day(date),2)
|
||||
print_date = request("txt_print_date")
|
||||
if print_type=2 then
|
||||
print_date = mid(print_date,1,4) & "<22><> " & mid(print_date,6,2) & "<22><> " & mid(print_date,9,2) & "<22><>"
|
||||
end if
|
||||
|
||||
|
||||
''//===============
|
||||
''ȸ<><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
|
||||
|
||||
|
||||
|
||||
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 & "_log "
|
||||
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 & "A-"
|
||||
krc_no = tmpstr & ZeroFormat(krc_no,5)
|
||||
|
||||
|
||||
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>" then
|
||||
else
|
||||
adoconn.execute query
|
||||
end if
|
||||
end if
|
||||
%>
|
||||
<style>
|
||||
.doc_title{
|
||||
text-align: justify;
|
||||
-moz-text-align-last: justify;
|
||||
-webkit-text-align-last: justify; /* not implemented yet, and will not be */
|
||||
text-align-last: justify; /* IE */
|
||||
padding-right: 40px;
|
||||
}
|
||||
</style>
|
||||
<script language=javascript>
|
||||
function win_close()
|
||||
{
|
||||
window.close();
|
||||
}
|
||||
|
||||
function win_print()
|
||||
{
|
||||
var txt_print_date = document.frm_Sayung.txt_print_date.value;
|
||||
var txt_client = document.frm_Sayung.txt_client.value;
|
||||
|
||||
var url = "cert_cos_print.asp?print_type=3";
|
||||
url = url + "&txt_print_date=" + txt_print_date;
|
||||
url = url + "&txt_client=" + txt_client;
|
||||
document.frm_Sayung.action=url;
|
||||
document.frm_Sayung.submit();
|
||||
}
|
||||
|
||||
|
||||
function goPrint()
|
||||
{//<2F><><EFBFBD><EFBFBD>Ʈ <20>ϱ<EFBFBD>
|
||||
var txt_print_date = document.frm_Sayung.txt_print_date.value;
|
||||
var txt_client = document.frm_Sayung.txt_client.value;
|
||||
|
||||
var url = "cert_cos_print.asp?print_type=2";
|
||||
url = url + "&txt_print_date=" + txt_print_date;
|
||||
url = url + "&txt_client=" + txt_client;
|
||||
|
||||
window.open(url,"","left=0 top=50 menubar=no location=no status=no toolbar=no width=820 height=600 scrollbars=yes resizable=no");
|
||||
// document.frm_Sayung.action="<22><><EFBFBD><EFBFBD><EFBFBD>ΰ<EFBFBD><CEB0><EFBFBD>_print.asp?print_type=2";
|
||||
// document.frm_Sayung.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>
|
||||
|
||||
<%if cint(print_type) = 2 then%>
|
||||
<body onload="print_ie();">
|
||||
<%end if%>
|
||||
<form method='post' name='frm_Sayung'>
|
||||
|
||||
<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><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;"><%=title%></b></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="center" style="padding:10 0 10 0">
|
||||
<table width="70%" cellpadding="5" cellspacing="0" border="0" style="border-collapse:collapse; margin-left: 15px;">
|
||||
<tr height=30>
|
||||
<td width="155" class='doc_title'><3E><> <20><> <20><></td>
|
||||
<td><%=company(1)%></td>
|
||||
</tr>
|
||||
<tr height=30>
|
||||
<td class='doc_title'><3E><> <20><></td>
|
||||
<td><%=company(4)%></td>
|
||||
</tr>
|
||||
<%tmpstr=split(company(3),",")
|
||||
for i=0 to ubound(tmpstr)%>
|
||||
<tr>
|
||||
<td class='doc_title'><3E><> ǥ <20><> <20><></td>
|
||||
<td><%=tmpstr(i)%></td>
|
||||
</tr>
|
||||
<%next%>
|
||||
<tr height=30>
|
||||
<td class='doc_title'><3E><> <20><> <20><> <20><> <20><> <20><> ȣ</td>
|
||||
<td><%=company(2)%></td>
|
||||
</tr>
|
||||
<tr height=30>
|
||||
<td class='doc_title'><3E><> <20><> <20><> <20><> <20><> ȣ</td>
|
||||
<td><%=company(5)%></td>
|
||||
</tr>
|
||||
<tr height=30>
|
||||
<td class='doc_title'><3E><> ȭ <20><> ȣ</td>
|
||||
<td><%=company(6)%></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<%if cint(print_type) = 2 then%>
|
||||
<tr height=50>
|
||||
<td> </td>
|
||||
</tr>
|
||||
<%end if%>
|
||||
<tr>
|
||||
<td align="center" style="padding:10;"><b style="font-size:14px;font-family:Dotum;"><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>ΰ<EFBFBD><CEB0><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>ΰ<EFBFBD><CEB0><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>մϴ<D5B4>.</b></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="center">
|
||||
<table width="60%" cellpadding="5" cellspacing="0" border="2" >
|
||||
<tr height=30>
|
||||
<td align="center" colspan="2" style="width:66%;"><3E><><EFBFBD><EFBFBD><EFBFBD>ΰ<EFBFBD></td>
|
||||
<td align="center" style="width:33%;"><3E><><EFBFBD><EFBFBD><EFBFBD>ΰ<EFBFBD></td>
|
||||
</tr>
|
||||
<tr height="100">
|
||||
<td align="center"> </td>
|
||||
<td align="center"> </td>
|
||||
<td align="center"> </td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<%if cint(print_type) = 2 then%>
|
||||
<tr height=50>
|
||||
<td> </td>
|
||||
</tr>
|
||||
<%end if%>
|
||||
<tr>
|
||||
<td align="right">
|
||||
<table width="50%" cellpadding="5" cellspacing="0" border="0" style="border-collapse:collapse;">
|
||||
<tr height=30>
|
||||
<td class='doc_title'><3E><> <20><> <20><> <20><></td>
|
||||
<td align="left">
|
||||
<%if cint(print_type)= 2 or cint(print_type) =3 then%>
|
||||
<font class="tahoma"><%=print_date%>
|
||||
<%else%>
|
||||
<input type="text" class="number" name="txt_print_date" style="width:100px;text-align:right" maxlength="8" OnBlur="OnFormatDate(this)" OnFocus="OnReplaceDate(this)" OnKeyup="OnlyNumber(this)" value="<%=curr_date%>" readonly>
|
||||
<img src="/images/common/btn_calendar.jpg" align="absmiddle" OnClick="winopn('/include/calendar.html?actval=txt_print_date')" class="imglink" title='<27><>¥<EFBFBD><C2A5> <20><><EFBFBD><EFBFBD><EFBFBD>ϼ<EFBFBD><CFBC><EFBFBD>' style="cursor:pointer">
|
||||
<%end if%>
|
||||
</td>
|
||||
</tr>
|
||||
<tr height=30>
|
||||
<td class='doc_title'><3E><> <20><> <20><></td>
|
||||
<td align="left"> <%=company(1)%></td>
|
||||
</tr>
|
||||
<%tmpstr=split(company(3),",")
|
||||
for i=0 to ubound(tmpstr)%>
|
||||
<tr height=30>
|
||||
<td class='doc_title'><3E><> ǥ <20><> <20><></td>
|
||||
<td align="left">
|
||||
<%=trim(tmpstr(i))%> <img src='/images/common/sign.gif' width=15 height=15>
|
||||
</td>
|
||||
</tr>
|
||||
<%next%>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<tr height=50>
|
||||
<td> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="center">
|
||||
<b style="font-size:18px;font-family:Dotum;line-height:200%"><%=client_name%> <20><><EFBFBD><EFBFBD></b>
|
||||
</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>
|
||||
|
||||
<%if print_type=2 then%>
|
||||
<input type=hidden name='txt_print_date' value ='<%=print_date%>'>
|
||||
<%end if%>
|
||||
<input type=hidden name='txt_client' value ='<%=client_name%>'>
|
||||
</form>
|
||||
<%if cint(print_type) = 2 then%>
|
||||
</body>
|
||||
<%else%>
|
||||
|
||||
<%end if%>
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user