113 lines
2.6 KiB
Plaintext
113 lines
2.6 KiB
Plaintext
<!-- #include virtual = "lib/config.asp" -->
|
|
<%
|
|
cli_name = request("cli_name")
|
|
mod_cli = request("mod_cli")
|
|
|
|
'Client 형태
|
|
dim tmp_cliform(99)
|
|
|
|
query = "SELECT * "
|
|
query = query & "FROM Client_Type "
|
|
query = query & "ORDER BY sort_key "
|
|
|
|
rsc.Open query, adoConn, 1
|
|
if rsc.RecordCount > 0 then
|
|
for i = 1 to rsc.RecordCount
|
|
|
|
tmp_cliform(int(rsc("c_type_code"))) = rsc("c_type_name")
|
|
|
|
rsc.MoveNext
|
|
next
|
|
end if
|
|
rsc.Close
|
|
|
|
query = "SELECT * "
|
|
query = query & "FROM Client "
|
|
query = query & "WHERE c_code='" & mod_cli & "' "
|
|
query = query & "ORDER BY c_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() {
|
|
history.back();
|
|
}
|
|
|
|
function modit() {
|
|
if (document.pms.c_name.value.trim() == '') {
|
|
alert('Client 이름을 작성해 주세요');
|
|
document.pms.c_name.focus();
|
|
return false;
|
|
}
|
|
|
|
document.pms.c_name.value = document.pms.c_name.value.trim();
|
|
|
|
if (document.pms.c_type.value == '') {
|
|
alert('Client Type을 선택해 주세요');
|
|
document.pms.c_type.focus();
|
|
return false;
|
|
}
|
|
|
|
document.pms.action = 'cli_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="cli_name" value="<%=cli_name%>">
|
|
<input type="hidden" name="mod_cli" value="<%=mod_cli%>">
|
|
|
|
<table border="1" cellspacing="0" cellpadding="0" width="335" bgcolor="white">
|
|
<tr align="center" height="20">
|
|
<td><font color="blue"><b>Code</b></font></td>
|
|
<td><font color="blue"><b>Client Name</b></font></td>
|
|
<td><font color="blue"><b>Type</b></font></td>
|
|
</tr>
|
|
<tr align="center">
|
|
<td><%=rsc("c_code")%></td>
|
|
<td>
|
|
<input class="input" type="text" size="15" name="c_name" value="<%=rsc("c_name")%>">
|
|
</td>
|
|
<td>
|
|
<select name="c_type">
|
|
<option value="">선택</option>
|
|
<%
|
|
for i = 4 to ubound(tmp_cliform)
|
|
if tmp_cliform(i) <> "" then
|
|
%>
|
|
<option value="<%=i%>"><%=tmp_cliform(i)%></option>
|
|
<%
|
|
end if
|
|
next
|
|
%>
|
|
</select>
|
|
</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 = "수정">
|
|
|
|
<img src="/images/common/btn_cancel2.jpg" style="cursor:pointer" border="0" onClick="cancelit()" title = "취소">
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<%
|
|
rsc.Close
|
|
set rsc = nothing
|
|
%> |