104 lines
2.5 KiB
Plaintext
104 lines
2.5 KiB
Plaintext
<!-- #include virtual = "lib/config.asp" -->
|
|
<%
|
|
cli_name = request("cli_name")
|
|
|
|
'Client 형태
|
|
dim tmp_cliform()
|
|
|
|
query = "select * from client_type order by sort_key"
|
|
rsc.Open query, adoConn, 1
|
|
redim tmp_cliform(99)
|
|
do while not rsc.EOF
|
|
tmp_cliform(cint(rsc("c_type_code"))) = rsc("c_type_name")
|
|
rsc.MoveNext
|
|
loop
|
|
rsc.Close
|
|
|
|
|
|
query = "SELECT MAX(c_code) as c_code "
|
|
query = query & "FROM Client "
|
|
query = query & "WHERE c_code < 9900 "
|
|
|
|
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 newit() {
|
|
if (document.pms.c_name.value.trim() == '') {
|
|
alert('Client 이름을 작성하세요');
|
|
document.pms.c_name.value = '';
|
|
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_new_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%>">
|
|
|
|
<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>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><%=cint(rsc("c_code")) + 1%></td>
|
|
<td>
|
|
<input class="input" type="text" size="15" name="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/project/btn_sadd.gif" style="cursor:pointer" border="0" onClick="newit()" title = "추 가">
|
|
|
|
<img src="/images/common/btn_cancel2.jpg" style="cursor:pointer" border="0" onClick="cancelit()" title = "취소">
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<%
|
|
rsc.Close
|
|
set rsc = nothing
|
|
%> |