최초커밋
This commit is contained in:
312
management/certificate_select.asp
Normal file
312
management/certificate_select.asp
Normal file
@@ -0,0 +1,312 @@
|
||||
<!-- #include virtual = "include/header.asp" -->
|
||||
<!-- #include virtual = "include/left.asp" -->
|
||||
<%
|
||||
'####################################################
|
||||
'<27>濵<EFBFBD><E6BFB5><EFBFBD><EFBFBD><EFBFBD>ǿ<EFBFBD><C7BF><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>ϴ<EFBFBD> <20>κ<EFBFBD><CEBA>Դϴ<D4B4>.
|
||||
'<27>濵<EFBFBD><E6BFB5><EFBFBD><EFBFBD><EFBFBD>Ǹ<EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>մϴ<D5B4>.
|
||||
'####################################################
|
||||
%>
|
||||
<%
|
||||
|
||||
if tmp_admin_chk = "1" or Session("Depart_Code") = 18 then
|
||||
else
|
||||
Response.Write "<script>"
|
||||
Response.Write "window.alert ('<27><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>ϴ<EFBFBD>.');"
|
||||
Response.Write "history.back();"
|
||||
Response.Write "</script>"
|
||||
end if
|
||||
|
||||
dim txt_command, i, j
|
||||
dim title(5)
|
||||
dim st_date, end_date
|
||||
dim Max_Title
|
||||
|
||||
dim Query
|
||||
dim Max_person_in
|
||||
dim Max_person_out
|
||||
dim person_in() '<27><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
dim person_out() '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
dim krft_send
|
||||
|
||||
|
||||
Max_Title = 5
|
||||
title(1) = "<22><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>"
|
||||
title(2) = "<22><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>"
|
||||
title(3) = "<22><> <20><>"
|
||||
title(4) = "<22><><EFBFBD><EFBFBD> <20>ΰ<EFBFBD><CEB0><EFBFBD>"
|
||||
title(5) = "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>"
|
||||
|
||||
txt_command = Request.Form("txt_command")
|
||||
st_date = Request.Form("st_date")
|
||||
end_date = Request.Form("end_date")
|
||||
|
||||
|
||||
''<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
query = "select * from person "
|
||||
query = query & " where not(substring(p_name,1,1) = '<27><>' "
|
||||
query = query & " or substring(p_name,1,3) = '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>' "
|
||||
query = query & " or substring(p_name,1,3) = 'old' "
|
||||
query = query & " or substring(p_name,1,2) = '<27><>Ÿ' "
|
||||
query = query & " or substring(p_name,1,2) = 'ȸ<><C8B8>') "
|
||||
query = query & " and p_depart_first is not null and p_depart <> 88 "
|
||||
query = query & " and p_resign = 0"
|
||||
query = query & " order by p_name"
|
||||
adors.open query, adoconn, adopenstatic, adlockreadonly
|
||||
Max_person_in = 0
|
||||
redim person_in(adors.recordcount,2)
|
||||
do while not adors.eof
|
||||
Max_person_in = Max_person_in + 1
|
||||
person_in(Max_person_in,1) = adors("p_no")
|
||||
person_in(Max_person_in,2) = adors("p_name")
|
||||
adors.movenext
|
||||
loop
|
||||
adors.close
|
||||
|
||||
''<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
query = "select * from person "
|
||||
query = query & " where not(substring(p_name,1,1) = '<27><>' "
|
||||
query = query & " or substring(p_name,1,3) = '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>' "
|
||||
query = query & " or substring(p_name,1,3) = 'old' "
|
||||
query = query & " or substring(p_name,1,2) = '<27><>Ÿ' "
|
||||
query = query & " or substring(p_name,1,2) = 'ȸ<><C8B8>') "
|
||||
query = query & " and p_resign = 1"
|
||||
query = query & " order by p_name"
|
||||
adors.open query, adoconn, adopenstatic, adlockreadonly
|
||||
Max_person_out = 0
|
||||
redim person_out(adors.recordcount,2)
|
||||
do while not adors.eof
|
||||
Max_person_out = Max_person_out + 1
|
||||
person_out(Max_person_out,1) = adors("p_no")
|
||||
person_out(Max_person_out,2) = adors("p_name")
|
||||
adors.movenext
|
||||
loop
|
||||
adors.close
|
||||
%>
|
||||
<script language=javascript>
|
||||
$(function(){
|
||||
$(".search_sel").on("keyup", function(event){
|
||||
if((event.which ? event.which : event.keyCode) == 13){
|
||||
var keyword = $(this).val();
|
||||
$.each($(this).next().find("option"), function(idx, obj){
|
||||
if($(obj).text().trim().indexOf(keyword) == -1){
|
||||
$(obj).css("display", "none");
|
||||
}else{
|
||||
$(obj).css("display", "");
|
||||
}
|
||||
});
|
||||
}
|
||||
});
|
||||
});
|
||||
var old_menu = "";
|
||||
|
||||
function goRun()
|
||||
{
|
||||
var menu_option = document.frm_list.txt_command.value;
|
||||
|
||||
if (menu_option == "1" || menu_option == "2")
|
||||
{
|
||||
document.frm_list.action="cert_poe.asp?menu_option=" + menu_option;
|
||||
}
|
||||
else if(menu_option == "3" ) //<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
{
|
||||
document.frm_list.action="cert_official_select.asp?title=<3D><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>";
|
||||
}
|
||||
else if(menu_option == "4") //<2F><><EFBFBD><EFBFBD><EFBFBD>ΰ<EFBFBD><CEB0><EFBFBD>
|
||||
{
|
||||
if (allTrim(document.frm_list.txt_client.value) == "")
|
||||
{
|
||||
alert("Ŭ<><C5AC><EFBFBD>̾<EFBFBD>Ʈ ȸ<><C8B8><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>Է<EFBFBD><D4B7>ϼ<EFBFBD><CFBC><EFBFBD>...");
|
||||
document.frm_list.txt_client.focus();
|
||||
return false;
|
||||
}
|
||||
document.frm_list.action="cert_cos_print.asp?print_type=1";
|
||||
}
|
||||
else if(menu_option == "5") //<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
{
|
||||
if (allTrim(document.frm_list.txt_client.value) == "")
|
||||
{
|
||||
alert("Ŭ<><C5AC><EFBFBD>̾<EFBFBD>Ʈ ȸ<><C8B8><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>Է<EFBFBD><D4B7>ϼ<EFBFBD><CFBC><EFBFBD>...");
|
||||
document.frm_list.txt_client.focus();
|
||||
return false;
|
||||
}
|
||||
document.frm_list.action="cert_poa_print.asp?print_type=1";
|
||||
}
|
||||
else
|
||||
{
|
||||
alert("<22><><EFBFBD><EFBFBD> <20><><EFBFBD>ϴ<EFBFBD> <20><EFBFBD><D7B8><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>ϼ<EFBFBD><CFBC><EFBFBD>...");
|
||||
return false
|
||||
}
|
||||
document.frm_list.submit();
|
||||
}
|
||||
|
||||
function change_title2(txt){
|
||||
//<2F><><EFBFBD><EFBFBD><EFBFBD>ϰ<EFBFBD><CFB0><EFBFBD> <20>ϴ<EFBFBD> <20><EFBFBD><D7B8><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>(<28><> input type=text<78><74> <20><><EFBFBD>ý<EFBFBD>)<29><> <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><>ư<EFBFBD><C6B0> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ű<EFBFBD><C5B0>
|
||||
var i = eval(txt) - 1;
|
||||
document.frm_list.radio_title[i].checked = true;
|
||||
document.frm_list.txt_command.value = document.frm_list.radio_title[i].value;
|
||||
if (i==0){
|
||||
div_person_in.style.visibility="visible";
|
||||
div_person_out.style.visibility="hidden";
|
||||
}
|
||||
else
|
||||
{
|
||||
div_person_in.style.visibility="hidden";
|
||||
}
|
||||
if (i==1){
|
||||
div_person_out.style.visibility="visible";
|
||||
div_person_in.style.visibility="hidden";
|
||||
}
|
||||
else
|
||||
{
|
||||
div_person_out.style.visibility="hidden";
|
||||
}
|
||||
|
||||
if (i==3){//<2F><><EFBFBD><EFBFBD><EFBFBD>ΰ<EFBFBD><CEB0><EFBFBD><EFBFBD><EFBFBD> Ŭ<><C5AC><EFBFBD>̾<EFBFBD>Ʈ<EFBFBD><C6AE> <20>ޱ<EFBFBD><DEB1><EFBFBD>
|
||||
div_sayung.style.visibility="visible";
|
||||
}
|
||||
else if (i==4){// <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> Ŭ<><C5AC><EFBFBD>̾<EFBFBD>Ʈ<EFBFBD><C6AE> <20>ޱ<EFBFBD><DEB1><EFBFBD>
|
||||
div_sayung.style.visibility="visible";
|
||||
div_person_in.style.visibility="visible";
|
||||
}
|
||||
else
|
||||
{
|
||||
document.frm_list.txt_client.value = "";
|
||||
div_sayung.style.visibility="hidden";
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
</script>
|
||||
|
||||
<script language="javascript" src="/js/common.js"></script>
|
||||
|
||||
|
||||
|
||||
|
||||
<!-- Content Wrapper. Contains page content -->
|
||||
<div class="content-wrapper">
|
||||
<!-- Content Header (Page header) -->
|
||||
<div class="content-header">
|
||||
<h1><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>߱<EFBFBD></h1>
|
||||
</div>
|
||||
|
||||
|
||||
<form name='frm_list' method='post'>
|
||||
|
||||
<input type=hidden name=txt_command size=50 value='<%=txt_command%>'>
|
||||
|
||||
<td width="100%" valign="top">
|
||||
<table width="100%" cellpadding="0" cellspacing="0" border="0">
|
||||
<tr>
|
||||
<!-- Ȯ<><C8AE> -->
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2" style="padding:20;">
|
||||
<table cellpadding="0" cellspacing="0" border="0">
|
||||
<tr>
|
||||
<td style="padding:0 0 5 0;">
|
||||
|
||||
<font class="brown"><3E>߱<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><> <20><><EFBFBD>Ͻô<CFBD> <20><EFBFBD><D7B8><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>
|
||||
<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>
|
||||
<td colspan="2">
|
||||
<div id="div_person_in" style="visibility: hidden;">
|
||||
<table width="100%">
|
||||
<tr>
|
||||
<td width="50%"><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>(<28><><EFBFBD><EFBFBD><EFBFBD>ټ<EFBFBD>)</td>
|
||||
<td>
|
||||
<input type="text" id="searchSel_p_no_in" class="search_sel" value="" />
|
||||
<select name='sel_p_no_in'>
|
||||
<%for i=1 to Max_person_in%>
|
||||
<option value='<%=person_in(i,1)%>'><%=person_in(i,2)%></option>
|
||||
<%next%>
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
<div id="div_person_out" style="visibility: hidden;">
|
||||
<table width="100%">
|
||||
<tr>
|
||||
<td width="50%"><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>(<28><><EFBFBD><EFBFBD><EFBFBD>ټ<EFBFBD>)</td>
|
||||
<td>
|
||||
<input type="text" id="searchSel_p_no_out" class="search_sel" value="" />
|
||||
<select name='sel_p_no_out'>
|
||||
<%for i=1 to Max_person_out%>
|
||||
<option value='<%=person_out(i,1)%>'><%=person_out(i,2)%></option>
|
||||
<%next%>
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<%
|
||||
for i=1 to Max_Title
|
||||
if i mod 2 = 0 then
|
||||
tmp_class = "tit8"
|
||||
else
|
||||
tmp_class = "tit7"
|
||||
end if
|
||||
%>
|
||||
<tr>
|
||||
<td class="<%=tmp_class%>" width="50%" onclick="change_title2('<%=i%>');" style="CURSOR:pointer;">
|
||||
<input type="radio" class="none" name=radio_title value='<%=i%>' onclick="change_title2('<%=i%>');" style="CURSOR:pointer;"
|
||||
<%if i= cint(txt_command) then%>
|
||||
checked
|
||||
<%end if%>
|
||||
> <input type=text class="none" name=txt_title value='<%=title(i)%>' readonly style="CURSOR:pointer;">
|
||||
</td>
|
||||
<%if i=4 then%>
|
||||
<td class="<%=tmp_class%>">
|
||||
<div id="div_sayung" style="visibility: hidden;" >
|
||||
<table width="100%" align="center">
|
||||
<tr>
|
||||
<td>
|
||||
Ŭ<><C5AC><EFBFBD>̾<EFBFBD>Ʈ ȸ<><C8B8><EFBFBD><EFBFBD> <20>Է<EFBFBD> <input type=text name=txt_client style="IME-MODE: active" maxlength=20 value='' ><font color=red><b>(Ư<><C6AF><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>)</b></font>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
</td>
|
||||
<%
|
||||
else
|
||||
%>
|
||||
<td class="<%=tmp_class%>">
|
||||
</td>
|
||||
<%end if%>
|
||||
</tr>
|
||||
<%next%>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><img src="/images/approval/docbg_btm.jpg"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="padding:10 0 0 0;" align="center">
|
||||
<img src="/images/management/btn_cert.jpg" onclick='goRun();' style='cursor:pointer'>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
|
||||
</form>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user