최초커밋
This commit is contained in:
123
project/cp_new.asp
Normal file
123
project/cp_new.asp
Normal file
@@ -0,0 +1,123 @@
|
||||
<!-- #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>
|
||||
Ŭ<><C5AC><EFBFBD>̾<EFBFBD>Ʈ <20>߰<EFBFBD>
|
||||
</title>
|
||||
<script language=javascript>
|
||||
|
||||
|
||||
function cancelit() {
|
||||
history.back();
|
||||
}
|
||||
|
||||
function newit(a) {
|
||||
if (document.pms.cp_name.value.trim() == '') {
|
||||
alert('Client <20><><EFBFBD><EFBFBD><EFBFBD>ڸ<EFBFBD> <20>ۼ<EFBFBD><DBBC>ϼ<EFBFBD><CFBC><EFBFBD>');
|
||||
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 <20>μ<EFBFBD><CEBC><EFBFBD> <20>ۼ<EFBFBD><DBBC>ϼ<EFBFBD><CFBC><EFBFBD>');
|
||||
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 <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD></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 <20>μ<EFBFBD></b></font></td>
|
||||
<td>
|
||||
<input class="input" type="text" size="20" name="cp_depart">
|
||||
</td>
|
||||
</tr>
|
||||
<tr align="center">
|
||||
<td><font color="blue"><b><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><>ȭ</b></font></td>
|
||||
<td>
|
||||
<input class="input" type="text" size="20" name="cp_tel">
|
||||
</td>
|
||||
</tr>
|
||||
<tr align="center">
|
||||
<td><font color="blue"><b><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>ڵ<EFBFBD><DAB5><EFBFBD></b></font></td>
|
||||
<td>
|
||||
<input class="input" type="text" size="20" name="cp_mobile">
|
||||
</td>
|
||||
</tr>
|
||||
<tr align="center">
|
||||
<td><font color="blue"><b><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD></b></font></td>
|
||||
<td>
|
||||
<input class="input" type="text" size="20" name="cp_email">
|
||||
</td>
|
||||
</tr>
|
||||
<tr align="center">
|
||||
<td><font color="blue"><b><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD></b></font></td>
|
||||
<td>
|
||||
<input class="input" type="text" size="20" name="cp_position">
|
||||
</td>
|
||||
</tr>
|
||||
<tr align="center">
|
||||
<td><font color="blue"><b><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20≯<EFBFBD></b></font></td>
|
||||
<td>
|
||||
<input class="input" type="text" size="20" name="cp_master">
|
||||
</td>
|
||||
</tr>
|
||||
<tr align="center">
|
||||
<td><font color="blue"><b><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD></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="<22><> <20><>" id=button1 name=button1 onClick="newit('<%=p_cli_code%>')">
|
||||
|
||||
<input type="button" value="<22><> <20><>" id=button2 name=button2 onClick="cancelit()">
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<%
|
||||
rsc.Close
|
||||
set rsc = nothing
|
||||
%>
|
||||
Reference in New Issue
Block a user