최초커밋
This commit is contained in:
104
project/cli_new.asp
Normal file
104
project/cli_new.asp
Normal file
@@ -0,0 +1,104 @@
|
||||
<!-- #include virtual = "lib/config.asp" -->
|
||||
<%
|
||||
cli_name = request("cli_name")
|
||||
|
||||
'Client <20><><EFBFBD><EFBFBD>
|
||||
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>
|
||||
Ŭ<><C5AC><EFBFBD>̾<EFBFBD>Ʈ <20>߰<EFBFBD>
|
||||
</title>
|
||||
<script language=javascript>
|
||||
|
||||
|
||||
function cancelit() {
|
||||
history.back();
|
||||
}
|
||||
|
||||
function newit() {
|
||||
if (document.pms.c_name.value.trim() == '') {
|
||||
alert('Client <20≯<EFBFBD><CCB8><EFBFBD> <20>ۼ<EFBFBD><DBBC>ϼ<EFBFBD><CFBC><EFBFBD>');
|
||||
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<70><65> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>ּ<EFBFBD><D6BC><EFBFBD>');
|
||||
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=""><3E><><EFBFBD><EFBFBD></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 = "<22><> <20><>">
|
||||
|
||||
<img src="/images/common/btn_cancel2.jpg" style="cursor:pointer" border="0" onClick="cancelit()" title = "<22><><EFBFBD><EFBFBD>">
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<%
|
||||
rsc.Close
|
||||
set rsc = nothing
|
||||
%>
|
||||
Reference in New Issue
Block a user