Files
KIN/project/cp_modi.asp
2025-09-29 17:55:08 +09:00

166 lines
4.8 KiB
Plaintext

<!-- #include virtual = "lib/config.asp" -->
<%
p_cli_code = request("p_cli_code")
mod_cli = request("mod_cli")
x = request("x") 'project_lsit2_thanksmail에서 1로 보냄(수정완료 후 창을 닫기 위함)
query = "SELECT * "
query = query & "FROM Client_People "
query = query & "WHERE c_code='" & p_cli_code & "' "
query = query & " AND cp_code='" & mod_cli & "' "
query = query & "ORDER BY cp_name "
'Response.Write query
rsc.Open query, adoConn, 1
%>
<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(a) {
if (a == 1)
{
self.close();
}
else
{
history.back();
}
}
function modit() {
if (document.pms.cp_name.value.trim() == '') {
alert('Client 담당자를 작성해 주세요');
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.focus();
return false;
}
document.pms.cp_depart.value = document.pms.cp_depart.value.trim();
if (document.pms.cp_tel.value.trim() == '') {
alert('담당자 전화번호를 작성해 주세요');
document.pms.cp_tel.focus();
return false;
}
document.pms.cp_tel.value = document.pms.cp_tel.value.trim();
if (document.pms.cp_mobile.value.trim() == '') {
alert('담당자 핸드폰 번호를 작성해 주세요');
document.pms.cp_mobile.focus();
return false;
}
document.pms.cp_mobile.value = document.pms.cp_mobile.value.trim();
if (document.pms.cp_email.value.trim() == '') {
alert('담당자 메일을 작성해 주세요');
document.pms.cp_email.focus();
return false;
}
document.pms.cp_email.value = document.pms.cp_email.value.trim();
if (document.pms.cp_position.value.trim() == '') {
alert('담당자 직위를 작성해 주세요');
document.pms.cp_position.focus();
return false;
}
document.pms.cp_position.value = document.pms.cp_position.value.trim();
document.pms.action = 'cp_modi_ok.asp';
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%>">
<input type="hidden" name="mod_cli" value="<%=mod_cli%>">
<input type="hidden" name="x" value="<%=x%>">
<table border="1" cellspacing="0" cellpadding="0" width="335" bgcolor="white">
<tr align="center" height="20">
<td bgcolor=Yellow><font color="blue"><b>Client 담당자</b></font></td>
<td>
<input class="input" type="text" size="20" name="cp_name" value="<%=rsc("cp_name")%>">
</td>
</tr>
<tr align="center" >
<td bgcolor=Yellow><font color="blue"><b>Client 부서</b></font></td>
<td>
<input class="input" type="text" size="20" name="cp_depart" value="<%=rsc("cp_depart")%>">
</td>
</tr>
<tr align="center" >
<td bgcolor=Yellow><font color="blue"><b>담당자 전화</b></font></td>
<td>
<input class="input" type="text" size="20" name="cp_tel" value="<%=rsc("cp_tel")%>">
</td>
</tr>
<tr align="center" >
<td bgcolor=Yellow><font color="blue"><b>담당자 핸드폰</b></font></td>
<td>
<input class="input" type="text" size="20" name="cp_mobile" value="<%=rsc("cp_mobile")%>">
</td>
</tr>
<tr align="center" >
<td bgcolor=Yellow><font color="blue"><b>담당자 메일</b></font></td>
<td>
<input class="input" type="text" size="20" name="cp_email" value="<%=rsc("cp_email")%>">
</td>
</tr>
<tr align="center">
<td bgcolor=Yellow><font color="blue"><b>담당자 직위</b></font></td>
<td>
<input class="input" type="text" size="20" name="cp_position" value="<%=rsc("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" value="<%=rsc("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" value="<%=rsc("cp_mposition")%>">
</td>
</tr>
</table>
<br>
<table border="0" cellspacing="0" cellpadding="0" width="335" bgcolor="white">
<tr align="center">
<td colspan="99" style = "font-family:굴림체;color:blue;font-size:10pt;font-weight:bold;">
노란색 부분은 필수 입니다.
</td>
</tr>
</table>
<br>
<table border="0" cellspacing="0" cellpadding="0" width="335" bgcolor="white">
<tr align="center">
<td colspan="99">
<img src="/images/common/btn_modify2.jpg" style="cursor:pointer" border="0" onClick="modit()" title = "수정">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<img src="/images/common/btn_cancel2.jpg" style="cursor:pointer" border="0" onClick="cancelit('<%=x%>')" title = "취소">
</td>
</tr>
</table>
<%
rsc.Close
set rsc = nothing
%>