최초커밋
This commit is contained in:
142
project/cp_search.asp
Normal file
142
project/cp_search.asp
Normal file
@@ -0,0 +1,142 @@
|
||||
<!-- #include virtual = "lib/config.asp" -->
|
||||
<%
|
||||
v = request("v")
|
||||
p_cli_code = request("p_cli_code")
|
||||
|
||||
if p_cli_code = "" then
|
||||
alert4 "Client<6E><74> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>ʾҰų<D2B0> DB<44><42><EFBFBD><EFBFBD><EFBFBD>Դϴ<D4B4>"
|
||||
else
|
||||
query = "SELECT * "
|
||||
query = query & "FROM Client_People "
|
||||
query = query & "WHERE c_code = '" & p_cli_code & "' "
|
||||
query = query & "ORDER BY cp_name "
|
||||
|
||||
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><EFBFBD><EFBFBD><EFBFBD> ã<><C3A3>
|
||||
</title>
|
||||
<script language=javascript>
|
||||
|
||||
|
||||
function sltit(z,y,x,w) {
|
||||
//z:cp_code, y:cp_name, x:cp_depart, w:page(1=modi, 2.3.4=search)
|
||||
if (w == 1) {
|
||||
|
||||
opener.document.pms.cp_code.value = z;
|
||||
opener.document.pms.p_cli_name.value = y;
|
||||
opener.document.pms.p_cli_depart.value = x;
|
||||
}
|
||||
|
||||
self.close();
|
||||
}
|
||||
|
||||
function search_cli() {
|
||||
//if (document.pms.cli_name.value.trim() == '') {
|
||||
// alert('Ŭ<><C5AC><EFBFBD>̾<EFBFBD>Ʈ<EFBFBD><C6AE><EFBFBD><EFBFBD> <20>ۼ<EFBFBD><DBBC><EFBFBD> <20>ּ<EFBFBD><D6BC><EFBFBD>');
|
||||
// document.pms.cli_name.value = '';
|
||||
// document.pms.cli_name.focus();
|
||||
// return false;
|
||||
//}
|
||||
|
||||
document.pms.cli_name.value = document.pms.cli_name.value.trim();
|
||||
//document.pms.action = 'search_cli.asp';
|
||||
document.pms.submit();
|
||||
}
|
||||
|
||||
function modit(z, x) {
|
||||
var tmp_ok = 0;
|
||||
|
||||
if (z >= 2)
|
||||
{
|
||||
for (i = 1; i <= z; i++) {
|
||||
if (document.pms.mod_cli[i-1].checked == true) {
|
||||
tmp_ok = 1;
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
if (document.pms.mod_cli.checked == true)
|
||||
{
|
||||
tmp_ok = 1;
|
||||
}
|
||||
}
|
||||
|
||||
if (tmp_ok != 1) {
|
||||
alert('Client <20><><EFBFBD><EFBFBD><EFBFBD>ڸ<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>ּ<EFBFBD><D6BC><EFBFBD>');
|
||||
document.pms.mod_cli[0].focus();
|
||||
return false;
|
||||
}
|
||||
|
||||
document.pms.action = 'cp_modi.asp?p_cli_code='+x;
|
||||
document.pms.submit();
|
||||
}
|
||||
|
||||
function newit(a) {
|
||||
document.pms.action = 'cp_new.asp?p_cli_code='+a;
|
||||
document.pms.submit();
|
||||
}
|
||||
</script>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<form name="pms" method="post">
|
||||
|
||||
<div style="position: absolute; left: 10px; top: 4px; z-index: 10;">
|
||||
<table border="0" cellspacing="0" cellpadding="0" width="335" bgcolor="white">
|
||||
<tr align="right">
|
||||
<td>
|
||||
<input type="button" value="<22>߰<EFBFBD>" onClick="newit('<%=p_cli_code%>')">
|
||||
|
||||
<input type="button" value="<22><><EFBFBD><EFBFBD>" onClick="modit('<%=rsc.RecordCount%>','<%=p_cli_code%>')">
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<div style="position: absolute; left: 10px; top: 34px; z-index: 10;">
|
||||
<table border="1" cellspacing="0" cellpadding="0" width="335" bgcolor="white">
|
||||
<tr align="center" height="20">
|
||||
<td width="20"> </td>
|
||||
<td><font color="blue"><b>Client <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD></b></font></td>
|
||||
<td width="80"><font color="blue"><b><3E>μ<EFBFBD><CEBC><EFBFBD></b></font></td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<br>
|
||||
<div style="width: 335px; height: 250px; overflow-y: auto;">
|
||||
<table border="1" cellspacing="0" cellpadding="0" width="335">
|
||||
<tr align="center" height="20">
|
||||
<td width="20"> </td>
|
||||
<td><font color="blue"><b>Client <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD></b></font></td>
|
||||
<td width="80"><font color="blue"><b><3E>μ<EFBFBD><CEBC><EFBFBD></b></font></td>
|
||||
</tr>
|
||||
<%
|
||||
for i = 1 to rsc.RecordCount
|
||||
%>
|
||||
<tr align="center">
|
||||
<td><input type="radio" name="mod_cli" value="<%=rsc("cp_code")%>"></td>
|
||||
<td> <a href="javascript:sltit('<%=rsc("cp_code")%>','<%=rsc("cp_name")%>','<%=rsc("cp_depart")%>','<%=v%>')"><font color="blue"><%=rsc("cp_name")%></font></a></td>
|
||||
<td align="center"><%=rsc("cp_depart")%></td>
|
||||
</tr>
|
||||
<%
|
||||
rsc.MoveNext
|
||||
next
|
||||
%>
|
||||
</table>
|
||||
</div>
|
||||
<br>
|
||||
<font color="red">*</font> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <font color="red"><3E><><EFBFBD><EFBFBD></font><3E>Ϸ<EFBFBD><CFB7><EFBFBD> Client <20>ڵ<EFBFBD><DAB5><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ư<EFBFBD><C6B0> <20><><EFBFBD><EFBFBD><EFBFBD>ϰ<EFBFBD> <br> <3B><><EFBFBD><EFBFBD> <20><>ư<EFBFBD><C6B0> <20><><EFBFBD><EFBFBD> <20>ּ<EFBFBD><D6BC><EFBFBD>.
|
||||
<%
|
||||
rsc.Close
|
||||
|
||||
end if 'if p_cli_code = "" then
|
||||
set rsc = nothing
|
||||
%>
|
||||
Reference in New Issue
Block a user