251 lines
8.5 KiB
Plaintext
251 lines
8.5 KiB
Plaintext
<!-- #include file = "./lib/config.asp" -->
|
|
<%'
|
|
Response.CharSet="utf-8"
|
|
|
|
Response.codepage="65001"
|
|
Response.ContentType="text/html;charset=utf-8"
|
|
|
|
''컨택성공에서 다른 값으로 바뀔경우 쿼터테이블의 컨택성공부수에서 1개 빼기
|
|
|
|
dim login_name '로그인 아이디
|
|
dim login_area '로그인 지역
|
|
dim login_type '로그인 타입(관리자, sv,면접원, 컨택원 등)
|
|
dim kikoan_name '쿼터용 기관명
|
|
dim categori_01, categori_02, categori_03 '쿼터용 기관 카테고리(대,중,소)
|
|
dim kikoan_area '응답자 지역
|
|
dim ani_num '발신번호
|
|
dim extension '면접원 내선번호
|
|
dim dn '응답자 전화번호
|
|
dim field_area_name()
|
|
dim tel_num(2)
|
|
dim chasu
|
|
dim id
|
|
dim login_id
|
|
|
|
login_id = trim(request("login_id"))
|
|
|
|
login_name = trim(request("login_name"))
|
|
login_area = trim(request("login_area"))
|
|
login_type = trim(request("login_type"))
|
|
client_id = trim(request("client_id"))
|
|
extension = trim(request("extension"))
|
|
|
|
kikoan_id = trim(request("kikoan_id"))
|
|
kikoan_name = trim(request("kikoan_name"))
|
|
chasu = trim(request("chasu"))
|
|
comp_area = trim(request("comp_area"))
|
|
|
|
research_comp_name = trim(request("research_comp_name"))
|
|
|
|
categori_check = trim(request("categori_check"))
|
|
categori_check = trim(request("categori_check"))
|
|
categori_01 = trim(request("categori_01"))
|
|
categori_02 = trim(request("categori_02"))
|
|
categori_03 = trim(request("categori_03"))
|
|
categori_04 = trim(request("categori_04"))
|
|
categori_05 = trim(request("categori_05"))
|
|
categori_06 = trim(request("categori_06"))
|
|
categori_07 = trim(request("categori_07"))
|
|
contac_area = trim(request("contac_area"))
|
|
ani_num = trim(request("ani_num"))
|
|
key_id = Request("key_id")
|
|
categori_cnt = request("categori_cnt")
|
|
|
|
add_item1 = trim(request("add_item1"))
|
|
add_item2 = trim(request("add_item2"))
|
|
add_item3 = trim(request("add_item3"))
|
|
add_item4 = trim(request("add_item4"))
|
|
add_item5 = trim(request("add_item5"))
|
|
add_item6 = trim(request("add_item6"))
|
|
add_item7 = trim(request("add_item7"))
|
|
|
|
quota_area = request("quota_area")
|
|
|
|
|
|
field_area = request("field_area")
|
|
save_contac_stat = trim(request("save_contac_stat"))
|
|
contac_stat = request("contac_stat")
|
|
interview_date = request("interview_date")
|
|
interview_area = request("interview_area")
|
|
contac_remark = Replace(request("contac_remark"), "'", "")
|
|
comp_addr_new = request("comp_addr_new")
|
|
email_new = request("email_new")
|
|
email_new2 = request("email_new2")
|
|
tel_new = request("tel_new")
|
|
tel_new2 = request("tel_new2")
|
|
|
|
comp_name_new = request("comp_name_new")
|
|
name_new = request("name_new")
|
|
comp_area_new = request("comp_area_new")
|
|
sex_new = request("sex_new")
|
|
|
|
|
|
tel_num_sel = request("tel_num_sel")
|
|
if cint(tel_num_sel) = 1 then
|
|
contac_ok_tel = request("tel1")
|
|
else
|
|
contac_ok_tel = request("tel2")
|
|
end if
|
|
|
|
' if trim(comp_addr_new) = "" then
|
|
' comp_addr_new = request("comp_addr")
|
|
' end if
|
|
|
|
|
|
''수정의 경우 기존의 컨택결과값을 알아야 됨
|
|
query = "select * from list where id = " & key_id
|
|
adors.open query, adoconn, 1
|
|
pre_contac_stat = adors("contac_stat")
|
|
adors.close
|
|
|
|
query = "update list set "
|
|
query = query & "contac_date = '" & formatdatetime(date,2) & "', "
|
|
query = query & "contac_time = '" & formatdatetime(time,4) & "', "
|
|
query = query & "contactor = '" & login_name & "', "
|
|
query = query & "rechecker = '" & login_name & "', "
|
|
query = query & "contac_stat = " & save_contac_stat & ", "
|
|
query = query & "contac_tel_cnt = contac_tel_cnt + 1, "
|
|
query = query & "contac_ok_tel = '" & contac_ok_tel & "', "
|
|
query = query & "comp_addr_new = '" & comp_addr_new & "', "
|
|
query = query & "email_new = '" & email_new & "', "
|
|
query = query & "email_new2 = '" & email_new2 & "', "
|
|
query = query & "tel_new = '" & tel_new & "', "
|
|
query = query & "tel_new2 = '" & tel_new2 & "', "
|
|
query = query & "field_area = '" & field_area & "', "
|
|
query = query & "contac_remark = '" & contac_remark & "', "
|
|
query = query & "interview_date = '" & interview_date & "', "
|
|
query = query & "interview_area = '" & interview_area & "', "
|
|
query = query & "add_item1 = '" & add_item1 & "', "
|
|
query = query & "add_item2 = '" & add_item2 & "', "
|
|
query = query & "add_item3 = '" & add_item3 & "', "
|
|
query = query & "add_item4 = '" & add_item4 & "', "
|
|
query = query & "add_item5 = '" & add_item5 & "', "
|
|
query = query & "add_item6 = '" & add_item6 & "', "
|
|
query = query & "add_item7 = '" & add_item7 & "', "
|
|
query = query & "comp_name_new = '" & comp_name_new & "', "
|
|
if kikoan_name = "한국교육개발원_초중등학교 인권교육 현황 및 인권의식 분석 설문조사" then
|
|
query = query & "name = '" & name_new & "', "
|
|
else
|
|
query = query & "name_new = '" & name_new & "', "
|
|
end if
|
|
query = query & "comp_area_new = '" & comp_area_new & "', "
|
|
query = query & "sex_new = '" & sex_new & "' "
|
|
|
|
query = query & "where id = " & key_id & " and prj_year = '" & prj_year & "'"
|
|
|
|
'Response.Write query & "<br>"
|
|
|
|
adoconn.execute query
|
|
|
|
''//=============
|
|
''log 저장
|
|
query = "insert into log (key_id, kikoan_name, " & _
|
|
"categori_01, categori_02, categori_03, categori_04, categori_05, categori_06, categori_07, quota_area, " & _
|
|
"list_id, tel_num, user_id, log_date, log_time, log_ip, asp_file_name, contac_stat, log_stat, prj_year) values (" & _
|
|
"'" & key_id & "', " & _
|
|
"'" & kikoan_name & "', " & _
|
|
"'" & categori_01 & "', " & _
|
|
"'" & categori_02 & "', " & _
|
|
"'" & categori_03 & "', " & _
|
|
"'" & categori_04 & "', " & _
|
|
"'" & categori_05 & "', " & _
|
|
"'" & categori_06 & "', " & _
|
|
"'" & categori_07 & "', " & _
|
|
"'" & quota_area & "', " & _
|
|
"'" & request("list_id") & "', " & _
|
|
"'" & contac_ok_tel & "', " & _
|
|
"'" & login_id & "', " & _
|
|
"'" & formatdatetime(date, 2) & "', " & _
|
|
"'" & formatdatetime(time, 4) & "', " & _
|
|
"'" & Request.ServerVariables("remote_addr") & "', " & _
|
|
"'inc_list_save.asp', " & _
|
|
save_contac_stat & ", " & _
|
|
"'컨택결과 저장', " & _
|
|
"'" & prj_year & "')"
|
|
'Response.Write query
|
|
adoconn.execute query
|
|
|
|
|
|
where_query = "where kikoan_name = '" & kikoan_name & "' " & _
|
|
"and categori_01 = '" & categori_01 & "' "
|
|
if isnull(categori_cnt) or categori_cnt = "" or isEmpty(categori_cnt) then
|
|
categori_cnt = "0"
|
|
end if
|
|
response.Write "categori_cnt : " & categori_cnt
|
|
if cint(categori_cnt) >= 2 then
|
|
where_query = where_query & "and categori_02 = '" & categori_02 & "' "
|
|
end if
|
|
if cint(categori_cnt) >= 3 then
|
|
where_query = where_query & "and categori_03 = '" & categori_03 & "' "
|
|
end if
|
|
if cint(categori_cnt) >= 4 then
|
|
where_query = where_query & "and categori_04 = '" & categori_04 & "' "
|
|
end if
|
|
if cint(categori_cnt) >= 5 then
|
|
where_query = where_query & "and categori_05 = '" & categori_05 & "' "
|
|
end if
|
|
if cint(categori_cnt) >= 6 then
|
|
where_query = where_query & "and categori_06 = '" & categori_06 & "' "
|
|
end if
|
|
if cint(categori_cnt) >= 7 then
|
|
where_query = where_query & "and categori_07 = '" & categori_07 & "' "
|
|
end if
|
|
|
|
'%>
|
|
|
|
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
|
|
<html>
|
|
<head>
|
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
|
<title>KRI - 컨택</title>
|
|
|
|
<script type="text/javascript">
|
|
function contec_sel(id)
|
|
{ //기관 재선택 부터
|
|
var f = document.frm_main;
|
|
//f.action = "contac_sel.asp?command=re_contac_sel&id=" + id;
|
|
f.action = "contact_select.asp?command=re_contac_sel";
|
|
f.submit();
|
|
}
|
|
</script>
|
|
|
|
</head>
|
|
|
|
<body class='center' onLoad="sel_way();" oncontextmenu='return false' onselectstart='return false' ondragstart='return false' OnKeyDown='No_BackSpace();ctrlEvent();'>
|
|
<table border='0' cellspacing='0' cellpadding='0' >
|
|
<tr>
|
|
<td class='main' >
|
|
저장 성공
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
|
|
<!-- #include file = "contact_inc_top.asp"-->
|
|
|
|
<!-- #include file = './inc_bottom_script.asp'-->
|
|
</body>
|
|
<script LANGUAGE='javascript' id="clientEventHandlersJS">
|
|
<!--
|
|
function sel_way() {
|
|
if (confirm("확인 클릭 시 [찾기] 화면으로 \n\n취소 클릭 시 다음리스트로 이동합니다.")) {
|
|
search();
|
|
} else {
|
|
subit();
|
|
}
|
|
}
|
|
|
|
function subit()
|
|
{
|
|
var f = document.frm_main;
|
|
f.action = "contact_tel_dial.asp";
|
|
f.submit();
|
|
|
|
}
|
|
|
|
function search(id) { //기관 재선택 부터
|
|
var f = document.frm_main;
|
|
document.frm_main.action = "contact_search.asp";
|
|
document.frm_main.submit();
|
|
}
|
|
//-->
|
|
</script> |