50 lines
1.2 KiB
Plaintext
50 lines
1.2 KiB
Plaintext
<!-- #include virtual = "lib/config.asp" -->
|
|
<%
|
|
|
|
set rsp = server.CreateObject("ADODB.RECORDSET")
|
|
set dbin = server.CreateObject("ADODB.CONNECTION")
|
|
'프로젝트 컨택후 수정 후 실제 등록
|
|
|
|
|
|
|
|
p_sn = request("p_sn") '프로젝트 코드
|
|
state = request("state") '프로젝트 상태(3:수주, 4:연기, 5:탈락)
|
|
|
|
|
|
|
|
Response.Write "p_sn : " & request("p_sn")
|
|
|
|
|
|
'프로젝트 본 테이블 수정
|
|
'---------------------------------------
|
|
query = " UPDATE T_PROJECT_BASE "
|
|
query = query & " SET p_state = '"& state &"'"
|
|
query = query & " WHERE p_sn = '"& p_sn &"'"
|
|
|
|
set dbin = server.CreateObject("ADODB.CONNECTION")
|
|
dbin.Open adoConn
|
|
dbin.Execute query
|
|
dbin.Close
|
|
|
|
|
|
|
|
%>
|
|
<html>
|
|
<script>
|
|
function goit(state) {
|
|
if (state == 'P') {
|
|
alert('프로젝트 수주되었습니다');
|
|
} else if (state == 'D') {
|
|
alert('프로젝트 연기되었습니다');
|
|
} else if (state == 'X') {
|
|
alert('프로젝트 탈락되었습니다');
|
|
}
|
|
location.href = "project_contactlist_2014.asp";
|
|
// history.back();
|
|
}
|
|
</script>
|
|
<body onLoad="goit('<%= state %>')">
|
|
<form name="pms" method="post">
|
|
</form>
|
|
</body>
|
|
</html> |