123 lines
3.2 KiB
Plaintext
123 lines
3.2 KiB
Plaintext
<!-- #include virtual = "lib/config.asp" -->
|
|
<%
|
|
|
|
p_cli_code = request("p_cli_code")
|
|
|
|
query = "SELECT MAX(cp_code) as cp_code "
|
|
query = query & "FROM Client_People "
|
|
query = query & "WHERE c_code = '" & p_cli_code & "' "
|
|
|
|
rsc.Open query, adoConn, 1
|
|
|
|
if rsc("cp_code") = "" or isnull(rsc("cp_code")) then
|
|
tmp_cpcode = 1
|
|
else
|
|
tmp_cpcode = int(rsc("cp_code")) + 1
|
|
end if
|
|
%>
|
|
<html>
|
|
<head>
|
|
<meta http-equiv="content-type" content="text/html; charset=euc-kr">
|
|
<LINK rel="stylesheet" type="text/css" href="/lib/text.css">
|
|
<title>
|
|
클라이언트 추가
|
|
</title>
|
|
<script language=javascript>
|
|
|
|
|
|
function cancelit() {
|
|
history.back();
|
|
}
|
|
|
|
function newit(a) {
|
|
if (document.pms.cp_name.value.trim() == '') {
|
|
alert('Client 담당자를 작성하세요');
|
|
document.pms.cp_name.value = '';
|
|
document.pms.cp_name.focus();
|
|
return false;
|
|
}
|
|
document.pms.cp_name.value = document.pms.cp_name.value.trim();
|
|
|
|
if (document.pms.cp_depart.value.trim() == '') {
|
|
alert('Client 부서를 작성하세요');
|
|
document.pms.cp_depart.value = '';
|
|
document.pms.cp_depart.focus();
|
|
return false;
|
|
}
|
|
document.pms.cp_depart.value = document.pms.cp_depart.value.trim();
|
|
|
|
document.pms.action = 'cp_new_ok.asp?p_cli_code='+a;
|
|
document.pms.submit();
|
|
}
|
|
</script>
|
|
</head>
|
|
<meta http-equiv="refresh" content="300;url=onfile.asp">
|
|
<body>
|
|
<form name="pms" method="post">
|
|
|
|
<input type="hidden" name="p_cli_code" value="<%=p_cli_code%>">
|
|
|
|
<table border="1" cellspacing="0" cellpadding="0" width="335" bgcolor="white" bordercolordark="gray" bordercolorlight="white">
|
|
<tr align="center" height="20">
|
|
<td><font color="blue"><b>Client 담당자</b></font></td>
|
|
<td>
|
|
<input class="input" type="text" size="20" name="cp_name">
|
|
</td>
|
|
</tr>
|
|
<tr align="center">
|
|
<td><font color="blue"><b>Client 부서</b></font></td>
|
|
<td>
|
|
<input class="input" type="text" size="20" name="cp_depart">
|
|
</td>
|
|
</tr>
|
|
<tr align="center">
|
|
<td><font color="blue"><b>담당자 전화</b></font></td>
|
|
<td>
|
|
<input class="input" type="text" size="20" name="cp_tel">
|
|
</td>
|
|
</tr>
|
|
<tr align="center">
|
|
<td><font color="blue"><b>담당자 핸드폰</b></font></td>
|
|
<td>
|
|
<input class="input" type="text" size="20" name="cp_mobile">
|
|
</td>
|
|
</tr>
|
|
<tr align="center">
|
|
<td><font color="blue"><b>담당자 메일</b></font></td>
|
|
<td>
|
|
<input class="input" type="text" size="20" name="cp_email">
|
|
</td>
|
|
</tr>
|
|
<tr align="center">
|
|
<td><font color="blue"><b>담당자 직위</b></font></td>
|
|
<td>
|
|
<input class="input" type="text" size="20" name="cp_position">
|
|
</td>
|
|
</tr>
|
|
<tr align="center">
|
|
<td><font color="blue"><b>상급자 이름</b></font></td>
|
|
<td>
|
|
<input class="input" type="text" size="20" name="cp_master">
|
|
</td>
|
|
</tr>
|
|
<tr align="center">
|
|
<td><font color="blue"><b>상급자 직위</b></font></td>
|
|
<td>
|
|
<input class="input" type="text" size="20" name="cp_mposition">
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<br>
|
|
<table border="0" cellspacing="0" cellpadding="0" width="335" bgcolor="white">
|
|
<tr align="center">
|
|
<td colspan="99">
|
|
<input type="button" value="추 가" id=button1 name=button1 onClick="newit('<%=p_cli_code%>')">
|
|
|
|
<input type="button" value="취 소" id=button2 name=button2 onClick="cancelit()">
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<%
|
|
rsc.Close
|
|
set rsc = nothing
|
|
%> |