최초커밋
This commit is contained in:
323
contact/TEST.asp
Normal file
323
contact/TEST.asp
Normal file
@@ -0,0 +1,323 @@
|
||||
<!-- #include file = "./lib/config.asp" -->
|
||||
<%'
|
||||
Response.CharSet="utf-8"
|
||||
|
||||
Response.codepage="65001"
|
||||
Response.ContentType="text/html;charset=utf-8"
|
||||
'정형기 기록 - 사용페이지
|
||||
'contact_inc_list(실제 컨택하는 페이지) include 하고있음
|
||||
|
||||
%>
|
||||
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
|
||||
<html>
|
||||
<head>
|
||||
<title>KRC - 컨택</title>
|
||||
<meta charset="utf-8"/>
|
||||
<!--<meta http-equiv="Content-Security-Policy" content="upgrade-insecure-requests">-->
|
||||
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.min.css" integrity="sha384-Vkoo8x4CGsO3+Hhxv8T/Q5PaXtkKtu6ug5TOeNV6gBiFeWPGFN9MuhOf23Q9Ifjh" crossorigin="anonymous">
|
||||
</head>
|
||||
<!-- <body onLoad="DLL_Initialize();fn_login();" onUnload="DLL_Finalize();" leftmargin=10> -->
|
||||
<!-- <body onLoad="DLL_Initialize();fn_login();" style="margin: 0px; padding: 0px;"> -->
|
||||
<body onload="ChildConnect();" style="margin: 0px; padding: 0px;">
|
||||
|
||||
|
||||
<form action="" name="fm" id="fm">
|
||||
<div>
|
||||
<div style="width:980px; margin: 0 auto; border: 0px solid;">
|
||||
<div>
|
||||
<!--자리 번호-->
|
||||
<!-- <input type="hidden" readonly name="loginId" id="loginId" onblur="fn_insertVal(this.value);" value="<%=client_id%>"> -->
|
||||
<input type="hidden" readonly name="loginid" id="loginid" value="<%=client_id%>">
|
||||
<!--내선 번호-->
|
||||
<input type="hidden" readonly name="extension" id="extension" value="<%=extension%>">
|
||||
<!--발신 번호-->
|
||||
<input type="hidden" readonly name="ani_num" id="ani_num" value="<%=ani_num%>" title='발신 번호'>
|
||||
<!--응답자 전화 번호-->
|
||||
<input type="hidden" readonly name="dn" id="dn" value="<%=dn%>">
|
||||
</div>
|
||||
</div>
|
||||
<br />
|
||||
|
||||
<div name="logdata" id="logdata" style="width:100%; height:100px;" ></div>
|
||||
</div>
|
||||
</form>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
<script src="/js/jquery.min.js"></script>
|
||||
<script src="/js/jquery-ajax-call.js"></script>
|
||||
|
||||
<script type="text/javascript">
|
||||
|
||||
// 전역으로 선언
|
||||
var wsocket;
|
||||
var login_id;
|
||||
var login_pnum;
|
||||
var login_name;
|
||||
var ani;
|
||||
|
||||
////////////////////////////////////////////////////////
|
||||
//로그
|
||||
window.addEventListener('message', function(event) {
|
||||
if (event.data.command == "Log") {
|
||||
fn_AppendLog(event.data.message);
|
||||
}
|
||||
});
|
||||
|
||||
function fn_AppendLog(message) {
|
||||
var now = new Date();
|
||||
var hour = now.getHours().toString();
|
||||
var minute = now.getMinutes().toString();
|
||||
var second = now.getSeconds().toString();
|
||||
var millisec = now.getMilliseconds().toString();
|
||||
if (2 != hour.length) {
|
||||
hour = "0" + hour;
|
||||
}
|
||||
if (2 != minute.length) {
|
||||
minute = "0" + minute;
|
||||
}
|
||||
if (2 != second.length) {
|
||||
second = "0" + second;
|
||||
}
|
||||
if (1 == millisec.length) {
|
||||
millisec = "0" + millisec;
|
||||
}
|
||||
if (2 == millisec.length) {
|
||||
millisec = "0" + millisec;
|
||||
}
|
||||
var prefix = hour + ':' + minute + ':' + second + '.' + millisec + ', ';
|
||||
var logger = document.getElementById("logdata");
|
||||
//logger.innerText = logger.innerText + "\r\n" + prefix + message + "\r\n";
|
||||
logger.innerText = "\r\n" + prefix + message + "\r\n" + logger.innerText + "\r\n";
|
||||
}
|
||||
////////////////////////////////////////////////////////
|
||||
|
||||
window.addEventListener('message', function (event) {
|
||||
if (event.data.command == "Connect") {
|
||||
Connect();
|
||||
}
|
||||
else if (event.data.command == "Login") {
|
||||
Login(event.data.loginid, event.data.loginpnum, event.data.loginname);
|
||||
}
|
||||
else if (event.data.command == "Logout") {
|
||||
Logout(event.data.loginid);
|
||||
}
|
||||
else if (event.data.command == "MakeCall") {
|
||||
MakeCall(event.data.loginid, event.data.dn, event.data.ani);
|
||||
}
|
||||
else if (event.data.command == "Hangup") {
|
||||
Hangup(event.data.loginid);
|
||||
}
|
||||
else if (event.data.command == "Ready") {
|
||||
Ready(event.data.loginid);
|
||||
}
|
||||
else if (event.data.command == "Break") {
|
||||
Break(event.data.loginid);
|
||||
}
|
||||
else if (event.data.command == "SetRecordStamp") {
|
||||
SetRecordStamp(event.data.loginid);
|
||||
}
|
||||
}, false);
|
||||
|
||||
// 명령어
|
||||
function Connect() {
|
||||
|
||||
wsocket = new WebSocket("wss://teracall.kric.com:2302");
|
||||
//wsocket = new WebSocket("ws://10.10.11.68:2302");
|
||||
console.log(wsocket);
|
||||
wsocket.onopen = function () {
|
||||
if_log("wsocket connected !");
|
||||
ChildLogin();
|
||||
};
|
||||
|
||||
wsocket.onerror = function(event) {
|
||||
console.error("WebSocket Error:", event);
|
||||
};
|
||||
|
||||
wsocket.onmessage = function (evt) {
|
||||
var received_msg = evt.data;
|
||||
var n = "\n";
|
||||
received_msg = replaceAll(received_msg, ",", "," + n);
|
||||
console.log(received_msg);
|
||||
if_log(received_msg);
|
||||
};
|
||||
|
||||
wsocket.onclose = function (event) {
|
||||
if (event.wasClean) {
|
||||
console.log(`Closed cleanly, code=${event.code}, reason=${event.reason}`);
|
||||
} else {
|
||||
console.error('Connection died');
|
||||
}
|
||||
if_log("connection is closed...");
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
function Login(id, pnum, lname) {
|
||||
login_id = id;
|
||||
login_phone_number = pnum;
|
||||
login_name = lname;
|
||||
|
||||
var data = {
|
||||
"ZCommand": "Login",
|
||||
"AgentLoginID": login_id,
|
||||
"AgentName": login_name,
|
||||
"AgentGroup": "2025",
|
||||
"ANINumber": "12345678",
|
||||
"AgentPhone": login_phone_number
|
||||
}
|
||||
console.log(login_id + ", " + login_phone_number + ", " + login_name);
|
||||
wsocket.send(JSON.stringify(data));
|
||||
|
||||
}
|
||||
|
||||
function Logout(id) {
|
||||
login_id = id;
|
||||
var data = {
|
||||
"ZCommand": "Logout",
|
||||
"AgentLoginID": login_id
|
||||
}
|
||||
wsocket.send(JSON.stringify(data));
|
||||
}
|
||||
|
||||
function MakeCall(id, dn, ani) {
|
||||
login_id = id;
|
||||
dial_number = dn;
|
||||
ani_number = ani;
|
||||
var data = {
|
||||
"ZCommand": "MakeCall",
|
||||
"AgentLoginID": login_id,
|
||||
"DialNumber": dial_number,
|
||||
"ANINumber": ani_number
|
||||
}
|
||||
wsocket.send(JSON.stringify(data));
|
||||
}
|
||||
|
||||
function Hangup(id) {
|
||||
login_id = id;
|
||||
var data = {
|
||||
"ZCommand": "HangUp",
|
||||
"AgentLoginID": login_id
|
||||
}
|
||||
wsocket.send(JSON.stringify(data));
|
||||
}
|
||||
|
||||
function Ready(id) {
|
||||
login_id = id;
|
||||
var data = {
|
||||
"ZCommand": "SetAgentStatus",
|
||||
"AgentLoginID": login_id,
|
||||
"CTIAgentStatus": "1"
|
||||
}
|
||||
wsocket.send(JSON.stringify(data));
|
||||
}
|
||||
|
||||
function Break(id) {
|
||||
login_id = id;
|
||||
var data = {
|
||||
"ZCommand": "SetAgentStatus",
|
||||
"AgentLoginID": login_id,
|
||||
"CTIAgentStatus": "11"
|
||||
}
|
||||
wsocket.send(JSON.stringify(data));
|
||||
}
|
||||
|
||||
function SetRecordStamp(id) {
|
||||
login_id = id;
|
||||
var data = {
|
||||
"ZCommand": "SetRecordStamp",
|
||||
"AgentLoginID": login_id,
|
||||
"Tag": "테스트데이터"
|
||||
}
|
||||
wsocket.send(JSON.stringify(data));
|
||||
}
|
||||
|
||||
// 로그
|
||||
function if_log(val) {
|
||||
/*
|
||||
var frame = document.getElementById("logdata");
|
||||
//frame.contentWindow.postMessage({
|
||||
frame.contentWindow.postMessage({
|
||||
'command': 'Log',
|
||||
'message': val
|
||||
}, "*");
|
||||
*/
|
||||
}
|
||||
|
||||
function replaceAll(str, searchStr, replaceStr) {
|
||||
return str.split(searchStr).join(replaceStr);
|
||||
}
|
||||
|
||||
|
||||
|
||||
function ChildConnect() {
|
||||
window.postMessage({
|
||||
'command': 'Connect'
|
||||
}, "*");
|
||||
}
|
||||
|
||||
function ChildLogin() {
|
||||
var p1 = document.getElementById("loginid").value;
|
||||
var p2 = document.getElementById("extension").value;
|
||||
window.postMessage({
|
||||
'command': 'Login',
|
||||
'loginid': p1,
|
||||
'loginpnum' : p2,
|
||||
'loginname' : 'contactor',
|
||||
}, "*");
|
||||
}
|
||||
|
||||
function ChildLogout() {
|
||||
var p1 = document.getElementById("loginid").value;
|
||||
window.postMessage({
|
||||
'command': 'Logout',
|
||||
'loginid': p1
|
||||
}, "*");
|
||||
}
|
||||
|
||||
function ChildMakeCall() {
|
||||
var p1 = document.getElementById("loginid").value;
|
||||
var dn = document.getElementById("dn").value;
|
||||
var ani_num = document.getElementById("ani_num").value;
|
||||
window.postMessage({
|
||||
'command': 'MakeCall',
|
||||
'loginid': p1,
|
||||
'dn': dn,
|
||||
'ani': ani_num
|
||||
}, "*");
|
||||
}
|
||||
|
||||
function ChildHangup() {
|
||||
var p1 = document.getElementById("loginid").value;
|
||||
window.postMessage({
|
||||
'command': 'Hangup',
|
||||
'loginid': p1
|
||||
}, "*");
|
||||
}
|
||||
|
||||
function ChildReady() {
|
||||
var p1 = document.getElementById("loginid").value;
|
||||
window.postMessage({
|
||||
'command': 'Ready',
|
||||
'loginid': p1
|
||||
}, "*");
|
||||
}
|
||||
|
||||
function ChildBreak() {
|
||||
var p1 = document.getElementById("loginid").value;
|
||||
window.postMessage({
|
||||
'command': 'Break',
|
||||
'loginid': p1
|
||||
}, "*");
|
||||
}
|
||||
|
||||
function ChildSetRecordStamp() {
|
||||
var p1 = document.getElementById("loginid").value;
|
||||
window.postMessage({
|
||||
'command': 'SetRecordStamp',
|
||||
'loginid': p1
|
||||
}, "*");
|
||||
}
|
||||
|
||||
</script>
|
||||
874
contact/contac_sel.asp
Normal file
874
contact/contac_sel.asp
Normal file
@@ -0,0 +1,874 @@
|
||||
<!-- #include file = "./lib/config.asp" -->
|
||||
<%'
|
||||
|
||||
'정형기 기록 - 사용페이지
|
||||
|
||||
''///=============
|
||||
''로그인 후 해당 로그인자가 어느 지역 컨택원, 어느지역 면접원, 어느지역 sv인지 확인 후
|
||||
''컨택원의 경우 컨택리스트의 쿼터 지역 선택하기
|
||||
dim i
|
||||
dim Query
|
||||
|
||||
dim login_pwd
|
||||
dim login_name '로그인 아이디
|
||||
dim login_area '로그인 지역
|
||||
dim login_type '로그인 타입(관리자, sv,면접원, 컨택원 등)
|
||||
dim contac_area '쿼터용 기관명
|
||||
dim categori_01, categori_02, categori_03, categori_04, categori_05, categori_06, categori_07 '쿼터용 기관 카테고리(대,중,소)
|
||||
dim ani_num '발신번호
|
||||
dim client_id '면접원 자리번호
|
||||
dim extension '면접원 내선번호
|
||||
dim categori_cnt
|
||||
dim login_id
|
||||
dim quota_area
|
||||
|
||||
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_name = trim(request("kikoan_name"))
|
||||
kikoan_id = trim(request("kikoan_id"))
|
||||
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"))
|
||||
|
||||
categori_name_01 = trim(request("categori_name_01"))
|
||||
categori_name_02 = trim(request("categori_name_02"))
|
||||
categori_name_03 = trim(request("categori_name_03"))
|
||||
categori_name_04 = trim(request("categori_name_04"))
|
||||
categori_name_05 = trim(request("categori_name_05"))
|
||||
categori_name_06 = trim(request("categori_name_06"))
|
||||
categori_name_07 = trim(request("categori_name_07"))
|
||||
|
||||
categori_label_01 = trim(request("categori_label_01"))
|
||||
categori_label_02 = trim(request("categori_label_02"))
|
||||
categori_label_03 = trim(request("categori_label_03"))
|
||||
categori_label_04 = trim(request("categori_label_04"))
|
||||
categori_label_05 = trim(request("categori_label_05"))
|
||||
categori_label_06 = trim(request("categori_label_06"))
|
||||
categori_label_07 = trim(request("categori_label_07"))
|
||||
|
||||
contac_area = trim(request("contac_area"))
|
||||
ani_num = trim(request("ani_num"))
|
||||
categori_cnt = request("categori_cnt")
|
||||
quota_area = request("quota_area")
|
||||
|
||||
prj_year = "2014"
|
||||
|
||||
'contac_stat = 99 '일단 컨택중으로
|
||||
contac_stat = trim(request("contac_stat"))
|
||||
|
||||
' response.write "kikoan_name : " & kikoan_name & "<br/>"
|
||||
' response.write "kikoan_id : " & kikoan_id & "<br/>"
|
||||
' response.write "login_area : " & login_area & "<br/>"
|
||||
' response.write "quota_area : " & quota_area & "<br/>"
|
||||
' response.write "contac_area : " & contac_area & "<br/>"
|
||||
' response.write "categori_name_01 : " & categori_name_01 & "<br/>"
|
||||
' response.write "categori_name_02 : " & categori_name_02 & "<br/>"
|
||||
' response.write "categori_name_03 : " & categori_name_03 & "<br/>"
|
||||
' response.write "categori_name_04 : " & categori_name_04 & "<br/>"
|
||||
' response.write "categori_name_05 : " & categori_name_05 & "<br/>"
|
||||
' response.write "categori_name_06 : " & categori_name_06 & "<br/>"
|
||||
' response.write "categori_name_07 : " & categori_name_07 & "<br/>"
|
||||
' response.write "categori_label_01 : " & categori_label_01 & "<br/>"
|
||||
' response.write "categori_label_02 : " & categori_label_02 & "<br/>"
|
||||
' response.write "categori_label_03 : " & categori_label_03 & "<br/>"
|
||||
' response.write "categori_label_04 : " & categori_label_04 & "<br/>"
|
||||
' response.write "categori_label_05 : " & categori_label_05 & "<br/>"
|
||||
' response.write "categori_label_06 : " & categori_label_06 & "<br/>"
|
||||
' response.write "categori_label_07 : " & categori_label_07 & "<br/>"
|
||||
' response.write "categori_01 : " & categori_01 & "<br/>"
|
||||
' response.write "categori_02 : " & categori_02 & "<br/>"
|
||||
' response.write "categori_03 : " & categori_03 & "<br/>"
|
||||
' response.write "categori_04 : " & categori_04 & "<br/>"
|
||||
' response.write "categori_05 : " & categori_05 & "<br/>"
|
||||
' response.write "categori_06 : " & categori_06 & "<br/>"
|
||||
' response.write "categori_07 : " & categori_07 & "<br/>"
|
||||
' response.write "categori_cnt : " & categori_cnt & "<br/>"
|
||||
|
||||
if request("command") = "re_contac_sel" then
|
||||
'컨택화면에서(전화걸기) 올때
|
||||
categori_cnt = 0
|
||||
contac_area = ""
|
||||
kikoan_id = ""
|
||||
kikoan_name = ""
|
||||
'Response.Write "id = " & request("id") & "<br>"
|
||||
'query = "update list set contac_stat = 0 where id = " & request("id") & " and contac_stat = 99"
|
||||
'adoconn.execute query
|
||||
end if
|
||||
|
||||
if cint(categori_cnt) = 0 Then
|
||||
categori_cnt = "0"
|
||||
categori_01 = ""
|
||||
categori_02 = ""
|
||||
categori_03 = ""
|
||||
categori_04 = ""
|
||||
categori_05 = ""
|
||||
categori_06 = ""
|
||||
categori_07 = ""
|
||||
quota_area = ""
|
||||
elseif cint(categori_cnt) = 1 then
|
||||
categori_02 = ""
|
||||
categori_03 = ""
|
||||
categori_04 = ""
|
||||
categori_05 = ""
|
||||
categori_06 = ""
|
||||
categori_07 = ""
|
||||
quota_area = ""
|
||||
elseif cint(categori_cnt) = 2 then
|
||||
categori_03 = ""
|
||||
categori_04 = ""
|
||||
categori_05 = ""
|
||||
categori_06 = ""
|
||||
categori_07 = ""
|
||||
quota_area = ""
|
||||
elseif cint(categori_cnt) = 3 then
|
||||
categori_04 = ""
|
||||
categori_05 = ""
|
||||
categori_06 = ""
|
||||
categori_07 = ""
|
||||
quota_area = ""
|
||||
elseif cint(categori_cnt) = 4 then
|
||||
categori_05 = ""
|
||||
categori_06 = ""
|
||||
categori_07 = ""
|
||||
quota_area = ""
|
||||
elseif cint(categori_cnt) = 5 then
|
||||
categori_06 = ""
|
||||
categori_07 = ""
|
||||
quota_area = ""
|
||||
elseif cint(categori_cnt) = 6 then
|
||||
categori_07 = ""
|
||||
quota_area = ""
|
||||
end if
|
||||
|
||||
' response.write "categori_cnt : " & cint(categori_cnt)
|
||||
|
||||
''배수조절
|
||||
if kikoan_name = "대한적십자사" then
|
||||
beasu = "2.0"
|
||||
else
|
||||
beasu = "1.2"
|
||||
end if
|
||||
|
||||
beasu = 1000 '12월 20일 15시자로 컨택 갯수 제한 해제(나부장님 요청)
|
||||
quota_chk_where = "((quota * " & cdbl(beasu) & ") - contac_quota_ok + interview_quota_fail > 0 ) "
|
||||
|
||||
'%>
|
||||
|
||||
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv='Content-Type'content='text/html; charset=utf-8'>
|
||||
<title>KRC - 컨택</title>
|
||||
<link rel='stylesheet' type='text/css' href='<%=domain_url%>:8888/capi/css/basic_new.css'>
|
||||
<script language='javascript' src='<%=domain_url%>:8888/capi/js/common.js'></script>
|
||||
|
||||
<script src="/js/jquery.min.js"></script>
|
||||
<script src="/js/jquery-ajax-call.js"></script>
|
||||
|
||||
</head>
|
||||
<body topmargin=0 leftmargin=50 bgcolor = '#f8f8f8' OnKeyDown='No_BackSpace();ctrlEvent();'>
|
||||
<form method=post name='frm_main'>
|
||||
<input type='hidden' value = '<%=categori_label_01%>' name='categori_label_01' id='categori_label_01'/>
|
||||
<input type='hidden' value = '<%=categori_label_02%>' name='categori_label_02' id='categori_label_02'/>
|
||||
<input type='hidden' value = '<%=categori_label_03%>' name='categori_label_03' id='categori_label_03'/>
|
||||
<input type='hidden' value = '<%=categori_label_04%>' name='categori_label_04' id='categori_label_04'/>
|
||||
<input type='hidden' value = '<%=categori_label_05%>' name='categori_label_05' id='categori_label_05'/>
|
||||
<input type='hidden' value = '<%=categori_label_06%>' name='categori_label_06' id='categori_label_06'/>
|
||||
<input type='hidden' value = '<%=categori_label_07%>' name='categori_label_07' id='categori_label_07'/>
|
||||
<input type='hidden' value = '<%=prj_year%>' name='prj_year' id='prj_year'/>
|
||||
|
||||
<table width=900 height=100% cellpadding='0' cellspacing='0' border='0' >
|
||||
<tr>
|
||||
<td height='3' bgcolor='#dadada'>
|
||||
<%if Request.ServerVariables("remote_addr") = "10.10.17.52" or Request.ServerVariables("remote_addr") = "1.235.195.52" then%>
|
||||
(contac_sel.asp)
|
||||
<%end if%>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td valign='top'>
|
||||
<table width=100% cellpadding='0' cellspacing='0' border='1'>
|
||||
<tr height=30>
|
||||
<input type='hidden' value = '<%=login_id%>' name = 'login_id'>
|
||||
<td align='center'>로그인 아이디</td>
|
||||
<td align='center'>
|
||||
<input type='text' readonly name='login_name' value='<%=login_name%>'> <!-- '로그인 아이디 -->
|
||||
</td>
|
||||
<td align='center'>로그인 유형</td>
|
||||
<td align='center'>
|
||||
<input type='text' readonly name='login_type' value='<%=login_type%>'> <!-- '로그인 타입(관리자, sv,면접원, 컨택원 등) -->
|
||||
</td>
|
||||
<td align='center'>로그인 지역</td>
|
||||
<td align='center'>
|
||||
<input type='text' readonly name='login_area' value='<%=login_area%>'> <!-- '로그인 지역(krc, 그 외) -->
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr height=30>
|
||||
<td align='center'>자리번호</td>
|
||||
<td align='center'>
|
||||
<input type='text' readonly name = 'client_id' value = '<%=client_id%>'> <!-- '면접원 자리번호 -->
|
||||
</td>
|
||||
<td align='center'>내선번호</td>
|
||||
<td align='center'>
|
||||
<input type='text' readonly name = 'extension' value = '<%=extension%>' > <!-- '면접원 내선번호 -->
|
||||
</td>
|
||||
<td align='center'>발신번호</td>
|
||||
<td align='center'>
|
||||
<input type='text' readonly name='ani_num' value='<%=ani_num%>'> <!-- '발신번호-->
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<td>선택 케테고리 갯수</td>
|
||||
<td>
|
||||
<input type='text' readonly name='categori_cnt' value='<%=categori_cnt%>'> <!-- '쿼터용 지역 -->
|
||||
</td>
|
||||
<td>
|
||||
<img src="<%=domain_url%>:8888/images/makecall/btn_logout_02.jpg" onclick="fn_logout();" title ='로그 아웃' style='cursor:hand;' >
|
||||
</td>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td height='100%' valign='top' style='padding:10px 10px 10px 10px;'>
|
||||
<table width='100%' cellpadding='0' cellspacing='0' border='0'>
|
||||
<tr>
|
||||
<td align='center' style='padding:10px 0px 0px 0px;'>
|
||||
<table width='100%' cellpadding='10' cellspacing='0' border='0' bgcolor='#DADADA' style='border:1px solid #DADADA;'>
|
||||
<tr>
|
||||
<td bgcolor='#FFFFFF'>
|
||||
<table width='100%' cellpadding='3' cellspacing='1' border='1' bgcolor='#DADADA'>
|
||||
|
||||
<!--타이틀 -->
|
||||
<tr bgcolor=DeepSkyBlue>
|
||||
<td colspan=2 align='center' style="font-size:10pt;"><%=login_name%> 님은 <%=login_area%> 지역의 <%=login_type%> 입니다. 컨택할 쿼터 셀 선택</td>
|
||||
</tr>
|
||||
<!--프로젝트명 -->
|
||||
<tr >
|
||||
<td bgcolor=Aqua style="font-size:10pt;" width=200 align="center">프로젝트</td>
|
||||
<td bgcolor=Aqua style="font-size:10pt;" width=580>
|
||||
<input type="hidden" name="kikoan_name" value="<%=kikoan_name%>" />
|
||||
<select id="kikoan_id" name="kikoan_id">
|
||||
<%''컨택 쿼터가 남은 경우의 리스트 가져오기
|
||||
if kikoan_name = "" then%>
|
||||
<OPTION value='' selected>선택</option>
|
||||
<%
|
||||
end If
|
||||
|
||||
'query = "select id, kikoan_name from kikoan_list where contac_area like '%" & login_area & "%'"
|
||||
query = "select id, kikoan_name from kikoan_list"
|
||||
adors.open query, adoconn, 1
|
||||
|
||||
dim tmp_kikoan_name_list()
|
||||
redim tmp_kikoan_name_list(adors.recordcount)
|
||||
i = 0
|
||||
|
||||
do while not adors.eof
|
||||
i = i + 1
|
||||
tmp_kikoan_name_list(i) = adors("kikoan_name")
|
||||
|
||||
%>
|
||||
<OPTION value='<%=adors("id")%>' <%if trim(adors("id")) = trim(kikoan_id) then%> selected <%end if%>><%=adors("kikoan_name")%></option>
|
||||
<%
|
||||
|
||||
adors.movenext
|
||||
Loop
|
||||
|
||||
adors.close
|
||||
%>
|
||||
</select>
|
||||
<input type="button" value="다음 분류 선택" onclick="categorySelect()" style='width:100px; cursor:hand; font-weight:bold; border-style:outset;'/>
|
||||
<input type="button" value="쿼터별 결과" onclick="contact_project_resultList()" style='width:80px; cursor:hand; font-weight:bold; border-style:outset;'/>
|
||||
<input type="button" value="전체 결과" onclick="contact_allProject_resultList()" style='width:80px; cursor:hand; font-weight:bold; border-style:outset;'/>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<!--categori_01 -->
|
||||
<%
|
||||
if kikoan_id <> "" then
|
||||
%>
|
||||
<tr align='center'>
|
||||
<%
|
||||
query = "SELECT id, category_code, category_label, attribute1, attribute2, attribute3, kikoan_id, category_index, category_name " & _
|
||||
"FROM category_code where category_index = 1 AND kikoan_id = '" & kikoan_id & "' "
|
||||
adors.open query, adoconn, 1
|
||||
|
||||
dim tmp_categori_01_list()
|
||||
redim tmp_categori_01_list(adors.recordcount)
|
||||
i = 0
|
||||
|
||||
do while not adors.eof
|
||||
i = i + 1
|
||||
If i = 1 Then
|
||||
categori_name_01 = adors("category_name")
|
||||
%>
|
||||
<td bgcolor=Aqua style="font-size:10pt;" width=150>분류1(<input type="text" name="categori_name_01" value="<%=adors("category_name")%>" readonly/>)</td>
|
||||
<td bgcolor=Aqua style="font-size:10pt;" width=500>
|
||||
<select id='categori_01' name="categori_01" onchange="subit('1')" >
|
||||
<%
|
||||
End If
|
||||
|
||||
if categori_01 = "" And i = 1 Then
|
||||
%>
|
||||
<OPTION value='분류1' selected>선택</option>
|
||||
<%
|
||||
end If
|
||||
|
||||
tmp_categori_01_list(i) = adors("category_label")
|
||||
|
||||
%>
|
||||
<OPTION value='<%=adors("category_code")%>' <%if trim(adors("category_code")) = trim(categori_01) then%> selected <%end if%>><%=adors("category_label")%></option>
|
||||
<%
|
||||
|
||||
adors.movenext
|
||||
Loop
|
||||
|
||||
adors.close
|
||||
%>
|
||||
</td>
|
||||
</tr>
|
||||
<%
|
||||
End if
|
||||
%>
|
||||
|
||||
|
||||
<!--categori_02 -->
|
||||
<%
|
||||
if categori_01 <> "" then
|
||||
%>
|
||||
<tr align='center'>
|
||||
<%
|
||||
query = "SELECT id, category_code, category_label, attribute1, attribute2, attribute3, kikoan_id, category_index, category_name " & _
|
||||
"FROM category_code where category_index = 2 AND kikoan_id = '" & kikoan_id & "' "
|
||||
adors.open query, adoconn, 1
|
||||
|
||||
dim tmp_categori_02_list()
|
||||
redim tmp_categori_02_list(adors.recordcount)
|
||||
i = 0
|
||||
|
||||
do while not adors.eof
|
||||
i = i + 1
|
||||
If i = 1 Then
|
||||
categori_name_02 = adors("category_name")
|
||||
%>
|
||||
<td bgcolor=Aqua style="font-size:10pt;" width=150>분류2(<input type="text" name="categori_name_02" value="<%=adors("category_name")%>" readonly/>)</td>
|
||||
<td bgcolor=Aqua style="font-size:10pt;" width=500>
|
||||
<select id='categori_02' name="categori_02" onchange="subit('2')" >
|
||||
<%
|
||||
End If
|
||||
|
||||
if categori_02 = "" And i = 1 Then
|
||||
%>
|
||||
<OPTION value='분류2' selected>선택</option>
|
||||
<%
|
||||
end If
|
||||
|
||||
tmp_categori_02_list(i) = adors("category_label")
|
||||
|
||||
%>
|
||||
<OPTION value='<%=adors("category_code")%>' <%if trim(adors("category_code")) = trim(categori_02) then%> selected <%end if%>><%=adors("category_label")%></option>
|
||||
<%
|
||||
|
||||
adors.movenext
|
||||
Loop
|
||||
|
||||
adors.close
|
||||
%>
|
||||
</td>
|
||||
</tr>
|
||||
<%
|
||||
End if
|
||||
%>
|
||||
|
||||
|
||||
<!--categori_03 -->
|
||||
<%
|
||||
if categori_02 <> "" then
|
||||
%>
|
||||
<tr align='center'>
|
||||
<%
|
||||
query = "SELECT id, category_code, category_label, attribute1, attribute2, attribute3, kikoan_id, category_index, category_name " & _
|
||||
"FROM category_code where category_index = 3 AND kikoan_id = '" & kikoan_id & "' "
|
||||
adors.open query, adoconn, 1
|
||||
|
||||
dim tmp_categori_03_list()
|
||||
redim tmp_categori_03_list(adors.recordcount)
|
||||
i = 0
|
||||
|
||||
do while not adors.eof
|
||||
i = i + 1
|
||||
If i = 1 Then
|
||||
categori_name_03 = adors("category_name")
|
||||
%>
|
||||
<td bgcolor=Aqua style="font-size:10pt;" width=150>분류3(<input type="text" name="categori_name_03" value="<%=adors("category_name")%>" readonly/>)</td>
|
||||
<td bgcolor=Aqua style="font-size:10pt;" width=500>
|
||||
<select id='categori_03' name="categori_03" onchange="subit('3')" >
|
||||
<%
|
||||
End If
|
||||
|
||||
if categori_03 = "" And i = 1 Then
|
||||
%>
|
||||
<OPTION value='분류3' selected>선택</option>
|
||||
<%
|
||||
end If
|
||||
|
||||
tmp_categori_03_list(i) = adors("category_label")
|
||||
|
||||
%>
|
||||
<OPTION value='<%=adors("category_code")%>' <%if trim(adors("category_code")) = trim(categori_03) then%> selected <%end if%>><%=adors("category_label")%></option>
|
||||
<%
|
||||
|
||||
adors.movenext
|
||||
Loop
|
||||
|
||||
adors.close
|
||||
%>
|
||||
</td>
|
||||
</tr>
|
||||
<%
|
||||
End if
|
||||
%>
|
||||
|
||||
|
||||
<!--categori_04 -->
|
||||
<%
|
||||
if categori_03 <> "" then
|
||||
%>
|
||||
<tr align='center'>
|
||||
<%
|
||||
query = "SELECT id, category_code, category_label, attribute1, attribute2, attribute3, kikoan_id, category_index, category_name " & _
|
||||
"FROM category_code where category_index = 4 AND kikoan_id = '" & kikoan_id & "' "
|
||||
adors.open query, adoconn, 1
|
||||
|
||||
dim tmp_categori_04_list()
|
||||
redim tmp_categori_04_list(adors.recordcount)
|
||||
i = 0
|
||||
|
||||
do while not adors.eof
|
||||
i = i + 1
|
||||
If i = 1 Then
|
||||
categori_name_04 = adors("category_name")
|
||||
%>
|
||||
<td bgcolor=Aqua style="font-size:10pt;" width=150>분류4(<input type="text" name="categori_name_04" value="<%=adors("category_name")%>" readonly/>)</td>
|
||||
<td bgcolor=Aqua style="font-size:10pt;" width=500>
|
||||
<select id='categori_04' name="categori_04" onchange="subit('4')" >
|
||||
<%
|
||||
End If
|
||||
|
||||
if categori_04 = "" And i = 1 Then
|
||||
%>
|
||||
<OPTION value='분류4' selected>선택</option>
|
||||
<%
|
||||
end If
|
||||
|
||||
tmp_categori_04_list(i) = adors("category_label")
|
||||
|
||||
%>
|
||||
<OPTION value='<%=adors("category_code")%>' <%if trim(adors("category_code")) = trim(categori_04) then%> selected <%end if%>><%=adors("category_label")%></option>
|
||||
<%
|
||||
|
||||
adors.movenext
|
||||
Loop
|
||||
|
||||
adors.close
|
||||
%>
|
||||
</td>
|
||||
</tr>
|
||||
<%
|
||||
End if
|
||||
%>
|
||||
|
||||
|
||||
<!--categori_05 -->
|
||||
<%
|
||||
if categori_04 <> "" then
|
||||
%>
|
||||
<tr align='center'>
|
||||
<%
|
||||
query = "SELECT id, category_code, category_label, attribute1, attribute2, attribute3, kikoan_id, category_index, category_name " & _
|
||||
"FROM category_code where category_index = 5 AND kikoan_id = '" & kikoan_id & "' "
|
||||
adors.open query, adoconn, 1
|
||||
|
||||
dim tmp_categori_05_list()
|
||||
redim tmp_categori_05_list(adors.recordcount)
|
||||
i = 0
|
||||
|
||||
do while not adors.eof
|
||||
i = i + 1
|
||||
If i = 1 Then
|
||||
categori_name_05 = adors("category_name")
|
||||
%>
|
||||
<td bgcolor=Aqua style="font-size:10pt;" width=150>분류5(<input type="text" name="categori_name_05" value="<%=adors("category_name")%>" readonly/>)</td>
|
||||
<td bgcolor=Aqua style="font-size:10pt;" width=500>
|
||||
<select id='categori_05' name="categori_05" onchange="subit('5')" >
|
||||
<%
|
||||
End If
|
||||
|
||||
if categori_05 = "" And i = 1 Then
|
||||
%>
|
||||
<OPTION value='분류5' selected>선택</option>
|
||||
<%
|
||||
end If
|
||||
|
||||
tmp_categori_05_list(i) = adors("category_label")
|
||||
|
||||
%>
|
||||
<OPTION value='<%=adors("category_code")%>' <%if trim(adors("category_code")) = trim(categori_05) then%> selected <%end if%>><%=adors("category_label")%></option>
|
||||
<%
|
||||
|
||||
adors.movenext
|
||||
Loop
|
||||
|
||||
adors.close
|
||||
%>
|
||||
</td>
|
||||
</tr>
|
||||
<%
|
||||
End if
|
||||
%>
|
||||
|
||||
|
||||
<!--categori_06 -->
|
||||
<%
|
||||
if categori_05 <> "" then
|
||||
%>
|
||||
<tr align='center'>
|
||||
<%
|
||||
query = "SELECT id, category_code, category_label, attribute1, attribute2, attribute3, kikoan_id, category_index, category_name " & _
|
||||
"FROM category_code where category_index = 6 AND kikoan_id = '" & kikoan_id & "' "
|
||||
adors.open query, adoconn, 1
|
||||
|
||||
dim tmp_categori_06_list()
|
||||
redim tmp_categori_06_list(adors.recordcount)
|
||||
i = 0
|
||||
|
||||
do while not adors.eof
|
||||
i = i + 1
|
||||
If i = 1 Then
|
||||
categori_name_06 = adors("category_name")
|
||||
%>
|
||||
<td bgcolor=Aqua style="font-size:10pt;" width=400>분류6(<input type="text" name="categori_name_06" value="<%=adors("category_name")%>" readonly/>)</td>
|
||||
<td bgcolor=Aqua style="font-size:10pt;" width=500>
|
||||
<select id='categori_06' name="categori_06" onchange="subit('6')" >
|
||||
<%
|
||||
End If
|
||||
|
||||
if categori_06 = "" And i = 1 Then
|
||||
%>
|
||||
<OPTION value='분류6' selected>선택</option>
|
||||
<%
|
||||
end If
|
||||
|
||||
tmp_categori_06_list(i) = adors("category_label")
|
||||
|
||||
%>
|
||||
<OPTION value='<%=adors("category_code")%>' <%if trim(adors("category_code")) = trim(categori_06) then%> selected <%end if%>><%=adors("category_label")%></option>
|
||||
<%
|
||||
|
||||
adors.movenext
|
||||
Loop
|
||||
|
||||
adors.close
|
||||
%>
|
||||
</td>
|
||||
</tr>
|
||||
<%
|
||||
End if
|
||||
%>
|
||||
|
||||
|
||||
<!--categori_07 -->
|
||||
<%
|
||||
if categori_06 <> "" then
|
||||
%>
|
||||
<tr align='center'>
|
||||
<%
|
||||
query = "SELECT id, category_code, category_label, attribute1, attribute2, attribute3, kikoan_id, category_index, category_name " & _
|
||||
"FROM category_code where category_index = 7 AND kikoan_id = '" & kikoan_id & "' "
|
||||
adors.open query, adoconn, 1
|
||||
|
||||
dim tmp_categori_07_list()
|
||||
redim tmp_categori_07_list(adors.recordcount)
|
||||
i = 0
|
||||
|
||||
do while not adors.eof
|
||||
i = i + 1
|
||||
If i = 1 Then
|
||||
categori_name_07 = adors("category_name")
|
||||
%>
|
||||
<td bgcolor=Aqua style="font-size:10pt;" width=400>분류7(<input type="text" name="categori_name_07" value="<%=adors("category_name")%>" readonly/>)</td>
|
||||
<td bgcolor=Aqua style="font-size:10pt;" width=500>
|
||||
<select id='categori_07' name="categori_07" onchange="subit('7')" >
|
||||
<%
|
||||
End If
|
||||
|
||||
if categori_07 = "" And i = 1 Then
|
||||
%>
|
||||
<OPTION value='분류7' selected>선택</option>
|
||||
<%
|
||||
end If
|
||||
|
||||
tmp_categori_07_list(i) = adors("category_label")
|
||||
|
||||
%>
|
||||
<OPTION value='<%=adors("category_code")%>' <%if trim(adors("category_code")) = trim(categori_07) then%> selected <%end if%>><%=adors("category_label")%></option>
|
||||
<%
|
||||
|
||||
adors.movenext
|
||||
Loop
|
||||
|
||||
adors.close
|
||||
%>
|
||||
</td>
|
||||
</tr>
|
||||
<%
|
||||
End if
|
||||
%>
|
||||
|
||||
|
||||
<!--categori_END -->
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td bgcolor='#FFFFFF'>
|
||||
<table width='100%' cellpadding='3' cellspacing='1' border='1' bgcolor='#DADADA'>
|
||||
<tr>
|
||||
<td width='100' align='center'>
|
||||
<span stype="font-weight:bold;">컨택결과 : </span>
|
||||
</td>
|
||||
<td width='400' align='center' bgcolor='#FFFFFF'>
|
||||
<input type="radio" value="0" name="contac_stat" style="border: 0px;" checked/>미사용
|
||||
|
||||
<input type="radio" value="1" name="contac_stat"style="border: 0px;" />면접예정
|
||||
|
||||
<input type="radio" value="2" name="contac_stat"style="border: 0px;" />부재중
|
||||
|
||||
<input type="radio" value="4" name="contac_stat"style="border: 0px;" />비수신
|
||||
</td>
|
||||
<td align='center' >
|
||||
<input type = button value='전화걸기 화면으로' onclick='tel_dial();'
|
||||
style='cursor:hand; font-weight:bold; border-style:outset; height: 30px;' >
|
||||
</td>
|
||||
<td align='center' bgcolor='#FFFFFF'>
|
||||
<img src='<%=domain_url%>:8888/images/common/btn_search.jpg' onclick='search()' style='cursor:hand;VERTICAL-ALIGN: middle;' title='찾기'>
|
||||
</td>
|
||||
</tr>
|
||||
<tr style="display:none">
|
||||
<td align='center' >
|
||||
<input id='testBtn' type = button value='jQuery Test' style='cursor:hand' onclick='jqTest()'/>
|
||||
</td>
|
||||
</tr>
|
||||
<tr style="display:none">
|
||||
<td align='center' id='ajaxLayer'>
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<%
|
||||
If login_name = "윤주희" Or login_name = "김나연" Or login_name = "박정욱" Or login_name = "어인선" Or login_name = "컨택" Then
|
||||
%>
|
||||
<tr>
|
||||
<td bgcolor='#FFFFFF'>
|
||||
<table width='100%' cellpadding='3' cellspacing='1' border='1' bgcolor='#DADADA'>
|
||||
<tr>
|
||||
<td width='100' align='center'>
|
||||
<span stype="font-weight:bold;">리스트 초기화 : </span>
|
||||
</td>
|
||||
<td width='400' align='center' bgcolor='#FFFFFF'>
|
||||
<input type="radio" value="0" name="init_stat" style="border: 0px;" />미사용
|
||||
|
||||
<input type="radio" value="1" name="init_stat"style="border: 0px;" />면접예정
|
||||
|
||||
<input type="radio" value="2" name="init_stat"style="border: 0px;" />부재중
|
||||
|
||||
<input type="radio" value="4" name="init_stat"style="border: 0px;" />비수신
|
||||
</td>
|
||||
<td align='center' bgcolor='#FFFFFF' colspan=2>
|
||||
<input type = button value='리스트 초기화' onclick='init_list();'
|
||||
style='cursor:hand; font-weight:bold; border-style:outset; height: 30px;' >
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<%
|
||||
End if
|
||||
%>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td valign="top" id= "resultList" align="center">
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<input type='hidden' size=10 readonly name='categori_cnt_tmp' value='<%=categori_cnt_tmp%>'> <!-- '선택해야 할 카테고리 갯수 지역 -->
|
||||
|
||||
<!-- #include file = "inc_bottom.asp"-->
|
||||
|
||||
<script LANGUAGE='JavaScript'>
|
||||
function jqTest(){
|
||||
$('#testBtn').attr("value", "jquery ㅎㅎㅎ 된다");
|
||||
ajaxCall("./testAjax.asp", null, '#ajaxLayer', "post", "returnFunc()");
|
||||
}
|
||||
|
||||
function returnFunc(){
|
||||
$('#testBtn').attr("value", "ajax ㅎㅎㅎ 된다");
|
||||
}
|
||||
|
||||
function fn_logout(){
|
||||
var f = document.frm_main;
|
||||
f.action = 'login.asp';
|
||||
f.submit();
|
||||
}
|
||||
|
||||
function categorySelect()
|
||||
{
|
||||
var f = document.frm_main;
|
||||
|
||||
if (f.kikoan_id.value == "선택" )
|
||||
{
|
||||
alert("프로젝트를 선택하세요");
|
||||
f.kikoan_id.focus();
|
||||
return false;
|
||||
}else{
|
||||
f.categori_cnt.value = '0';
|
||||
|
||||
var el = document.getElementById('kikoan_id');
|
||||
var text = el.options[el.selectedIndex].innerHTML;
|
||||
|
||||
f.kikoan_name.value = text
|
||||
f.action = "contac_sel.asp";
|
||||
f.submit();
|
||||
}
|
||||
}
|
||||
|
||||
function subit(opt)
|
||||
{
|
||||
var f = document.frm_main;
|
||||
|
||||
f.categori_cnt.value = opt;
|
||||
//f.kikoan_id.value = f.kikoan_id.value;
|
||||
|
||||
var objname = 'categori_0'+opt;
|
||||
var objname2 = 'categori_label_0'+opt;
|
||||
var el = document.getElementById(objname);
|
||||
var text = el.options[el.selectedIndex].innerHTML;
|
||||
var el_label = document.getElementById(objname2);
|
||||
el_label.value = text;
|
||||
f.action = "contac_sel.asp";
|
||||
f.submit();
|
||||
|
||||
}
|
||||
|
||||
function search(id)
|
||||
{ //프로젝트 재선택 부터
|
||||
var f = document.frm_main;
|
||||
f.action = "search.asp";
|
||||
f.submit();
|
||||
}
|
||||
|
||||
function tel_dial()
|
||||
{
|
||||
var txt;
|
||||
var f = document.frm_main;
|
||||
|
||||
categori_cnt = f.categori_cnt_tmp.value;
|
||||
|
||||
if (f.kikoan_id.value == "선택" )
|
||||
{
|
||||
alert("프로젝트를 선택하세요");
|
||||
f.kikoan_id.focus();
|
||||
return false;
|
||||
}
|
||||
f.action = "tel_dial.asp";
|
||||
|
||||
|
||||
var el = document.getElementById('kikoan_id');
|
||||
var text = el.options[el.selectedIndex].innerHTML;
|
||||
|
||||
f.kikoan_name.value = text
|
||||
|
||||
f.submit();
|
||||
}
|
||||
|
||||
function init_list(){
|
||||
var txt;
|
||||
var f = document.frm_main;
|
||||
|
||||
categori_cnt = f.categori_cnt_tmp.value;
|
||||
|
||||
if (f.kikoan_id.value == "선택" )
|
||||
{
|
||||
alert("프로젝트를 선택하세요");
|
||||
f.kikoan_id.focus();
|
||||
return false;
|
||||
}
|
||||
|
||||
var init_status = $("input:radio[name=init_stat]:checked").val();
|
||||
if (init_status == undefined )
|
||||
{
|
||||
alert("초기화할 리스트 상태를 선택하세요");
|
||||
return false;
|
||||
}
|
||||
|
||||
var el = document.getElementById('kikoan_id');
|
||||
var text = el.options[el.selectedIndex].innerHTML;
|
||||
|
||||
f.kikoan_name.value = text
|
||||
f.action = "tel_init.asp";
|
||||
f.submit();
|
||||
}
|
||||
function contact_allProject_resultList() {
|
||||
project = $("#kikoan_id option:selected").val();
|
||||
//alert("project : " + project);
|
||||
if(project != ""){
|
||||
ajaxCallJson("contact_ajax_resultList.asp", { project: project }, null, "post", "resultList()");
|
||||
}else{
|
||||
alert("프로젝트를 선택하여 주시기 바랍니다.");
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
function contact_project_resultList() {
|
||||
project = $("#kikoan_id option:selected").val();
|
||||
//alert("project : " + project);
|
||||
if (project != "") {
|
||||
document.frm_main.action = "contact_resultLIst.asp";
|
||||
document.frm_main.submit();
|
||||
} else {
|
||||
alert("프로젝트를 선택하여 주시기 바랍니다.");
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
function resultList() {
|
||||
// alert("1");
|
||||
|
||||
$("#resultList").parent().find("tr").remove();
|
||||
$("#resultList").append(ajaxResponse);
|
||||
|
||||
|
||||
}
|
||||
</script>
|
||||
48
contact/contact_ajax_resultList.asp
Normal file
48
contact/contact_ajax_resultList.asp
Normal file
@@ -0,0 +1,48 @@
|
||||
<!-- #include file = "./lib/config.asp" -->
|
||||
<OBJECT RUNAT=Server PROGID=ADODB.Recordset id=rsp></OBJECT>
|
||||
<%'
|
||||
Response.CharSet="utf-8"
|
||||
|
||||
Response.codepage="65001"
|
||||
Response.ContentType="text/html;charset=utf-8"
|
||||
|
||||
project = request("project")
|
||||
'response.Write "project : " & project & "<BR>"
|
||||
|
||||
Response.CharSet = "utf-8" '한글
|
||||
Response.AddHeader "Pragma","no-cache"
|
||||
Response.AddHeader "cache-control", "no-staff"
|
||||
Response.Expires = -1
|
||||
|
||||
response.write "<table width='50%' cellpadding='0' cellspacing='0' border='1' bgcolor='#DADADA'>"
|
||||
response.write "<tr height=30>"
|
||||
response.write "<td align='center' colspan='2'>프로젝트 컨택 집계 현황</td>"
|
||||
response.write "</tr>"
|
||||
response.write "<tr height=30 style='background-color: #ffffff;'>"
|
||||
response.write "<th align='center'>프로젝트 결과</th>"
|
||||
response.write "<th align='center'>갯 수</th>"
|
||||
response.write "</tr>"
|
||||
|
||||
'query = " select * from kikoan_list "
|
||||
|
||||
query = " SELECT KL.id, L.kikoan_name,L.contac_stat, cs.contac_stat_label, COUNT(L.contac_stat) as COUNT "
|
||||
query = query & " FROM list L LEFT OUTER JOIN kikoan_list KL ON L.kikoan_id = cast(KL.id as varchar(20)) "
|
||||
query = query & " LEFT OUTER JOIN contac_stat CS ON KL.id = CS.kikoan_id AND L.contac_stat = cs.contac_stat "
|
||||
query = query & " WHERE KL.id = '" & project & "' "
|
||||
query = query & " GROUP BY KL.id, L.kikoan_name, L.contac_stat, cs.contac_stat_label "
|
||||
query = query & " ORDER BY L.contac_stat "
|
||||
'response.Write query
|
||||
rsp.Open query, adoConn, 1
|
||||
|
||||
for i=1 to rsp.recordCount
|
||||
response.write "<tr height=30 style='background-color: #ffffff;'>"
|
||||
response.write "<th align='center'>"& rsp("contac_stat_label") &"</th>"
|
||||
response.write "<td align='center'>"& rsp("COUNT") &"</td>"
|
||||
response.write "</tr>"
|
||||
rsp.movenext
|
||||
Next
|
||||
response.write "</table>"
|
||||
|
||||
rsp.close
|
||||
|
||||
%>
|
||||
21
contact/contact_inc_bottom.asp
Normal file
21
contact/contact_inc_bottom.asp
Normal file
@@ -0,0 +1,21 @@
|
||||
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td height='1' bgcolor='#dadada'></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<!-- <td height='28' bgcolor='#FFFFFF' align='left'><img src='<%=domain_url%>:8888/capi/images_new/img_foot.jpg' align='absmiddle'></td> -->
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
|
||||
<%
|
||||
set Adors = nothing
|
||||
|
||||
AdoConn.close
|
||||
set AdoConn = nothing
|
||||
%>
|
||||
<!-- #include file = "./inc_bottom_script.asp"-->
|
||||
|
||||
1704
contact/contact_inc_list.asp
Normal file
1704
contact/contact_inc_list.asp
Normal file
File diff suppressed because it is too large
Load Diff
251
contact/contact_inc_list_save.asp
Normal file
251
contact/contact_inc_list_save.asp
Normal file
@@ -0,0 +1,251 @@
|
||||
<!-- #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>
|
||||
111
contact/contact_inc_top.asp
Normal file
111
contact/contact_inc_top.asp
Normal file
@@ -0,0 +1,111 @@
|
||||
<form method=post name='frm_main'>
|
||||
|
||||
<input type='hidden' value = '<%=kikoan_id%>' name='kikoan_id'/>
|
||||
<input type='hidden' value = '<%=project_type%>' name='project_type'/>
|
||||
<input type='hidden' value = '<%=contac_stat%>' name='contac_stat'/>
|
||||
<input type='hidden' value = '<%=chasu%>' name='chasu'/>
|
||||
<input type='hidden' value = '<%=categori_check%>' name='categori_check'/>
|
||||
<input type='hidden' value = '<%=categori_01%>' name='categori_01'/>
|
||||
<input type='hidden' value = '<%=categori_02%>' name='categori_02'/>
|
||||
<input type='hidden' value = '<%=categori_03%>' name='categori_03'/>
|
||||
<input type='hidden' value = '<%=categori_04%>' name='categori_04'/>
|
||||
<input type='hidden' value = '<%=categori_05%>' name='categori_05'/>
|
||||
<input type='hidden' value = '<%=categori_06%>' name='categori_06'/>
|
||||
<input type='hidden' value = '<%=categori_07%>' name='categori_07'/>
|
||||
<input type='hidden' value = '<%=categori_cnt%>' name='categori_cnt'/>
|
||||
<input type='hidden' value = '<%=comp_area%>' name='comp_area'/>
|
||||
<input type='hidden' value = '<%=prj_year%>' name='prj_year'/>
|
||||
<input type='hidden' value = '<%=quota_area%>' name='quota_area'/>
|
||||
<input type='hidden' value= '<%=research_comp_name%>' name='research_comp_name' />
|
||||
|
||||
<table width=1000 height=100% cellpadding='0' cellspacing='0' border='0' valign='top' style="font-size: 10pt;" >
|
||||
<tr style="visibility: hidden; display: none;">
|
||||
<td valign='top'>
|
||||
<table width=100% cellpadding='0' cellspacing='0' border='0'>
|
||||
<tr height=5>
|
||||
|
||||
<td background='<%=domain_url%>:8888/capi/images_new/top_bg.jpg'></td>
|
||||
</tr>
|
||||
</table>
|
||||
<table width='100%' cellpadding='3' cellspacing='1' border='1' bgcolor='#DADADA'>
|
||||
|
||||
<!--Ÿ<><C5B8>Ʋ -->
|
||||
<tr bgcolor=Aqua height=30>
|
||||
<td colspan=2 align='center' style="font-size:13pt;font-weight:bold">
|
||||
<%=login_name%> <20><><EFBFBD><EFBFBD> <%=login_area%> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <%=login_type%> <20>Դϴ<D4B4>.
|
||||
<%if Request.ServerVariables("remote_addr") = "10.10.17.52" or Request.ServerVariables("remote_addr") = "1.235.195.52" then%>
|
||||
(inc_top.asp)
|
||||
<%end if%>
|
||||
</td>
|
||||
</tr>
|
||||
<!--<2D><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> -->
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
|
||||
<tr>
|
||||
<td height='1' bgcolor='#dadada'></td>
|
||||
</tr>
|
||||
<input type='hidden' readonly value='<%=key_id%>' style='text-align:center' name = 'id'>
|
||||
|
||||
<tr style="display: none;">
|
||||
<td valign='top'>
|
||||
<table width=100% cellpadding='0' cellspacing='0' border='1'>
|
||||
<tr height=30>
|
||||
<td align='center'><3E>α<EFBFBD><CEB1><EFBFBD> <20><><EFBFBD>̵<EFBFBD>
|
||||
<input type='hidden' value = '<%=login_id%>' name = 'login_id'>
|
||||
</td>
|
||||
<td align='center'>
|
||||
<input type='text' readonly name='login_name' value='<%=login_name%>'> <!-- '<27>α<EFBFBD><CEB1><EFBFBD> <20><><EFBFBD>̵<EFBFBD> -->
|
||||
</td>
|
||||
<td align='center'><3E>α<EFBFBD><CEB1><EFBFBD> <20><><EFBFBD><EFBFBD></td>
|
||||
<td align='center'>
|
||||
<input type='text' readonly name='login_type' value='<%=login_type%>'> <!-- '<27>α<EFBFBD><CEB1><EFBFBD> Ÿ<><C5B8>(<28><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>, sv,<2C><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>, <20><><EFBFBD>ÿ<EFBFBD> <20><>) -->
|
||||
</td>
|
||||
<td align='center'><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ<EFBFBD><C6AE></td>
|
||||
<td align='center'>
|
||||
<input type='text' size=40 readonly name='kikoan_name' value='<%=kikoan_name%>' style='font-weight:bold'> <!-- '<27><><EFBFBD>Ϳ<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> -->
|
||||
</td>
|
||||
<td align='center'><3E>α<EFBFBD><CEB1><EFBFBD> <20><><EFBFBD><EFBFBD></td>
|
||||
<td align='center'>
|
||||
<input type='text' readonly name='login_area' value='<%=login_area%>'> '<27>α<EFBFBD><CEB1><EFBFBD> <20><><EFBFBD><EFBFBD>(<28><><EFBFBD><EFBFBD>,<2C>λ<EFBFBD>, <20>뱸, <20><><EFBFBD><EFBFBD>, <20><><EFBFBD><EFBFBD>, <20><><EFBFBD><EFBFBD>)
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr height=30 style="visibility: hidden; display: none;">
|
||||
<td align='center'><3E>ڸ<EFBFBD><DAB8><EFBFBD>ȣ</td>
|
||||
<td align='center'>
|
||||
<input type='text' readonly name = 'client_id' value = '<%=client_id%>'> <!-- '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>ڸ<EFBFBD><DAB8><EFBFBD>ȣ -->
|
||||
</td>
|
||||
<td align='center'><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ</td>
|
||||
<td align='center'>
|
||||
<input type='text' readonly name = 'extension' value = '<%=extension%>' > <!-- '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ -->
|
||||
</td>
|
||||
<td align='center'><3E>߽Ź<DFBD>ȣ</td>
|
||||
<td align='center'>
|
||||
<input type='text' readonly name='ani_num' value='<%=ani_num%>'> <!-- '<27>߽Ź<DFBD>ȣ-->
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<!--
|
||||
<tr height=30 align='center'>
|
||||
<td><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD></td>
|
||||
<td>
|
||||
<input type='text' size=25 readonly name='kikoan_name' value='<%=kikoan_name%>'> '<27><><EFBFBD>Ϳ<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
</td>
|
||||
<td><3E><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD></td>
|
||||
<td>
|
||||
<input type='text' readonly name='contac_area' value='<%=contac_area%>'> '<27><><EFBFBD>Ϳ<EFBFBD> <20><><EFBFBD><EFBFBD>
|
||||
</td>
|
||||
<td><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></td>
|
||||
<td>
|
||||
<input type='text' size=13 readonly name='quota_area' value='<%=quota_area%>'> '<27><><EFBFBD>Ϳ<EFBFBD> <20><><EFBFBD><EFBFBD>
|
||||
<input type='text' size=7 readonly name='categori_cnt' value='<%=categori_cnt%>'> '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> ī<>װ<EFBFBD><D7B0><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>
|
||||
</td>
|
||||
</tr>
|
||||
-->
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
192
contact/contact_login_ok.asp
Normal file
192
contact/contact_login_ok.asp
Normal file
@@ -0,0 +1,192 @@
|
||||
<!-- #include file = "./lib/config.asp" -->
|
||||
<%'
|
||||
Response.CharSet="utf-8"
|
||||
|
||||
Response.codepage="65001"
|
||||
Response.ContentType="text/html;charset=utf-8"
|
||||
'정형기 기록 - 사용페이지
|
||||
'FCS에서 컨택 자동 로그인
|
||||
|
||||
''///=============
|
||||
''로그인 후
|
||||
dim login_pwd
|
||||
dim login_name '로그인 아이디
|
||||
dim login_area '로그인 지역
|
||||
dim login_type '로그인 타입(관리자, sv,면접원, 컨택원 등)
|
||||
dim ani_num '발신번호
|
||||
dim extension '면접원 내선번호
|
||||
dim i
|
||||
dim Query
|
||||
dim local_ip
|
||||
dim client_id '면접원 자리번호
|
||||
dim Makecall_ip_chk
|
||||
|
||||
|
||||
login_name = trim(request("login_name"))
|
||||
login_pwd = trim(request("login_pwd"))
|
||||
'local_ip = Request.ServerVariables("remote_addr")
|
||||
local_ip = trim(request("local_ip"))
|
||||
response.write local_ip
|
||||
if local_ip = "10.10.13.130" then
|
||||
response.write local_ip
|
||||
end if
|
||||
|
||||
Makecall_ip_chk = "true"
|
||||
|
||||
query = ""
|
||||
query = query & " SELECT p_no as id, p_name as login_name, p_pass_new as login_pwd, "
|
||||
query = query & " '서울' as login_area, '관리자' as login_type, p_tel3 as tel , "
|
||||
query = query & " '2014' as prj_year, '코리아리서치' as research_comp_name "
|
||||
query = query & " FROM project2.dbo.person WHERE p_resign = '0' "
|
||||
query = query & " AND p_name = '" & login_name & "' "
|
||||
query = query & " AND p_pass_new = '" & login_pwd & "' "
|
||||
query = query & " union all "
|
||||
query = query & " SELECT id, login_name, login_pwd, "
|
||||
query = query & " login_area, login_type, tel, "
|
||||
query = query & " prj_year, research_comp_name "
|
||||
query = query & " FROM contact.dbo.login_user "
|
||||
query = query & " WHERE login_name = '" & login_name & "' "
|
||||
query = query & " AND login_pwd = '" & login_pwd & "' "
|
||||
'query = "select * from login_user where login_name = '" & login_name & "' and login_pwd = '" & login_pwd & "' and prj_year = '" & prj_year & "'"
|
||||
AdoRs.Open query,adoconn, 1
|
||||
|
||||
'response.Write query & "<br>"
|
||||
if adors.recordcount > 1 or adors.recordcount = 0 then
|
||||
response.Write "<SCRIPT>"
|
||||
response.Write "alert('죄송합니다. 사용 권한이 없습니다.');"
|
||||
response.Write "</script>"
|
||||
else
|
||||
login_id = adors("id")
|
||||
login_area = adors("login_area")
|
||||
login_type = lcase(adors("login_type"))
|
||||
research_comp_name = adors("research_comp_name")
|
||||
adors.close
|
||||
|
||||
''cati db(각 자리의 자리번호 및 발번 가져오기용) - 본사 컨택원 전용
|
||||
|
||||
''' response.Write "local_ip : "&local_ip&"<br>"
|
||||
|
||||
If local_ip = "127.0.0.1" Then
|
||||
'local_ip = "10.10.13.130"
|
||||
End if
|
||||
|
||||
if mid(local_ip,1,6) = "10.10." and (login_type = "컨택" or login_type = "검증원" or login_type = "관리자") then '서울 본사만 해당(web version malecall을 사용하기 위해)
|
||||
ConnectString = "Provider=SQLOLEDB.1;Password=" & PWD & ";Persist Security Info=True;User ID=" & UID & ";Initial Catalog=new_cati;Data Source=" & SV_NAME
|
||||
Set AdoConn_cati = Server.CreateObject("ADODB.Connection")
|
||||
AdoConn_cati.Open ConnectString
|
||||
|
||||
if login_type = "관리자" AND local_ip <> "10.10.17.118" then
|
||||
query = "select * from client where client_ip = '10.10.13.177' "
|
||||
else
|
||||
query = "select * from client where client_ip = '" & local_ip & "'"
|
||||
end if
|
||||
|
||||
adors.open query, AdoConn_cati, 1
|
||||
''' response.Write "query : "&query &"<br>"
|
||||
if adors.recordcount = 1 Then
|
||||
client_id = adors("client_id")
|
||||
ani_num = adors("external_no")
|
||||
extension = adors("internal_no")
|
||||
''' response.Write client_id & " // "&ani_num & " // " & extension
|
||||
else
|
||||
Makecall_ip_chk = "false"
|
||||
end If
|
||||
adors.close
|
||||
|
||||
AdoConn_cati.close
|
||||
set AdoConn_cati = nothing
|
||||
if mid(local_ip,1,6) = "10.10." then
|
||||
''sv가 컨택터 이름으로 sv컴에서 로그인하기에
|
||||
Makecall_ip_chk = "true"
|
||||
end if
|
||||
end if
|
||||
|
||||
|
||||
if Makecall_ip_chk = "true" then
|
||||
'%>
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv='Content-Type' content="text/html;charset=utf-8">
|
||||
<title></title>
|
||||
<script language='javascript' src='<%=domain_url%>:8888/lib/function.js'></script>
|
||||
<script LANGUAGE='javascript' id="clientEventHandlersJS">
|
||||
<!--
|
||||
|
||||
|
||||
function subit()
|
||||
{
|
||||
var login_type = document.login.login_type.value;
|
||||
if (login_type == "컨택")
|
||||
{
|
||||
document.login.action = 'contact_select.asp';
|
||||
}
|
||||
else if (login_type == "sv")
|
||||
{
|
||||
//document.login.action = 'myun_set.asp';
|
||||
document.login.action = 'listView.asp';
|
||||
}
|
||||
else if (login_type == "응대")
|
||||
{
|
||||
document.login.action = 'search.asp';
|
||||
}
|
||||
else if (login_type == "면접원")
|
||||
{
|
||||
document.login.action = 'myun_my_list.asp';
|
||||
}
|
||||
else if (login_type == "검증원")
|
||||
{
|
||||
document.login.action = 'recheck_list_input.asp';
|
||||
}
|
||||
else if (login_type == "관리자")
|
||||
{
|
||||
//2번으로 보내는 이유는 1번 보다 시간이 적게 걸려서
|
||||
//document.login.action = 'report_02.asp';
|
||||
document.login.action = 'contact_select.asp';
|
||||
}
|
||||
else
|
||||
{
|
||||
alert("사용자 타입 지정");
|
||||
return false;
|
||||
}
|
||||
document.login.submit();
|
||||
}
|
||||
|
||||
|
||||
|
||||
//-->
|
||||
</script>
|
||||
|
||||
|
||||
<body class='center' onLoad="subit()" oncontextmenu='return false' onselectstart='return false' ondragstart='return false' OnKeyDown='No_BackSpace();ctrlEvent();'>
|
||||
<form name='login' method='post'>
|
||||
|
||||
<input type='hidden' value = '<%=login_id%>' name = 'login_id'>
|
||||
<input type='hidden' value = '<%=login_area%>' name = 'login_area'>
|
||||
<input type='hidden' value = '<%=login_type%>' name = 'login_type'>
|
||||
<input type='hidden' value = '<%=login_name%>' name = 'login_name'>
|
||||
<input type='hidden' value = '<%=ani_num%>' name = 'ani_num'>
|
||||
<input type='hidden' value = '<%=client_id%>' name = 'client_id'>
|
||||
<input type='hidden' value = '<%=extension%>' name = 'extension'>
|
||||
<input type='hidden' value= '<%=research_comp_name%>' name='research_comp_name' />
|
||||
<table border='0' cellspacing='0' cellpadding='0' >
|
||||
<tr>
|
||||
<td class='main' >
|
||||
<%if lcase(trim(login_type)) = "admin" then%>
|
||||
|
||||
<%end if%>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
<!-- #include file = './inc_bottom_script.asp'-->
|
||||
<%else
|
||||
response.Write "<SCRIPT>"
|
||||
response.Write "alert('누구세요......');"
|
||||
response.Write "setInterval('window.close()',100);"
|
||||
response.Write "</script>"
|
||||
|
||||
end if'if ip_chk = "true" then%>
|
||||
<%end if%>
|
||||
673
contact/contact_resultList.asp
Normal file
673
contact/contact_resultList.asp
Normal file
@@ -0,0 +1,673 @@
|
||||
<!-- #include file = "./lib/config.asp" -->
|
||||
<OBJECT RUNAT=Server PROGID=ADODB.Recordset id=rsp></OBJECT>
|
||||
<OBJECT RUNAT=Server PROGID=ADODB.Recordset id=rs></OBJECT>
|
||||
<%'
|
||||
Response.CharSet="utf-8"
|
||||
Response.codepage="65001"
|
||||
Response.ContentType="text/html;charset=utf-8"
|
||||
'정형기 기록 - 사용페이지
|
||||
|
||||
search_chasu = ""
|
||||
|
||||
project = request("kikoan_id")
|
||||
search_chasu = request("search_chasu")
|
||||
If search_chasu = "" Then
|
||||
search_chasu = "전체표본"
|
||||
End if
|
||||
|
||||
categori_01 = request("categori_01")
|
||||
categori_02 = request("categori_02")
|
||||
categori_03 = request("categori_03")
|
||||
categori_04 = request("categori_04")
|
||||
categori_05 = request("categori_05")
|
||||
categori_06 = request("categori_06")
|
||||
categori_07 = request("categori_07")
|
||||
|
||||
categori_cnt = request("categori_cnt")
|
||||
command = request("command")
|
||||
'테이블 colspan을 위한 count
|
||||
count = 2
|
||||
|
||||
' response.Write search_chasu
|
||||
|
||||
if command="excel" then
|
||||
'Response.Buffer = false
|
||||
response.Write "-------------------------------------------------------------------------------------<BR>"
|
||||
Response.CacheControl = "public"
|
||||
Response.ContentType = "application/vnd.ms-excel"
|
||||
Response.AddHeader "Content-Disposition","attachment;filename=컨택 집계 현황 리스트.xls"
|
||||
end if
|
||||
|
||||
Dim comp_area()
|
||||
|
||||
query = " select comp_area from list where kikoan_id = '" & project & "' and comp_area <> '전국' group by comp_area order by comp_area "
|
||||
rs.Open query, adoConn, 1
|
||||
|
||||
If rs.recordCount > 0 Then
|
||||
if rs("comp_area") <> "" then
|
||||
ReDim comp_area(rs.recordCount)
|
||||
for z=1 to rs.recordCount
|
||||
comp_area(z) = rs("comp_area")
|
||||
' response.Write comp_area(z) & "<br>"
|
||||
rs.movenext
|
||||
Next
|
||||
Else
|
||||
ReDim comp_area(0)
|
||||
end if
|
||||
Else
|
||||
ReDim comp_area(0)
|
||||
End If
|
||||
rs.close
|
||||
|
||||
'response.Write "categori_01 : " & categori_01 & "<BR>"
|
||||
'response.Write "categori_02 : " & categori_02 & "<BR>"
|
||||
'response.Write "categori_03 : " & categori_03 & "<BR>"
|
||||
|
||||
query = " select id, kikoan_name, contac_stat, contac_stat_label, view_index "
|
||||
if (categori_01 <> "" and categori_01 <> "분류1") Then
|
||||
query = query & " , categori_01 , categori_01_label "
|
||||
End If
|
||||
if (categori_02 <> "" and categori_02 <> "분류2") Then
|
||||
query = query & " , categori_02 , categori_02_label "
|
||||
End If
|
||||
if (categori_03 <> "" and categori_03 <> "분류3") Then
|
||||
query = query & " , categori_03 , categori_03_label "
|
||||
End If
|
||||
if (categori_04 <> "" and categori_04 <> "분류4") Then
|
||||
query = query & " , categori_04 , categori_04_label "
|
||||
End If
|
||||
if (categori_05 <> "" and categori_05 <> "분류5") Then
|
||||
query = query & " , categori_05 , categori_05_label "
|
||||
End If
|
||||
if (categori_06 <> "" and categori_06 <> "분류6") Then
|
||||
query = query & " , categori_06 , categori_06_label "
|
||||
End If
|
||||
if (categori_07 <> "" and categori_07 <> "분류7") Then
|
||||
query = query & " , categori_07 , categori_07_label "
|
||||
End if
|
||||
query = query & " , COUNT(contac_stat) as COUNT "
|
||||
query = query & " , sum(전국) as 전국 "
|
||||
|
||||
If UBound(comp_area) > 0 then
|
||||
for z=1 to UBound(comp_area)
|
||||
query = query & " , sum([" & Replace(Replace(comp_area(z), ")", ""), "(", "") & "]) as '" & comp_area(z) & "' "
|
||||
Next
|
||||
End if
|
||||
|
||||
' query = query & " , sum(서울) as 서울 "
|
||||
' query = query & " , sum(인천) as 인천 "
|
||||
' query = query & " , sum(대전) as 대전 "
|
||||
' query = query & " , sum(대구) as 대구 "
|
||||
' query = query & " , sum(부산) as 부산 "
|
||||
' query = query & " , sum(광주) as 광주 "
|
||||
' query = query & " , sum(울산) as 울산 "
|
||||
' query = query & " , sum(강원) as 강원 "
|
||||
' query = query & " , sum(경기) as 경기 "
|
||||
' query = query & " , sum(충남) as 충남 "
|
||||
' query = query & " , sum(충북) as 충북 "
|
||||
' query = query & " , sum(경남) as 경남 "
|
||||
' query = query & " , sum(경북) as 경북 "
|
||||
' query = query & " , sum(전남) as 전남 "
|
||||
' query = query & " , sum(전북) as 전북 "
|
||||
' query = query & " , sum(세종) as 세종 "
|
||||
' query = query & " , sum(제주) as 제주 "
|
||||
query = query & " from ( "
|
||||
query = query & " SELECT KL.id, KL.kikoan_name, cs.contac_stat_label, cs.view_index "
|
||||
'query = query & " , categori_01, categori_02, categori_03, categori_04, categori_05 "
|
||||
if (categori_01 <> "" and categori_01 <> "분류1") Then
|
||||
query = query & " , L.categori_01 "
|
||||
query = query & " , (SELECT category_label FROM category_code WHERE kikoan_id = KL.id and category_index = 1 and category_code = L.categori_01) as categori_01_label "
|
||||
count = count+1
|
||||
end if
|
||||
if (categori_02 <> "" and categori_02 <> "분류2") Then
|
||||
query = query & " , L.categori_02 "
|
||||
query = query & " , (SELECT category_label FROM category_code WHERE kikoan_id = KL.id and category_index = 2 and category_code = L.categori_02) as categori_02_label "
|
||||
count = count+1
|
||||
end if
|
||||
if (categori_03 <> "" and categori_03 <> "분류3") Then
|
||||
query = query & " , L.categori_03 "
|
||||
query = query & " , (SELECT category_label FROM category_code WHERE kikoan_id = KL.id and category_index = 3 and category_code = L.categori_03) as categori_03_label "
|
||||
count = count+1
|
||||
end if
|
||||
if categori_04 <> "" and categori_04 <> "분류4" Then
|
||||
query = query & " , L.categori_04 "
|
||||
query = query & " , (SELECT category_label FROM category_code WHERE kikoan_id = KL.id and category_index = 4 and category_code = L.categori_04) as categori_04_label "
|
||||
count = count+1
|
||||
end if
|
||||
if categori_05 <> "" and categori_05 <> "분류5" Then
|
||||
query = query & " , L.categori_05 "
|
||||
query = query & " , (SELECT category_label FROM category_code WHERE kikoan_id = KL.id and category_index = 5 and category_code = L.categori_05) as categori_05_label "
|
||||
count = count+1
|
||||
end If
|
||||
if categori_06 <> "" and categori_06 <> "분류6" Then
|
||||
query = query & " , L.categori_06 "
|
||||
query = query & " , (SELECT category_label FROM category_code WHERE kikoan_id = KL.id and category_index = 6 and category_code = L.categori_06) as categori_06_label "
|
||||
count = count+1
|
||||
end If
|
||||
if categori_07 <> "" and categori_07 <> "분류7" Then
|
||||
query = query & " , L.categori_07 "
|
||||
query = query & " , (SELECT category_label FROM category_code WHERE kikoan_id = KL.id and category_index = 7 and category_code = L.categori_07) as categori_07_label "
|
||||
count = count+1
|
||||
end if
|
||||
query = query & " , L.contac_stat "
|
||||
query = query & " , case when comp_area = '전국' then 1 else 0 end as 전국 "
|
||||
|
||||
If UBound(comp_area) > 0 Then
|
||||
for z=1 to UBound(comp_area)
|
||||
query = query & " , case when comp_area = '" & comp_area(z) & "' then 1 else 0 end as '" & Replace(Replace(comp_area(z), ")", ""), "(", "") & "' "
|
||||
Next
|
||||
End if
|
||||
|
||||
' query = query & " , case when comp_area = '서울' then 1 else 0 end as 서울 "
|
||||
' query = query & " , case when comp_area = '인천' then 1 else 0 end as 인천 "
|
||||
' query = query & " , case when comp_area = '대전' then 1 else 0 end as 대전 "
|
||||
' query = query & " , case when comp_area = '대구' then 1 else 0 end as 대구 "
|
||||
' query = query & " , case when comp_area = '부산' then 1 else 0 end as 부산 "
|
||||
' query = query & " , case when comp_area = '광주' then 1 else 0 end as 광주 "
|
||||
' query = query & " , case when comp_area = '울산' then 1 else 0 end as 울산 "
|
||||
' query = query & " , case when comp_area = '강원' then 1 else 0 end as 강원 "
|
||||
' query = query & " , case when comp_area = '경기' then 1 else 0 end as 경기 "
|
||||
' query = query & " , case when comp_area = '충남' then 1 else 0 end as 충남 "
|
||||
' query = query & " , case when comp_area = '충북' then 1 else 0 end as 충북 "
|
||||
' query = query & " , case when comp_area = '경남' then 1 else 0 end as 경남 "
|
||||
' query = query & " , case when comp_area = '경북' then 1 else 0 end as 경북 "
|
||||
' query = query & " , case when comp_area = '전남' then 1 else 0 end as 전남 "
|
||||
' query = query & " , case when comp_area = '전북' then 1 else 0 end as 전북 "
|
||||
' query = query & " , case when comp_area = '세종' then 1 else 0 end as 세종 "
|
||||
' query = query & " , case when comp_area = '제주' then 1 else 0 end as 제주 "
|
||||
query = query & " FROM kikoan_list KL LEFT OUTER JOIN list L ON cast(KL.id as varchar) = cast(L.kikoan_id as varchar) "
|
||||
query = query & " LEFT OUTER JOIN contac_stat CS ON KL.id = CS.kikoan_id AND L.contac_stat = cs.contac_stat "
|
||||
query = query & " WHERE KL.id = '" & project & "' "
|
||||
|
||||
If search_chasu = "원표본" then
|
||||
query = query & " and L.chasu = '원표본' "
|
||||
End If
|
||||
|
||||
query = query & " ) as T "
|
||||
' query = query & " WHERE contac_stat = 1 "
|
||||
|
||||
query = query & " GROUP BY id, kikoan_name, contac_stat, contac_stat_label, view_index "
|
||||
if categori_01 <> "" and categori_01 <> "분류1" then
|
||||
query = query & " , categori_01, categori_01_label "
|
||||
end if
|
||||
if categori_02 <> "" and categori_02 <> "분류2" then
|
||||
query = query & " , categori_02, categori_02_label "
|
||||
end if
|
||||
if categori_03 <> "" and categori_03 <> "분류3" then
|
||||
query = query & " , categori_03, categori_03_label "
|
||||
end if
|
||||
if categori_04 <> "" and categori_04 <> "분류4" then
|
||||
query = query & " , categori_04, categori_04_label "
|
||||
end if
|
||||
if categori_05 <> "" and categori_05 <> "분류5" then
|
||||
query = query & " , categori_05, categori_05_label "
|
||||
end If
|
||||
if categori_06 <> "" and categori_06 <> "분류6" then
|
||||
query = query & " , categori_06, categori_06_label "
|
||||
end If
|
||||
if categori_07 <> "" and categori_07 <> "분류7" then
|
||||
query = query & " , categori_07, categori_07_label "
|
||||
end If
|
||||
|
||||
query = query & " ORDER BY "
|
||||
if categori_01 <> "" and categori_01 <> "분류1" then
|
||||
query = query & " categori_01 "
|
||||
end if
|
||||
if categori_02 <> "" and categori_02 <> "분류2" then
|
||||
query = query & " , categori_02 "
|
||||
end if
|
||||
if categori_03 <> "" and categori_03 <> "분류3" then
|
||||
query = query & " , categori_03 "
|
||||
end if
|
||||
if categori_04 <> "" and categori_04 <> "분류4" then
|
||||
query = query & " , categori_04 "
|
||||
end if
|
||||
if categori_05 <> "" and categori_05 <> "분류5" then
|
||||
query = query & " , categori_05 "
|
||||
end If
|
||||
if categori_06 <> "" and categori_06 <> "분류6" then
|
||||
query = query & " , categori_06 "
|
||||
end If
|
||||
if categori_07 <> "" and categori_07 <> "분류7" then
|
||||
query = query & " , categori_07 "
|
||||
end If
|
||||
|
||||
if categori_01 <> "" and categori_01 <> "분류1" then
|
||||
query = query & " , view_index "
|
||||
else
|
||||
query = query & " view_index "
|
||||
end if
|
||||
|
||||
|
||||
'response.Write query
|
||||
rsp.Open query, adoConn, 1
|
||||
|
||||
|
||||
query = " select view_index, contac_stat, contac_stat_label from contac_stat where kikoan_id = " & project & " order by view_index "
|
||||
rs.Open query, adoConn, 1
|
||||
|
||||
Dim contact_status()
|
||||
|
||||
If rs.recordCount > 0 Then
|
||||
ReDim contact_status(rs.recordCount, 2)
|
||||
for z=1 to rs.recordCount
|
||||
contact_status(z, 0) = rs("view_index")
|
||||
contact_status(z, 1) = rs("contac_stat")
|
||||
contact_status(z, 2) = rs("contac_stat_label")
|
||||
|
||||
'response.Write contact_status(z, 2) & "<br>"
|
||||
rs.movenext
|
||||
Next
|
||||
End If
|
||||
|
||||
rs.close
|
||||
%>
|
||||
|
||||
<html>
|
||||
<body>
|
||||
<form name='frm_list' method='post' >
|
||||
<%
|
||||
if command <> "excel" then
|
||||
%>
|
||||
<img src="imgs/btn_move_back.jpg" align="absmiddle" onclick="back();" style='CURSOR:hand;' >
|
||||
<img src="imgs/btn_smallexcel.gif" align="absmiddle" onclick="excel_export();" style='CURSOR:hand;'>
|
||||
<br /><br />
|
||||
<select name="search_chasu">
|
||||
<option value="전체표본" <% If search_chasu = "전체표본" Then %> selected <% End If %> >전체표본</option>
|
||||
<option value="원표본" <% If search_chasu = "원표본" Then %> selected <% End If %> >원표본</option>
|
||||
</select>
|
||||
<input type="button" value="Search" onclick="search()"/>
|
||||
<br /><br />
|
||||
<%
|
||||
end if
|
||||
%>
|
||||
<table width='100%' cellpadding='0' cellspacing='0' border='1' bgcolor='#DADADA'>
|
||||
<input type="hidden" name = 'kikoan_id' value = '<%=project %>' />
|
||||
<input type="hidden" name = 'categori_01' value = '<%=categori_01 %>' />
|
||||
<input type="hidden" name = 'categori_02' value = '<%=categori_02 %>' />
|
||||
<input type="hidden" name = 'categori_03' value = '<%=categori_03 %>' />
|
||||
<input type="hidden" name = 'categori_04' value = '<%=categori_04 %>' />
|
||||
<input type="hidden" name = 'categori_05' value = '<%=categori_05 %>' />
|
||||
<input type="hidden" name = 'categori_06' value = '<%=categori_06 %>' />
|
||||
<input type="hidden" name = 'categori_07' value = '<%=categori_07 %>' />
|
||||
<input type="hidden" name = 'categori_cnt' value = '<%=categori_cnt %>' />
|
||||
|
||||
<tr>
|
||||
<th colspan = "<%=count + 18 %>" align="center" height=30><%=rsp("kikoan_name") %> 컨택 집계 현황 [<%=search_chasu%>]</th>
|
||||
</tr>
|
||||
<tr height=30 style='background-color: #ffffff;'>
|
||||
<% if categori_01 <> "" and categori_01 <> "분류1" then %>
|
||||
<th>분류1</th>
|
||||
<% end if %>
|
||||
<% if categori_02 <> "" and categori_02 <> "분류2" then %>
|
||||
<th>분류2</th>
|
||||
<% end if %>
|
||||
<% if categori_03 <> "" and categori_03 <> "분류3" then %>
|
||||
<th>분류3</th>
|
||||
<% end if %>
|
||||
<% if categori_04 <> "" and categori_04 <> "분류4" then %>
|
||||
<th>분류4</th>
|
||||
<% end if %>
|
||||
<% if categori_05 <> "" and categori_05 <> "분류5" then %>
|
||||
<th>분류5</th>
|
||||
<% end if %>
|
||||
<% if categori_06 <> "" and categori_06 <> "분류6" then %>
|
||||
<th>분류6</th>
|
||||
<% end if %>
|
||||
<% if categori_07 <> "" and categori_07 <> "분류7" then %>
|
||||
<th>분류7</th>
|
||||
<% end if %>
|
||||
<th>컨택 결과</th>
|
||||
<th>합계</th>
|
||||
<th>전국</th>
|
||||
<%
|
||||
If UBound(comp_area) > 0 Then
|
||||
for z=1 to UBound(comp_area)
|
||||
%>
|
||||
<th><%=comp_area(z)%></th>
|
||||
<%
|
||||
Next
|
||||
End if
|
||||
%>
|
||||
<!--
|
||||
<th>강원</th>
|
||||
<th>경기</th>
|
||||
<th>경남</th>
|
||||
<th>경북</th>
|
||||
<th>광주</th>
|
||||
<th>대구</th>
|
||||
<th>대전</th>
|
||||
<th>부산</th>
|
||||
<th>서울</th>
|
||||
<th>울산</th>
|
||||
<th>인천</th>
|
||||
<th>전남</th>
|
||||
<th>전북</th>
|
||||
<th>제주</th>
|
||||
<th>충남</th>
|
||||
<th>충북</th>
|
||||
<th>세종</th>
|
||||
-->
|
||||
</tr>
|
||||
<% If rsp("count") > 0 Then
|
||||
Dim beforeCategory_01, beforeCategory_02, beforeCategory_03, beforeCategory_04, beforeCategory_05, beforeCategory_06, beforeCategory_07
|
||||
Dim beforeCategory_01_label, beforeCategory_02_label, beforeCategory_03_label, beforeCategory_04_label, beforeCategory_05_label, beforeCategory_06_label, beforeCategory_07_label
|
||||
Dim lineNext
|
||||
Dim contact_stat_st_index, contact_stat_end_index
|
||||
Dim column_count, category_08_count
|
||||
|
||||
contact_stat_st_index = 0
|
||||
contact_stat_end_index = ubound(contact_status)-1
|
||||
|
||||
category_08_count = UBound(comp_area) '지역분류코드 갯수
|
||||
column_count = categori_cnt + 3 + category_08_count '카테고리 갯수 + 컨택결과, 총갯수, 전국 + 지역분류코드 갯수'
|
||||
|
||||
for i=1 to rsp.recordCount
|
||||
'for i=1 to 5
|
||||
lineNext = False
|
||||
|
||||
If i > 1 Then
|
||||
If categori_cnt = 1 Then
|
||||
If Not(beforeCategory_01 = rsp("categori_01") ) then
|
||||
lineNext = True
|
||||
End if
|
||||
ElseIf categori_cnt = 2 Then
|
||||
If Not(beforeCategory_01 = rsp("categori_01") And beforeCategory_02 = rsp("categori_02") ) then
|
||||
lineNext = True
|
||||
End if
|
||||
ElseIf categori_cnt = 3 Then
|
||||
If Not(beforeCategory_01 = rsp("categori_01") And beforeCategory_02 = rsp("categori_02") And beforeCategory_03 = rsp("categori_03") ) then
|
||||
lineNext = True
|
||||
End if
|
||||
ElseIf categori_cnt = 4 Then
|
||||
If Not(beforeCategory_01 = rsp("categori_01") And beforeCategory_02 = rsp("categori_02") And beforeCategory_03 = rsp("categori_03") And beforeCategory_04 = rsp("categori_04")) then
|
||||
lineNext = True
|
||||
End if
|
||||
ElseIf categori_cnt = 5 Then
|
||||
If Not(beforeCategory_01 = rsp("categori_01") And beforeCategory_02 = rsp("categori_02") And beforeCategory_03 = rsp("categori_03") And beforeCategory_04 = rsp("categori_04") And beforeCategory_05 = rsp("categori_05")) then
|
||||
lineNext = True
|
||||
End if
|
||||
ElseIf categori_cnt = 6 Then
|
||||
If Not(beforeCategory_01 = rsp("categori_01") And beforeCategory_02 = rsp("categori_02") And beforeCategory_03 = rsp("categori_03") And beforeCategory_04 = rsp("categori_04") And beforeCategory_05 = rsp("categori_05") And beforeCategory_06 = rsp("categori_06")) then
|
||||
lineNext = True
|
||||
End if
|
||||
ElseIf categori_cnt = 7 Then
|
||||
If Not(beforeCategory_01 = rsp("categori_01") And beforeCategory_02 = rsp("categori_02") And beforeCategory_03 = rsp("categori_03") And beforeCategory_04 = rsp("categori_04") And beforeCategory_05 = rsp("categori_05") And beforeCategory_06 = rsp("categori_06") And beforeCategory_07 = rsp("categori_07")) then
|
||||
lineNext = True
|
||||
End if
|
||||
End if
|
||||
End If
|
||||
|
||||
'분류가 바뀌기 전에 컨택 코드의 남은 부분을 그려줌~!
|
||||
If lineNext Then
|
||||
For z = contact_stat_st_index To contact_stat_end_index
|
||||
'response.write "분류가 바뀌어 남은 부분 그림 z : " & z & "//" & contact_status(z+1, 2) & "<br>"
|
||||
%>
|
||||
<tr height=30 style='background-color: #ffffff;' align = "center">
|
||||
<% if categori_01 <> "" and categori_01 <> "분류1" then %>
|
||||
<td><%=beforeCategory_01_label %></td>
|
||||
<% end if %>
|
||||
<% if categori_02 <> "" and categori_02 <> "분류2" then %>
|
||||
<td><%=beforeCategory_02_label %></td>
|
||||
<% end if %>
|
||||
<% if categori_03 <> "" and categori_03 <> "분류3" then %>
|
||||
<td><%=beforeCategory_03_label %></td>
|
||||
<% end if %>
|
||||
<% if categori_04 <> "" and categori_04 <> "분류4" then %>
|
||||
<td><%=beforeCategory_04_label %></td>
|
||||
<% end if %>
|
||||
<% if categori_05 <> "" and categori_05 <> "분류5" then %>
|
||||
<td><%=beforeCategory_05_label %></td>
|
||||
<% end if %>
|
||||
<% if categori_06 <> "" and categori_06 <> "분류6" then %>
|
||||
<td><%=beforeCategory_06_label %></td>
|
||||
<% end if %>
|
||||
<% if categori_07 <> "" and categori_07 <> "분류7" then %>
|
||||
<td><%=beforeCategory_07_label %></td>
|
||||
<% end if %>
|
||||
<th><%=contact_status(z+1, 2)%></th>
|
||||
<td>0</td>
|
||||
<td>0</td>
|
||||
<%
|
||||
For c = 1 To category_08_count
|
||||
%>
|
||||
<td>0</td>
|
||||
<%
|
||||
next
|
||||
%>
|
||||
</tr>
|
||||
<%
|
||||
Next
|
||||
|
||||
contact_stat_st_index = 0
|
||||
End If
|
||||
|
||||
%>
|
||||
<% If rsp("contac_stat_label") <> "" Then
|
||||
|
||||
'response.write "st~! <br>"
|
||||
'컨택 코드의 순서대로 그리기 위해~! 현재데이터와 비교하여 사이에 없는 컨택 코드는 0으로 그려줌~!
|
||||
For z = contact_stat_st_index To contact_stat_end_index
|
||||
'response.write z & "//" & clng(rsp("contac_stat")) & "<br>"
|
||||
If z = clng(rsp("view_index")) Then
|
||||
'response.write "같은대... z : " & z & "//stat : " & clng(rsp("view_index")) & "<br>"
|
||||
contact_stat_st_index = clng(rsp("view_index"))+1
|
||||
Exit For
|
||||
elseIf z < clng(rsp("view_index")) Then
|
||||
'response.write "z가 현재 컨택결과 값다 작을 때 z : " & z & "//stat : " & clng(rsp("view_index")) & "<br>"
|
||||
%>
|
||||
<tr height=30 style='background-color: #ffffff;' align = "center">
|
||||
<% if categori_01 <> "" and categori_01 <> "분류1" then %>
|
||||
<td><%=rsp("categori_01_label") %></td>
|
||||
<% end if %>
|
||||
<% if categori_02 <> "" and categori_02 <> "분류2" then %>
|
||||
<td><%=rsp("categori_02_label") %></td>
|
||||
<% end if %>
|
||||
<% if categori_03 <> "" and categori_03 <> "분류3" then %>
|
||||
<td><%=rsp("categori_03_label") %></td>
|
||||
<% end if %>
|
||||
<% if categori_04 <> "" and categori_04 <> "분류4" then %>
|
||||
<td><%=rsp("categori_04_label") %></td>
|
||||
<% end if %>
|
||||
<% if categori_05 <> "" and categori_05 <> "분류5" then %>
|
||||
<td><%=rsp("categori_05_label") %></td>
|
||||
<% end if %>
|
||||
<% if categori_06 <> "" and categori_06 <> "분류6" then %>
|
||||
<td><%=rsp("categori_06_label") %></td>
|
||||
<% end if %>
|
||||
<% if categori_07 <> "" and categori_07 <> "분류7" then %>
|
||||
<td><%=rsp("categori_07_label") %></td>
|
||||
<% end if %>
|
||||
<th><%=contact_status(z+1, 2)%></th>
|
||||
<td>0</td>
|
||||
<td>0</td>
|
||||
<%
|
||||
For c = 1 To category_08_count
|
||||
%>
|
||||
<td>0</td>
|
||||
<%
|
||||
next
|
||||
%>
|
||||
</tr>
|
||||
<%
|
||||
End if
|
||||
Next
|
||||
'response.write "end~! <br>"
|
||||
|
||||
For z = 1 To categori_cnt
|
||||
If categori_cnt = 1 Then
|
||||
beforeCategory_01 = rsp("categori_01")
|
||||
beforeCategory_01_label = rsp("categori_01_label")
|
||||
ElseIf categori_cnt = 2 Then
|
||||
beforeCategory_01 = rsp("categori_01")
|
||||
beforeCategory_02 = rsp("categori_02")
|
||||
beforeCategory_01_label = rsp("categori_01_label")
|
||||
beforeCategory_02_label = rsp("categori_02_label")
|
||||
ElseIf categori_cnt = 3 Then
|
||||
beforeCategory_01 = rsp("categori_01")
|
||||
beforeCategory_02 = rsp("categori_02")
|
||||
beforeCategory_03 = rsp("categori_03")
|
||||
beforeCategory_01_label = rsp("categori_01_label")
|
||||
beforeCategory_02_label = rsp("categori_02_label")
|
||||
beforeCategory_03_label = rsp("categori_03_label")
|
||||
ElseIf categori_cnt = 4 Then
|
||||
beforeCategory_01 = rsp("categori_01")
|
||||
beforeCategory_02 = rsp("categori_02")
|
||||
beforeCategory_03 = rsp("categori_03")
|
||||
beforeCategory_04 = rsp("categori_04")
|
||||
beforeCategory_01_label = rsp("categori_01_label")
|
||||
beforeCategory_02_label = rsp("categori_02_label")
|
||||
beforeCategory_03_label = rsp("categori_03_label")
|
||||
beforeCategory_04_label = rsp("categori_04_label")
|
||||
ElseIf categori_cnt = 5 Then
|
||||
beforeCategory_01 = rsp("categori_01")
|
||||
beforeCategory_02 = rsp("categori_02")
|
||||
beforeCategory_03 = rsp("categori_03")
|
||||
beforeCategory_04 = rsp("categori_04")
|
||||
beforeCategory_05 = rsp("categori_05")
|
||||
beforeCategory_01_label = rsp("categori_01_label")
|
||||
beforeCategory_02_label = rsp("categori_02_label")
|
||||
beforeCategory_03_label = rsp("categori_03_label")
|
||||
beforeCategory_04_label = rsp("categori_04_label")
|
||||
beforeCategory_05_label = rsp("categori_05_label")
|
||||
ElseIf categori_cnt = 6 Then
|
||||
beforeCategory_01 = rsp("categori_01")
|
||||
beforeCategory_02 = rsp("categori_02")
|
||||
beforeCategory_03 = rsp("categori_03")
|
||||
beforeCategory_04 = rsp("categori_04")
|
||||
beforeCategory_05 = rsp("categori_05")
|
||||
beforeCategory_06 = rsp("categori_06")
|
||||
beforeCategory_01_label = rsp("categori_01_label")
|
||||
beforeCategory_02_label = rsp("categori_02_label")
|
||||
beforeCategory_03_label = rsp("categori_03_label")
|
||||
beforeCategory_04_label = rsp("categori_04_label")
|
||||
beforeCategory_05_label = rsp("categori_05_label")
|
||||
beforeCategory_06_label = rsp("categori_06_label")
|
||||
ElseIf categori_cnt = 7 Then
|
||||
beforeCategory_01 = rsp("categori_01")
|
||||
beforeCategory_02 = rsp("categori_02")
|
||||
beforeCategory_03 = rsp("categori_03")
|
||||
beforeCategory_04 = rsp("categori_04")
|
||||
beforeCategory_05 = rsp("categori_05")
|
||||
beforeCategory_06 = rsp("categori_06")
|
||||
beforeCategory_07 = rsp("categori_07")
|
||||
beforeCategory_01_label = rsp("categori_01_label")
|
||||
beforeCategory_02_label = rsp("categori_02_label")
|
||||
beforeCategory_03_label = rsp("categori_03_label")
|
||||
beforeCategory_04_label = rsp("categori_04_label")
|
||||
beforeCategory_05_label = rsp("categori_05_label")
|
||||
beforeCategory_06_label = rsp("categori_06_label")
|
||||
beforeCategory_07_label = rsp("categori_07_label")
|
||||
End if
|
||||
Next
|
||||
|
||||
if lineNext Then
|
||||
%>
|
||||
<tr height=30 style='background-color: #ffffff;' align = "center"><td colspan="<%=column_count%>"></td></tr>
|
||||
<%
|
||||
End If
|
||||
%>
|
||||
<tr height=30 style='background-color: #ffffff;' align = "center">
|
||||
<% if categori_01 <> "" and categori_01 <> "분류1" then %>
|
||||
<td><%=rsp("categori_01_label") %></td>
|
||||
<% end if %>
|
||||
<% if categori_02 <> "" and categori_02 <> "분류2" then %>
|
||||
<td><%=rsp("categori_02_label") %></td>
|
||||
<% end if %>
|
||||
<% if categori_03 <> "" and categori_03 <> "분류3" then %>
|
||||
<td><%=rsp("categori_03_label") %></td>
|
||||
<% end if %>
|
||||
<% if categori_04 <> "" and categori_04 <> "분류4" then %>
|
||||
<td><%=rsp("categori_04_label") %></td>
|
||||
<% end if %>
|
||||
<% if categori_05 <> "" and categori_05 <> "분류5" then %>
|
||||
<td><%=rsp("categori_05_label") %></td>
|
||||
<% end if %>
|
||||
<% if categori_06 <> "" and categori_06 <> "분류6" then %>
|
||||
<td><%=rsp("categori_06_label") %></td>
|
||||
<% end if %>
|
||||
<% if categori_07 <> "" and categori_07 <> "분류7" then %>
|
||||
<td><%=rsp("categori_07_label") %></td>
|
||||
<% end if %>
|
||||
<th><%=rsp("contac_stat_label")%></th>
|
||||
<td><%=rsp("COUNT") %></td>
|
||||
<td><%=rsp("전국")%></td>
|
||||
<%
|
||||
If UBound(comp_area) > 0 Then
|
||||
for z=1 to UBound(comp_area)
|
||||
%>
|
||||
<th><%=rsp(comp_area(z))%></th>
|
||||
<%
|
||||
Next
|
||||
End if
|
||||
%>
|
||||
</tr>
|
||||
<% End If %>
|
||||
<%
|
||||
rsp.movenext
|
||||
next
|
||||
End If
|
||||
|
||||
'리스트가 다 끝나고 남은 컨택 결과 항목에 대하여 그려줌~!
|
||||
For z = contact_stat_st_index To contact_stat_end_index
|
||||
'response.write "리스트 다 끝나고 남은 결과 항목에 대해 그려줌 z : " & z & "//stat : " & clng(rsp("view_index")) & "<br>"
|
||||
%>
|
||||
<tr height=30 style='background-color: #ffffff;' align = "center">
|
||||
<% if categori_01 <> "" and categori_01 <> "분류1" then %>
|
||||
<td><%=beforeCategory_01_label %></td>
|
||||
<% end if %>
|
||||
<% if categori_02 <> "" and categori_02 <> "분류2" then %>
|
||||
<td><%=beforeCategory_02_label %></td>
|
||||
<% end if %>
|
||||
<% if categori_03 <> "" and categori_03 <> "분류3" then %>
|
||||
<td><%=beforeCategory_03_label %></td>
|
||||
<% end if %>
|
||||
<% if categori_04 <> "" and categori_04 <> "분류4" then %>
|
||||
<td><%=beforeCategory_04_label %></td>
|
||||
<% end if %>
|
||||
<% if categori_05 <> "" and categori_05 <> "분류5" then %>
|
||||
<td><%=beforeCategory_05_label %></td>
|
||||
<% end if %>
|
||||
<% if categori_06 <> "" and categori_06 <> "분류6" then %>
|
||||
<td><%=beforeCategory_06_label %></td>
|
||||
<% end if %>
|
||||
<% if categori_07 <> "" and categori_07 <> "분류7" then %>
|
||||
<td><%=beforeCategory_07_label %></td>
|
||||
<% end if %>
|
||||
<th><%=contact_status(z+1, 2)%></th>
|
||||
<td>0</td>
|
||||
<td>0</td>
|
||||
<%
|
||||
For c = 1 To category_08_count
|
||||
%>
|
||||
<td>0</td>
|
||||
<%
|
||||
next
|
||||
%>
|
||||
</tr>
|
||||
<%
|
||||
Next
|
||||
rsp.close
|
||||
%>
|
||||
</table>
|
||||
</form>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
<script language =javascript>
|
||||
function excel_export() {
|
||||
//엑셀로 내보내기
|
||||
document.frm_list.action = "contact_resultLIst.asp?command=excel";
|
||||
document.frm_list.submit();
|
||||
}
|
||||
|
||||
function search() {
|
||||
//엑셀로 내보내기
|
||||
document.frm_list.action = "contact_resultLIst.asp";
|
||||
document.frm_list.submit();
|
||||
}
|
||||
|
||||
function back() {
|
||||
history.back(-1);
|
||||
}
|
||||
</script>
|
||||
280
contact/contact_search.asp
Normal file
280
contact/contact_search.asp
Normal file
@@ -0,0 +1,280 @@
|
||||
|
||||
<!-- #include file = "./lib/config.asp" -->
|
||||
<%'
|
||||
Response.CharSet="utf-8"
|
||||
|
||||
Response.codepage="65001"
|
||||
Response.ContentType="text/html;charset=utf-8"
|
||||
'정형기 기록 - 사용페이지
|
||||
''///=============
|
||||
''모든 사람이 검색가능하게
|
||||
'기관명이 컨택쿼터가 남은 경우에서 모든 기관명 무조건 보이기로 변경(2013-12-18일)
|
||||
'' 기관명과 기관리스트아이디, 응답자 전화번호 2개 기준
|
||||
|
||||
dim i
|
||||
dim Query
|
||||
|
||||
dim login_pwd
|
||||
dim login_name '로그인 아이디
|
||||
dim login_area '로그인 지역
|
||||
dim login_type '로그인 타입(관리자, sv,면접원, 컨택원 등)
|
||||
|
||||
dim ani_num '발신번호
|
||||
dim client_id '면접원 자리번호
|
||||
dim extension '면접원 내선번호
|
||||
dim categori_cnt
|
||||
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"))
|
||||
ani_num = trim(request("ani_num"))
|
||||
key_id = trim(request("key_id"))
|
||||
kikoan_id = trim(request("kikoan_id"))
|
||||
kikoan_name = trim(request("kikoan_name"))
|
||||
res_tel1 = trim(request("res_tel1"))
|
||||
res_tel2 = trim(request("res_tel2"))
|
||||
res_name = trim(request("res_name"))
|
||||
research_comp_name = trim(request("research_comp_name"))
|
||||
'Response.Write "id = " & request("id") & "<br>"
|
||||
|
||||
|
||||
|
||||
'%>
|
||||
|
||||
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv='Content-Type'content='text/html; charset=utf-8'>
|
||||
<title>KRC - 컨택</title>
|
||||
<!-- <link rel='stylesheet' type='text/css' href='<%=domain_url%>:8888/capi/css/basic_new.css'> -->
|
||||
<!-- <script language='javascript' src='<%=domain_url%>:8888/capi/js/common.js'></script> -->
|
||||
</head>
|
||||
<body topmargin=0 leftmargin=50 bgcolor = '#f8f8f8' oncontextmenu='return false' onselectstart='return false' ondragstart='return false' OnKeyDown='No_BackSpace();ctrlEvent();'>
|
||||
<form method=post name='frm_main'>
|
||||
<input type='hidden' value = '<%=kikoan_name%>' name='kikoan_name'/>
|
||||
<input type='hidden' size=10 readonly name='categori_cnt_tmp' value='<%=categori_cnt_tmp%>'> <!-- '선택해야 할 카테고리 갯수 지역 -->
|
||||
<input type='hidden' value= '<%=research_comp_name%>' name='research_comp_name' />
|
||||
|
||||
<table width=900 height=100% cellpadding='0' cellspacing='0' border='0' >
|
||||
<tr style="display: none;">
|
||||
<td valign='top'>
|
||||
<table width=100% cellpadding='0' cellspacing='0' border='1'>
|
||||
<tr height=30>
|
||||
<input type='hidden' value = '<%=login_id%>' name = 'login_id'>
|
||||
<td align='center'>로그인 아이디</td>
|
||||
<td align='center'>
|
||||
<input type='text' readonly name='login_name' value='<%=login_name%>'> <!-- '로그인 아이디 -->
|
||||
</td>
|
||||
<td align='center'>로그인 유형</td>
|
||||
<td align='center'>
|
||||
<input type='text' readonly name='login_type' value='<%=login_type%>'> <!-- '로그인 타입(관리자, sv,면접원, 컨택원 등) -->
|
||||
</td>
|
||||
<td align='center'>로그인 지역</td>
|
||||
<td align='center'>
|
||||
<input type='text' readonly name='login_area' value='<%=login_area%>'> <!-- '로그인 지역(krc, 그 외) -->
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr height=30>
|
||||
<td align='center'>자리번호</td>
|
||||
<td align='center'>
|
||||
<input type='text' readonly name = 'client_id' value = '<%=client_id%>'> <!-- '면접원 자리번호 -->
|
||||
</td>
|
||||
<td align='center'>내선번호</td>
|
||||
<td align='center'>
|
||||
<input type='text' readonly name = 'extension' value = '<%=extension%>' > <!-- '면접원 내선번호 -->
|
||||
</td>
|
||||
<td align='center'>발신번호</td>
|
||||
<td align='center'>
|
||||
<input type='text' readonly name='ani_num' value='<%=ani_num%>'> <!-- '발신번호-->
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
|
||||
|
||||
<tr>
|
||||
<td height='100%' valign='top' style='padding:20px 20px 20px 20px;'>
|
||||
<table width='100%' cellpadding='0' cellspacing='0' border='0'>
|
||||
<tr>
|
||||
<td align='center' style='padding:10px 0px 0px 0px;'>
|
||||
<table width='100%' cellpadding='10' cellspacing='0' border='0' bgcolor='#DADADA' style='border:1px solid #DADADA;'>
|
||||
<tr>
|
||||
<td bgcolor='#FFFFFF'>
|
||||
<table width='100%' cellpadding='3' cellspacing='1' border='1' bgcolor='#DADADA'>
|
||||
|
||||
<!--타이틀 -->
|
||||
<tr bgcolor=DeepSkyBlue>
|
||||
<td colspan=10 align='center' style="font-size:10pt;"><%=login_name%> 님은 <%=login_area%> 지역의 <%=research_comp_name%> 입니다. 컨택할 쿼터 셀 선택
|
||||
<%if Request.ServerVariables("remote_addr") = "10.10.17.52" or Request.ServerVariables("remote_addr") = "1.235.195.52" then%>
|
||||
(contact_search.asp)
|
||||
<%end if%>
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<%if login_type = "응대" then%>
|
||||
<tr>
|
||||
<td valign='top'>
|
||||
<table width=100% cellpadding='0' cellspacing='0' border='1'>
|
||||
<tr height=30>
|
||||
<td align='center'>응답자 이름</td>
|
||||
<td align='center'>
|
||||
<input type='text' name='res_name' value = '' >
|
||||
</td>
|
||||
<td align='center' bgcolor='yellow'>또는</td>
|
||||
<td align='center'>응답자 전화번호</td>
|
||||
<td align='center'>
|
||||
<input type='text' name='res_tel1' value = '' >
|
||||
</td>
|
||||
<td align='center' bgcolor='yellow'>또는</td>
|
||||
<td align='center'>응답자 전화번호2</td>
|
||||
<td align='center'>
|
||||
<input type='text' name='res_tel2' value = '' >
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<%else%>
|
||||
|
||||
<!--기관명 -->
|
||||
<tr align='center'>
|
||||
<td bgcolor=Aqua style="font-size:10pt;" width=200>프로젝트</td>
|
||||
<td bgcolor=Aqua style="font-size:10pt;" width=200>
|
||||
<select id='kikoan_id' name="kikoan_id" >
|
||||
<%''컨택 쿼터가 남은 경우의 리스트 가져오기
|
||||
if kikoan_name = "" then%>
|
||||
<OPTION value='선택' selected>선택</option>
|
||||
<%end if
|
||||
query = "select id, kikoan_name from kikoan_list order by id desc"
|
||||
adors.open query, adoconn, 1
|
||||
'' Response.Write query & "<br>"
|
||||
' dim tmp_kikoan_name_list()
|
||||
' redim tmp_kikoan_name_list(adors.recordcount)
|
||||
' i = 0
|
||||
' do while not adors.eof
|
||||
' i = i + 1
|
||||
' tmp_kikoan_name_list(i) = adors("kikoan_name")
|
||||
' adors.movenext
|
||||
' loop
|
||||
' adors.close
|
||||
' query = "select kikoan_name from quota " & _
|
||||
' "where quota - contac_quota_ok > 0 " & _
|
||||
' " and ("
|
||||
' for i = 1 to ubound(tmp_kikoan_name_list)
|
||||
' query = query & "kikoan_name = '" & tmp_kikoan_name_list(i) & "' or "
|
||||
' next
|
||||
' query = trim(query)
|
||||
' query = mid(query,1,len(query)-2)
|
||||
' query =query & ") group by kikoan_name"
|
||||
' Response.Write query & "<br>"
|
||||
' adors.open query, adoconn, 1
|
||||
|
||||
if research_comp_name = "코리아서베이" then
|
||||
%>
|
||||
<OPTION value='96' selected >공공기관고객만족도조사-한국과학기술원-기술과가치</option>
|
||||
<%
|
||||
Else
|
||||
|
||||
do while not adors.eof
|
||||
%>
|
||||
<OPTION value='<%=adors("id")%>' <%if trim(adors("kikoan_name")) = trim(kikoan_name) then%> selected <%end if%>><%=adors("kikoan_name")%></option>
|
||||
<%
|
||||
adors.movenext
|
||||
loop
|
||||
adors.close
|
||||
End If %>
|
||||
</select>
|
||||
</td>
|
||||
<td align='center'>리스트 아이디</td>
|
||||
<td align='center'>
|
||||
<input type='text' name='list_id' value = '' >
|
||||
</td>
|
||||
|
||||
</tr>
|
||||
<%end if%>
|
||||
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td bgcolor='#FFFFFF'>
|
||||
<table width='100%' cellpadding='3' cellspacing='1' border='1' bgcolor='#DADADA'>
|
||||
<tr>
|
||||
<td align='center' >
|
||||
<img src='<%=domain_url%>:8888/images/common/btn_search.jpg' onclick='search("<%=login_type%>")' style='cursor:hand;VERTICAL-ALIGN: middle;' title='검색'>
|
||||
<img src='<%=domain_url%>:8888/images/common/btn_search_kikoan.jpg' onclick='contec_sel(<%=key_id%>)' style='cursor:hand;VERTICAL-ALIGN: middle;' title='기관 재선택'>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<!-- #include file = "inc_bottom.asp"-->
|
||||
|
||||
<script LANGUAGE='JavaScript'>
|
||||
|
||||
function contec_sel()
|
||||
{ //기관 재선택 부터
|
||||
var f = document.frm_main;
|
||||
f.action = "contact_select.asp?command=re_contac_sel";
|
||||
f.submit();
|
||||
}
|
||||
|
||||
function search(login_type)
|
||||
{
|
||||
var txt;
|
||||
var f = document.frm_main;
|
||||
|
||||
if (login_type == "응대")
|
||||
{
|
||||
if(f.res_name.value == "" && f.res_tel1.value == "" && f.res_tel2.value == "" )
|
||||
{
|
||||
alert("적어도 1개를 입력하세요");
|
||||
f.res_name.focus();
|
||||
return false;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
if (f.kikoan_id.value == "선택" || f.kikoan_id.value == "")
|
||||
{
|
||||
alert("프로젝트를 선택하세요");
|
||||
//f.kikoan_name.focus();
|
||||
return false;
|
||||
}
|
||||
|
||||
if (f.list_id.value == "" )
|
||||
{
|
||||
alert("리스트 아이디를 입력하세요.");
|
||||
f.list_id.focus();
|
||||
return false;
|
||||
}
|
||||
|
||||
var el = document.getElementById('kikoan_id');
|
||||
var text = el.options[el.selectedIndex].innerHTML;
|
||||
f.kikoan_name.value = text
|
||||
|
||||
//alert(text+"//"+f.kikoan_id.value);
|
||||
}
|
||||
|
||||
f.action = "contact_search_ok.asp";
|
||||
f.submit();
|
||||
}
|
||||
|
||||
|
||||
</script>
|
||||
336
contact/contact_search_ok.asp
Normal file
336
contact/contact_search_ok.asp
Normal file
@@ -0,0 +1,336 @@
|
||||
|
||||
<!-- #include file = "./lib/config.asp" -->
|
||||
<%'
|
||||
Response.CharSet="utf-8"
|
||||
|
||||
Response.codepage="65001"
|
||||
Response.ContentType="text/html;charset=utf-8"
|
||||
'정형기 기록 - 사용페이지
|
||||
|
||||
''///=============
|
||||
''모든 사람이 검색가능하게
|
||||
''단, (chasu_use_chk = 'yes')문을 이용하여 사용여부 판단...(값이 no 인것들은 컨택결과를 일괄적으로 지정을 했기에 컨택을 하면 안되기에)
|
||||
|
||||
dim i
|
||||
dim Query
|
||||
|
||||
dim login_pwd
|
||||
dim login_name '로그인 아이디
|
||||
dim login_area '로그인 지역
|
||||
dim login_type '로그인 타입(관리자, sv,면접원, 컨택원 등)
|
||||
|
||||
dim ani_num '발신번호
|
||||
dim client_id '면접원 자리번호
|
||||
dim extension '면접원 내선번호
|
||||
dim categori_cnt
|
||||
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"))
|
||||
ani_num = trim(request("ani_num"))
|
||||
|
||||
key_id = trim(request("key_id"))
|
||||
|
||||
kikoan_id = trim(request("kikoan_id"))
|
||||
kikoan_name = trim(request("kikoan_name"))
|
||||
res_tel1 = trim(request("res_tel1"))
|
||||
res_tel2 = trim(request("res_tel2"))
|
||||
res_name = trim(request("res_name"))
|
||||
|
||||
command = request("command")
|
||||
|
||||
list_id = request("list_id")
|
||||
query = "select a.* " & _
|
||||
", isnull((select category_label from category_code where kikoan_id = '" & kikoan_id & "' and category_index = 1 and category_code = a.categori_01), categori_01) as 'categori_label01' " & _
|
||||
", isnull((select category_label from category_code where kikoan_id = '" & kikoan_id & "' and category_index = 2 and category_code = a.categori_02), categori_02) as 'categori_label02' " & _
|
||||
", isnull((select category_label from category_code where kikoan_id = '" & kikoan_id & "' and category_index = 3 and category_code = a.categori_03), categori_03) as 'categori_label03' " & _
|
||||
", isnull((select category_label from category_code where kikoan_id = '" & kikoan_id & "' and category_index = 4 and category_code = a.categori_04), categori_04) as 'categori_label04' " & _
|
||||
", isnull((select category_label from category_code where kikoan_id = '" & kikoan_id & "' and category_index = 5 and category_code = a.categori_05), categori_05) as 'categori_label05' " & _
|
||||
", isnull((select category_label from category_code where kikoan_id = '" & kikoan_id & "' and category_index = 6 and category_code = a.categori_06), categori_06) as 'categori_label06' " & _
|
||||
", isnull((select category_label from category_code where kikoan_id = '" & kikoan_id & "' and category_index = 7 and category_code = a.categori_07), categori_07) as 'categori_label07' " & _
|
||||
", b.contac_stat_label from list as a left outer join contac_stat as b on b.kikoan_id = '" & kikoan_id & "' and a.contac_stat = b.contac_stat "
|
||||
if login_type = "컨택" or login_type = "관리자" then
|
||||
query = query & "where a.kikoan_id = '" & kikoan_id & "' " & _
|
||||
"and a.list_id = '" & list_id & "' and (a.chasu_use_chk = 'yes') "
|
||||
else
|
||||
res_name = trim(request("res_name"))
|
||||
res_tel1 = trim(request("res_tel1"))
|
||||
res_tel2 = trim(request("res_tel2"))
|
||||
query = query & "where "
|
||||
tmp_query = ""
|
||||
if res_name <> "" then
|
||||
tmp_query = "name = '" & res_name & "' "
|
||||
end if
|
||||
if res_tel1 <> "" then
|
||||
if tmp_query = "" then
|
||||
tmp_query = "tel1 = '" & res_tel1 & "' "
|
||||
else
|
||||
tmp_query = tmp_query & " or tel1 = '" & res_tel1 & "' "
|
||||
end if
|
||||
end if
|
||||
|
||||
if res_tel2 <> "" then
|
||||
if tmp_query = "" then
|
||||
tmp_query = "tel2 = '" & res_tel2 & "' "
|
||||
else
|
||||
tmp_query = tmp_query & " or tel2 = '" & res_tel2 & "' "
|
||||
end if
|
||||
end if
|
||||
|
||||
if res_tel3 <> "" then
|
||||
if tmp_query = "" then
|
||||
tmp_query = "tel3 = '" & res_tel3 & "' "
|
||||
else
|
||||
tmp_query = tmp_query & " or tel3 = '" & res_tel3 & "' "
|
||||
end if
|
||||
end if
|
||||
|
||||
if res_tel4 <> "" then
|
||||
if tmp_query = "" then
|
||||
tmp_query = "tel4 = '" & res_tel4 & "' "
|
||||
else
|
||||
tmp_query = tmp_query & " or tel4 = '" & res_tel4 & "' "
|
||||
end if
|
||||
end if
|
||||
query = query & tmp_query
|
||||
end if
|
||||
|
||||
|
||||
' response.write query
|
||||
' response.write "<br/>" & kikoan_id & ".."
|
||||
|
||||
adors.open query, adoconn, 1
|
||||
' Response.Write query
|
||||
'%>
|
||||
|
||||
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv='Content-Type'content='text/html; charset=utf-8'>
|
||||
<title>KRC - 컨택</title>
|
||||
</head>
|
||||
<body topmargin=0 leftmargin=10 bgcolor = '#f8f8f8' oncontextmenu='return false' onselectstart='return false' ondragstart='return false' OnKeyDown='No_BackSpace();ctrlEvent();'>
|
||||
<form method=post name='frm_main'>
|
||||
<input type='hidden' value = '<%=kikoan_id%>' name='kikoan_id'/>
|
||||
<input type='hidden' value = '<%=kikoan_name%>' name='kikoan_name'/>
|
||||
<table width=100% height=100% cellpadding='0' cellspacing='0' border='0' >
|
||||
<tr style="display: none;">
|
||||
<td valign='top'>
|
||||
<table width=50% cellpadding='0' cellspacing='0' border='1'>
|
||||
<tr height=30>
|
||||
<input type='hidden' value = '<%=login_id%>' name = 'login_id'>
|
||||
<td align='center'>로그인 아이디</td>
|
||||
<td align='center'>
|
||||
<input type='text' readonly name='login_name' value='<%=login_name%>'> <!-- '로그인 아이디 -->
|
||||
</td>
|
||||
<td align='center'>로그인 유형</td>
|
||||
<td align='center'>
|
||||
<input type='text' readonly name='login_type' value='<%=login_type%>'> <!-- '로그인 타입(관리자, sv,면접원, 컨택원 등) -->
|
||||
</td>
|
||||
<td align='center'>로그인 지역</td>
|
||||
<td align='center'>
|
||||
<input type='text' readonly name='login_area' value='<%=login_area%>'> <!-- '로그인 지역(krc, 그 외) -->
|
||||
</td>
|
||||
</tr>
|
||||
<tr height=30>
|
||||
<td align='center'>자리번호</td>
|
||||
<td align='center'>
|
||||
<input type='text' readonly name = 'client_id' value = '<%=client_id%>'> <!-- '면접원 자리번호 -->
|
||||
</td>
|
||||
<td align='center'>내선번호</td>
|
||||
<td align='center'>
|
||||
<input type='text' readonly name = 'extension' value = '<%=extension%>' > <!-- '면접원 내선번호 -->
|
||||
</td>
|
||||
<td align='center'>발신번호</td>
|
||||
<td align='center'>
|
||||
<input type='text' readonly name='ani_num' value='<%=ani_num%>'> <!-- '발신번호-->
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td height='100%' valign='top' style='padding:20px 20px 20px 20px;'>
|
||||
<table width='100%' cellpadding='0' cellspacing='0' border='0'>
|
||||
<tr>
|
||||
<td align='center' style='padding:10px 0px 0px 0px;'>
|
||||
<table width='100%' cellpadding='10' cellspacing='0' border='0' bgcolor='#DADADA' style='border:1px solid #DADADA;'>
|
||||
<tr>
|
||||
<td bgcolor='#FFFFFF'>
|
||||
<table width='100%' cellpadding='3' cellspacing='1' border='1' >
|
||||
|
||||
<!--타이틀 -->
|
||||
<tr bgcolor=DeepSkyBlue>
|
||||
<td colspan=1 align='center' style="font-size:10pt;"><%=login_name%> 님은 <%=login_area%> 지역의 <%=login_type%> 입니다. 컨택할 쿼터 셀 선택
|
||||
<%if Request.ServerVariables("remote_addr") = "10.10.17.52" or Request.ServerVariables("remote_addr") = "1.235.195.52" then%>
|
||||
(contact_search_ok.asp)
|
||||
<%end if%>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td valign='top'>
|
||||
<table width=100% cellpadding='0' cellspacing='0' border='1' style="font-size:13px;">
|
||||
<%
|
||||
If adors.recordcount > 0 Then
|
||||
%>
|
||||
<tr height=30>
|
||||
<td align='center' width="2%">선택</td>
|
||||
<td align='center' width="16%">기관명</td>
|
||||
<td align='center' width="4%">컨택지역</td>
|
||||
<td align='center' width="3%" bgcolor=DeepSkyBlue>LIST ID</td>
|
||||
<td align='center' width="5%">차수</td>
|
||||
<td align='center' width="5%">분류 1</td>
|
||||
<td align='center' width="5%">분류 2</td>
|
||||
<td align='center' width="5%">분류 3</td>
|
||||
<td align='center' width="5%">분류 4</td>
|
||||
<td align='center' width="5%">분류 5</td>
|
||||
<td align='center' width="5%">분류 6</td>
|
||||
<td align='center' width="5%">분류 7</td>
|
||||
<td align='center' width="5%">쿼터 지역</td>
|
||||
<td align='center' width="7%">회사명</td>
|
||||
<td align='center' width="5%">이름</td>
|
||||
<td align='center' width="6%">주소</td>
|
||||
<td align='center' width="6%">컨택결과</td>
|
||||
<td align='center' width="5%">기타 1</td>
|
||||
</tr>
|
||||
<%
|
||||
do while not adors.eof
|
||||
cnt = cnt + 1
|
||||
%>
|
||||
<tr>
|
||||
<td align='center'><input type='radio' name='chk_sel' value='<%=adors("id")%>'/></td>
|
||||
<td align='center'><%=adors("kikoan_name")%></td>
|
||||
<td align='center'><%=adors("contac_area")%></td>
|
||||
<td align='center' bgcolor=DeepSkyBlue><%=adors("list_id")%></td>
|
||||
<td align='center'><%=adors("chasu")%></td>
|
||||
<td align='center'><%=adors("categori_label01")%></td>
|
||||
<td align='center'><%=adors("categori_label02")%></td>
|
||||
<td align='center'><%=adors("categori_label03")%></td>
|
||||
<td align='center'><%=adors("categori_label04")%></td>
|
||||
<td align='center'><%=adors("categori_label05")%></td>
|
||||
<td align='center'><%=adors("categori_label06")%></td>
|
||||
<td align='center'><%=adors("categori_label07")%></td>
|
||||
<td align='center'><%=adors("quota_area")%></td>
|
||||
<td align='center'><%=adors("comp_name")%></td>
|
||||
<td align='center'><%=adors("name")%></td>
|
||||
<td align='center'><%=adors("comp_addr")%></td>
|
||||
<td align='center'><%=adors("contac_stat_label")%></td>
|
||||
<td align='center'><%=adors("etc1")%></td>
|
||||
</tr>
|
||||
<%
|
||||
adors.movenext
|
||||
Loop
|
||||
Else
|
||||
%>
|
||||
<tr>
|
||||
<td>해당되는 리스트가 존재하지 않습니다.</td>
|
||||
</tr>
|
||||
<%
|
||||
End if
|
||||
%>
|
||||
</table>
|
||||
<input type='hidden' name = 'cnt' value='<%=cnt%>'>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td bgcolor='#FFFFFF'>
|
||||
<table width='50%' cellpadding='3' cellspacing='1' border='1' bgcolor='#DADADA'>
|
||||
<tr>
|
||||
<td align='center' >
|
||||
<input type = button value='전화걸기 화면으로' style='cursor:pointer' onclick='search_ok("<%=login_type%>")' title='전화걸기'>
|
||||
<img src='<%=domain_url%>:8888/images/common/btn_search.jpg' onclick='search("<%=login_type%>")' style='CURSOR:pointer;VERTICAL-ALIGN: middle;' title='검색'>
|
||||
<img src='<%=domain_url%>:8888/images/common/btn_search_kikoan.jpg' onclick='contec_sel(<%=key_id%>)' style='CURSOR:pointer;VERTICAL-ALIGN: middle;' title='기관 재선택'>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
|
||||
<!-- #include file = "inc_bottom.asp"-->
|
||||
|
||||
|
||||
|
||||
|
||||
<script LANGUAGE='JavaScript'>
|
||||
function contec_sel()
|
||||
{ //기관 재선택 부터
|
||||
var f = document.frm_main;
|
||||
f.action = "contact_select.asp?command=re_contac_sel";
|
||||
f.submit();
|
||||
}
|
||||
|
||||
function search(login_type)
|
||||
{
|
||||
var txt;
|
||||
var f = document.frm_main;
|
||||
|
||||
f.action = "contact_search.asp";
|
||||
f.submit();
|
||||
}
|
||||
|
||||
|
||||
function search_ok(login_type)
|
||||
{
|
||||
var f = document.frm_main;
|
||||
|
||||
var cnt = f.cnt.value;
|
||||
var tmp_ok = 0;
|
||||
var idValue = 0;
|
||||
if (eval(cnt) == 1)
|
||||
{
|
||||
if (f.chk_sel.checked == true)
|
||||
{
|
||||
tmp_ok = 1;
|
||||
idValue = f.chk_sel.value;
|
||||
//f.key_id.value = idValue;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
for (i = 0; i <= eval(cnt) - 1; i++)
|
||||
{
|
||||
if (f.chk_sel[i].checked == true)
|
||||
{
|
||||
tmp_ok = 1;
|
||||
idValue = f.chk_sel[i].value;
|
||||
|
||||
//f.key_id.value = idValue;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (tmp_ok != 1)
|
||||
{
|
||||
alert('선택을 하세요.');
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
// if (f.login_area.value == "서울")
|
||||
// {
|
||||
f.action = "contact_tel_dial.asp?command=search&key_id=" + idValue;
|
||||
// }
|
||||
// else
|
||||
// {
|
||||
// f.action = "inc_list.asp?command=search&key_id=" + idValue;
|
||||
// }
|
||||
// alert(idValue);
|
||||
f.submit();
|
||||
}
|
||||
|
||||
|
||||
</script>
|
||||
1033
contact/contact_select.asp
Normal file
1033
contact/contact_select.asp
Normal file
File diff suppressed because it is too large
Load Diff
1033
contact/contact_select.asp_250922_CNS
Normal file
1033
contact/contact_select.asp_250922_CNS
Normal file
File diff suppressed because it is too large
Load Diff
324
contact/contact_tel_dial.asp
Normal file
324
contact/contact_tel_dial.asp
Normal file
@@ -0,0 +1,324 @@
|
||||
<!-- #include file = "./lib/config.asp" -->
|
||||
<%'
|
||||
Response.CharSet="utf-8"
|
||||
|
||||
Response.codepage="65001"
|
||||
Response.ContentType="text/html;charset=utf-8"
|
||||
'정형기 기록 - 사용페이지
|
||||
'contact_inc_list(실제 컨택하는 페이지) include 하고있음
|
||||
|
||||
%>
|
||||
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
|
||||
<html>
|
||||
<head>
|
||||
<title>KRC - 컨택</title>
|
||||
<meta charset="utf-8"/>
|
||||
<!--<meta http-equiv="Content-Security-Policy" content="upgrade-insecure-requests">-->
|
||||
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.min.css" integrity="sha384-Vkoo8x4CGsO3+Hhxv8T/Q5PaXtkKtu6ug5TOeNV6gBiFeWPGFN9MuhOf23Q9Ifjh" crossorigin="anonymous">
|
||||
</head>
|
||||
<!-- <body onLoad="DLL_Initialize();fn_login();" onUnload="DLL_Finalize();" leftmargin=10> -->
|
||||
<!-- <body onLoad="DLL_Initialize();fn_login();" style="margin: 0px; padding: 0px;"> -->
|
||||
<body onload="ChildConnect();" style="margin: 0px; padding: 0px;">
|
||||
|
||||
<!--#include file = "contact_inc_list.asp"-->
|
||||
<form action="" name="fm" id="fm">
|
||||
<div>
|
||||
<div style="width:980px; margin: 0 auto; border: 0px solid;">
|
||||
<div>
|
||||
<!--자리 번호-->
|
||||
<!-- <input type="hidden" readonly name="loginId" id="loginId" onblur="fn_insertVal(this.value);" value="<%=client_id%>"> -->
|
||||
<input type="hidden" readonly name="loginid" id="loginid" value="<%=client_id%>">
|
||||
<!--내선 번호-->
|
||||
<input type="hidden" readonly name="extension" id="extension" value="<%=extension%>">
|
||||
<!--발신 번호-->
|
||||
<input type="hidden" readonly name="ani_num" id="ani_num" value="<%=ani_num%>" title='발신 번호'>
|
||||
<!--응답자 전화 번호-->
|
||||
<input type="hidden" readonly name="dn" id="dn" value="<%=dn%>">
|
||||
</div>
|
||||
</div>
|
||||
<br />
|
||||
|
||||
<div name="logdata" id="logdata" style="width:100%; height:100px;" ></div>
|
||||
</div>
|
||||
</form>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
<script src="/js/jquery.min.js"></script>
|
||||
<script src="/js/jquery-ajax-call.js"></script>
|
||||
|
||||
<script type="text/javascript">
|
||||
|
||||
// 전역으로 선언
|
||||
var wsocket;
|
||||
var login_id;
|
||||
var login_pnum;
|
||||
var login_name;
|
||||
var ani;
|
||||
|
||||
////////////////////////////////////////////////////////
|
||||
//로그
|
||||
window.addEventListener('message', function(event) {
|
||||
if (event.data.command == "Log") {
|
||||
fn_AppendLog(event.data.message);
|
||||
}
|
||||
});
|
||||
|
||||
function fn_AppendLog(message) {
|
||||
var now = new Date();
|
||||
var hour = now.getHours().toString();
|
||||
var minute = now.getMinutes().toString();
|
||||
var second = now.getSeconds().toString();
|
||||
var millisec = now.getMilliseconds().toString();
|
||||
if (2 != hour.length) {
|
||||
hour = "0" + hour;
|
||||
}
|
||||
if (2 != minute.length) {
|
||||
minute = "0" + minute;
|
||||
}
|
||||
if (2 != second.length) {
|
||||
second = "0" + second;
|
||||
}
|
||||
if (1 == millisec.length) {
|
||||
millisec = "0" + millisec;
|
||||
}
|
||||
if (2 == millisec.length) {
|
||||
millisec = "0" + millisec;
|
||||
}
|
||||
var prefix = hour + ':' + minute + ':' + second + '.' + millisec + ', ';
|
||||
var logger = document.getElementById("logdata");
|
||||
//logger.innerText = logger.innerText + "\r\n" + prefix + message + "\r\n";
|
||||
logger.innerText = "\r\n" + prefix + message + "\r\n" + logger.innerText + "\r\n";
|
||||
}
|
||||
////////////////////////////////////////////////////////
|
||||
|
||||
window.addEventListener('message', function (event) {
|
||||
if (event.data.command == "Connect") {
|
||||
Connect();
|
||||
}
|
||||
else if (event.data.command == "Login") {
|
||||
Login(event.data.loginid, event.data.loginpnum, event.data.loginname);
|
||||
}
|
||||
else if (event.data.command == "Logout") {
|
||||
Logout(event.data.loginid);
|
||||
}
|
||||
else if (event.data.command == "MakeCall") {
|
||||
MakeCall(event.data.loginid, event.data.dn, event.data.ani);
|
||||
}
|
||||
else if (event.data.command == "Hangup") {
|
||||
Hangup(event.data.loginid);
|
||||
}
|
||||
else if (event.data.command == "Ready") {
|
||||
Ready(event.data.loginid);
|
||||
}
|
||||
else if (event.data.command == "Break") {
|
||||
Break(event.data.loginid);
|
||||
}
|
||||
else if (event.data.command == "SetRecordStamp") {
|
||||
SetRecordStamp(event.data.loginid);
|
||||
}
|
||||
}, false);
|
||||
|
||||
// 명령어
|
||||
function Connect() {
|
||||
|
||||
//wsocket = new WebSocket("ws://10.10.11.68:2302");
|
||||
wsocket = new WebSocket("wss://teracall.kric.com:2302");
|
||||
console.log(wsocket);
|
||||
wsocket.onopen = function () {
|
||||
if_log("wsocket connected !");
|
||||
ChildLogin();
|
||||
};
|
||||
|
||||
wsocket.onerror = function(event) {
|
||||
console.error("WebSocket Error:", event);
|
||||
};
|
||||
|
||||
wsocket.onmessage = function (evt) {
|
||||
var received_msg = evt.data;
|
||||
var n = "\n";
|
||||
received_msg = replaceAll(received_msg, ",", "," + n);
|
||||
console.log(received_msg);
|
||||
if_log(received_msg);
|
||||
};
|
||||
|
||||
wsocket.onclose = function (event) {
|
||||
if (event.wasClean) {
|
||||
console.log(`Closed cleanly, code=${event.code}, reason=${event.reason}`);
|
||||
} else {
|
||||
console.error('Connection died');
|
||||
}
|
||||
if_log("connection is closed...");
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
function Login(id, pnum, lname) {
|
||||
login_id = id;
|
||||
login_phone_number = pnum;
|
||||
login_name = lname;
|
||||
|
||||
var data = {
|
||||
"ZCommand": "Login",
|
||||
"AgentLoginID": login_id,
|
||||
"AgentName": login_name,
|
||||
"AgentGroup": "2025",
|
||||
"ANINumber": "12345678",
|
||||
"AgentPhone": login_phone_number
|
||||
}
|
||||
console.log(login_id + ", " + login_phone_number + ", " + login_name);
|
||||
wsocket.send(JSON.stringify(data));
|
||||
|
||||
}
|
||||
|
||||
function Logout(id) {
|
||||
login_id = id;
|
||||
var data = {
|
||||
"ZCommand": "Logout",
|
||||
"AgentLoginID": login_id
|
||||
}
|
||||
wsocket.send(JSON.stringify(data));
|
||||
}
|
||||
|
||||
function MakeCall(id, dn, ani) {
|
||||
login_id = id;
|
||||
dial_number = dn;
|
||||
ani_number = ani;
|
||||
var data = {
|
||||
"ZCommand": "MakeCall",
|
||||
"AgentLoginID": login_id,
|
||||
"DialNumber": dial_number,
|
||||
"ANINumber": ani_number
|
||||
}
|
||||
wsocket.send(JSON.stringify(data));
|
||||
}
|
||||
|
||||
function Hangup(id) {
|
||||
login_id = id;
|
||||
var data = {
|
||||
"ZCommand": "HangUp",
|
||||
"AgentLoginID": login_id
|
||||
}
|
||||
wsocket.send(JSON.stringify(data));
|
||||
}
|
||||
|
||||
function Ready(id) {
|
||||
login_id = id;
|
||||
var data = {
|
||||
"ZCommand": "SetAgentStatus",
|
||||
"AgentLoginID": login_id,
|
||||
"CTIAgentStatus": "1"
|
||||
}
|
||||
wsocket.send(JSON.stringify(data));
|
||||
}
|
||||
|
||||
function Break(id) {
|
||||
login_id = id;
|
||||
var data = {
|
||||
"ZCommand": "SetAgentStatus",
|
||||
"AgentLoginID": login_id,
|
||||
"CTIAgentStatus": "11"
|
||||
}
|
||||
wsocket.send(JSON.stringify(data));
|
||||
}
|
||||
|
||||
function SetRecordStamp(id) {
|
||||
login_id = id;
|
||||
var data = {
|
||||
"ZCommand": "SetRecordStamp",
|
||||
"AgentLoginID": login_id,
|
||||
"Tag": "테스트데이터"
|
||||
}
|
||||
wsocket.send(JSON.stringify(data));
|
||||
}
|
||||
|
||||
// 로그
|
||||
function if_log(val) {
|
||||
/*
|
||||
var frame = document.getElementById("logdata");
|
||||
//frame.contentWindow.postMessage({
|
||||
frame.contentWindow.postMessage({
|
||||
'command': 'Log',
|
||||
'message': val
|
||||
}, "*");
|
||||
*/
|
||||
}
|
||||
|
||||
function replaceAll(str, searchStr, replaceStr) {
|
||||
return str.split(searchStr).join(replaceStr);
|
||||
}
|
||||
|
||||
|
||||
|
||||
function ChildConnect() {
|
||||
window.postMessage({
|
||||
'command': 'Connect'
|
||||
}, "*");
|
||||
}
|
||||
|
||||
function ChildLogin() {
|
||||
var p1 = document.getElementById("loginid").value;
|
||||
var p2 = document.getElementById("extension").value;
|
||||
console.log(p1,p2);
|
||||
window.postMessage({
|
||||
'command': 'Login',
|
||||
'loginid': p1,
|
||||
'loginpnum' : p2,
|
||||
'loginname' : 'contactor',
|
||||
}, "*");
|
||||
}
|
||||
|
||||
function ChildLogout() {
|
||||
var p1 = document.getElementById("loginid").value;
|
||||
window.postMessage({
|
||||
'command': 'Logout',
|
||||
'loginid': p1
|
||||
}, "*");
|
||||
}
|
||||
|
||||
function ChildMakeCall() {
|
||||
var p1 = document.getElementById("loginid").value;
|
||||
var dn = document.getElementById("dn").value;
|
||||
var ani_num = document.getElementById("ani_num").value;
|
||||
window.postMessage({
|
||||
'command': 'MakeCall',
|
||||
'loginid': p1,
|
||||
'dn': dn,
|
||||
'ani': ani_num
|
||||
}, "*");
|
||||
}
|
||||
|
||||
function ChildHangup() {
|
||||
var p1 = document.getElementById("loginid").value;
|
||||
window.postMessage({
|
||||
'command': 'Hangup',
|
||||
'loginid': p1
|
||||
}, "*");
|
||||
}
|
||||
|
||||
function ChildReady() {
|
||||
var p1 = document.getElementById("loginid").value;
|
||||
window.postMessage({
|
||||
'command': 'Ready',
|
||||
'loginid': p1
|
||||
}, "*");
|
||||
}
|
||||
|
||||
function ChildBreak() {
|
||||
var p1 = document.getElementById("loginid").value;
|
||||
window.postMessage({
|
||||
'command': 'Break',
|
||||
'loginid': p1
|
||||
}, "*");
|
||||
}
|
||||
|
||||
function ChildSetRecordStamp() {
|
||||
var p1 = document.getElementById("loginid").value;
|
||||
window.postMessage({
|
||||
'command': 'SetRecordStamp',
|
||||
'loginid': p1
|
||||
}, "*");
|
||||
}
|
||||
|
||||
</script>
|
||||
286
contact/contact_tel_init.asp
Normal file
286
contact/contact_tel_init.asp
Normal file
@@ -0,0 +1,286 @@
|
||||
<!-- #include file = "./lib/config.asp" -->
|
||||
<%'
|
||||
Response.CharSet="utf-8"
|
||||
|
||||
Response.codepage="65001"
|
||||
Response.ContentType="text/html;charset=utf-8"
|
||||
''단, (chasu_use_chk = 'yes')문을 이용하여 사용여부 판단...(값이 no 인것들은 컨택결과를 일괄적으로 지정을 했기에 컨택을 하면 안되기에)
|
||||
|
||||
|
||||
set adors2 = server.CreateObject("ADODB.RECORDSET")
|
||||
set adors_tmp = server.CreateObject("ADODB.RECORDSET")
|
||||
|
||||
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 key_id
|
||||
dim login_id
|
||||
dim interview_date(13)
|
||||
|
||||
interview_date(1) = "없음(거절 등)"
|
||||
interview_date(2) = "2013-11-11 ~ 2013-11-16"
|
||||
interview_date(3) = "2013-11-18 ~ 2013-11-23"
|
||||
interview_date(4) = "2013-11-25 ~ 2013-11-30"
|
||||
interview_date(5) = "2013-12-02 ~ 2013-12-07"
|
||||
interview_date(6) = "2013-12-09 ~ 2013-12-14"
|
||||
interview_date(7) = "2013-12-16 ~ 2013-12-21"
|
||||
interview_date(8) = "2013-12-23 ~ 2013-12-28"
|
||||
interview_date(9) = "2013-12-30 ~ 2014-01-04"
|
||||
interview_date(10) = "2014-01-06 ~ 2014-01-11"
|
||||
interview_date(11) = "2014-01-13 ~ 2014-01-18"
|
||||
interview_date(12) = "2014-01-20 ~ 2014-01-25"
|
||||
interview_date(13) = "2014-01-27 ~ 2014-02-01"
|
||||
|
||||
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"))
|
||||
categori_name_01 = trim(request("categori_name_01"))
|
||||
categori_name_02 = trim(request("categori_name_02"))
|
||||
categori_name_03 = trim(request("categori_name_03"))
|
||||
categori_name_04 = trim(request("categori_name_04"))
|
||||
categori_name_05 = trim(request("categori_name_05"))
|
||||
categori_name_06 = trim(request("categori_name_06"))
|
||||
categori_name_07 = trim(request("categori_name_07"))
|
||||
categori_label_01 = trim(request("categori_label_01"))
|
||||
categori_label_02 = trim(request("categori_label_02"))
|
||||
categori_label_03 = trim(request("categori_label_03"))
|
||||
categori_label_04 = trim(request("categori_label_04"))
|
||||
categori_label_05 = trim(request("categori_label_05"))
|
||||
categori_label_06 = trim(request("categori_label_06"))
|
||||
categori_label_07 = trim(request("categori_label_07"))
|
||||
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"))
|
||||
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"))
|
||||
contac_area = trim(request("contac_area"))
|
||||
ani_num = trim(request("ani_num"))
|
||||
categori_cnt = request("categori_cnt")
|
||||
command = request("command")
|
||||
'contac_stat = 99 '일단 컨택중으로
|
||||
contac_stat = trim(request("contac_stat"))
|
||||
init_stat = trim(request("init_stat"))
|
||||
quota_area = request("quota_area")
|
||||
prj_year = request("prj_year")
|
||||
|
||||
sex = ""
|
||||
age = 0
|
||||
|
||||
' response.write "kikoan_name : " & kikoan_name & "<br/>"
|
||||
' response.write "kikoan_id : " & kikoan_id & "<br/>"
|
||||
' response.write "login_area : " & login_area & "<br/>"
|
||||
' response.write "quota_area : " & quota_area & "<br/>"
|
||||
' response.write "contac_area : " & contac_area & "<br/>"
|
||||
|
||||
' response.write "categori_name_01 : " & categori_name_01 & "<br/>"
|
||||
' response.write "categori_name_02 : " & categori_name_02 & "<br/>"
|
||||
' response.write "categori_name_03 : " & categori_name_03 & "<br/>"
|
||||
' response.write "categori_name_04 : " & categori_name_04 & "<br/>"
|
||||
' response.write "categori_name_05 : " & categori_name_05 & "<br/>"
|
||||
' response.write "categori_name_06 : " & categori_name_06 & "<br/>"
|
||||
' response.write "categori_name_07 : " & categori_name_07 & "<br/>"
|
||||
' response.write "categori_label_01 : " & categori_label_01 & "<br/>"
|
||||
' response.write "categori_label_02 : " & categori_label_02 & "<br/>"
|
||||
' response.write "categori_label_03 : " & categori_label_03 & "<br/>"
|
||||
' response.write "categori_label_04 : " & categori_label_04 & "<br/>"
|
||||
' response.write "categori_label_05 : " & categori_label_05 & "<br/>"
|
||||
' response.write "categori_label_06 : " & categori_label_06 & "<br/>"
|
||||
' response.write "categori_label_07 : " & categori_label_07 & "<br/>"
|
||||
' response.write "categori_01 : " & categori_01 & "<br/>"
|
||||
' response.write "categori_02 : " & categori_02 & "<br/>"
|
||||
' response.write "categori_03 : " & categori_03 & "<br/>"
|
||||
' response.write "categori_04 : " & categori_04 & "<br/>"
|
||||
' response.write "categori_05 : " & categori_05 & "<br/>"
|
||||
' response.write "categori_06 : " & categori_06 & "<br/>"
|
||||
' response.write "categori_07 : " & categori_07 & "<br/>"
|
||||
' response.write "categori_cnt : " & categori_cnt & "<br/>"
|
||||
|
||||
' response.write "contac_stat : " & contac_stat & "<br/>"
|
||||
' response.write "ani_num : " & ani_num & "<br/>"
|
||||
' response.write "init_stat : " & init_stat & "<br/>"
|
||||
|
||||
query = "update list set rechecker = '', contactor = 'no', contac_date = '', contac_time = '' " & _
|
||||
" where kikoan_name like '" & kikoan_name & "' " & _
|
||||
" and (chasu = '원표본' or chasu = '2차표본') and (chasu_use_chk = 'yes') " & _
|
||||
" and contac_stat = " & init_stat & _
|
||||
" and prj_year = '" & prj_year & "'"
|
||||
|
||||
' response.write "query : " & query & "<br/>"
|
||||
adoconn.execute query
|
||||
%>
|
||||
|
||||
<!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=euc-kr">
|
||||
<title>KRC - 컨택</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 style="margin: 0px; padding: 0px;">
|
||||
<form method=post name='frm_main'>
|
||||
|
||||
<input type='hidden' value = '<%=kikoan_id%>' name='kikoan_id'/>
|
||||
<input type='hidden' value = '<%=project_type%>' name='project_type'/>
|
||||
<input type='hidden' value = '<%=contac_stat%>' name='contac_stat'/>
|
||||
<input type='hidden' readonly value='<%=id%>' style='text-align:center' name = 'id'>
|
||||
|
||||
<table width=1000 cellpadding='0' cellspacing='0' border='0' valign='top' >
|
||||
<tr>
|
||||
<td valign='top'>
|
||||
<table width=100% cellpadding='0' cellspacing='0' border='0'>
|
||||
<tr height=5>
|
||||
|
||||
<td background='<%=domain_url%>/capi/images_new/top_bg.jpg'></td>
|
||||
</tr>
|
||||
</table>
|
||||
<table width='100%' cellpadding='3' cellspacing='1' border='1' bgcolor='#DADADA'>
|
||||
|
||||
<!--타이틀 -->
|
||||
<tr bgcolor=Aqua height=30>
|
||||
<td colspan=2 align='center' style="font-size:13pt;font-weight:bold">
|
||||
<%=login_name%> 님은 <%=login_area%> 지역의 <%=login_type%> 입니다.
|
||||
<%if Request.ServerVariables("remote_addr") = "10.10.17.52" or Request.ServerVariables("remote_addr") = "1.235.195.52" then%>
|
||||
(inc_top.asp)
|
||||
<%end if%>
|
||||
</td>
|
||||
</tr>
|
||||
<!--기관명 -->
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td height='1' bgcolor='#dadada'></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td valign='top'>
|
||||
<table width=100% cellpadding='0' cellspacing='0' border='1'>
|
||||
<tr height=30>
|
||||
<td align='center'>로그인 아이디
|
||||
<input type='hidden' value = '<%=login_id%>' name = 'login_id'>
|
||||
</td>
|
||||
<td align='center'>
|
||||
<input type='text' readonly name='login_name' value='<%=login_name%>'> <!-- '로그인 아이디 -->
|
||||
</td>
|
||||
<td align='center'>로그인 유형</td>
|
||||
<td align='center'>
|
||||
<input type='text' readonly name='login_type' value='<%=login_type%>'> <!-- '로그인 타입(관리자, sv,면접원, 컨택원 등) -->
|
||||
</td>
|
||||
<td align='center'>기관명</td>
|
||||
<td align='center'>
|
||||
<input type='text' size=40 readonly name='kikoan_name' value='<%=kikoan_name%>' style='font-weight:bold'> <!-- '쿼터용 기관명 -->
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr height=30>
|
||||
<td align='center'>자리번호</td>
|
||||
<td align='center'>
|
||||
<input type='text' readonly name = 'client_id' value = '<%=client_id%>'> <!-- '면접원 자리번호 -->
|
||||
</td>
|
||||
<td align='center'>내선번호</td>
|
||||
<td align='center'>
|
||||
<input type='text' readonly name = 'extension' value = '<%=extension%>' > <!-- '면접원 내선번호 -->
|
||||
</td>
|
||||
<td align='center'>발신번호</td>
|
||||
<td align='center'>
|
||||
<input type='text' readonly name='ani_num' value='<%=ani_num%>'> <!-- '발신번호-->
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<table width=1000 cellpadding='0' cellspacing='0' border='0'>
|
||||
<tr height=50 align='center' >
|
||||
<td width=100% style='font-size:16pt;font-weight:bold;font-color:yellow;'>
|
||||
<% If init_stat = 0 Then %>
|
||||
미사용
|
||||
<% ElseIf init_stat = 1 Then %>
|
||||
면접예정
|
||||
<% ElseIf init_stat = 2 Then %>
|
||||
부재중
|
||||
<% ElseIf init_stat = 4 Then %>
|
||||
비수신
|
||||
<% End If %>
|
||||
전화번호를 초기화를 적용 하였습니다.
|
||||
</td>
|
||||
</tr>
|
||||
<tr align='center' >
|
||||
<td>
|
||||
<img src='<%=domain_url%>:8888/images/common/btn_search_kikoan.jpg' onclick='contec_sel(<%=key_id%>)' style='cursor:hand;VERTICAL-ALIGN: middle;' title='기관 재선택'>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
|
||||
<%
|
||||
set Adors = nothing
|
||||
|
||||
AdoConn.close
|
||||
set AdoConn = nothing
|
||||
%>
|
||||
|
||||
<!-- #include file = "./inc_bottom_script.asp"-->
|
||||
|
||||
<form action="" name="fm" id="fm">
|
||||
|
||||
<div>
|
||||
<div style="width:980px; margin: 0 auto; border: 0px solid;">
|
||||
<div>
|
||||
<!--b>자리번호</b--> <input type="hidden" readonly name="loginId" id="loginId" onblur="fn_insertVal(this.value);" value="<%=client_id%>">
|
||||
<!--b>패스워드</b> <input type="text" readonly name="loginPw" id="loginPw" onkeypress="if(event.keyCode == 13) fn_login();"> -->
|
||||
<!--b>내선번호</b--> <input type="hidden" readonly name="extension" id="extension" value="<%=extension%>">
|
||||
</div>
|
||||
<br />
|
||||
<div>
|
||||
<input type="hidden" readonly name="ani_num" id="ani_num" value="<%=ani_num%>" title='발신 번호'>
|
||||
<!--응답자 번호--> <input type="hidden" readonly name="dn" id="dn" value="<%=dn%>">
|
||||
</div>
|
||||
</div>
|
||||
<br />
|
||||
|
||||
<div name="logdata" id="logdata" style="width:100%; height:100px;" ></div>
|
||||
|
||||
</div>
|
||||
</form>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
343
contact/dial_init.asp
Normal file
343
contact/dial_init.asp
Normal file
@@ -0,0 +1,343 @@
|
||||
<!-- #include file = "./lib/config.asp" -->
|
||||
<%'
|
||||
Response.CharSet="utf-8"
|
||||
Response.codepage="65001"
|
||||
Response.ContentType="text/html;charset=utf-8"
|
||||
|
||||
'일단 FCS로 추정됨
|
||||
dim local_ip
|
||||
dim p_child_sn
|
||||
dim s_area
|
||||
dim s_type
|
||||
dim s_id
|
||||
dim dn
|
||||
|
||||
local_ip = Request.ServerVariables("remote_addr")
|
||||
|
||||
ConnectString = "Provider=SQLOLEDB.1;Password=" & PWD & ";Persist Security Info=True;User ID=" & UID & ";Initial Catalog=new_cati;Data Source=" & SV_NAME
|
||||
Set AdoConn_cati = Server.CreateObject("ADODB.Connection")
|
||||
AdoConn_cati.Open ConnectString
|
||||
query = "select top 1 * from client where client_ip = '" & local_ip & "'"
|
||||
adors.open query, AdoConn_cati, 1
|
||||
|
||||
'response.Write query
|
||||
if adors.recordcount > 0 Then
|
||||
client_id = adors("client_id")
|
||||
ani_num = adors("external_no")
|
||||
extension = adors("internal_no")
|
||||
end If
|
||||
|
||||
' dim s_query
|
||||
' dim s_adors
|
||||
' s_query = "select * from T_external_number where user_code = 'IT' and useFlag='0' order by newid() "
|
||||
' s_adors.open s_query, AdoConn_cati, 1
|
||||
' if s_adors.recordcount>0 Then
|
||||
' ani_num = s_adors("num") '발신번호 가져오기
|
||||
' End If
|
||||
|
||||
dn = request("dn")
|
||||
p_child_sn = request("p_child_sn")
|
||||
s_area = request("s_area")
|
||||
s_type = request("tmp_s_type")
|
||||
s_id = request("s_id")
|
||||
inspection_name = request("inspection_name")
|
||||
%>
|
||||
|
||||
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv='Content-Type' content="text/html;charset=utf-8">
|
||||
<title></title>
|
||||
</head>
|
||||
<!--<meta http-equiv="Content-Security-Policy" content="upgrade-insecure-requests">-->
|
||||
<!-- 기존 소스 <body onLoad="DLL_Initialize();fn_login();" style="margin: 0px; padding: 0px;"> -->
|
||||
<body onLoad="ChildConnect();" style="margin: 0px; padding: 0px;">
|
||||
<!-- 기존 소스
|
||||
<div>
|
||||
<object id="dll" name="dll" codebase="dll/mytro.CTI.cab#version=2,0,5,5" classid="CLSID:00FE8DE8-8426-44FB-AE5E-F65694EB192D" style="left: 0px; top: 0px; width:0; height:0; display:none;"></object>
|
||||
뭔가 이상하다구
|
||||
</div>
|
||||
-->
|
||||
<img style='cursor:pointer;' src="<%=domain_url%>:8888/images/makecall/btn_dial.jpg" onclick="ChildMakeCall();">
|
||||
<img style='cursor:pointer;' src="<%=domain_url%>:8888/images/makecall/btn_hangup.gif" onclick="ChildHangup();">
|
||||
<form id="dialFrm" name="dialFrm">
|
||||
|
||||
<!--자리 번호--> <input type="hidden" name="loginId" id="loginId" value="<%=client_id%>">
|
||||
<!--내선 번호--> <input type="hidden" name="extension" id="extension" value="<%=extension%>">
|
||||
<!--발신 번호--> <input type="hidden" name="ani_num" id="ani_num" value="<%=ani_num%>">
|
||||
<!--응답자 번호--> <input type="hidden" name="dn" id="dn" value="<%=dn%>">
|
||||
<!--IP주소--> <input type="hidden" name="ip_address" id="ip_address" value="<%=local_ip%>">
|
||||
<!--프로젝트No--> <input type="hidden" name="p_child_sn" id="p_child_sn" value="<%=p_child_sn%>">
|
||||
<!--지역--> <input type="hidden" name="s_area" id="s_area" value="<%=s_area %>">
|
||||
<!--설문타입--> <input type="hidden" name="s_type" id="s_type" value="<%=s_type%>">
|
||||
<!--설문ID--> <input type="hidden" name="s_id" id="s_id" value="<%=s_id%>">
|
||||
<!--검증원--> <input type="hidden" name="inspection_name" id="inspection_name" value="<%=inspection_name%>">
|
||||
</form>
|
||||
</body>
|
||||
<script src="/js/jquery.min.js"></script>
|
||||
<script src="/js/jquery-ajax-call.js"></script>
|
||||
<script>
|
||||
|
||||
// 전역으로 선언
|
||||
var wsocket;
|
||||
var login_id;
|
||||
var login_pnum;
|
||||
var login_name;
|
||||
var ani;
|
||||
|
||||
////////////////////////////////////////////////////////
|
||||
//로그
|
||||
window.addEventListener('message', function(event) {
|
||||
if (event.data.command == "Log") {
|
||||
fn_AppendLog(event.data.message);
|
||||
}
|
||||
});
|
||||
|
||||
function fn_AppendLog(message) {
|
||||
var now = new Date();
|
||||
var hour = now.getHours().toString();
|
||||
var minute = now.getMinutes().toString();
|
||||
var second = now.getSeconds().toString();
|
||||
var millisec = now.getMilliseconds().toString();
|
||||
if (2 != hour.length) {
|
||||
hour = "0" + hour;
|
||||
}
|
||||
if (2 != minute.length) {
|
||||
minute = "0" + minute;
|
||||
}
|
||||
if (2 != second.length) {
|
||||
second = "0" + second;
|
||||
}
|
||||
if (1 == millisec.length) {
|
||||
millisec = "0" + millisec;
|
||||
}
|
||||
if (2 == millisec.length) {
|
||||
millisec = "0" + millisec;
|
||||
}
|
||||
var prefix = hour + ':' + minute + ':' + second + '.' + millisec + ', ';
|
||||
var logger = document.getElementById("logdata");
|
||||
//logger.innerText = logger.innerText + "\r\n" + prefix + message + "\r\n";
|
||||
logger.innerText = "\r\n" + prefix + message + "\r\n" + logger.innerText + "\r\n";
|
||||
}
|
||||
////////////////////////////////////////////////////////
|
||||
|
||||
window.addEventListener('message', function (event) {
|
||||
if (event.data.command == "Connect") {
|
||||
Connect();
|
||||
}
|
||||
else if (event.data.command == "Login") {
|
||||
Login(event.data.loginid, event.data.loginpnum, event.data.loginname);
|
||||
}
|
||||
else if (event.data.command == "Logout") {
|
||||
Logout(event.data.loginid);
|
||||
}
|
||||
else if (event.data.command == "MakeCall") {
|
||||
MakeCall(event.data.loginid, event.data.dn, event.data.ani);
|
||||
}
|
||||
else if (event.data.command == "Hangup") {
|
||||
Hangup(event.data.loginid);
|
||||
}
|
||||
else if (event.data.command == "Ready") {
|
||||
Ready(event.data.loginid);
|
||||
}
|
||||
|
||||
else if (event.data.command == "Break") {
|
||||
Break(event.data.loginid);
|
||||
}
|
||||
else if (event.data.command == "SetRecordStamp") {
|
||||
SetRecordStamp(event.data.loginid);
|
||||
}
|
||||
}, false);
|
||||
|
||||
// 명령어
|
||||
function Connect() {
|
||||
|
||||
//wsocket = new WebSocket("ws://10.10.11.68:2302");
|
||||
wsocket = new WebSocket("wss://teracall.kric.com:2302");
|
||||
console.log(wsocket);
|
||||
wsocket.onopen = function () {
|
||||
if_log("wsocket connected !");
|
||||
ChildLogin();
|
||||
};
|
||||
|
||||
wsocket.onmessage = function (evt) {
|
||||
var received_msg = evt.data;
|
||||
var n = "\n";
|
||||
received_msg = replaceAll(received_msg, ",", "," + n);
|
||||
console.log(received_msg);
|
||||
if_log(received_msg);
|
||||
};
|
||||
|
||||
wsocket.onclose = function () {
|
||||
if_log("connection is closed...");
|
||||
};
|
||||
}
|
||||
|
||||
function Login(id, pnum, lname) {
|
||||
login_id = id;
|
||||
login_phone_number = pnum;
|
||||
login_name = lname;
|
||||
|
||||
var data = {
|
||||
"ZCommand": "Login",
|
||||
"AgentLoginID": login_id,
|
||||
"AgentName": login_name,
|
||||
"AgentGroup": "1417",
|
||||
"ANINumber": "12345678",
|
||||
"AgentPhone": login_phone_number
|
||||
}
|
||||
//console.log(login_id + ", " + login_phone_number + ", " + login_name);
|
||||
wsocket.send(JSON.stringify(data));
|
||||
|
||||
}
|
||||
|
||||
function Logout(id) {
|
||||
login_id = id;
|
||||
var data = {
|
||||
"ZCommand": "Logout",
|
||||
"AgentLoginID": login_id
|
||||
}
|
||||
wsocket.send(JSON.stringify(data));
|
||||
}
|
||||
|
||||
function MakeCall(id, dn, ani) {
|
||||
login_id = id;
|
||||
dial_number = dn;
|
||||
ani_number = ani;
|
||||
var data = {
|
||||
"ZCommand": "MakeCall",
|
||||
"AgentLoginID": login_id,
|
||||
"DialNumber": dial_number,
|
||||
"ANINumber": ani_number
|
||||
}
|
||||
wsocket.send(JSON.stringify(data));
|
||||
}
|
||||
|
||||
function Hangup(id) {
|
||||
login_id = id;
|
||||
var data = {
|
||||
"ZCommand": "HangUp",
|
||||
"AgentLoginID": login_id
|
||||
}
|
||||
wsocket.send(JSON.stringify(data));
|
||||
}
|
||||
|
||||
function Ready(id) {
|
||||
login_id = id;
|
||||
var data = {
|
||||
"ZCommand": "SetAgentStatus",
|
||||
"AgentLoginID": login_id,
|
||||
"CTIAgentStatus": "1"
|
||||
}
|
||||
wsocket.send(JSON.stringify(data));
|
||||
}
|
||||
|
||||
function Break(id) {
|
||||
login_id = id;
|
||||
var data = {
|
||||
"ZCommand": "SetAgentStatus",
|
||||
"AgentLoginID": login_id,
|
||||
"CTIAgentStatus": "11"
|
||||
}
|
||||
wsocket.send(JSON.stringify(data));
|
||||
}
|
||||
|
||||
function SetRecordStamp(id) {
|
||||
login_id = id;
|
||||
var data = {
|
||||
"ZCommand": "SetRecordStamp",
|
||||
"AgentLoginID": login_id,
|
||||
"Tag": "FF검증"
|
||||
}
|
||||
wsocket.send(JSON.stringify(data));
|
||||
}
|
||||
|
||||
// 로그
|
||||
function if_log(val) {
|
||||
/*
|
||||
var frame = document.getElementById("logdata");
|
||||
//frame.contentWindow.postMessage({
|
||||
frame.contentWindow.postMessage({
|
||||
'command': 'Log',
|
||||
'message': val
|
||||
}, "*");
|
||||
*/
|
||||
}
|
||||
|
||||
function replaceAll(str, searchStr, replaceStr) {
|
||||
return str.split(searchStr).join(replaceStr);
|
||||
}
|
||||
|
||||
|
||||
|
||||
function ChildConnect() {
|
||||
window.postMessage({
|
||||
'command': 'Connect'
|
||||
}, "*");
|
||||
}
|
||||
|
||||
function ChildLogin() {
|
||||
//var p1 = document.getElementById("loginid").value;
|
||||
var p1 = document.getElementById("loginId").value; //여기부터
|
||||
var p2 = document.getElementById("extension").value;
|
||||
window.postMessage({
|
||||
'command': 'Login',
|
||||
'loginid': p1,
|
||||
'loginpnum' : p2,
|
||||
'loginname' : 'inspector',
|
||||
}, "*");
|
||||
}
|
||||
|
||||
function ChildLogout() {
|
||||
var p1 = document.getElementById("loginId").value;
|
||||
window.postMessage({
|
||||
'command': 'Logout',
|
||||
'loginid': p1
|
||||
}, "*");
|
||||
}
|
||||
|
||||
function ChildMakeCall() {
|
||||
var p1 = document.getElementById("loginId").value;
|
||||
var dn = document.getElementById("dn").value;
|
||||
var ani_num = document.getElementById("ani_num").value;
|
||||
window.postMessage({
|
||||
'command': 'MakeCall',
|
||||
'loginid': p1,
|
||||
'dn': dn,
|
||||
'ani': ani_num
|
||||
}, "*");
|
||||
}
|
||||
|
||||
function ChildHangup() {
|
||||
var p1 = document.getElementById("loginId").value;
|
||||
window.postMessage({
|
||||
'command': 'Hangup',
|
||||
'loginid': p1
|
||||
}, "*");
|
||||
}
|
||||
|
||||
function ChildReady() {
|
||||
var p1 = document.getElementById("loginId").value;
|
||||
window.postMessage({
|
||||
'command': 'Ready',
|
||||
'loginid': p1
|
||||
}, "*");
|
||||
}
|
||||
|
||||
function ChildBreak() {
|
||||
var p1 = document.getElementById("loginId").value;
|
||||
window.postMessage({
|
||||
'command': 'Break',
|
||||
'loginid': p1
|
||||
}, "*");
|
||||
}
|
||||
|
||||
function ChildSetRecordStamp() {
|
||||
var p1 = document.getElementById("loginId").value;
|
||||
window.postMessage({
|
||||
'command': 'SetRecordStamp',
|
||||
'loginid': p1
|
||||
}, "*");
|
||||
}
|
||||
</script>
|
||||
</html>
|
||||
BIN
contact/dll/mytro.CTI.cab
Normal file
BIN
contact/dll/mytro.CTI.cab
Normal file
Binary file not shown.
BIN
contact/imgs/btn_move_back.jpg
Normal file
BIN
contact/imgs/btn_move_back.jpg
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 3.1 KiB |
BIN
contact/imgs/btn_smallexcel.gif
Normal file
BIN
contact/imgs/btn_smallexcel.gif
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 3.1 KiB |
24
contact/inc_bottom.asp
Normal file
24
contact/inc_bottom.asp
Normal file
@@ -0,0 +1,24 @@
|
||||
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td height='1' bgcolor='#dadada'></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<!-- <td height='28' bgcolor='#FFFFFF' align='left'><img src='<%=domain_url%>:8888/capi/images_new/img_foot.jpg' align='absmiddle'></td> -->
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
|
||||
<%
|
||||
set Adors = nothing
|
||||
|
||||
AdoConn.close
|
||||
set AdoConn = nothing
|
||||
%>
|
||||
<!-- #include file = "./inc_bottom_script.asp"-->
|
||||
|
||||
34
contact/inc_bottom_script.asp
Normal file
34
contact/inc_bottom_script.asp
Normal file
@@ -0,0 +1,34 @@
|
||||
|
||||
<SCRIPT LANGUAGE=javascript>
|
||||
|
||||
String.prototype.trim = function()
|
||||
{
|
||||
return this.replace(/(^\s*)|(\s*$)/g, '');
|
||||
}
|
||||
String.prototype.ltrim = function()
|
||||
{
|
||||
return this.replace(/(^ *)/g, '');
|
||||
}
|
||||
String.prototype.rtrim = function()
|
||||
{
|
||||
return this.replace(/( *$)/g, '');
|
||||
}
|
||||
|
||||
function No_BackSpace()
|
||||
{
|
||||
if(event.keyCode==8)
|
||||
{
|
||||
//alert ('현재 페이지에서 뒤로 갈수 없습니다.');
|
||||
event.keyCode=38;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
function ctrlEvent() {
|
||||
if ((event.keyCode == 78) && (event.ctrlKey == true))
|
||||
{
|
||||
alert('죄송합니다...새창 띄우기는 하실수 없습니다.');
|
||||
return false;
|
||||
}
|
||||
}
|
||||
</script>
|
||||
1600
contact/inc_list.asp
Normal file
1600
contact/inc_list.asp
Normal file
File diff suppressed because it is too large
Load Diff
204
contact/inc_list_save.asp
Normal file
204
contact/inc_list_save.asp
Normal file
@@ -0,0 +1,204 @@
|
||||
<!-- #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"))
|
||||
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 " & _
|
||||
"contac_stat = " & save_contac_stat & ", " & _
|
||||
"contac_tel_cnt = contac_tel_cnt + 1, " & _
|
||||
"contac_ok_tel = '" & contac_ok_tel & "', " & _
|
||||
"comp_addr_new = '" & comp_addr_new & "', " & _
|
||||
"email_new = '" & email_new & "', " & _
|
||||
"email_new2 = '" & email_new2 & "', " & _
|
||||
"tel_new = '" & tel_new & "', " & _
|
||||
"tel_new2 = '" & tel_new2 & "', " & _
|
||||
"field_area = '" & field_area & "', " & _
|
||||
"contac_remark = '" & contac_remark & "', " & _
|
||||
"interview_date = '" & interview_date & "', " & _
|
||||
"interview_area = '" & interview_area & "', " & _
|
||||
"add_item1 = '" & add_item1 & "', " & _
|
||||
"add_item2 = '" & add_item2 & "', " & _
|
||||
"add_item3 = '" & add_item3 & "', " & _
|
||||
"add_item4 = '" & add_item4 & "', " & _
|
||||
"add_item5 = '" & add_item5 & "', " & _
|
||||
"add_item6 = '" & add_item6 & "', " & _
|
||||
"add_item7 = '" & add_item7 & "', " & _
|
||||
"comp_name_new = '" & comp_name_new & "', " & _
|
||||
"name_new = '" & name_new & "', " & _
|
||||
"comp_area_new = '" & comp_area_new & "', " & _
|
||||
"sex_new = '" & sex_new & "' " & _
|
||||
|
||||
"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', " & _
|
||||
contac_stat & ", " & _
|
||||
"'컨택결과 저장', " & _
|
||||
"'" & prj_year & "')"
|
||||
'Response.Write query
|
||||
adoconn.execute query
|
||||
|
||||
|
||||
where_query = "where kikoan_name = '" & kikoan_name & "' " & _
|
||||
"and categori_01 = '" & categori_01 & "' "
|
||||
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
|
||||
|
||||
'%>
|
||||
|
||||
<!-- #include file = "inc_top.asp"-->
|
||||
|
||||
|
||||
<body class='center' onLoad="subit()" oncontextmenu='return false' onselectstart='return false' ondragstart='return false' OnKeyDown='No_BackSpace();ctrlEvent();'>
|
||||
<form name='login' method='post'>
|
||||
|
||||
<table border='0' cellspacing='0' cellpadding='0' >
|
||||
<tr>
|
||||
<td class='main' >
|
||||
저장 성공
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
</body>
|
||||
|
||||
<!-- #include file = './inc_bottom_script.asp'-->
|
||||
<script LANGUAGE='javascript' id="clientEventHandlersJS">
|
||||
<!--
|
||||
function subit()
|
||||
{
|
||||
var f = document.frm_main;
|
||||
f.action = "tel_dial.asp";
|
||||
f.submit();
|
||||
}
|
||||
//-->
|
||||
</script>
|
||||
108
contact/inc_top.asp
Normal file
108
contact/inc_top.asp
Normal file
@@ -0,0 +1,108 @@
|
||||
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv='Content-Type'content='text/html; charset=utf-8'>
|
||||
<title>코리아리서치 Web Survey</title>
|
||||
<!-- <link rel='stylesheet' type='text/css' href='<%=domain_url%>:8888/capi/css/basic_new.css'> -->
|
||||
<!-- <script language='javascript' src='<%=domain_url%>:8888/capi/js/common.js'></script> -->
|
||||
</head>
|
||||
<body topmargin=0 leftmargin=10 bgcolor = '#f8f8f8' oncontextmenu='return false' onselectstart='return false' ondragstart='return false' OnKeyDown='No_BackSpace();ctrlEvent();'>
|
||||
<form method=post name='frm_main'>
|
||||
|
||||
<input type='hidden' value = '<%=kikoan_id%>' name='kikoan_id'/>
|
||||
<input type='hidden' value = '<%=project_type%>' name='project_type'/>
|
||||
<input type='hidden' value = '<%=contac_stat%>' name='contac_stat'/>
|
||||
|
||||
<table width=1000 height=100% cellpadding='0' cellspacing='0' border='0' valign='top' >
|
||||
<tr style="visibility: hidden; display: none;">
|
||||
<td valign='top'>
|
||||
<table width=100% cellpadding='0' cellspacing='0' border='0'>
|
||||
<tr height=5>
|
||||
|
||||
<td background='<%=domain_url%>:8888/capi/images_new/top_bg.jpg'></td>
|
||||
</tr>
|
||||
</table>
|
||||
<table width='100%' cellpadding='3' cellspacing='1' border='1' bgcolor='#DADADA'>
|
||||
|
||||
<!--타이틀 -->
|
||||
<tr bgcolor=Aqua height=30>
|
||||
<td colspan=2 align='center' style="font-size:13pt;font-weight:bold">
|
||||
<%=login_name%> 님은 <%=login_area%> 지역의 <%=login_type%> 입니다.
|
||||
<%if Request.ServerVariables("remote_addr") = "10.10.17.52" or Request.ServerVariables("remote_addr") = "1.235.195.52" then%>
|
||||
(inc_top.asp)
|
||||
<%end if%>
|
||||
</td>
|
||||
</tr>
|
||||
<!--기관명 -->
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
|
||||
<tr>
|
||||
<td height='1' bgcolor='#dadada'></td>
|
||||
</tr>
|
||||
<input type='hidden' readonly value='<%=id%>' style='text-align:center' name = 'id'>
|
||||
|
||||
<tr>
|
||||
<td valign='top'>
|
||||
<table width=100% cellpadding='0' cellspacing='0' border='1'>
|
||||
<tr height=30>
|
||||
<td align='center'>로그인 아이디
|
||||
<input type='hidden' value = '<%=login_id%>' name = 'login_id'>
|
||||
</td>
|
||||
<td align='center'>
|
||||
<input type='text' readonly name='login_name' value='<%=login_name%>'> <!-- '로그인 아이디 -->
|
||||
</td>
|
||||
<td align='center'>로그인 유형</td>
|
||||
<td align='center'>
|
||||
<input type='text' readonly name='login_type' value='<%=login_type%>'> <!-- '로그인 타입(관리자, sv,면접원, 컨택원 등) -->
|
||||
</td>
|
||||
<td align='center'>프로젝트명</td>
|
||||
<td align='center'>
|
||||
<input type='text' size=40 readonly name='kikoan_name' value='<%=kikoan_name%>' style='font-weight:bold'> <!-- '쿼터용 기관명 -->
|
||||
</td>
|
||||
<!--
|
||||
<td align='center'>로그인 지역</td>
|
||||
<td align='center'>
|
||||
<input type='text' readonly name='login_area' value='<%=login_area%>'> '로그인 지역(서울,부산, 대구, 광주, 대전, 강원)
|
||||
</td>
|
||||
-->
|
||||
</tr>
|
||||
|
||||
<tr height=30 style="visibility: hidden; display: none;">
|
||||
<td align='center'>자리번호</td>
|
||||
<td align='center'>
|
||||
<input type='text' readonly name = 'client_id' value = '<%=client_id%>'> <!-- '면접원 자리번호 -->
|
||||
</td>
|
||||
<td align='center'>내선번호</td>
|
||||
<td align='center'>
|
||||
<input type='text' readonly name = 'extension' value = '<%=extension%>' > <!-- '면접원 내선번호 -->
|
||||
</td>
|
||||
<td align='center'>발신번호</td>
|
||||
<td align='center'>
|
||||
<input type='text' readonly name='ani_num' value='<%=ani_num%>'> <!-- '발신번호-->
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<!--
|
||||
<tr height=30 align='center'>
|
||||
<td>기관명</td>
|
||||
<td>
|
||||
<input type='text' size=25 readonly name='kikoan_name' value='<%=kikoan_name%>'> '쿼터용 기관명
|
||||
</td>
|
||||
<td>컨택 지역</td>
|
||||
<td>
|
||||
<input type='text' readonly name='contac_area' value='<%=contac_area%>'> '쿼터용 지역
|
||||
</td>
|
||||
<td>쿼터지역</td>
|
||||
<td>
|
||||
<input type='text' size=13 readonly name='quota_area' value='<%=quota_area%>'> '쿼터용 지역
|
||||
<input type='text' size=7 readonly name='categori_cnt' value='<%=categori_cnt%>'> '선택한 카테고리 갯수 지역
|
||||
</td>
|
||||
</tr>
|
||||
-->
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
267
contact/include/calendar.html
Normal file
267
contact/include/calendar.html
Normal file
@@ -0,0 +1,267 @@
|
||||
<!-- #include file = "../include/default_values.asp" -->
|
||||
|
||||
<html>
|
||||
<head>
|
||||
<title>KRI WEB CALENDAR</title>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=euc-kr">
|
||||
</head>
|
||||
<link rel="StyleSheet" href="lucis.css" type="text/css">
|
||||
<script language="JavaScript">
|
||||
<!--
|
||||
if (document.all) {
|
||||
docObj = "document.all."
|
||||
styleObj = ".style"
|
||||
} else {
|
||||
docObj = "document."
|
||||
styleObj = ""
|
||||
}
|
||||
var icount = 0;
|
||||
function parseUrl() {
|
||||
var myValueIn = unescape(location.search.replace(/\+/g,' '));
|
||||
|
||||
myValueIn = myValueIn.substring(1).split('&');
|
||||
|
||||
var year = 0;
|
||||
var month = 0;
|
||||
var actval = "";
|
||||
|
||||
for(i=0;i<myValueIn.length;i++)
|
||||
myValueIn[i] = myValueIn[i].split('=');
|
||||
|
||||
for(i=0;i<myValueIn.length;i++){
|
||||
if(myValueIn[i][0] == "year") year = parseInt(myValueIn[i][1]);
|
||||
if(myValueIn[i][0] == "month") month = parseInt(myValueIn[i][1]);
|
||||
if(myValueIn[i][0] == "actval") actval = myValueIn[i][1];
|
||||
if(myValueIn[i][0] == "icount") icount = myValueIn[i][1];
|
||||
}
|
||||
setCal(year,month,actval);
|
||||
}
|
||||
|
||||
function leapYear(year) {
|
||||
if (year % 4 == 0) return true;
|
||||
return false;
|
||||
}
|
||||
|
||||
function getDays(month, year) {
|
||||
var ar = new Array(12);
|
||||
ar[0] = 31; ar[1] = (leapYear(year)) ? 29 : 28; ar[2] = 31; ar[3] = 30; ar[4] = 31; ar[5] = 30;
|
||||
ar[6] = 31; ar[7] = 31; ar[8] = 30; ar[9] = 31; ar[10] = 30; ar[11] = 31;
|
||||
return ar[month];
|
||||
}
|
||||
|
||||
function getMonthName(month) {
|
||||
var ar = new Array(12);
|
||||
ar[0] = "1<><31>"; ar[1] = "2<><32>"; ar[2] = "3<><33>"; ar[3] = "4<><34>"; ar[4] = "5<><35>"; ar[5] = "6<><36>";
|
||||
ar[6] = "7<><37>"; ar[7] = "8<><38>"; ar[8] = "9<><39>"; ar[9] = "10<31><30>"; ar[10] = "11<31><31>"; ar[11] = "12<31><32>";
|
||||
return ar[month];
|
||||
}
|
||||
|
||||
function setCal(year,month,actval) {
|
||||
var now = new Date();
|
||||
month = month - 1;
|
||||
var curyear = now.getFullYear();
|
||||
var curmonth = now.getMonth();
|
||||
if(year==0) year = now.getFullYear();
|
||||
if(month<0||month>11) month = now.getMonth();
|
||||
|
||||
var monthName = getMonthName(month);
|
||||
var date = now.getDate();
|
||||
now = null;
|
||||
|
||||
var firstDayInstance = new Date(year, month, 1);
|
||||
var firstDay = firstDayInstance.getDay();
|
||||
firstDayInstance = null;
|
||||
|
||||
var days = getDays(month, year);
|
||||
|
||||
drawCal(firstDay + 1, days, date, monthName, year, month, curyear, curmonth, actval);
|
||||
}
|
||||
|
||||
function drawCal(firstDay, lastDate, date, monthName, year, month, curyear, curmonth, actval) {
|
||||
var headerHeight = " "; // <20><><EFBFBD>̺<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>
|
||||
var border = 0; // <20><><EFBFBD>̺<EFBFBD> <20>θ<D7B5>
|
||||
var cellspacing = "1"; // <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>
|
||||
var headerColor = "black"; // <20><><EFBFBD>̺<EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>
|
||||
var headerSize = "2"; // <20><><EFBFBD>̺<EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> ũ<><C5A9>
|
||||
var colWidth = "27"; // <20><><EFBFBD>̺<EFBFBD> <20><><EFBFBD><EFBFBD> ũ<><C5A9>
|
||||
var dayCellHeight = "22";// <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>
|
||||
var dayColor = "white"; // <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>
|
||||
var cellHeight = "20"; // <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>
|
||||
var todayColor = "red"; // <20><><EFBFBD><EFBFBD> <20><>¥ <20><><EFBFBD><EFBFBD>
|
||||
var timeColor = "blue"; // <20>ð<EFBFBD> ǥ<><C7A5> <20><><EFBFBD><EFBFBD>
|
||||
|
||||
var text = "";
|
||||
text += '<TABLE BORDER=' + border + ' CELLSPACING=' + cellspacing + ' align=\'center\'>';
|
||||
text += '<TR COLSPAN=1 HEIGHT=' + headerHeight + ' bgcolor="#FFFFFF"><td>';
|
||||
text += '<FONT COLOR="' + headerColor + '" SIZE=' + headerSize + '>';
|
||||
text += '<a href="calendar.html?year=' + ((month==0) ? year-1 : year) + '&month=' + ((month==0) ? 12 : month )
|
||||
text += '&actval=' + actval + '&icount=' + icount + '"><img src=/source/imgs/business/rec_blue1.gif border=0 align=absmiddle ></a></td>';
|
||||
/*<2A><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>Ʈ <20>ڽ<EFBFBD> <20><><EFBFBD><EFBFBD>*/
|
||||
text += '<td>'+
|
||||
'<table border="0" width=\' \' height=\' \' >'+
|
||||
'<form name=\'date_list\'>'+
|
||||
'<input type=\'hidden\' name=\'actval\' value='+actval+'><tr>'+
|
||||
'<td align=center>'+
|
||||
'<select name=\'year\' onchange=\'change_year();\'>';
|
||||
|
||||
for(i=1950; i<(curyear+2); i++) {
|
||||
if(year != i) {
|
||||
text += '<option value='+i+' >'+i;
|
||||
} else {
|
||||
text += '<option value='+i+' selected>'+i;
|
||||
}
|
||||
}
|
||||
text += '</select><b><3E><>'+
|
||||
'</td>'+
|
||||
'<td>'+
|
||||
'<select name="month" onchange="change_month(this.options.selectedIndex);">';
|
||||
|
||||
for(i=0; i < 12; i++) {
|
||||
if(month != i) {
|
||||
text += '<option value="'+(i+1)+'">'+ (i+1);
|
||||
} else {
|
||||
text += '<option value="'+(i+1)+'" selected>'+(i+1);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
text += '</select><b><3E><>'+
|
||||
'</td>'+
|
||||
'</tr></table></td>';
|
||||
|
||||
text += '<td><a href="calendar.html?year=' + ((month==11) ? year+1 : year) + '&month=' + ((month==11) ? 1 : month + 2)
|
||||
text += '&actval=' + actval + '&icount=' + icount + '"><img src=/source/imgs/business/rec_blue2.gif border=0 align=absmiddle ></a> ';
|
||||
text += '<img src=/source/imgs/business/rec_purple.gif border=0 align=absmiddle OnClick="window.close()" style="cursor:hand" >';
|
||||
text += '</FONT></td>';
|
||||
|
||||
text += '</TR></form>';
|
||||
text += '</TABLE>';
|
||||
text += '<TABLE BORDER=' + border + ' CELLSPACING=' + cellspacing + ' bgcolor="#977BD0" ALIGN="center">';
|
||||
|
||||
var openCol = '<TD WIDTH=' + colWidth + ' HEIGHT=' + dayCellHeight + '>';
|
||||
openCol += '<FONT COLOR="' + dayColor + '">';
|
||||
var closeCol = '</FONT></TD>';
|
||||
|
||||
var weekDay = new Array(7);
|
||||
weekDay[0] = "<22><>"; weekDay[1] = "<22><>"; weekDay[2] = "ȭ"; weekDay[3] = "<22><>";
|
||||
weekDay[4] = "<22><>"; weekDay[5] = "<22><>"; weekDay[6] = "<22><>";
|
||||
|
||||
text += '<TR ALIGN="center">';
|
||||
for (var dayNum = 0; dayNum < 7; ++dayNum) {
|
||||
text += openCol + "<b>" +weekDay[dayNum] + closeCol;
|
||||
}
|
||||
text += '</TR>';
|
||||
|
||||
var digit = 1;
|
||||
var curCell = 1;
|
||||
|
||||
for (var row = 1; row <= Math.ceil((lastDate + firstDay - 1) / 7); ++row) {
|
||||
text += '<TR bgcolor="white" ALIGN="center">';
|
||||
for (var col = 1; col <= 7; ++col) {
|
||||
if (digit > lastDate) break;
|
||||
if (curCell < firstDay) {
|
||||
text += '<TD bgcolor="white" ></TD>';
|
||||
curCell++;
|
||||
} else {
|
||||
if (digit == date && year == curyear && month == curmonth ) {
|
||||
text += '<TD bgcolor=yellow style=\'cursor:hand\' HEIGHT=' + cellHeight;
|
||||
text += ' onMouseOver="this.style.backgroundColor=\'#E1E9FF\'" onMouseOut="this.style.backgroundColor=\'\'"';
|
||||
text += ' onClick="sendVal(\'' + year + '\',\'' + (month + 1) + '\',\''+ digit + '\',\'' + actval + '\');">';
|
||||
text += '<FONT COLOR="' + todayColor + '">';
|
||||
text += digit;
|
||||
text += '</FONT><BR>';
|
||||
text += '</TD>';
|
||||
} else {
|
||||
text += '<TD bgcolor="white" style=\'cursor:hand\' HEIGHT=' + cellHeight;
|
||||
text += ' onMouseOver="this.style.backgroundColor=\'#E1E9FF\'" onMouseOut="this.style.backgroundColor=\'\'"';
|
||||
text += ' onClick="sendVal(\'' + year + '\',\''+ (month + 1) + '\',\'' + digit + '\',\'' + actval + '\');">' + digit + '</TD>';
|
||||
}
|
||||
digit++;
|
||||
}
|
||||
}
|
||||
text += '</TR>';
|
||||
}
|
||||
text += '</TABLE>';
|
||||
document.write(text);
|
||||
}
|
||||
|
||||
function sendVal(year, mon, day, actval) {
|
||||
|
||||
var dateStr = "";
|
||||
|
||||
if (mon <10) mon = 0+mon;
|
||||
if (day <10) day = 0+day;
|
||||
|
||||
dateStr = year+ '-' + mon + '-' + day;
|
||||
|
||||
if((actval!=""||actval!= null)&&opener) {
|
||||
//alert(actval+" : "+dateStr+" // "+opener);
|
||||
//alert("eval : "+"opener.document.forms[0]." + actval);
|
||||
//alert("[0] : "+(opener.document.forms[0][actval] != null));
|
||||
//alert("[1] : "+(opener.document.forms[1][actval] != null));
|
||||
|
||||
if(opener.document.forms[0][actval] != null){
|
||||
if(eval("opener.document.forms[0]." + actval)) {
|
||||
eval("opener.document.forms[0]." + actval).value = dateStr;
|
||||
eval("opener.document.forms[0]." + actval).focus();
|
||||
}
|
||||
}else if(opener.document.forms[1][actval] != null){
|
||||
if(eval("opener.document.forms[1]." + actval)) {
|
||||
eval("opener.document.forms[1]." + actval).value = dateStr;
|
||||
eval("opener.document.forms[1]." + actval).focus();
|
||||
}
|
||||
}else{
|
||||
//alert("<22><><EFBFBD><EFBFBD> : "+actval+" : "+dateStr+" // "+opener.document.forms.length);
|
||||
//for(var i = 0; i<opener.document.forms.length; i++){
|
||||
//alert("<22><><EFBFBD><EFBFBD> : "+i+" : "+opener.document.forms[i]);
|
||||
//console.log("<22><><EFBFBD><EFBFBD> : "+i+" : "+opener.document.forms[i].txt_date[1]+"//actval : "+actval);
|
||||
//}
|
||||
if(eval("opener.document.forms[0]." + actval)) {
|
||||
eval("opener.document.forms[0]." + actval).value = dateStr;
|
||||
eval("opener.document.forms[0]." + actval).focus();
|
||||
}
|
||||
}
|
||||
}else{
|
||||
alert(dateStr);
|
||||
}
|
||||
|
||||
self.close();
|
||||
}
|
||||
|
||||
function change_year() {
|
||||
location.href = "calendar.html?year=" + date_list.year.value + "&month=" + date_list.month.value + "&actval=" + date_list.actval.value + "&icount="+icount;
|
||||
}
|
||||
function change_month() {
|
||||
//alert(window.event.clientX);
|
||||
//alert(window.event.clientY);
|
||||
location.href = "calendar.html?year=" + date_list.year.value + "&month=" + date_list.month.value + "&actval=" + date_list.actval.value + "&icount="+icount;
|
||||
}
|
||||
function SetInit()
|
||||
{ var ileft = new Number;
|
||||
var itop = new Number;
|
||||
ileft = window.event.clientX;
|
||||
itop = window.event.clientY;
|
||||
|
||||
//alert(ileft + " : " + itop);
|
||||
window.resizeTo(245,245);
|
||||
if((ileft) < 0 ) ileft = 0;
|
||||
if((itop) < 0 ) itop = 0;
|
||||
if(icount == 0){
|
||||
icount++;
|
||||
window.moveBy(ileft-50, itop-50);
|
||||
}
|
||||
|
||||
}
|
||||
//-->
|
||||
</script>
|
||||
</head>
|
||||
<body bgcolor="#EEEEFF" leftmargin="0" topmargin="8" marginwidth="0" marginheight="0" OnLoad="SetInit()">
|
||||
<script language="JavaScript">
|
||||
<!--
|
||||
parseUrl();
|
||||
icount++;
|
||||
//alert(icount);
|
||||
//-->
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
111
contact/include/calendar2.asp
Normal file
111
contact/include/calendar2.asp
Normal file
@@ -0,0 +1,111 @@
|
||||
<%@ Language=VBScript%>
|
||||
<%
|
||||
''<27><EFBFBD><E2B5B5> <20><><EFBFBD><EFBFBD> <20><><EFBFBD>̱<EFBFBD><CCB1><EFBFBD> <20><EFBFBD>..
|
||||
|
||||
Response.Buffer = true
|
||||
|
||||
target = request("x")
|
||||
%>
|
||||
<meta http-equiv="content-type" content="text/html; charset=euc-kr">
|
||||
<LINK rel="stylesheet" type="text/css" href="cfg/text.css">
|
||||
<form name="caleder2" method="post">
|
||||
<input type="hidden" name="target" value="<%=target%>">
|
||||
</form>
|
||||
<script language='javascript'>
|
||||
<!--
|
||||
|
||||
var today = new Date(); real_year = today.getYear(); str = null; month_value = 0;
|
||||
var lastday = null; firstweek = null;
|
||||
var wid = 4; hei = 12/wid; big_wid = 600;
|
||||
var small_wid = (big_wid / wid) - 10;
|
||||
var week_day = new Array('<27><>','<27><>','ȭ','<27><>','<27><>','<27><>','<27><>');
|
||||
|
||||
//var x = document.forms[0].element[x].value;
|
||||
|
||||
document.write("<style>");
|
||||
document.write(".a { font-family: 'Arial', '<27><><EFBFBD><EFBFBD>'; color: white; font-size: 13px}");
|
||||
document.write("</style>");
|
||||
document.write("<body onselectstart='return false' onload='start()'>");
|
||||
document.write("<center>");
|
||||
document.write("<table><form name='calendar'>");
|
||||
document.write("<tr>");
|
||||
document.write("<td onClick='year_(true)' style='cursor:hand'><3E><></td>");
|
||||
document.write("<td>");
|
||||
document.write("<select name = 'year_name' onchange='year_change();'>");
|
||||
for (var i=real_year+1; i>=1950;--i)
|
||||
{
|
||||
document.write("<option value = '" + i + "'>" + i);
|
||||
}
|
||||
document.write("</select>");
|
||||
document.write("<td onClick='year_(false)' style='cursor:hand'><3E><></td>");
|
||||
document.write("</tr>");
|
||||
document.write("</form></table>");
|
||||
document.write("<div id=taewan style='visibility:visible'>");
|
||||
document.write("<table><tr><td><q id='calendars'></q></td></tr></table>");
|
||||
document.write("</div>");
|
||||
|
||||
function start() {
|
||||
str = "<table border='1'>";
|
||||
for(j = 1; j < hei+1; j++) {
|
||||
str = str + "<tr height='10' align='center' valign='top' class='a'>";
|
||||
for(n = 1; n < wid+1; n++) {
|
||||
str = str + "<td>" + month_(month_value) + "</td>";
|
||||
if(n != wid) { str = str + "<td><3E><></td>"; } }
|
||||
str = str + "</tr>"; }
|
||||
str = str + "</table>";
|
||||
calendars.innerHTML = str;
|
||||
}
|
||||
|
||||
function on_m(x,y) {
|
||||
if(y) { x.style.cursor='hand'; x.style.backgroundColor='pink'; }
|
||||
else { x.style.cursor = ''; x.style.backgroundColor=''; }
|
||||
}
|
||||
|
||||
|
||||
function year_(x) {
|
||||
if(x) { today.setYear(today.getYear()-1); }
|
||||
else { today.setYear(today.getYear()+1); }
|
||||
if (today.getYear() < 2000){
|
||||
document.calendar.year_name.value = 1900 + today.getYear();
|
||||
}else{
|
||||
document.calendar.year_name.value = today.getYear();
|
||||
}
|
||||
month_value = 0;
|
||||
start();
|
||||
}
|
||||
|
||||
function year_change(){
|
||||
today.setYear(document.calendar.year_name.value);
|
||||
month_value = 0;
|
||||
start();
|
||||
}
|
||||
|
||||
function popup(tmp_z) {
|
||||
var target = document.caleder2.target.value;
|
||||
opener.document.forms[0].elements[eval(target)].value=tmp_z;
|
||||
self.close();
|
||||
}
|
||||
|
||||
function month_(x) {
|
||||
month_value = month_value + 1;
|
||||
imsi_0 = new Date (today.getYear(),today.getMonth(),1);
|
||||
imsi_1 = new Date (today.getYear(),today.getMonth()+1);
|
||||
lastday = (imsi_1 - imsi_0)/1000/60/60/24;
|
||||
var y = today.getYear(); m = x; d = 1;
|
||||
var week = new Date(y,m,d);
|
||||
var target = document.c
|
||||
firstweek = week.getDay();
|
||||
firstweek = firstweek - (firstweek * 2 - 1);
|
||||
tmp_m = m + 1;
|
||||
if (tmp_m < 10) {
|
||||
tmp_m = '0' + tmp_m;
|
||||
}
|
||||
y = document.calendar.year_name.value;
|
||||
tmp_tmp = y + '-' + tmp_m;
|
||||
gap = "<table width='60' border='1'>";
|
||||
gap = gap + "<tr align='center'><td onmouseover='on_m(this,true)' onmouseout='on_m(this,false)' onClick=popup('"+tmp_tmp+"')>" + eval(x+1) + " <20><></td></tr>";
|
||||
gap = gap + "</table>";
|
||||
return gap;
|
||||
}
|
||||
//-->
|
||||
</script>
|
||||
198
contact/include/calendar_month.html
Normal file
198
contact/include/calendar_month.html
Normal file
@@ -0,0 +1,198 @@
|
||||
<html>
|
||||
<head>
|
||||
<title>KRI WEB CALENDAR</title>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=euc-kr">
|
||||
</head>
|
||||
<link rel="StyleSheet" href="lucis.css" type="text/css">
|
||||
<script language="JavaScript">
|
||||
<!--
|
||||
if (document.all) {
|
||||
docObj = "document.all."
|
||||
styleObj = ".style"
|
||||
} else {
|
||||
docObj = "document."
|
||||
styleObj = ""
|
||||
}
|
||||
var icount = 0;
|
||||
function parseUrl() {
|
||||
var myValueIn = unescape(location.search.replace(/\+/g,' '));
|
||||
|
||||
myValueIn = myValueIn.substring(1).split('&');
|
||||
|
||||
var year = 0;
|
||||
var month = 0;
|
||||
var actval = "";
|
||||
|
||||
for(i=0;i<myValueIn.length;i++)
|
||||
myValueIn[i] = myValueIn[i].split('=');
|
||||
|
||||
for(i=0;i<myValueIn.length;i++){
|
||||
if(myValueIn[i][0] == "year") year = parseInt(myValueIn[i][1]);
|
||||
if(myValueIn[i][0] == "month") month = parseInt(myValueIn[i][1]);
|
||||
if(myValueIn[i][0] == "actval") actval = myValueIn[i][1];
|
||||
if(myValueIn[i][0] == "icount") icount = myValueIn[i][1];
|
||||
}
|
||||
setCal(year,month,actval);
|
||||
}
|
||||
|
||||
function leapYear(year) {
|
||||
if (year % 4 == 0) return true;
|
||||
return false;
|
||||
}
|
||||
|
||||
function getDays(month, year) {
|
||||
var ar = new Array(12);
|
||||
ar[0] = 31; ar[1] = (leapYear(year)) ? 29 : 28; ar[2] = 31; ar[3] = 30; ar[4] = 31; ar[5] = 30;
|
||||
ar[6] = 31; ar[7] = 31; ar[8] = 30; ar[9] = 31; ar[10] = 30; ar[11] = 31;
|
||||
return ar[month];
|
||||
}
|
||||
|
||||
function getMonthName(month) {
|
||||
var ar = new Array(12);
|
||||
ar[0] = "1<><31>"; ar[1] = "2<><32>"; ar[2] = "3<><33>"; ar[3] = "4<><34>"; ar[4] = "5<><35>"; ar[5] = "6<><36>";
|
||||
ar[6] = "7<><37>"; ar[7] = "8<><38>"; ar[8] = "9<><39>"; ar[9] = "10<31><30>"; ar[10] = "11<31><31>"; ar[11] = "12<31><32>";
|
||||
return ar[month];
|
||||
}
|
||||
|
||||
function setCal(year,month,actval) {
|
||||
var now = new Date();
|
||||
month = month - 1;
|
||||
var curyear = now.getYear();
|
||||
var curmonth = now.getMonth();
|
||||
if(year==0) year = now.getYear();
|
||||
if(month<0||month>11) month = now.getMonth();
|
||||
|
||||
var monthName = getMonthName(month);
|
||||
var date = now.getDate();
|
||||
now = null;
|
||||
|
||||
var firstDayInstance = new Date(year, month, 1);
|
||||
var firstDay = firstDayInstance.getDay();
|
||||
firstDayInstance = null;
|
||||
|
||||
var days = getDays(month, year);
|
||||
|
||||
drawCal(firstDay + 1, days, date, monthName, year, month, curyear, curmonth, actval);
|
||||
}
|
||||
|
||||
function drawCal(firstDay, lastDate, date, monthName, year, month, curyear, curmonth, actval) {
|
||||
var headerHeight = " "; // <20><><EFBFBD>̺<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>
|
||||
var border = 0; // <20><><EFBFBD>̺<EFBFBD> <20>θ<D7B5>
|
||||
var cellspacing = "1"; // <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>
|
||||
var headerColor = "black"; // <20><><EFBFBD>̺<EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>
|
||||
var headerSize = "2"; // <20><><EFBFBD>̺<EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> ũ<><C5A9>
|
||||
var colWidth = "27"; // <20><><EFBFBD>̺<EFBFBD> <20><><EFBFBD><EFBFBD> ũ<><C5A9>
|
||||
var dayCellHeight = "22";// <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>
|
||||
var dayColor = "white"; // <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>
|
||||
var cellHeight = "20"; // <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>
|
||||
var todayColor = "red"; // <20><><EFBFBD><EFBFBD> <20><>¥ <20><><EFBFBD><EFBFBD>
|
||||
var timeColor = "blue"; // <20>ð<EFBFBD> ǥ<><C7A5> <20><><EFBFBD><EFBFBD>
|
||||
|
||||
var text = "";
|
||||
text += '<TABLE BORDER=' + border + ' CELLSPACING=' + cellspacing + ' align=\'center\'>';
|
||||
text += '<TR COLSPAN=1 HEIGHT=' + headerHeight + ' bgcolor="#FFFFFF">';
|
||||
/*<2A><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>Ʈ <20>ڽ<EFBFBD> <20><><EFBFBD><EFBFBD>*/
|
||||
text += '<td>'+
|
||||
'<table border="0" width=\' \' height=\' \' >'+
|
||||
'<form name=\'date_list\'>'+
|
||||
'<input type=\'hidden\' name=\'actval\' value='+actval+'><tr>'+
|
||||
'<td align=center>'+
|
||||
'<select name=\'year\' onchange=\'change_year();\'>';
|
||||
|
||||
for(var i=1950; i<(curyear+2); i++) {
|
||||
if(year != i) {
|
||||
text += '<option value='+i+' >'+i;
|
||||
} else {
|
||||
text += '<option value='+i+' selected>'+i;
|
||||
}
|
||||
}
|
||||
text += '</select><b><3E><>'+
|
||||
'</td>'+
|
||||
'</tr></table></td>';
|
||||
|
||||
text += '<td>';
|
||||
text += '<img src="../imgs/common/rec_purple.gif" border=0 align=absmiddle OnClick="window.close()" style="cursor:hand" >';
|
||||
text += '</FONT></td>';
|
||||
|
||||
text += '</TR></form>';
|
||||
text += '</TABLE>';
|
||||
text += '<TABLE BORDER=' + border + ' CELLSPACING=' + cellspacing + ' bgcolor="#977BD0">';
|
||||
|
||||
var openCol = '<TD WIDTH=' + colWidth + ' HEIGHT=' + dayCellHeight + '>';
|
||||
openCol += '<FONT COLOR="' + dayColor + '">';
|
||||
var closeCol = '</FONT></TD>';
|
||||
|
||||
var digit = 0;
|
||||
for (var row = 1; row <=3; ++row){
|
||||
text += '<TR bgcolor="white" ALIGN="center">';
|
||||
for(var col = 1; col <= 4; ++col){
|
||||
digit++;
|
||||
text += '<TD bgcolor=yellow style=\'cursor:hand\' HEIGHT=50 width=50';
|
||||
text += ' onMouseOver="this.style.backgroundColor=\'#E1E9FF\'" onMouseOut="this.style.backgroundColor=\'\'"';
|
||||
text += ' onClick="sendVal(\'' + year + '\',\''+ digit + '\',\'' + actval + '\');">';
|
||||
text += digit + " <20><>";
|
||||
text += '</TD>';
|
||||
}
|
||||
text += '</TR>';
|
||||
}
|
||||
|
||||
|
||||
text += '</TABLE>';
|
||||
document.write(text);
|
||||
}
|
||||
|
||||
function sendVal(year, mon, actval) {
|
||||
|
||||
var dateStr = "";
|
||||
|
||||
if (mon <10) mon = 0+mon;
|
||||
|
||||
dateStr = year+ '-' + mon;
|
||||
|
||||
if((actval!=""||actval!= null)&&opener) {
|
||||
if(eval("opener.document.forms[0]." + actval)) {
|
||||
eval("opener.document.forms[0]." + actval).value = dateStr;
|
||||
eval("opener.document.forms[0]." + actval).focus();
|
||||
}
|
||||
} else alert(dateStr);
|
||||
|
||||
|
||||
|
||||
self.close();
|
||||
}
|
||||
|
||||
function change_year() {
|
||||
location.href = "calendar_month.html?year=" + date_list.year.value + "&actval=" + date_list.actval.value + "&icount="+icount; //+ "&month=" + date_list.month.value
|
||||
}
|
||||
|
||||
|
||||
|
||||
function SetInit()
|
||||
{ var ileft = new Number;
|
||||
var itop = new Number;
|
||||
ileft = window.event.clientX;
|
||||
itop = window.event.clientY;
|
||||
|
||||
//alert(ileft + " : " + itop);
|
||||
window.resizeTo(200,300);
|
||||
if((ileft) < 0 ) ileft = 0;
|
||||
if((itop) < 0 ) itop = 0;
|
||||
if(icount == 0){
|
||||
icount++;
|
||||
window.moveBy(ileft-50, itop-50);
|
||||
}
|
||||
|
||||
}
|
||||
//-->
|
||||
</script>
|
||||
</head>
|
||||
<body bgcolor="#EEEEFF" leftmargin="0" topmargin="8" marginwidth="0" marginheight="0" OnLoad="SetInit()">
|
||||
<script language="JavaScript">
|
||||
<!--
|
||||
parseUrl();
|
||||
icount++;
|
||||
//alert(icount);
|
||||
//-->
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
44
contact/lib/config.asp
Normal file
44
contact/lib/config.asp
Normal file
@@ -0,0 +1,44 @@
|
||||
<% @CODEPAGE="65001" language="VBScript" %>
|
||||
<%
|
||||
Dim SV_NAME,DB_NAME , UID, PWD, ConnectString, AdoConn
|
||||
dim Prj_Year '프로젝트 연도(DB 테이블의 키 중 일부
|
||||
dim admin_ip
|
||||
dim adors
|
||||
dim adorsCategory
|
||||
dim domain_url
|
||||
|
||||
'SV_NAME="10.10.13.200"
|
||||
'UID = "sa"
|
||||
'PWD = "krco#51304"
|
||||
|
||||
SV_NAME="10.10.11.6"
|
||||
UID = "sa"
|
||||
PWD = "krco#51304"
|
||||
|
||||
DB_NAME = "contact"
|
||||
prj_year = "2014"
|
||||
|
||||
if mid(Request.ServerVariables("remote_addr"), 1, 6) = "10.10." then
|
||||
domain_url = "http://10.10.10.7"
|
||||
else
|
||||
domain_url = "http://localhost"
|
||||
end if
|
||||
admin_ip = "10.10.17.53"
|
||||
|
||||
''kmac db
|
||||
ConnectString = "Provider=SQLOLEDB.1;Password=" & PWD & ";Persist Security Info=True;User ID=" & UID & ";Initial Catalog=" & DB_NAME & ";Data Source=" & SV_NAME
|
||||
Set AdoConn = Server.CreateObject("ADODB.Connection")
|
||||
AdoConn.Open ConnectString
|
||||
|
||||
|
||||
set adors = server.CreateObject("ADODB.RECORDSET")
|
||||
set adorsCategory = server.CreateObject("ADODB.RECORDSET")
|
||||
|
||||
|
||||
'경고 메세지 보여주기
|
||||
Function Alert(msg)
|
||||
msg = replace(msg, "'", " ")
|
||||
Response.Write "<Script>alert('" & msg & "');</Script>"
|
||||
' Response.End
|
||||
End Function
|
||||
%>
|
||||
299
contact/listView.asp
Normal file
299
contact/listView.asp
Normal file
@@ -0,0 +1,299 @@
|
||||
<!-- #include file = "./lib/config.asp" -->
|
||||
<%'
|
||||
Response.CharSet="utf-8"
|
||||
|
||||
Response.codepage="65001"
|
||||
Response.ContentType="text/html;charset=utf-8"
|
||||
|
||||
''///=============
|
||||
''1. sv가 로그인 후 해당 해당 컨택지역의 기관리스트를 보여 주기
|
||||
''2. 기관을 선택 후 컨택은 완료 된 상태이나 면접원이 배정 되지 않은 리스트를 보여주기
|
||||
''3. 리스트를 선택 후 면접원 배정 및 면접원에게 자동 sms 발송
|
||||
''4. 자료 다운로드 가능하게
|
||||
|
||||
dim i
|
||||
dim Query
|
||||
|
||||
dim login_pwd
|
||||
dim login_name '로그인 아이디
|
||||
dim login_area '로그인 지역
|
||||
dim login_type '로그인 타입(관리자, sv,면접원, 컨택원 등)
|
||||
dim field_area
|
||||
dim login_id
|
||||
dim command
|
||||
dim myun_cnt
|
||||
|
||||
command = request("command")
|
||||
login_id = trim(request("login_id"))
|
||||
|
||||
|
||||
login_name = trim(request("login_name"))
|
||||
login_area = trim(request("login_area"))
|
||||
login_type = trim(request("login_type"))
|
||||
|
||||
kikoan_id = trim(request("kikoan_id"))
|
||||
kikoan_name = trim(request("kikoan_name"))
|
||||
|
||||
' Response.write "kikoan_id : " & kikoan_id & "<br/>"
|
||||
' Response.write "kikoan_name : " & kikoan_name & "<br/>"
|
||||
|
||||
if trim(request("opt")) = "0" then
|
||||
field_area = ""
|
||||
comp_area = ""
|
||||
elseif trim(request("opt")) = "1" then
|
||||
field_area = trim(request("field_area"))
|
||||
comp_area = ""
|
||||
else
|
||||
field_area = trim(request("field_area"))
|
||||
comp_area = trim(request("comp_area"))
|
||||
end if
|
||||
|
||||
'///==============================================
|
||||
''엑셀형식으로 자동으로 저장
|
||||
if command = "excel" then
|
||||
' Response.Buffer = false
|
||||
Response.CacheControl = "public"
|
||||
Response.ContentType = "application/vnd.ms-excel"
|
||||
Response.AddHeader "Content-Disposition","attachment;filename=" & kikoan_name & "_필드지역_" & field_area & "_주소지역_" & comp_area & "_" & replace(formatdatetime(date,2),"-","") & ".xls"
|
||||
end if
|
||||
'%>
|
||||
|
||||
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv='Content-Type'content='text/html; charset=utf-8'>
|
||||
<title>KRC - 컨택</title>
|
||||
<link rel='stylesheet' type='text/css' href='<%=domain_url%>/capi/css/basic_new.css'>
|
||||
<script language='javascript' src='<%=domain_url%>/capi/js/common.js'></script>
|
||||
</head>
|
||||
<body topmargin=0 leftmargin=10 bgcolor = '#f8f8f8' oncontextmenu='return false' onselectstart='return false' ondragstart='return false' OnKeyDown='No_BackSpace();ctrlEvent();'>
|
||||
<form method=post name='frm_main'>
|
||||
<input type="hidden" name="kikoan_name" value="<%=kikoan_name%>"/>
|
||||
|
||||
<table width=100% height=100% cellpadding='0' cellspacing='0' border='0' >
|
||||
<%if command <> "excel" then%>
|
||||
<tr>
|
||||
<td height='3' bgcolor='#dadada'>
|
||||
<%if Request.ServerVariables("remote_addr") = "10.10.17.52" or Request.ServerVariables("remote_addr") = "1.235.195.52" then%>
|
||||
(listView.asp)
|
||||
<%end if%>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td valign='top' height=50>
|
||||
<table width=100% cellpadding='0' cellspacing='0' border='1'>
|
||||
<tr height=30>
|
||||
<input type='hidden' value = '<%=login_id%>' name = 'login_id'>
|
||||
<td align='center'>로그인 아이디</td>
|
||||
<td align='center'>
|
||||
<input type='text' readonly name='login_name' value='<%=login_name%>'> <!-- '로그인 아이디 -->
|
||||
</td>
|
||||
<td align='center'>로그인 유형</td>
|
||||
<td align='center'>
|
||||
<input type='text' readonly name='login_type' value='<%=login_type%>'> <!-- '로그인 타입(관리자, sv,면접원, 컨택원 등) -->
|
||||
</td>
|
||||
<td align='center'>로그인 지역</td>
|
||||
<td align='center'>
|
||||
<input type='text' readonly name='login_area' value='<%=login_area%>'> <!-- '로그인 지역(krc, 그 외) -->
|
||||
</td>
|
||||
<td>
|
||||
<img src="<%=domain_url%>:8888/images/makecall/btn_logout_02.jpg" onclick="fn_logout();" title ='로그 아웃' style='cursor:hand;' >
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<%end if'''<%if command <> "excel" then%>
|
||||
<tr>
|
||||
<td height='100%' valign='top' style='padding:20px 20px 20px 20px;'>
|
||||
<table width='100%' cellpadding='0' cellspacing='0' border='0'>
|
||||
<tr>
|
||||
<td align='center' style='padding:10px 0px 0px 0px;'>
|
||||
<table width='100%' cellpadding='10' cellspacing='0' border='0' bgcolor='#DADADA' style='border:1px solid #DADADA;'>
|
||||
<tr>
|
||||
<td bgcolor='#FFFFFF'>
|
||||
<table width='50%' cellpadding='3' cellspacing='1' border='1' bgcolor='#DADADA'>
|
||||
<%if command <> "excel" then%>
|
||||
<tr bgcolor=yellow>
|
||||
<td colspan=2 align='center' style="font-size:10pt;">리스트 보기</td>
|
||||
</tr>
|
||||
<!--타이틀 -->
|
||||
<tr bgcolor=Aqua>
|
||||
<td colspan=2 align='center' style="font-size:10pt;"><%=login_name%> 님은 <%=login_area%> 지역의 <%=login_type%> 입니다.
|
||||
<%if Request.ServerVariables("remote_addr") = "10.10.17.52" or Request.ServerVariables("remote_addr") = "1.235.195.52" then%>
|
||||
(listView.asp)
|
||||
<%end if%>
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<!--기관명 -->
|
||||
<tr align='center'>
|
||||
<td bgcolor=Aqua style="font-size:10pt;" width=400>기관(필드 지역=<%=login_area%>)</td>
|
||||
<td bgcolor=Aqua style="font-size:10pt;" width=500>
|
||||
<select id="kikoan_id" name="kikoan_id" onchange="listView('0')" >
|
||||
<%''기관리스트 보여주기
|
||||
if kikoan_name = "" then%>
|
||||
<OPTION value='선택' selected>선택</option>
|
||||
<%end if
|
||||
query = "select id, kikoan_name from kikoan_list where contac_area like '%" & login_area & "%'"
|
||||
adors.open query, adoconn, 1
|
||||
do while not adors.eof
|
||||
%>
|
||||
<OPTION value='<%=adors("id")%>' <%if trim(adors("kikoan_name")) = trim(kikoan_name) then%> selected <%end if%>><%=adors("kikoan_name")%></option>
|
||||
<% adors.movenext
|
||||
loop
|
||||
adors.close%>
|
||||
</select>
|
||||
<input type="button" value="search" onclick="search()"/>
|
||||
</td>
|
||||
|
||||
|
||||
|
||||
</tr>
|
||||
<%if kikoan_name <> "" then%>
|
||||
<%end if''''if kikoan_name <> "" then%>
|
||||
<tr align='center'>
|
||||
<td colspan=2>
|
||||
<img src="<%=domain_url%>:8888/images/common/btn_smalldownload.gif" align="absmiddle" onclick=download() style="cursor:hand">
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<%end if '<%if command <> "excel" then%>
|
||||
<%if kikoan_name <> "" then %>
|
||||
<tr>
|
||||
<td bgcolor='#FFFFFF'>
|
||||
<table width='100%' cellpadding='3' cellspacing='1' border='1' bgcolor='#DADADA'>
|
||||
<tr>
|
||||
<%if command <> "excel" then%>
|
||||
<td align='center' width=50>선택</td>
|
||||
<%end if''<%if command <> "excel" then%>
|
||||
<td align='center' width=50>리스트 id</td>
|
||||
<td align='center' width=50>쿼터 지역</td>
|
||||
<td align='center' width=50>회사명</td>
|
||||
<td align='center' width=50>직위</td>
|
||||
<td align='center' width=50>이름</td>
|
||||
<td align='center' width=50>전화 1</td>
|
||||
<td align='center' width=50>전화 2</td>
|
||||
<td align='center' width=50>주소 지역</td>
|
||||
<td align='center' >리스트 주소</td>
|
||||
<td align='center' >변경 주소</td>
|
||||
<td align='center' >컨택원</td>
|
||||
<td align='center' >컨택 일자</td>
|
||||
<td align='center' >컨택 시각</td>
|
||||
<td align='center' >전화 결과</td>
|
||||
<td align='center' >인터뷰 예약날짜</td>
|
||||
<td align='center' >인터뷰 장소</td>
|
||||
<td align='center' >커택 기타사항</td>
|
||||
<%
|
||||
query = "SELECT category_index, category_name " & _
|
||||
"FROM category_code where kikoan_id = '" & kikoan_id & "' " & _
|
||||
"GROUP BY category_index, category_name "
|
||||
|
||||
adorsCategory.open query, adoconn, 1
|
||||
|
||||
'response.write "ㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋ : " & query
|
||||
|
||||
dim category_index(7)
|
||||
dim category_name(7)
|
||||
dim category_cnt
|
||||
|
||||
category_cnt = 1
|
||||
|
||||
do while not adorsCategory.eof
|
||||
category_index(category_cnt) = adorsCategory("category_index")
|
||||
category_name(category_cnt) = adorsCategory("category_name")
|
||||
category_cnt = category_cnt + 1
|
||||
%>
|
||||
<td align='center' ><%=adorsCategory("category_name")%></td>
|
||||
<%
|
||||
adorsCategory.movenext
|
||||
loop
|
||||
adorsCategory.close
|
||||
|
||||
for i = 1 to category_cnt-1
|
||||
%>
|
||||
<td align='center' >변경 <%=category_name(i)%></td>
|
||||
<%
|
||||
next
|
||||
%>
|
||||
</tr>
|
||||
<%query = "select A.*, C.contac_stat_label from list as A LEFT OUTER JOIN contac_stat as C ON A.contac_stat = C.contac_stat AND C.kikoan_id = '" & kikoan_id & "' "
|
||||
where_query = " where kikoan_name = '" & kikoan_name & "' "' & "and field_area = '" & login_area & "' "
|
||||
adors.open query & where_query & " order by id", adoconn, 1
|
||||
' response.write query
|
||||
myun_cnt = 0
|
||||
do while not adors.eof
|
||||
myun_cnt = myun_cnt + 1
|
||||
adors.movenext
|
||||
Loop
|
||||
%>
|
||||
<tr>
|
||||
<td colspan=18>
|
||||
<%=myun_cnt%>건의 리스트가 조회 되었습니다. 엑셀 다운로드 하십시오.
|
||||
</td>
|
||||
</tr>
|
||||
<%adors.close%>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<%end if ''if kikoan_name <> "" and field_area <> "" %>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<input type = hidden name = 'myun_cnt' value= '<%=myun_cnt%>'>
|
||||
<%if command <> "excel" then%>
|
||||
<!-- #include file = "inc_bottom.asp"-->
|
||||
<%end if'<%if command <> "excel" then%>
|
||||
|
||||
<script LANGUAGE='JavaScript'>
|
||||
|
||||
function listView(opt)
|
||||
{
|
||||
var f = document.frm_main;
|
||||
var el = document.getElementById('kikoan_id');
|
||||
var text = el.options[el.selectedIndex].innerHTML;
|
||||
|
||||
f.kikoan_name.value = text
|
||||
|
||||
//f.action="listView.asp?opt=" + opt;
|
||||
//f.submit();
|
||||
}
|
||||
|
||||
function search(){
|
||||
var f = document.frm_main;
|
||||
|
||||
if(f.kikoan_id.value == "선택"){
|
||||
alert("프로젝트를 선택하세요.");
|
||||
return false;
|
||||
}else{
|
||||
f.action="listView.asp?opt='0'";
|
||||
f.submit();
|
||||
}
|
||||
}
|
||||
|
||||
function download()
|
||||
{
|
||||
var f = document.frm_main;
|
||||
|
||||
if(f.kikoan_id.value == "선택" || f.kikoan_id.value == ""){
|
||||
alert("프로젝트를 선택하세요.");
|
||||
return false;
|
||||
}else{
|
||||
f.action="listView_excel.asp?command=excel";
|
||||
f.submit();
|
||||
}
|
||||
}
|
||||
|
||||
function fn_logout(){
|
||||
document.frm_main.action = 'login.asp';
|
||||
document.frm_main.submit();
|
||||
}
|
||||
</script>
|
||||
334
contact/listView_excel.asp
Normal file
334
contact/listView_excel.asp
Normal file
@@ -0,0 +1,334 @@
|
||||
<!-- #include file = "./lib/config.asp" -->
|
||||
<%'
|
||||
Response.CharSet="utf-8"
|
||||
|
||||
Response.codepage="65001"
|
||||
Response.ContentType="text/html;charset=utf-8"
|
||||
|
||||
''///=============
|
||||
''1. sv가 로그인 후 해당 해당 컨택지역의 기관리스트를 보여 주기
|
||||
''2. 기관을 선택 후 컨택은 완료 된 상태이나 면접원이 배정 되지 않은 리스트를 보여주기
|
||||
''3. 리스트를 선택 후 면접원 배정 및 면접원에게 자동 sms 발송
|
||||
''4. 자료 다운로드 가능하게
|
||||
|
||||
dim i
|
||||
dim Query
|
||||
|
||||
dim login_pwd
|
||||
dim login_name '로그인 아이디
|
||||
dim login_area '로그인 지역
|
||||
dim login_type '로그인 타입(관리자, sv,면접원, 컨택원 등)
|
||||
dim field_area
|
||||
dim login_id
|
||||
dim command
|
||||
dim myun_cnt
|
||||
|
||||
command = request("command")
|
||||
login_id = trim(request("login_id"))
|
||||
|
||||
|
||||
login_name = trim(request("login_name"))
|
||||
login_area = trim(request("login_area"))
|
||||
login_type = trim(request("login_type"))
|
||||
|
||||
kikoan_id = trim(request("kikoan_id"))
|
||||
kikoan_name = trim(request("kikoan_name"))
|
||||
|
||||
' Response.write "kikoan_id : " & kikoan_id & "<br/>"
|
||||
' Response.write "kikoan_name : " & kikoan_name & "<br/>"
|
||||
|
||||
if trim(request("opt")) = "0" then
|
||||
field_area = ""
|
||||
comp_area = ""
|
||||
elseif trim(request("opt")) = "1" then
|
||||
field_area = trim(request("field_area"))
|
||||
comp_area = ""
|
||||
else
|
||||
field_area = trim(request("field_area"))
|
||||
comp_area = trim(request("comp_area"))
|
||||
end if
|
||||
|
||||
'///==============================================
|
||||
''엑셀형식으로 자동으로 저장
|
||||
if command = "excel" then
|
||||
' Response.Buffer = false
|
||||
Response.CacheControl = "public"
|
||||
Response.ContentType = "application/vnd.ms-excel"
|
||||
Response.AddHeader "Content-Disposition","attachment;filename=" & kikoan_name & "_필드지역_" & field_area & "_주소지역_" & comp_area & "_" & replace(formatdatetime(date,2),"-","") & ".xls"
|
||||
end if
|
||||
'%>
|
||||
|
||||
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv='Content-Type'content='text/html; charset=utf-8'>
|
||||
<title>KRC - 컨택</title>
|
||||
<link rel='stylesheet' type='text/css' href='<%=domain_url%>/capi/css/basic_new.css'>
|
||||
<script language='javascript' src='<%=domain_url%>/capi/js/common.js'></script>
|
||||
</head>
|
||||
<body topmargin=0 leftmargin=10 bgcolor = '#f8f8f8' oncontextmenu='return false' onselectstart='return false' ondragstart='return false' OnKeyDown='No_BackSpace();ctrlEvent();'>
|
||||
<form method=post name='frm_main'>
|
||||
<input type="hidden" name="kikoan_name" value="<%=kikoan_name%>"/>
|
||||
|
||||
<table width=100% height=100% cellpadding='0' cellspacing='0' border='0' >
|
||||
<%if command <> "excel" then%>
|
||||
<tr>
|
||||
<td height='3' bgcolor='#dadada'>
|
||||
<%if Request.ServerVariables("remote_addr") = "10.10.17.52" or Request.ServerVariables("remote_addr") = "1.235.195.52" then%>
|
||||
(listView.asp)
|
||||
<%end if%>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td valign='top' height=5%>
|
||||
<table width=50% cellpadding='0' cellspacing='0' border='1'>
|
||||
<tr height=30>
|
||||
<input type='hidden' value = '<%=login_id%>' name = 'login_id'>
|
||||
<td align='center'>로그인 아이디</td>
|
||||
<td align='center'>
|
||||
<input type='text' readonly name='login_name' value='<%=login_name%>'> <!-- '로그인 아이디 -->
|
||||
</td>
|
||||
<td align='center'>로그인 유형</td>
|
||||
<td align='center'>
|
||||
<input type='text' readonly name='login_type' value='<%=login_type%>'> <!-- '로그인 타입(관리자, sv,면접원, 컨택원 등) -->
|
||||
</td>
|
||||
<td align='center'>로그인 지역</td>
|
||||
<td align='center'>
|
||||
<input type='text' readonly name='login_area' value='<%=login_area%>'> <!-- '로그인 지역(krc, 그 외) -->
|
||||
</td>
|
||||
<td>
|
||||
<img src="<%=domain_url%>:8888/images/makecall/btn_logout_02.jpg" onclick="fn_logout();" title ='로그 아웃' style='cursor:hand;' >
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<%end if'''<%if command <> "excel" then%>
|
||||
<tr>
|
||||
<td height='100%' valign='top' style='padding:20px 20px 20px 20px;'>
|
||||
<table width='100%' cellpadding='0' cellspacing='0' border='0'>
|
||||
<tr>
|
||||
<td align='center' style='padding:10px 0px 0px 0px;'>
|
||||
<table width='100%' cellpadding='10' cellspacing='0' border='0' bgcolor='#DADADA' style='border:1px solid #DADADA;'>
|
||||
<tr>
|
||||
<td bgcolor='#FFFFFF'>
|
||||
<table width='50%' cellpadding='3' cellspacing='1' border='1' bgcolor='#DADADA'>
|
||||
<%if command <> "excel" then%>
|
||||
<tr bgcolor=yellow>
|
||||
<td colspan=2 align='center' style="font-size:10pt;">리스트 보기</td>
|
||||
</tr>
|
||||
<!--타이틀 -->
|
||||
<tr bgcolor=Aqua>
|
||||
<td colspan=2 align='center' style="font-size:10pt;"><%=login_name%> 님은 <%=login_area%> 지역의 <%=login_type%> 입니다.
|
||||
<%if Request.ServerVariables("remote_addr") = "10.10.17.52" or Request.ServerVariables("remote_addr") = "1.235.195.52" then%>
|
||||
(listView.asp)
|
||||
<%end if%>
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<!--기관명 -->
|
||||
<tr align='center'>
|
||||
<td bgcolor=Aqua style="font-size:10pt;" width=400>기관(필드 지역=<%=login_area%>)</td>
|
||||
<td bgcolor=Aqua style="font-size:10pt;" width=500>
|
||||
<select id="kikoan_id" name="kikoan_id" onchange="listView('0')" >
|
||||
<%''기관리스트 보여주기
|
||||
if kikoan_name = "" then%>
|
||||
<OPTION value='선택' selected>선택</option>
|
||||
<%end if
|
||||
query = "select id, kikoan_name from kikoan_list where contac_area like '%" & login_area & "%'"
|
||||
adors.open query, adoconn, 1
|
||||
do while not adors.eof
|
||||
%>
|
||||
<OPTION value='<%=adors("id")%>' <%if trim(adors("kikoan_name")) = trim(kikoan_name) then%> selected <%end if%>><%=adors("kikoan_name")%></option>
|
||||
<% adors.movenext
|
||||
loop
|
||||
adors.close%>
|
||||
</select>
|
||||
</td>
|
||||
|
||||
|
||||
|
||||
</tr>
|
||||
<%if kikoan_name <> "" then%>
|
||||
<%end if''''if kikoan_name <> "" then%>
|
||||
<tr align='center'>
|
||||
<td colspan=2>
|
||||
<img src="<%=domain_url%>:8888/images/common/btn_smalldownload.gif" align="absmiddle" onclick=download() style="cursor:hand">
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<%end if '<%if command <> "excel" then%>
|
||||
<%if kikoan_name <> "" then %>
|
||||
<tr>
|
||||
<td bgcolor='#FFFFFF'>
|
||||
<table width='100%' cellpadding='3' cellspacing='1' border='1' bgcolor='#DADADA'>
|
||||
<tr>
|
||||
<%if command <> "excel" then%>
|
||||
<td align='center' width=50>선택</td>
|
||||
<%end if''<%if command <> "excel" then%>
|
||||
<td align='center' width=50>리스트 id</td>
|
||||
<td align='center' width=50>쿼터 지역</td>
|
||||
<td align='center' width=50>회사명</td>
|
||||
<td align='center' width=50>직위</td>
|
||||
<td align='center' width=50>이름</td>
|
||||
<td align='center' width=50>전화 1</td>
|
||||
<td align='center' width=50>전화 2</td>
|
||||
<td align='center' width=50>주소 지역</td>
|
||||
<td align='center' >리스트 주소</td>
|
||||
<td align='center' >변경 주소</td>
|
||||
<td align='center' >컨택원</td>
|
||||
<td align='center' >컨택 일자</td>
|
||||
<td align='center' >컨택 시각</td>
|
||||
<td align='center' >전화 결과</td>
|
||||
<td align='center' >인터뷰 예약날짜</td>
|
||||
<td align='center' >인터뷰 장소</td>
|
||||
<td align='center' >커택 기타사항</td>
|
||||
<%
|
||||
query = "SELECT category_index, category_name " & _
|
||||
"FROM category_code where kikoan_id = '" & kikoan_id & "' " & _
|
||||
"GROUP BY category_index, category_name "
|
||||
|
||||
adorsCategory.open query, adoconn, 1
|
||||
|
||||
dim category_index(7)
|
||||
dim category_name(7)
|
||||
dim category_cnt
|
||||
|
||||
category_cnt = 1
|
||||
|
||||
do while not adorsCategory.eof
|
||||
category_index(category_cnt) = adorsCategory("category_index")
|
||||
category_name(category_cnt) = adorsCategory("category_name")
|
||||
category_cnt = category_cnt + 1
|
||||
%>
|
||||
<td align='center' ><%=adorsCategory("category_name")%></td>
|
||||
<%
|
||||
adorsCategory.movenext
|
||||
loop
|
||||
adorsCategory.close
|
||||
|
||||
for i = 1 to category_cnt-1
|
||||
%>
|
||||
<td align='center' >변경 <%=category_name(i)%></td>
|
||||
<%
|
||||
next
|
||||
%>
|
||||
</tr>
|
||||
<%
|
||||
query = "select A.* " & _
|
||||
", isNull((select category_label from category_code where kikoan_id = '" & kikoan_id & "' and category_index = 1 and category_code = A.categori_01), '') as 'origin_category_01' " & _
|
||||
", isNull((select category_label from category_code where kikoan_id = '" & kikoan_id & "' and category_index = 2 and category_code = A.categori_02), '') as 'origin_category_02' " & _
|
||||
", isNull((select category_label from category_code where kikoan_id = '" & kikoan_id & "' and category_index = 3 and category_code = A.categori_03), '') as 'origin_category_03' " & _
|
||||
", isNull((select category_label from category_code where kikoan_id = '" & kikoan_id & "' and category_index = 4 and category_code = A.categori_04), '') as 'origin_category_04' " & _
|
||||
", isNull((select category_label from category_code where kikoan_id = '" & kikoan_id & "' and category_index = 5 and category_code = A.categori_05), '') as 'origin_category_05' " & _
|
||||
", isNull((select category_label from category_code where kikoan_id = '" & kikoan_id & "' and category_index = 6 and category_code = A.categori_06), '') as 'origin_category_06' " & _
|
||||
", isNull((select category_label from category_code where kikoan_id = '" & kikoan_id & "' and category_index = 7 and category_code = A.categori_07), '') as 'origin_category_07' " & _
|
||||
", isNull((select category_label from category_code where kikoan_id = '" & kikoan_id & "' and category_index = 1 and category_code = A.add_item1), '') as 'change_category_01' " & _
|
||||
", isNull((select category_label from category_code where kikoan_id = '" & kikoan_id & "' and category_index = 2 and category_code = A.add_item2), '') as 'change_category_02' " & _
|
||||
", isNull((select category_label from category_code where kikoan_id = '" & kikoan_id & "' and category_index = 3 and category_code = A.add_item3), '') as 'change_category_03' " & _
|
||||
", isNull((select category_label from category_code where kikoan_id = '" & kikoan_id & "' and category_index = 4 and category_code = A.add_item4), '') as 'change_category_04' " & _
|
||||
", isNull((select category_label from category_code where kikoan_id = '" & kikoan_id & "' and category_index = 5 and category_code = A.add_item5), '') as 'change_category_05' " & _
|
||||
", isNull((select category_label from category_code where kikoan_id = '" & kikoan_id & "' and category_index = 6 and category_code = A.add_item6), '') as 'change_category_06' " & _
|
||||
", isNull((select category_label from category_code where kikoan_id = '" & kikoan_id & "' and category_index = 7 and category_code = A.add_item7), '') as 'change_category_07' " & _
|
||||
", C.contac_stat_label from list as A LEFT OUTER JOIN contac_stat as C ON A.contac_stat = C.contac_stat AND C.kikoan_id = '" & kikoan_id & "' "
|
||||
where_query = " where kikoan_name = '" & kikoan_name & "' "' & "and field_area = '" & login_area & "' "
|
||||
adors.open query & where_query & " order by A.id", adoconn, 1
|
||||
|
||||
'response.write query
|
||||
|
||||
myun_cnt = 0
|
||||
do while not adors.eof
|
||||
myun_cnt = myun_cnt + 1
|
||||
%>
|
||||
<tr bgcolor='white'>
|
||||
<%if command <> "excel" then%>
|
||||
<td align='center'>
|
||||
<input type='checkbox' name='chk_sel' value='<%=adors("id")%>'>
|
||||
</td>
|
||||
<%end if'''<%if command <> "excel" then%>
|
||||
<td align='center'><%=adors("list_id")%></td>
|
||||
<td align='center'><%=adors("quota_area")%></td>
|
||||
<td align='center'><%=adors("comp_name")%></td>
|
||||
<td align='center'><%=adors("comp_posi")%></td>
|
||||
<td align='center'><%=adors("name")%></td>
|
||||
<td align='center'><%=adors("tel1")%></td>
|
||||
<td align='center'><%=adors("tel2")%></td>
|
||||
<td align='center'><%=adors("comp_area")%></td>
|
||||
<td align='center'><%=adors("comp_addr")%></td>
|
||||
<td align='center'><%=adors("comp_addr_new")%></td>
|
||||
<td align='center'><%=adors("contactor")%></td>
|
||||
<td align='center'><%=adors("contac_date")%></td>
|
||||
<td align='center'><%=adors("contac_time")%></td>
|
||||
<td align='center'><%=adors("contac_stat_label")%></td>
|
||||
<td align='center'><%=adors("interview_date")%></td>
|
||||
<td align='center'><%=adors("interview_area")%></td>
|
||||
<td align='center'><%=adors("contac_remark")%></td>
|
||||
<%
|
||||
for i = 1 to category_cnt-1
|
||||
%>
|
||||
<td align='center' ><%=adors("origin_category_0"&CStr(i))%></td>
|
||||
<%
|
||||
Next
|
||||
|
||||
for i = 1 to category_cnt-1
|
||||
%>
|
||||
<td align='center' ><%=adors("change_category_0"&CStr(i))%></td>
|
||||
<%
|
||||
next
|
||||
%>
|
||||
</tr>
|
||||
<%adors.movenext
|
||||
loop
|
||||
adors.close%>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<%end if ''if kikoan_name <> "" and field_area <> "" %>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<input type = hidden name = 'myun_cnt' value= '<%=myun_cnt%>'>
|
||||
<%if command <> "excel" then%>
|
||||
<!-- #include file = "inc_bottom.asp"-->
|
||||
<%end if'<%if command <> "excel" then%>
|
||||
|
||||
<script LANGUAGE='JavaScript'>
|
||||
|
||||
function listView(opt)
|
||||
{
|
||||
var f = document.frm_main;
|
||||
var el = document.getElementById('kikoan_id');
|
||||
var text = el.options[el.selectedIndex].innerHTML;
|
||||
|
||||
f.kikoan_name.value = text
|
||||
|
||||
f.action="listView.asp?opt=" + opt;
|
||||
f.submit();
|
||||
}
|
||||
|
||||
function download()
|
||||
{
|
||||
var f = document.frm_main;
|
||||
|
||||
if(f.kikoan_name.value == "선택"){
|
||||
alert("프로젝트를 선택하세요.");
|
||||
return false;
|
||||
}else{
|
||||
f.action="listView.asp?command=excel";
|
||||
f.submit();
|
||||
}
|
||||
}
|
||||
|
||||
function fn_logout(){
|
||||
document.frm_main.action = 'login.asp';
|
||||
document.frm_main.submit();
|
||||
}
|
||||
</script>
|
||||
124
contact/login.asp
Normal file
124
contact/login.asp
Normal file
@@ -0,0 +1,124 @@
|
||||
<!-- #include file = "./lib/config.asp" -->
|
||||
<%'
|
||||
Response.CharSet="utf-8"
|
||||
|
||||
Response.codepage="65001"
|
||||
Response.ContentType="text/html;charset=utf-8"
|
||||
%>
|
||||
|
||||
|
||||
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv='Content-Type' content="text/html;charset=utf-8">
|
||||
<title>Korea Research Center 컨택/면접원/검증 관리 - 로그인</title>
|
||||
<link rel='stylesheet' type='text/css' href='<%=domain_url%>:8888/css/basic_new.css'>
|
||||
<link rel='stylesheet' type='text/css' href='<%=domain_url%>:8888/css/style.css'>
|
||||
<script language='javascript' src='<%=domain_url%>:8888/lib/function.js'></script>
|
||||
<script LANGUAGE='javascript' id="clientEventHandlersJS">
|
||||
<!--
|
||||
function init()
|
||||
{
|
||||
document.login.login_name.focus();
|
||||
}
|
||||
|
||||
function subit()
|
||||
{
|
||||
var login_name = document.login.login_name.value;
|
||||
var login_pwd = document.login.login_pwd.value;
|
||||
if (login_name == '')
|
||||
{
|
||||
alert('ID를 입력해 주세요');
|
||||
document.login.login_name.focus();
|
||||
return false;
|
||||
}
|
||||
if (login_pwd == '')
|
||||
{
|
||||
alert('비밀번호를 입력해 주세요');
|
||||
document.login.login_pwd.focus();
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
document.login.action = 'login_ok.asp';
|
||||
document.login.submit();
|
||||
}
|
||||
|
||||
function winopen_new(chk)
|
||||
{
|
||||
var login_name = document.login.login_name.value;
|
||||
if (login_name == '')
|
||||
{
|
||||
alert('ID를 입력해 주세요');
|
||||
document.login.login_name.focus();
|
||||
//return false;
|
||||
}
|
||||
else
|
||||
{
|
||||
var login_name = document.login.login_name.value;
|
||||
var url = "in_out_time.asp?chk=" + chk + "&login_name=" + login_name;
|
||||
window.open (url,"","left=100 top=5 menubar=yes scrollbars=yes statbar=no location=no toolbar=no")
|
||||
}
|
||||
}
|
||||
|
||||
function movePage(){
|
||||
location.href="http://10.10.10.7:8088/krc_module/contact";
|
||||
}
|
||||
|
||||
//-->
|
||||
</script>
|
||||
|
||||
|
||||
<body class='center' onLoad="init()" oncontextmenu='return false' onselectstart='return false' ondragstart='return false' OnKeyDown='No_BackSpace();ctrlEvent();'>
|
||||
<form name='login' method='post'>
|
||||
|
||||
<table border='0' cellspacing='0' cellpadding='0' >
|
||||
<tr>
|
||||
<td class='main' >
|
||||
|
||||
<input type='button' value='컨택사이트 이동' onclick="javascript:movePage();"></td>
|
||||
|
||||
<table border='0' cellspacing='0' cellpadding='0' style='display:none;'>
|
||||
<tr>
|
||||
<td class='login_box' ><font size=3><b>Korea Research Center 컨택/면접원/검증 관리</b></font>
|
||||
<!-- str: login area -->
|
||||
<table border='0' cellspacing='0' cellpadding='0'>
|
||||
<tr>
|
||||
<td style='padding-top:20px;'>
|
||||
<table border='0' cellpadding='0' cellspacing='0'>
|
||||
<tr>
|
||||
<td><img src='<%=domain_url%>:8888/images/verification/txt_id.gif'></td>
|
||||
<td><input type='Text' name='login_name' value=''></td>
|
||||
<td rowspan='3'><img src='<%=domain_url%>:8888/images/verification/btn_login.gif' style='margin-left:10px;cursor:hand;' onclick='subit();' ></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><img src='<%=domain_url%>:8888/images/verification/txt_pwd.gif'></td>
|
||||
<td><input type='password' class='number' name='login_pwd' value=''></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<!-- end: login area -->
|
||||
</td>
|
||||
</tr>
|
||||
<!-- str: copyright -->
|
||||
<tr>
|
||||
<td style='padding-top:20px;padding-left:50px;'><img src='<%=domain_url%>:8888/images/common/top_logo.jpg'></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td height='35' bgcolor='#FFFFFF' align='left'><img src='<%=domain_url%>/capi/images_new/img_foot.jpg' align='absmiddle'></td>
|
||||
</tr>
|
||||
<!-- end: copyright -->
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
<!-- #include file = './inc_bottom_script.asp'-->
|
||||
|
||||
|
||||
|
||||
180
contact/login_ok.asp
Normal file
180
contact/login_ok.asp
Normal file
@@ -0,0 +1,180 @@
|
||||
<!-- #include file = "./lib/config.asp" -->
|
||||
<%'
|
||||
Response.CharSet="utf-8"
|
||||
|
||||
Response.codepage="65001"
|
||||
Response.ContentType="text/html;charset=utf-8"
|
||||
|
||||
|
||||
''///=============
|
||||
''로그인 후
|
||||
dim login_pwd
|
||||
dim login_name '로그인 아이디
|
||||
dim login_area '로그인 지역
|
||||
dim login_type '로그인 타입(관리자, sv,면접원, 컨택원 등)
|
||||
dim ani_num '발신번호
|
||||
dim extension '면접원 내선번호
|
||||
dim i
|
||||
dim Query
|
||||
dim local_ip
|
||||
dim client_id '면접원 자리번호
|
||||
dim Makecall_ip_chk
|
||||
|
||||
|
||||
login_name = trim(request("login_name"))
|
||||
login_pwd = trim(request("login_pwd"))
|
||||
local_ip = Request.ServerVariables("remote_addr")
|
||||
|
||||
|
||||
Makecall_ip_chk = "true"
|
||||
query = "select * from login_user where login_name = '" & login_name & "' and login_pwd = '" & login_pwd & "' and prj_year = '" & prj_year & "'"
|
||||
|
||||
AdoRs.Open query,adoconn, 1
|
||||
|
||||
' response.Write query & "<br>"
|
||||
if adors.recordcount > 1 or adors.recordcount = 0 then
|
||||
response.Write "<SCRIPT>"
|
||||
'response.Write "alert('죄송합니다. 사용 권한이 없습니다.');"
|
||||
'response.Write "setInterval('window.close()',100); "
|
||||
response.Write "</script>"
|
||||
else
|
||||
login_id = adors("id")
|
||||
login_area = adors("login_area")
|
||||
login_type = lcase(adors("login_type"))
|
||||
adors.close
|
||||
|
||||
''cati db(각 자리의 자리번호 및 발번 가져오기용) - 본사 컨택원 전용
|
||||
|
||||
''' response.Write "local_ip : "&local_ip&"<br>"
|
||||
|
||||
If local_ip = "127.0.0.1" Then
|
||||
local_ip = "10.10.14.53"
|
||||
End if
|
||||
|
||||
if mid(local_ip,1,6) = "10.10." and (login_type = "컨택" or login_type = "검증원" or login_type = "관리자") then '서울 본사만 해당(web version malecall을 사용하기 위해)
|
||||
ConnectString = "Provider=SQLOLEDB.1;Password=" & PWD & ";Persist Security Info=True;User ID=" & UID & ";Initial Catalog=cati;Data Source=" & SV_NAME
|
||||
Set AdoConn_cati = Server.CreateObject("ADODB.Connection")
|
||||
AdoConn_cati.Open ConnectString
|
||||
query = "select * from client where client_ip = '" & local_ip & "'"
|
||||
adors.open query, AdoConn_cati, 1
|
||||
''' response.Write "query : "&query &"<br>"
|
||||
if adors.recordcount = 1 Then
|
||||
client_id = adors("client_id")
|
||||
'ani_num = adors("external_no")
|
||||
extension = adors("internal_no")
|
||||
|
||||
''' response.Write client_id & " // "&ani_num & " // " & extension
|
||||
else
|
||||
Makecall_ip_chk = "false"
|
||||
end If
|
||||
|
||||
adors.close
|
||||
|
||||
query = "select * from T_external_number where useFlag='0' order by newid()"
|
||||
adors.open query, AdoConn_cati, 1
|
||||
if adors.recordcount > 0 Then
|
||||
ani_num = adors("num") '발신번호 가져오기
|
||||
else
|
||||
Makecall_ip_chk = "false"
|
||||
end If
|
||||
adors.close
|
||||
|
||||
AdoConn_cati.close
|
||||
set AdoConn_cati = nothing
|
||||
if mid(local_ip,1,6) = "10.10." then
|
||||
''sv가 컨택터 이름으로 sv컴에서 로그인하기에
|
||||
Makecall_ip_chk = "true"
|
||||
end if
|
||||
end if
|
||||
|
||||
|
||||
if Makecall_ip_chk = "true" then
|
||||
'%>
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv='Content-Type' content="text/html;charset=utf-8">
|
||||
<title>2013년 공공기관(준정부기관) 고객만족도 조사 - 로그인</title>
|
||||
<link rel='stylesheet' type='text/css' href='<%=domain_url%>:8888/css/basic_new.css'>
|
||||
<link rel='stylesheet' type='text/css' href='<%=domain_url%>:8888/css/style.css'>
|
||||
<script language='javascript' src='<%=domain_url%>:8888/lib/function.js'></script>
|
||||
<script LANGUAGE='javascript' id="clientEventHandlersJS">
|
||||
<!--
|
||||
|
||||
|
||||
function subit()
|
||||
{
|
||||
var login_type = document.login.login_type.value;
|
||||
if (login_type == "컨택")
|
||||
{
|
||||
document.login.action = 'contac_sel.asp';
|
||||
}
|
||||
else if (login_type == "sv")
|
||||
{
|
||||
//document.login.action = 'myun_set.asp';
|
||||
document.login.action = 'listView.asp';
|
||||
}
|
||||
else if (login_type == "응대")
|
||||
{
|
||||
document.login.action = 'search.asp';
|
||||
}
|
||||
else if (login_type == "면접원")
|
||||
{
|
||||
document.login.action = 'myun_my_list.asp';
|
||||
}
|
||||
else if (login_type == "검증원")
|
||||
{
|
||||
document.login.action = 'recheck_list_input.asp';
|
||||
}
|
||||
else if (login_type == "관리자")
|
||||
{
|
||||
//2번으로 보내는 이유는 1번 보다 시간이 적게 걸려서
|
||||
//document.login.action = 'report_02.asp';
|
||||
document.login.action = 'contac_sel.asp';
|
||||
}
|
||||
else
|
||||
{
|
||||
alert("사용자 타입 지정");
|
||||
return false;
|
||||
}
|
||||
document.login.submit();
|
||||
}
|
||||
|
||||
|
||||
|
||||
//-->
|
||||
</script>
|
||||
|
||||
|
||||
<body class='center' onLoad="subit()" oncontextmenu='return false' onselectstart='return false' ondragstart='return false' OnKeyDown='No_BackSpace();ctrlEvent();'>
|
||||
<form name='login' method='post'>
|
||||
|
||||
<input type='hidden' value = '<%=login_id%>' name = 'login_id'>
|
||||
<input type='hidden' value = '<%=login_area%>' name = 'login_area'>
|
||||
<input type='hidden' value = '<%=login_type%>' name = 'login_type'>
|
||||
<input type='hidden' value = '<%=login_name%>' name = 'login_name'>
|
||||
<input type='hidden' value = '<%=ani_num%>' name = 'ani_num'>
|
||||
<input type='hidden' value = '<%=client_id%>' name = 'client_id'>
|
||||
<input type='hidden' value = '<%=extension%>' name = 'extension'>
|
||||
<table border='0' cellspacing='0' cellpadding='0' >
|
||||
<tr>
|
||||
<td class='main' >
|
||||
로그인 성공...
|
||||
<%if lcase(trim(login_type)) = "admin" then%>
|
||||
보고서 작업중....
|
||||
<%end if%>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
<!-- #include file = './inc_bottom_script.asp'-->
|
||||
<%else
|
||||
response.Write "<SCRIPT>"
|
||||
response.Write "alert('누구세요......');"
|
||||
response.Write "setInterval('window.close()',100);"
|
||||
response.Write "</script>"
|
||||
|
||||
end if'''if ip_chk = "true" then%>
|
||||
<%end if%>
|
||||
285
contact/search.asp
Normal file
285
contact/search.asp
Normal file
@@ -0,0 +1,285 @@
|
||||
<!-- #include file = "./lib/config.asp" -->
|
||||
<%'
|
||||
Response.CharSet="utf-8"
|
||||
|
||||
Response.codepage="65001"
|
||||
Response.ContentType="text/html;charset=utf-8"
|
||||
|
||||
''///=============
|
||||
''모든 사람이 검색가능하게
|
||||
'기관명이 컨택쿼터가 남은 경우에서 모든 기관명 무조건 보이기로 변경(2013-12-18일)
|
||||
'' 기관명과 기관리스트아이디, 응답자 전화번호 2개 기준
|
||||
|
||||
dim i
|
||||
dim Query
|
||||
|
||||
dim login_pwd
|
||||
dim login_name '로그인 아이디
|
||||
dim login_area '로그인 지역
|
||||
dim login_type '로그인 타입(관리자, sv,면접원, 컨택원 등)
|
||||
|
||||
dim ani_num '발신번호
|
||||
dim client_id '면접원 자리번호
|
||||
dim extension '면접원 내선번호
|
||||
dim categori_cnt
|
||||
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"))
|
||||
ani_num = trim(request("ani_num"))
|
||||
|
||||
key_id = trim(request("key_id"))
|
||||
|
||||
kikoan_id = trim(request("kikoan_id"))
|
||||
kikoan_name = trim(request("kikoan_name"))
|
||||
res_tel1 = trim(request("res_tel1"))
|
||||
res_tel2 = trim(request("res_tel2"))
|
||||
res_name = trim(request("res_name"))
|
||||
|
||||
'Response.Write "id = " & request("id") & "<br>"
|
||||
|
||||
|
||||
|
||||
'%>
|
||||
|
||||
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv='Content-Type'content='text/html; charset=utf-8'>
|
||||
<title>KRC - 컨택</title>
|
||||
<link rel='stylesheet' type='text/css' href='<%=domain_url%>/capi/css/basic_new.css'>
|
||||
<script language='javascript' src='<%=domain_url%>/capi/js/common.js'></script>
|
||||
</head>
|
||||
<body topmargin=0 leftmargin=50 bgcolor = '#f8f8f8' oncontextmenu='return false' onselectstart='return false' ondragstart='return false' OnKeyDown='No_BackSpace();ctrlEvent();'>
|
||||
<form method=post name='frm_main'>
|
||||
<input type='hidden' value = '<%=kikoan_name%>' name='kikoan_name'/>
|
||||
<table width=900 height=100% cellpadding='0' cellspacing='0' border='0' >
|
||||
<tr>
|
||||
<td height='3' bgcolor='#dadada'>
|
||||
<%if Request.ServerVariables("remote_addr") = "10.10.17.52" or Request.ServerVariables("remote_addr") = "1.235.195.52" then%>
|
||||
(search.asp)
|
||||
<%end if%>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td valign='top'>
|
||||
<table width=100% cellpadding='0' cellspacing='0' border='1'>
|
||||
<tr height=30>
|
||||
<input type='hidden' value = '<%=login_id%>' name = 'login_id'>
|
||||
<td align='center'>로그인 아이디</td>
|
||||
<td align='center'>
|
||||
<input type='text' readonly name='login_name' value='<%=login_name%>'> <!-- '로그인 아이디 -->
|
||||
</td>
|
||||
<td align='center'>로그인 유형</td>
|
||||
<td align='center'>
|
||||
<input type='text' readonly name='login_type' value='<%=login_type%>'> <!-- '로그인 타입(관리자, sv,면접원, 컨택원 등) -->
|
||||
</td>
|
||||
<td align='center'>로그인 지역</td>
|
||||
<td align='center'>
|
||||
<input type='text' readonly name='login_area' value='<%=login_area%>'> <!-- '로그인 지역(krc, 그 외) -->
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr height=30>
|
||||
<td align='center'>자리번호</td>
|
||||
<td align='center'>
|
||||
<input type='text' readonly name = 'client_id' value = '<%=client_id%>'> <!-- '면접원 자리번호 -->
|
||||
</td>
|
||||
<td align='center'>내선번호</td>
|
||||
<td align='center'>
|
||||
<input type='text' readonly name = 'extension' value = '<%=extension%>' > <!-- '면접원 내선번호 -->
|
||||
</td>
|
||||
<td align='center'>발신번호</td>
|
||||
<td align='center'>
|
||||
<input type='text' readonly name='ani_num' value='<%=ani_num%>'> <!-- '발신번호-->
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
|
||||
|
||||
<tr>
|
||||
<td height='100%' valign='top' style='padding:20px 20px 20px 20px;'>
|
||||
<table width='100%' cellpadding='0' cellspacing='0' border='0'>
|
||||
<tr>
|
||||
<td align='center' style='padding:10px 0px 0px 0px;'>
|
||||
<table width='100%' cellpadding='10' cellspacing='0' border='0' bgcolor='#DADADA' style='border:1px solid #DADADA;'>
|
||||
<tr>
|
||||
<td bgcolor='#FFFFFF'>
|
||||
<table width='100%' cellpadding='3' cellspacing='1' border='1' bgcolor='#DADADA'>
|
||||
|
||||
<!--타이틀 -->
|
||||
<tr bgcolor=DeepSkyBlue>
|
||||
<td colspan=10 align='center' style="font-size:10pt;"><%=login_name%> 님은 <%=login_area%> 지역의 <%=login_type%> 입니다. 컨택할 쿼터 셀 선택
|
||||
<%if Request.ServerVariables("remote_addr") = "10.10.17.52" or Request.ServerVariables("remote_addr") = "1.235.195.52" then%>
|
||||
(search.asp)
|
||||
<%end if%>
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<%if login_type = "응대" then%>
|
||||
<tr>
|
||||
<td valign='top'>
|
||||
<table width=100% cellpadding='0' cellspacing='0' border='1'>
|
||||
<tr height=30>
|
||||
<td align='center'>응답자 이름</td>
|
||||
<td align='center'>
|
||||
<input type='text' name='res_name' value = '' >
|
||||
</td>
|
||||
<td align='center' bgcolor='yellow'>또는</td>
|
||||
<td align='center'>응답자 전화번호</td>
|
||||
<td align='center'>
|
||||
<input type='text' name='res_tel1' value = '' >
|
||||
</td>
|
||||
<td align='center' bgcolor='yellow'>또는</td>
|
||||
<td align='center'>응답자 전화번호2</td>
|
||||
<td align='center'>
|
||||
<input type='text' name='res_tel2' value = '' >
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<%else%>
|
||||
|
||||
<!--기관명 -->
|
||||
<tr align='center'>
|
||||
<td bgcolor=Aqua style="font-size:10pt;" width=200>프로젝트</td>
|
||||
<td bgcolor=Aqua style="font-size:10pt;" width=200>
|
||||
<select id='kikoan_id' name="kikoan_id" >
|
||||
<%''컨택 쿼터가 남은 경우의 리스트 가져오기
|
||||
if kikoan_name = "" then%>
|
||||
<OPTION value='선택' selected>선택</option>
|
||||
<%end if
|
||||
query = "select id, kikoan_name from kikoan_list"
|
||||
adors.open query, adoconn, 1
|
||||
'' Response.Write query & "<br>"
|
||||
' dim tmp_kikoan_name_list()
|
||||
' redim tmp_kikoan_name_list(adors.recordcount)
|
||||
' i = 0
|
||||
' do while not adors.eof
|
||||
' i = i + 1
|
||||
' tmp_kikoan_name_list(i) = adors("kikoan_name")
|
||||
' adors.movenext
|
||||
' loop
|
||||
' adors.close
|
||||
' query = "select kikoan_name from quota " & _
|
||||
' "where quota - contac_quota_ok > 0 " & _
|
||||
' " and ("
|
||||
' for i = 1 to ubound(tmp_kikoan_name_list)
|
||||
' query = query & "kikoan_name = '" & tmp_kikoan_name_list(i) & "' or "
|
||||
' next
|
||||
' query = trim(query)
|
||||
' query = mid(query,1,len(query)-2)
|
||||
' query =query & ") group by kikoan_name"
|
||||
' Response.Write query & "<br>"
|
||||
' adors.open query, adoconn, 1
|
||||
do while not adors.eof
|
||||
%>
|
||||
<OPTION value='<%=adors("id")%>' <%if trim(adors("kikoan_name")) = trim(kikoan_name) then%> selected <%end if%>><%=adors("kikoan_name")%></option>
|
||||
<%
|
||||
adors.movenext
|
||||
loop
|
||||
adors.close%>
|
||||
</select>
|
||||
</td>
|
||||
<td align='center'>리스트 아이디</td>
|
||||
<td align='center'>
|
||||
<input type='text' name='list_id' value = '' >
|
||||
</td>
|
||||
|
||||
</tr>
|
||||
<%end if%>
|
||||
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td bgcolor='#FFFFFF'>
|
||||
<table width='100%' cellpadding='3' cellspacing='1' border='1' bgcolor='#DADADA'>
|
||||
<tr>
|
||||
<td align='center' >
|
||||
<img src='<%=domain_url%>:8888/images/common/btn_search.jpg' onclick='search("<%=login_type%>")' style='cursor:hand;VERTICAL-ALIGN: middle;' title='검색'>
|
||||
<img src='<%=domain_url%>:8888/images/common/btn_search_kikoan.jpg' onclick='contec_sel(<%=key_id%>)' style='cursor:hand;VERTICAL-ALIGN: middle;' title='기관 재선택'>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<input type='text' size=10 readonly name='categori_cnt_tmp' value='<%=categori_cnt_tmp%>'> <!-- '선택해야 할 카테고리 갯수 지역 -->
|
||||
|
||||
<!-- #include file = "inc_bottom.asp"-->
|
||||
|
||||
|
||||
|
||||
|
||||
<script LANGUAGE='JavaScript'>
|
||||
|
||||
function contec_sel()
|
||||
{ //기관 재선택 부터
|
||||
var f = document.frm_main;
|
||||
//f.action = "contac_sel.asp?command=re_contac_sel&id=" + id;
|
||||
f.action = "contac_sel.asp?command=re_contac_sel";
|
||||
f.submit();
|
||||
}
|
||||
|
||||
function search(login_type)
|
||||
{
|
||||
var txt;
|
||||
var f = document.frm_main;
|
||||
|
||||
if (login_type == "응대")
|
||||
{
|
||||
if(f.res_name.value == "" && f.res_tel1.value == "" && f.res_tel2.value == "" )
|
||||
{
|
||||
alert("적어도 1개를 입력하세요");
|
||||
f.res_name.focus();
|
||||
return false;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
if (f.kikoan_name.value == "선택" )
|
||||
{
|
||||
alert("프로젝트를 선택하세요");
|
||||
f.kikoan_name.focus();
|
||||
return false;
|
||||
}
|
||||
|
||||
if (allTrim(f.list_id.value) == "" )
|
||||
{
|
||||
alert("리스트 아이디를 입력하세요.");
|
||||
f.list_id.focus();
|
||||
return false;
|
||||
}
|
||||
|
||||
var el = document.getElementById('kikoan_id');
|
||||
var text = el.options[el.selectedIndex].innerHTML;
|
||||
f.kikoan_name.value = text
|
||||
|
||||
//alert(text+"//"+f.kikoan_id.value);
|
||||
}
|
||||
|
||||
f.action = "search_ok.asp";
|
||||
f.submit();
|
||||
}
|
||||
|
||||
|
||||
</script>
|
||||
380
contact/search_ok.asp
Normal file
380
contact/search_ok.asp
Normal file
@@ -0,0 +1,380 @@
|
||||
<!-- #include file = "./lib/config.asp" -->
|
||||
<%'
|
||||
Response.CharSet="utf-8"
|
||||
|
||||
Response.codepage="65001"
|
||||
Response.ContentType="text/html;charset=utf-8"
|
||||
|
||||
''///=============
|
||||
''모든 사람이 검색가능하게
|
||||
''단, (chasu_use_chk = 'yes')문을 이용하여 사용여부 판단...(값이 no 인것들은 컨택결과를 일괄적으로 지정을 했기에 컨택을 하면 안되기에)
|
||||
|
||||
dim i
|
||||
dim Query
|
||||
|
||||
dim login_pwd
|
||||
dim login_name '로그인 아이디
|
||||
dim login_area '로그인 지역
|
||||
dim login_type '로그인 타입(관리자, sv,면접원, 컨택원 등)
|
||||
|
||||
dim ani_num '발신번호
|
||||
dim client_id '면접원 자리번호
|
||||
dim extension '면접원 내선번호
|
||||
dim categori_cnt
|
||||
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"))
|
||||
ani_num = trim(request("ani_num"))
|
||||
|
||||
key_id = trim(request("key_id"))
|
||||
|
||||
kikoan_id = trim(request("kikoan_id"))
|
||||
kikoan_name = trim(request("kikoan_name"))
|
||||
res_tel1 = trim(request("res_tel1"))
|
||||
res_tel2 = trim(request("res_tel2"))
|
||||
res_name = trim(request("res_name"))
|
||||
|
||||
command = request("command")
|
||||
|
||||
list_id = request("list_id")
|
||||
query = "select a.* " & _
|
||||
", (select category_label from category_code where kikoan_id = 26 and category_index = 1 and category_code = a.categori_01) as 'categori_label01' " & _
|
||||
", (select category_label from category_code where kikoan_id = 26 and category_index = 1 and category_code = a.categori_02) as 'categori_label02' " & _
|
||||
", (select category_label from category_code where kikoan_id = 26 and category_index = 1 and category_code = a.categori_03) as 'categori_label03' " & _
|
||||
", (select category_label from category_code where kikoan_id = 26 and category_index = 1 and category_code = a.categori_04) as 'categori_label04' " & _
|
||||
", (select category_label from category_code where kikoan_id = 26 and category_index = 1 and category_code = a.categori_05) as 'categori_label05' " & _
|
||||
", (select category_label from category_code where kikoan_id = 26 and category_index = 1 and category_code = a.categori_06) as 'categori_label06' " & _
|
||||
", (select category_label from category_code where kikoan_id = 26 and category_index = 1 and category_code = a.categori_07) as 'categori_label07' " & _
|
||||
", b.contac_stat_label from list as a left outer join contac_stat as b on b.kikoan_id = '" & kikoan_id & "' and a.contac_stat = b.contac_stat "
|
||||
if login_type = "컨택" or login_type = "관리자" then
|
||||
query = query & "where a.kikoan_name = '" & kikoan_name & "' " & _
|
||||
"and a.list_id = " & list_id & " and (a.chasu_use_chk = 'yes') "
|
||||
else
|
||||
res_name = trim(request("res_name"))
|
||||
res_tel1 = trim(request("res_tel1"))
|
||||
res_tel2 = trim(request("res_tel2"))
|
||||
query = query & "where "
|
||||
tmp_query = ""
|
||||
if res_name <> "" then
|
||||
tmp_query = "name = '" & res_name & "' "
|
||||
end if
|
||||
if res_tel1 <> "" then
|
||||
if tmp_query = "" then
|
||||
tmp_query = "tel1 = '" & res_tel1 & "' "
|
||||
else
|
||||
tmp_query = tmp_query & " or tel1 = '" & res_tel1 & "' "
|
||||
end if
|
||||
end if
|
||||
|
||||
if res_tel2 <> "" then
|
||||
if tmp_query = "" then
|
||||
tmp_query = "tel2 = '" & res_tel2 & "' "
|
||||
else
|
||||
tmp_query = tmp_query & " or tel2 = '" & res_tel2 & "' "
|
||||
end if
|
||||
end if
|
||||
query = query & tmp_query
|
||||
end if
|
||||
|
||||
' response.write query
|
||||
' response.write "<br/>" & kikoan_id & ".."
|
||||
|
||||
adors.open query, adoconn, 1
|
||||
|
||||
'%>
|
||||
|
||||
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv='Content-Type'content='text/html; charset=utf-8'>
|
||||
<title>KRC - 컨택</title>
|
||||
<link rel='stylesheet' type='text/css' href='<%=domain_url%>/capi/css/basic_new.css'>
|
||||
<script language='javascript' src='<%=domain_url%>/capi/js/common.js'></script>
|
||||
</head>
|
||||
<body topmargin=0 leftmargin=10 bgcolor = '#f8f8f8' oncontextmenu='return false' onselectstart='return false' ondragstart='return false' OnKeyDown='No_BackSpace();ctrlEvent();'>
|
||||
<form method=post name='frm_main'>
|
||||
<input type='hidden' value = '<%=kikoan_id%>' name='kikoan_id'/>
|
||||
<input type='hidden' value = '<%=kikoan_name%>' name='kikoan_name'/>
|
||||
|
||||
<table width=100% height=100% cellpadding='0' cellspacing='0' border='0' >
|
||||
<tr>
|
||||
<td height='3' bgcolor='#dadada'>
|
||||
<%if Request.ServerVariables("remote_addr") = "10.10.17.52" or Request.ServerVariables("remote_addr") = "1.235.195.52" then%>
|
||||
(search_ok.asp)
|
||||
<%end if%>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td valign='top'>
|
||||
<table width=50% cellpadding='0' cellspacing='0' border='1'>
|
||||
<tr height=30>
|
||||
<input type='hidden' value = '<%=login_id%>' name = 'login_id'>
|
||||
<td align='center'>로그인 아이디</td>
|
||||
<td align='center'>
|
||||
<input type='text' readonly name='login_name' value='<%=login_name%>'> <!-- '로그인 아이디 -->
|
||||
</td>
|
||||
<td align='center'>로그인 유형</td>
|
||||
<td align='center'>
|
||||
<input type='text' readonly name='login_type' value='<%=login_type%>'> <!-- '로그인 타입(관리자, sv,면접원, 컨택원 등) -->
|
||||
</td>
|
||||
<td align='center'>로그인 지역</td>
|
||||
<td align='center'>
|
||||
<input type='text' readonly name='login_area' value='<%=login_area%>'> <!-- '로그인 지역(krc, 그 외) -->
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr height=30>
|
||||
<td align='center'>자리번호</td>
|
||||
<td align='center'>
|
||||
<input type='text' readonly name = 'client_id' value = '<%=client_id%>'> <!-- '면접원 자리번호 -->
|
||||
</td>
|
||||
<td align='center'>내선번호</td>
|
||||
<td align='center'>
|
||||
<input type='text' readonly name = 'extension' value = '<%=extension%>' > <!-- '면접원 내선번호 -->
|
||||
</td>
|
||||
<td align='center'>발신번호</td>
|
||||
<td align='center'>
|
||||
<input type='text' readonly name='ani_num' value='<%=ani_num%>'> <!-- '발신번호-->
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
|
||||
|
||||
<tr>
|
||||
<td height='100%' valign='top' style='padding:20px 20px 20px 20px;'>
|
||||
<table width='100%' cellpadding='0' cellspacing='0' border='0'>
|
||||
<tr>
|
||||
<td align='center' style='padding:10px 0px 0px 0px;'>
|
||||
<table width='100%' cellpadding='10' cellspacing='0' border='0' bgcolor='#DADADA' style='border:1px solid #DADADA;'>
|
||||
<tr>
|
||||
<td bgcolor='#FFFFFF'>
|
||||
<table width='100%' cellpadding='3' cellspacing='1' border='1' >
|
||||
|
||||
<!--타이틀 -->
|
||||
<tr bgcolor=DeepSkyBlue>
|
||||
<td colspan=1 align='center' style="font-size:10pt;"><%=login_name%> 님은 <%=login_area%> 지역의 <%=login_type%> 입니다. 컨택할 쿼터 셀 선택
|
||||
<%if Request.ServerVariables("remote_addr") = "10.10.17.52" or Request.ServerVariables("remote_addr") = "1.235.195.52" then%>
|
||||
(search_ok.asp)
|
||||
<%end if%>
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td valign='top'>
|
||||
<table width=100% cellpadding='0' cellspacing='0' border='1'>
|
||||
<%
|
||||
If adors.recordcount > 0 Then
|
||||
%>
|
||||
<tr height=30>
|
||||
<td align='center' width=50>선택</td>
|
||||
<td align='center' width=100>기관명</td>
|
||||
<td align='center' width=50>컨택지역</td>
|
||||
<td align='center' width=50 bgcolor=DeepSkyBlue>리스트 id</td>
|
||||
<td align='center' width=50>차수</td>
|
||||
<% If adors("categori_01") <> "" Then %>
|
||||
<td align='center' width=50>분류 1</td>
|
||||
<% End if %>
|
||||
<% If adors("categori_02") <> "" Then %>
|
||||
<td align='center' width=50>분류 2</td>
|
||||
<% End if %>
|
||||
<% If adors("categori_03") <> "" Then %>
|
||||
<td align='center' width=50>분류 3</td>
|
||||
<% End if %>
|
||||
<% If adors("categori_04") <> "" Then %>
|
||||
<td align='center' width=50>분류 4</td>
|
||||
<% End if %>
|
||||
<% If adors("categori_05") <> "" Then %>
|
||||
<td align='center' width=50>분류 5</td>
|
||||
<% End if %>
|
||||
<% If adors("categori_06") <> "" Then %>
|
||||
<td align='center' width=50>분류 6</td>
|
||||
<% End if %>
|
||||
<% If adors("categori_07") <> "" Then %>
|
||||
<td align='center' width=50>분류 7</td>
|
||||
<% End if %>
|
||||
<td align='center' width=50>쿼터 지역</td>
|
||||
<td align='center' width=50>회사명</td>
|
||||
<% If adors("comp_posi") <> "" Then %>
|
||||
<td align='center' width=50>직위</td>
|
||||
<% End if %>
|
||||
<td align='center' width=50>이름</td>
|
||||
<td align='center' width=50>전화 1</td>
|
||||
<td align='center' width=50>전화 2</td>
|
||||
<td align='center' width=50>리스트 주소</td>
|
||||
<td align='center' width=50>컨택결과</td>
|
||||
<td align='center' width=50>기타 1</td>
|
||||
</tr>
|
||||
<%
|
||||
do while not adors.eof
|
||||
cnt = cnt + 1
|
||||
%>
|
||||
<tr>
|
||||
<td align='center'>
|
||||
<input type='radio' name='chk_sel' value='<%=adors("id")%>'/>
|
||||
</td>
|
||||
<td align='center'><%=adors("kikoan_name")%></td>
|
||||
<td align='center'><%=adors("contac_area")%></td>
|
||||
<td align='center' bgcolor=DeepSkyBlue><%=adors("list_id")%></td>
|
||||
<td align='center'><%=adors("chasu")%></td>
|
||||
|
||||
<% If adors("categori_01") <> "" Then %>
|
||||
<td align='center'><%=adors("categori_label01")%></td>
|
||||
<% End if %>
|
||||
<% If adors("categori_02") <> "" Then %>
|
||||
<td align='center'><%=adors("categori_02")%></td>
|
||||
<% End if %>
|
||||
<% If adors("categori_03") <> "" Then %>
|
||||
<td align='center'><%=adors("categori_03")%></td>
|
||||
<% End if %>
|
||||
<% If adors("categori_04") <> "" Then %>
|
||||
<td align='center'><%=adors("categori_04")%></td>
|
||||
<% End if %>
|
||||
<% If adors("categori_05") <> "" Then %>
|
||||
<td align='center'><%=adors("categori_05")%></td>
|
||||
<% End if %>
|
||||
<% If adors("categori_06") <> "" Then %>
|
||||
<td align='center'><%=adors("categori_06")%></td>
|
||||
<% End if %>
|
||||
<% If adors("categori_07") <> "" Then %>
|
||||
<td align='center'><%=adors("categori_07")%></td>
|
||||
<% End if %>
|
||||
<td align='center'><%=adors("quota_area")%></td>
|
||||
<td align='center'><%=adors("comp_name")%></td>
|
||||
<% If adors("comp_posi") <> "" Then %>
|
||||
<td align='center'><%=adors("comp_posi")%></td>
|
||||
<% End if %>
|
||||
<td align='center'><%=adors("name")%></td>
|
||||
<td align='center'><%=adors("tel1")%></td>
|
||||
<td align='center'><%=adors("tel2")%></td>
|
||||
<td align='center'><%=adors("comp_addr")%></td>
|
||||
<td align='center'><%=adors("contac_stat_label")%></td>
|
||||
<td align='center'><%=adors("etc1")%></td>
|
||||
</tr>
|
||||
<%
|
||||
adors.movenext
|
||||
Loop
|
||||
Else
|
||||
%>
|
||||
<tr>
|
||||
<td>해당되는 리스트가 존재하지 않습니다.</td>
|
||||
</tr>
|
||||
<%
|
||||
End if
|
||||
%>
|
||||
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td bgcolor='#FFFFFF'>
|
||||
<table width='50%' cellpadding='3' cellspacing='1' border='1' bgcolor='#DADADA'>
|
||||
<tr>
|
||||
<td align='center' >
|
||||
<input type = button value='전화걸기 화면으로' style='cursor:hand' onclick='search_ok("<%=login_type%>")' title='전화걸기'>
|
||||
<img src='<%=domain_url%>:8888/images/common/btn_search.jpg' onclick='search("<%=login_type%>")' style='cursor:hand;VERTICAL-ALIGN: middle;' title='검색'>
|
||||
<img src='<%=domain_url%>:8888/images/common/btn_search_kikoan.jpg' onclick='contec_sel(<%=key_id%>)' style='cursor:hand;VERTICAL-ALIGN: middle;' title='기관 재선택'>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<input type=text name = 'cnt' value='<%=cnt%>'>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
|
||||
<!-- #include file = "inc_bottom.asp"-->
|
||||
|
||||
|
||||
|
||||
|
||||
<script LANGUAGE='JavaScript'>
|
||||
function contec_sel()
|
||||
{ //기관 재선택 부터
|
||||
var f = document.frm_main;
|
||||
//f.action = "contac_sel.asp?command=re_contac_sel&id=" + id;
|
||||
f.action = "contac_sel.asp?command=re_contac_sel";
|
||||
f.submit();
|
||||
}
|
||||
|
||||
function search(login_type)
|
||||
{
|
||||
var txt;
|
||||
var f = document.frm_main;
|
||||
|
||||
f.action = "search.asp";
|
||||
f.submit();
|
||||
}
|
||||
|
||||
|
||||
function search_ok(login_type)
|
||||
{
|
||||
var f = document.frm_main;
|
||||
|
||||
var cnt = f.cnt.value;
|
||||
var tmp_ok = 0;
|
||||
var idValue = 0;
|
||||
|
||||
if (eval(cnt) == 1)
|
||||
{
|
||||
if (f.chk_sel.checked == true)
|
||||
{
|
||||
tmp_ok = 1;
|
||||
idValue = f.chk_sel.value;
|
||||
//f.key_id.value = idValue;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
for (i = 0; i <= eval(cnt) - 1; i++)
|
||||
{
|
||||
if (f.chk_sel[i].checked == true)
|
||||
{
|
||||
tmp_ok = 1;
|
||||
idValue = f.chk_sel[i].value;
|
||||
|
||||
//f.key_id.value = idValue;
|
||||
}
|
||||
}
|
||||
}
|
||||
if (tmp_ok != 1)
|
||||
{
|
||||
alert('선택을 하세요.');
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
// if (f.login_area.value == "서울")
|
||||
// {
|
||||
f.action = "tel_dial.asp?command=search&key_id=" + idValue;
|
||||
// }
|
||||
// else
|
||||
// {
|
||||
// f.action = "inc_list.asp?command=search&key_id=" + idValue;
|
||||
// }
|
||||
// alert(idValue);
|
||||
f.submit();
|
||||
}
|
||||
|
||||
|
||||
</script>
|
||||
329
contact/tel_dial.asp
Normal file
329
contact/tel_dial.asp
Normal file
@@ -0,0 +1,329 @@
|
||||
<%'
|
||||
Response.CharSet="utf-8"
|
||||
|
||||
Response.codepage="65001"
|
||||
Response.ContentType="text/html;charset=utf-8"
|
||||
%>
|
||||
<!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">
|
||||
<!--<meta http-equiv="Content-Security-Policy" content="upgrade-insecure-requests">-->
|
||||
<title>KRC - 컨택</title>
|
||||
|
||||
<script type="text/javascript">
|
||||
|
||||
// 전역으로 선언
|
||||
var wsocket;
|
||||
var login_id;
|
||||
var login_pnum;
|
||||
var login_name;
|
||||
var ani;
|
||||
|
||||
////////////////////////////////////////////////////////
|
||||
//로그
|
||||
window.addEventListener('message', function(event) {
|
||||
if (event.data.command == "Log") {
|
||||
fn_AppendLog(event.data.message);
|
||||
}
|
||||
});
|
||||
|
||||
function fn_AppendLog(message) {
|
||||
var now = new Date();
|
||||
var hour = now.getHours().toString();
|
||||
var minute = now.getMinutes().toString();
|
||||
var second = now.getSeconds().toString();
|
||||
var millisec = now.getMilliseconds().toString();
|
||||
if (2 != hour.length) {
|
||||
hour = "0" + hour;
|
||||
}
|
||||
if (2 != minute.length) {
|
||||
minute = "0" + minute;
|
||||
}
|
||||
if (2 != second.length) {
|
||||
second = "0" + second;
|
||||
}
|
||||
if (1 == millisec.length) {
|
||||
millisec = "0" + millisec;
|
||||
}
|
||||
if (2 == millisec.length) {
|
||||
millisec = "0" + millisec;
|
||||
}
|
||||
var prefix = hour + ':' + minute + ':' + second + '.' + millisec + ', ';
|
||||
var logger = document.getElementById("logdata");
|
||||
//logger.innerText = logger.innerText + "\r\n" + prefix + message + "\r\n";
|
||||
logger.innerText = "\r\n" + prefix + message + "\r\n" + logger.innerText + "\r\n";
|
||||
}
|
||||
////////////////////////////////////////////////////////
|
||||
|
||||
window.addEventListener('message', function (event) {
|
||||
if (event.data.command == "Connect") {
|
||||
Connect();
|
||||
}
|
||||
else if (event.data.command == "Login") {
|
||||
Login(event.data.loginid, event.data.loginpnum, event.data.loginname);
|
||||
}
|
||||
else if (event.data.command == "Logout") {
|
||||
Logout(event.data.loginid);
|
||||
}
|
||||
else if (event.data.command == "MakeCall") {
|
||||
MakeCall(event.data.loginid, event.data.dn, event.data.ani);
|
||||
}
|
||||
else if (event.data.command == "Hangup") {
|
||||
Hangup(event.data.loginid);
|
||||
}
|
||||
else if (event.data.command == "Ready") {
|
||||
Ready(event.data.loginid);
|
||||
}
|
||||
else if (event.data.command == "Break") {
|
||||
Break(event.data.loginid);
|
||||
}
|
||||
else if (event.data.command == "SetRecordStamp") {
|
||||
SetRecordStamp(event.data.loginid);
|
||||
}
|
||||
}, false);
|
||||
|
||||
// 명령어
|
||||
function Connect() {
|
||||
|
||||
//wsocket = new WebSocket("ws://10.10.11.68:2302");
|
||||
wsocket = new WebSocket("wss://teracall.kric.com:2302");
|
||||
console.log(wsocket);
|
||||
wsocket.onopen = function () {
|
||||
if_log("wsocket connected !");
|
||||
ChildLogin();
|
||||
};
|
||||
|
||||
wsocket.onmessage = function (evt) {
|
||||
var received_msg = evt.data;
|
||||
var n = "\n";
|
||||
received_msg = replaceAll(received_msg, ",", "," + n);
|
||||
console.log(received_msg);
|
||||
if_log(received_msg);
|
||||
};
|
||||
|
||||
wsocket.onclose = function () {
|
||||
if_log("connection is closed...");
|
||||
};
|
||||
}
|
||||
|
||||
function Login(id, pnum, lname) {
|
||||
login_id = id;
|
||||
login_phone_number = pnum;
|
||||
login_name = lname;
|
||||
|
||||
var data = {
|
||||
"ZCommand": "Login",
|
||||
"AgentLoginID": login_id,
|
||||
"AgentName": login_name,
|
||||
"AgentGroup": "1417",
|
||||
"ANINumber": "12345678",
|
||||
"AgentPhone": login_phone_number
|
||||
}
|
||||
console.log(login_id + ", " + login_phone_number + ", " + login_name);
|
||||
wsocket.send(JSON.stringify(data));
|
||||
|
||||
}
|
||||
|
||||
function Logout(id) {
|
||||
login_id = id;
|
||||
var data = {
|
||||
"ZCommand": "Logout",
|
||||
"AgentLoginID": login_id
|
||||
}
|
||||
wsocket.send(JSON.stringify(data));
|
||||
}
|
||||
|
||||
function MakeCall(id, dn, ani) {
|
||||
login_id = id;
|
||||
dial_number = dn;
|
||||
ani_number = ani;
|
||||
var data = {
|
||||
"ZCommand": "MakeCall",
|
||||
"AgentLoginID": login_id,
|
||||
"DialNumber": dial_number,
|
||||
"ANINumber": ani_number
|
||||
}
|
||||
wsocket.send(JSON.stringify(data));
|
||||
}
|
||||
|
||||
function Hangup(id) {
|
||||
login_id = id;
|
||||
var data = {
|
||||
"ZCommand": "HangUp",
|
||||
"AgentLoginID": login_id
|
||||
}
|
||||
wsocket.send(JSON.stringify(data));
|
||||
}
|
||||
|
||||
function Ready(id) {
|
||||
login_id = id;
|
||||
var data = {
|
||||
"ZCommand": "SetAgentStatus",
|
||||
"AgentLoginID": login_id,
|
||||
"CTIAgentStatus": "1"
|
||||
}
|
||||
wsocket.send(JSON.stringify(data));
|
||||
}
|
||||
|
||||
function Break(id) {
|
||||
login_id = id;
|
||||
var data = {
|
||||
"ZCommand": "SetAgentStatus",
|
||||
"AgentLoginID": login_id,
|
||||
"CTIAgentStatus": "11"
|
||||
}
|
||||
wsocket.send(JSON.stringify(data));
|
||||
}
|
||||
|
||||
function SetRecordStamp(id) {
|
||||
login_id = id;
|
||||
var data = {
|
||||
"ZCommand": "SetRecordStamp",
|
||||
"AgentLoginID": login_id,
|
||||
"Tag": "테스트데이터"
|
||||
}
|
||||
wsocket.send(JSON.stringify(data));
|
||||
}
|
||||
|
||||
// 로그
|
||||
function if_log(val) {
|
||||
/*
|
||||
var frame = document.getElementById("logdata");
|
||||
//frame.contentWindow.postMessage({
|
||||
frame.contentWindow.postMessage({
|
||||
'command': 'Log',
|
||||
'message': val
|
||||
}, "*");
|
||||
*/
|
||||
}
|
||||
|
||||
function replaceAll(str, searchStr, replaceStr) {
|
||||
return str.split(searchStr).join(replaceStr);
|
||||
}
|
||||
|
||||
|
||||
|
||||
function ChildConnect() {
|
||||
window.postMessage({
|
||||
'command': 'Connect'
|
||||
}, "*");
|
||||
}
|
||||
|
||||
function ChildLogin() {
|
||||
var p1 = document.getElementById("loginid").value;
|
||||
var p2 = document.getElementById("extension").value;
|
||||
window.postMessage({
|
||||
'command': 'Login',
|
||||
'loginid': p1,
|
||||
'loginpnum' : p2,
|
||||
'loginname' : 'contactor',
|
||||
}, "*");
|
||||
}
|
||||
|
||||
function ChildLogout() {
|
||||
var p1 = document.getElementById("loginid").value;
|
||||
window.postMessage({
|
||||
'command': 'Logout',
|
||||
'loginid': p1
|
||||
}, "*");
|
||||
}
|
||||
|
||||
function ChildMakeCall() {
|
||||
var p1 = document.getElementById("loginid").value;
|
||||
var dn = document.getElementById("dn").value;
|
||||
var ani_num = document.getElementById("ani_num").value;
|
||||
window.postMessage({
|
||||
'command': 'MakeCall',
|
||||
'loginid': p1,
|
||||
'dn': dn,
|
||||
'ani': ani_num
|
||||
}, "*");
|
||||
}
|
||||
|
||||
function ChildHangup() {
|
||||
var p1 = document.getElementById("loginid").value;
|
||||
window.postMessage({
|
||||
'command': 'Hangup',
|
||||
'loginid': p1
|
||||
}, "*");
|
||||
}
|
||||
|
||||
function ChildReady() {
|
||||
var p1 = document.getElementById("loginid").value;
|
||||
window.postMessage({
|
||||
'command': 'Ready',
|
||||
'loginid': p1
|
||||
}, "*");
|
||||
}
|
||||
|
||||
function ChildBreak() {
|
||||
var p1 = document.getElementById("loginid").value;
|
||||
window.postMessage({
|
||||
'command': 'Break',
|
||||
'loginid': p1
|
||||
}, "*");
|
||||
}
|
||||
|
||||
function ChildSetRecordStamp() {
|
||||
var p1 = document.getElementById("loginid").value;
|
||||
window.postMessage({
|
||||
'command': 'SetRecordStamp',
|
||||
'loginid': p1
|
||||
}, "*");
|
||||
}
|
||||
|
||||
</script>
|
||||
</head>
|
||||
<!-- <body onLoad="DLL_Initialize();fn_login();" onUnload="DLL_Finalize();" leftmargin=10> -->
|
||||
<body onLoad="DLL_Initialize();fn_login();" leftmargin=10>
|
||||
<div>
|
||||
<object id="dll" name="dll" codebase="dll/mytro.CTI.cab#version=2,0,5,5" classid="CLSID:00FE8DE8-8426-44FB-AE5E-F65694EB192D" style="left: 0px; top: 0px; width:0; height:0; display:none;"></object>
|
||||
</div>
|
||||
<!-- #include file = "inc_list.asp"-->
|
||||
|
||||
<form action="" name="fm" id="fm">
|
||||
|
||||
|
||||
<div>
|
||||
<!--
|
||||
<table border=0>
|
||||
<tr align="center" style='cursor:hand;'>
|
||||
|
||||
<td width=150>
|
||||
<img src="<%=domain_url%>:8888/images/makecall/btn_reset.jpg" onclick="fn_login();" title ='로그인(초기화)' style='cursor:hand' >
|
||||
</td>
|
||||
|
||||
<td width=150>
|
||||
<img src="<%=domain_url%>:8888/images/makecall/btn_logout_02.jpg" onclick="fn_logout();" title ='로그 아웃' style='cursor:hand' >
|
||||
</td>
|
||||
<td width=150>
|
||||
<img style='cursor:hand;' src="<%=domain_url%>:8888/images/makecall/btn_dial.jpg" onclick="fn_makeCall();" title ='전화 걸기' >
|
||||
</td>
|
||||
<td width=150>
|
||||
<img style='cursor:hand;' src="<%=domain_url%>:8888/images/makecall/btn_hangup.gif" onclick="fn_dropCall();" title ='전화 끊기' >
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
-->
|
||||
|
||||
<div style="width:980px; margin: 0 auto; border: 0px solid;">
|
||||
<div>
|
||||
<!--b>자리번호</b--> <input type="hidden" readonly name="loginId" id="loginId" onblur="fn_insertVal(this.value);" value="<%=client_id%>">
|
||||
<!--b>패스워드</b> <input type="text" readonly name="loginPw" id="loginPw" onkeypress="if(event.keyCode == 13) fn_login();"> -->
|
||||
<!--b>내선번호</b--> <input type="hidden" readonly name="extension" id="extension" value="<%=extension%>">
|
||||
</div>
|
||||
<br />
|
||||
<div>
|
||||
<input type="hidden" readonly name="ani_num" id="ani_num" value="<%=ani_num%>" title='발신 번호'>
|
||||
<!--응답자 번호--> <input type="hidden" readonly name="dn" id="dn" value="<%=dn%>">
|
||||
</div>
|
||||
</div>
|
||||
<br />
|
||||
|
||||
<div name="logdata" id="logdata" style="width:100%; height:100px;" ></div>
|
||||
|
||||
</div>
|
||||
</form>
|
||||
</body>
|
||||
</html>
|
||||
331
contact/tel_init.asp
Normal file
331
contact/tel_init.asp
Normal file
@@ -0,0 +1,331 @@
|
||||
<!-- #include file = "./lib/config.asp" -->
|
||||
<%'
|
||||
Response.CharSet="utf-8"
|
||||
|
||||
Response.codepage="65001"
|
||||
Response.ContentType="text/html;charset=utf-8"
|
||||
''단, (chasu_use_chk = 'yes')문을 이용하여 사용여부 판단...(값이 no 인것들은 컨택결과를 일괄적으로 지정을 했기에 컨택을 하면 안되기에)
|
||||
|
||||
|
||||
set adors2 = server.CreateObject("ADODB.RECORDSET")
|
||||
set adors_tmp = server.CreateObject("ADODB.RECORDSET")
|
||||
|
||||
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 key_id
|
||||
dim login_id
|
||||
dim interview_date(13)
|
||||
|
||||
interview_date(1) = "없음(거절 등)"
|
||||
interview_date(2) = "2013-11-11 ~ 2013-11-16"
|
||||
interview_date(3) = "2013-11-18 ~ 2013-11-23"
|
||||
interview_date(4) = "2013-11-25 ~ 2013-11-30"
|
||||
interview_date(5) = "2013-12-02 ~ 2013-12-07"
|
||||
interview_date(6) = "2013-12-09 ~ 2013-12-14"
|
||||
interview_date(7) = "2013-12-16 ~ 2013-12-21"
|
||||
interview_date(8) = "2013-12-23 ~ 2013-12-28"
|
||||
interview_date(9) = "2013-12-30 ~ 2014-01-04"
|
||||
interview_date(10) = "2014-01-06 ~ 2014-01-11"
|
||||
interview_date(11) = "2014-01-13 ~ 2014-01-18"
|
||||
interview_date(12) = "2014-01-20 ~ 2014-01-25"
|
||||
interview_date(13) = "2014-01-27 ~ 2014-02-01"
|
||||
|
||||
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"))
|
||||
categori_name_01 = trim(request("categori_name_01"))
|
||||
categori_name_02 = trim(request("categori_name_02"))
|
||||
categori_name_03 = trim(request("categori_name_03"))
|
||||
categori_name_04 = trim(request("categori_name_04"))
|
||||
categori_name_05 = trim(request("categori_name_05"))
|
||||
categori_name_06 = trim(request("categori_name_06"))
|
||||
categori_name_07 = trim(request("categori_name_07"))
|
||||
categori_label_01 = trim(request("categori_label_01"))
|
||||
categori_label_02 = trim(request("categori_label_02"))
|
||||
categori_label_03 = trim(request("categori_label_03"))
|
||||
categori_label_04 = trim(request("categori_label_04"))
|
||||
categori_label_05 = trim(request("categori_label_05"))
|
||||
categori_label_06 = trim(request("categori_label_06"))
|
||||
categori_label_07 = trim(request("categori_label_07"))
|
||||
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"))
|
||||
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"))
|
||||
contac_area = trim(request("contac_area"))
|
||||
ani_num = trim(request("ani_num"))
|
||||
categori_cnt = request("categori_cnt")
|
||||
command = request("command")
|
||||
'contac_stat = 99 '일단 컨택중으로
|
||||
contac_stat = trim(request("contac_stat"))
|
||||
init_stat = trim(request("init_stat"))
|
||||
quota_area = request("quota_area")
|
||||
prj_year = request("prj_year")
|
||||
|
||||
sex = ""
|
||||
age = 0
|
||||
|
||||
' response.write "kikoan_name : " & kikoan_name & "<br/>"
|
||||
' response.write "kikoan_id : " & kikoan_id & "<br/>"
|
||||
' response.write "login_area : " & login_area & "<br/>"
|
||||
' response.write "quota_area : " & quota_area & "<br/>"
|
||||
' response.write "contac_area : " & contac_area & "<br/>"
|
||||
|
||||
' response.write "categori_name_01 : " & categori_name_01 & "<br/>"
|
||||
' response.write "categori_name_02 : " & categori_name_02 & "<br/>"
|
||||
' response.write "categori_name_03 : " & categori_name_03 & "<br/>"
|
||||
' response.write "categori_name_04 : " & categori_name_04 & "<br/>"
|
||||
' response.write "categori_name_05 : " & categori_name_05 & "<br/>"
|
||||
' response.write "categori_name_06 : " & categori_name_06 & "<br/>"
|
||||
' response.write "categori_name_07 : " & categori_name_07 & "<br/>"
|
||||
' response.write "categori_label_01 : " & categori_label_01 & "<br/>"
|
||||
' response.write "categori_label_02 : " & categori_label_02 & "<br/>"
|
||||
' response.write "categori_label_03 : " & categori_label_03 & "<br/>"
|
||||
' response.write "categori_label_04 : " & categori_label_04 & "<br/>"
|
||||
' response.write "categori_label_05 : " & categori_label_05 & "<br/>"
|
||||
' response.write "categori_label_06 : " & categori_label_06 & "<br/>"
|
||||
' response.write "categori_label_07 : " & categori_label_07 & "<br/>"
|
||||
' response.write "categori_01 : " & categori_01 & "<br/>"
|
||||
' response.write "categori_02 : " & categori_02 & "<br/>"
|
||||
' response.write "categori_03 : " & categori_03 & "<br/>"
|
||||
' response.write "categori_04 : " & categori_04 & "<br/>"
|
||||
' response.write "categori_05 : " & categori_05 & "<br/>"
|
||||
' response.write "categori_06 : " & categori_06 & "<br/>"
|
||||
' response.write "categori_07 : " & categori_07 & "<br/>"
|
||||
' response.write "categori_cnt : " & categori_cnt & "<br/>"
|
||||
|
||||
' response.write "contac_stat : " & contac_stat & "<br/>"
|
||||
' response.write "ani_num : " & ani_num & "<br/>"
|
||||
' response.write "init_stat : " & init_stat & "<br/>"
|
||||
|
||||
query = "update list set rechecker = '', contactor = 'no' " & _
|
||||
" where kikoan_name like '" & kikoan_name & "' " & _
|
||||
" and (chasu = '원표본') and (chasu_use_chk = 'yes') " & _
|
||||
" and contac_stat = " & init_stat & _
|
||||
" and prj_year = '" & prj_year & "'"
|
||||
|
||||
' response.write "query : " & query & "<br/>"
|
||||
adoconn.execute query
|
||||
%>
|
||||
|
||||
<!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>KRC - 컨택</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 = "contac_sel.asp?command=re_contac_sel";
|
||||
f.submit();
|
||||
}
|
||||
</script>
|
||||
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<form method=post name='frm_main'>
|
||||
|
||||
<input type='hidden' value = '<%=kikoan_id%>' name='kikoan_id'/>
|
||||
<input type='hidden' value = '<%=project_type%>' name='project_type'/>
|
||||
<input type='hidden' value = '<%=contac_stat%>' name='contac_stat'/>
|
||||
<input type='hidden' readonly value='<%=id%>' style='text-align:center' name = 'id'>
|
||||
|
||||
<table width=1000 cellpadding='0' cellspacing='0' border='0' valign='top' >
|
||||
<tr>
|
||||
<td valign='top'>
|
||||
<table width=100% cellpadding='0' cellspacing='0' border='0'>
|
||||
<tr height=5>
|
||||
|
||||
<td background='<%=domain_url%>/capi/images_new/top_bg.jpg'></td>
|
||||
</tr>
|
||||
</table>
|
||||
<table width='100%' cellpadding='3' cellspacing='1' border='1' bgcolor='#DADADA'>
|
||||
|
||||
<!--타이틀 -->
|
||||
<tr bgcolor=Aqua height=30>
|
||||
<td colspan=2 align='center' style="font-size:13pt;font-weight:bold">
|
||||
<%=login_name%> 님은 <%=login_area%> 지역의 <%=login_type%> 입니다.
|
||||
<%if Request.ServerVariables("remote_addr") = "10.10.17.52" or Request.ServerVariables("remote_addr") = "1.235.195.52" then%>
|
||||
(inc_top.asp)
|
||||
<%end if%>
|
||||
</td>
|
||||
</tr>
|
||||
<!--기관명 -->
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td height='1' bgcolor='#dadada'></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td valign='top'>
|
||||
<table width=100% cellpadding='0' cellspacing='0' border='1'>
|
||||
<tr height=30>
|
||||
<td align='center'>로그인 아이디
|
||||
<input type='hidden' value = '<%=login_id%>' name = 'login_id'>
|
||||
</td>
|
||||
<td align='center'>
|
||||
<input type='text' readonly name='login_name' value='<%=login_name%>'> <!-- '로그인 아이디 -->
|
||||
</td>
|
||||
<td align='center'>로그인 유형</td>
|
||||
<td align='center'>
|
||||
<input type='text' readonly name='login_type' value='<%=login_type%>'> <!-- '로그인 타입(관리자, sv,면접원, 컨택원 등) -->
|
||||
</td>
|
||||
<td align='center'>기관명</td>
|
||||
<td align='center'>
|
||||
<input type='text' size=40 readonly name='kikoan_name' value='<%=kikoan_name%>' style='font-weight:bold'> <!-- '쿼터용 기관명 -->
|
||||
</td>
|
||||
<!--
|
||||
<td align='center'>로그인 지역</td>
|
||||
<td align='center'>
|
||||
<input type='text' readonly name='login_area' value='<%=login_area%>'> '로그인 지역(서울,부산, 대구, 광주, 대전, 강원)
|
||||
</td>
|
||||
-->
|
||||
</tr>
|
||||
|
||||
<tr height=30>
|
||||
<td align='center'>자리번호</td>
|
||||
<td align='center'>
|
||||
<input type='text' readonly name = 'client_id' value = '<%=client_id%>'> <!-- '면접원 자리번호 -->
|
||||
</td>
|
||||
<td align='center'>내선번호</td>
|
||||
<td align='center'>
|
||||
<input type='text' readonly name = 'extension' value = '<%=extension%>' > <!-- '면접원 내선번호 -->
|
||||
</td>
|
||||
<td align='center'>발신번호</td>
|
||||
<td align='center'>
|
||||
<input type='text' readonly name='ani_num' value='<%=ani_num%>'> <!-- '발신번호-->
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<!--
|
||||
<tr height=30 align='center'>
|
||||
<td>기관명</td>
|
||||
<td>
|
||||
<input type='text' size=25 readonly name='kikoan_name' value='<%=kikoan_name%>'> '쿼터용 기관명
|
||||
</td>
|
||||
<td>컨택 지역</td>
|
||||
<td>
|
||||
<input type='text' readonly name='contac_area' value='<%=contac_area%>'> '쿼터용 지역
|
||||
</td>
|
||||
<td>쿼터지역</td>
|
||||
<td>
|
||||
<input type='text' size=13 readonly name='quota_area' value='<%=quota_area%>'> '쿼터용 지역
|
||||
<input type='text' size=7 readonly name='categori_cnt' value='<%=categori_cnt%>'> '선택한 카테고리 갯수 지역
|
||||
</td>
|
||||
</tr>
|
||||
-->
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<table width=1000 cellpadding='0' cellspacing='0' border='0'>
|
||||
<tr height=50 align='center' >
|
||||
<td width=100% style='font-size:16pt;font-weight:bold;font-color:yellow;'>
|
||||
<% If init_stat = 0 Then %>
|
||||
미사용
|
||||
<% ElseIf init_stat = 1 Then %>
|
||||
면접예정
|
||||
<% ElseIf init_stat = 2 Then %>
|
||||
부재중
|
||||
<% ElseIf init_stat = 4 Then %>
|
||||
비수신
|
||||
<% End If %>
|
||||
전화번호를 초기화를 적용 하였습니다.
|
||||
</td>
|
||||
</tr>
|
||||
<tr align='center' >
|
||||
<td>
|
||||
<img src='<%=domain_url%>:8888/images/common/btn_search_kikoan.jpg' onclick='contec_sel(<%=key_id%>)' style='cursor:hand;VERTICAL-ALIGN: middle;' title='기관 재선택'>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
|
||||
<%
|
||||
set Adors = nothing
|
||||
|
||||
AdoConn.close
|
||||
set AdoConn = nothing
|
||||
%>
|
||||
|
||||
<!-- #include file = "./inc_bottom_script.asp"-->
|
||||
|
||||
<form action="" name="fm" id="fm">
|
||||
|
||||
<div>
|
||||
<!--
|
||||
<table border=0>
|
||||
<tr align="center" style='cursor:hand;'>
|
||||
|
||||
<td width=150>
|
||||
<img src="<%=domain_url%>:8888/images/makecall/btn_reset.jpg" onclick="fn_login();" title ='로그인(초기화)' style='cursor:hand' >
|
||||
</td>
|
||||
|
||||
<td width=150>
|
||||
<img src="<%=domain_url%>:8888/images/makecall/btn_logout_02.jpg" onclick="fn_logout();" title ='로그 아웃' style='cursor:hand' >
|
||||
</td>
|
||||
<td width=150>
|
||||
<img style='cursor:hand;' src="<%=domain_url%>:8888/images/makecall/btn_dial.jpg" onclick="fn_makeCall();" title ='전화 걸기' >
|
||||
</td>
|
||||
<td width=150>
|
||||
<img style='cursor:hand;' src="<%=domain_url%>:8888/images/makecall/btn_hangup.gif" onclick="fn_dropCall();" title ='전화 끊기' >
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
-->
|
||||
|
||||
<div style="width:980px; margin: 0 auto; border: 0px solid;">
|
||||
<div>
|
||||
<!--b>자리번호</b--> <input type="hidden" readonly name="loginId" id="loginId" onblur="fn_insertVal(this.value);" value="<%=client_id%>">
|
||||
<!--b>패스워드</b> <input type="text" readonly name="loginPw" id="loginPw" onkeypress="if(event.keyCode == 13) fn_login();"> -->
|
||||
<!--b>내선번호</b--> <input type="hidden" readonly name="extension" id="extension" value="<%=extension%>">
|
||||
</div>
|
||||
<br />
|
||||
<div>
|
||||
<input type="hidden" readonly name="ani_num" id="ani_num" value="<%=ani_num%>" title='발신 번호'>
|
||||
<!--응답자 번호--> <input type="hidden" readonly name="dn" id="dn" value="<%=dn%>">
|
||||
</div>
|
||||
</div>
|
||||
<br />
|
||||
|
||||
<div name="logdata" id="logdata" style="width:100%; height:100px;" ></div>
|
||||
|
||||
</div>
|
||||
</form>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
107
contact/testAjax.asp
Normal file
107
contact/testAjax.asp
Normal file
@@ -0,0 +1,107 @@
|
||||
<!-- #include file = "./lib/config.asp" -->
|
||||
<%'
|
||||
Response.CharSet="utf-8"
|
||||
|
||||
Response.codepage="65001"
|
||||
Response.ContentType="text/html;charset=utf-8"
|
||||
|
||||
''///=============
|
||||
''로그인 후 해당 로그인자가 어느 지역 컨택원, 어느지역 면접원, 어느지역 sv인지 확인 후
|
||||
''컨택원의 경우 컨택리스트의 쿼터 지역 선택하기
|
||||
dim i
|
||||
dim Query
|
||||
|
||||
dim login_pwd
|
||||
dim login_name '로그인 아이디
|
||||
dim login_area '로그인 지역
|
||||
dim login_type '로그인 타입(관리자, sv,면접원, 컨택원 등)
|
||||
dim contac_area '쿼터용 기관명
|
||||
dim categori_01, categori_02, categori_03, categori_04, categori_05, categori_06, categori_07 '쿼터용 기관 카테고리(대,중,소)
|
||||
dim ani_num '발신번호
|
||||
dim client_id '면접원 자리번호
|
||||
dim extension '면접원 내선번호
|
||||
dim categori_cnt
|
||||
dim login_id
|
||||
dim quota_area
|
||||
|
||||
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_name = trim(request("kikoan_name"))
|
||||
kikoan_id = trim(request("kikoan_id"))
|
||||
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"))
|
||||
|
||||
categori_name_01 = trim(request("categori_name_01"))
|
||||
categori_name_02 = trim(request("categori_name_02"))
|
||||
categori_name_03 = trim(request("categori_name_03"))
|
||||
categori_name_04 = trim(request("categori_name_04"))
|
||||
categori_name_05 = trim(request("categori_name_05"))
|
||||
categori_name_06 = trim(request("categori_name_06"))
|
||||
categori_name_07 = trim(request("categori_name_07"))
|
||||
|
||||
categori_label_01 = trim(request("categori_label_01"))
|
||||
categori_label_02 = trim(request("categori_label_02"))
|
||||
categori_label_03 = trim(request("categori_label_03"))
|
||||
categori_label_04 = trim(request("categori_label_04"))
|
||||
categori_label_05 = trim(request("categori_label_05"))
|
||||
categori_label_06 = trim(request("categori_label_06"))
|
||||
categori_label_07 = trim(request("categori_label_07"))
|
||||
|
||||
contac_area = trim(request("contac_area"))
|
||||
ani_num = trim(request("ani_num"))
|
||||
categori_cnt = request("categori_cnt")
|
||||
quota_area = request("quota_area")
|
||||
'%>
|
||||
|
||||
|
||||
<table width='100%' cellpadding='3' cellspacing='1' border='1' bgcolor='#DADADA'>
|
||||
<tr bgcolor=DeepSkyBlue>
|
||||
<td colspan=2 align='center' style="font-size:10pt;"><%=login_name%> 님은 <%=login_area%> 지역의 <%=login_type%> 입니다. 컨택할 쿼터 셀 선택</td>
|
||||
</tr>
|
||||
<tr align='center'>
|
||||
<td bgcolor=Aqua style="font-size:10pt;" width=400>프로젝트</td>
|
||||
<td bgcolor=Aqua style="font-size:10pt;" width=500>
|
||||
<input type="hidden" name="kikoan_name" value="<%=kikoan_name%>" />
|
||||
<select id="kikoan_id" name="kikoan_id">
|
||||
<%''컨택 쿼터가 남은 경우의 리스트 가져오기
|
||||
if kikoan_name = "" then%>
|
||||
<OPTION value='선택' selected>선택</option>
|
||||
<%
|
||||
end If
|
||||
|
||||
'query = "select id, kikoan_name from kikoan_list where contac_area like '%" & login_area & "%'"
|
||||
query = "select id, kikoan_name from kikoan_list"
|
||||
adors.open query, adoconn, 1
|
||||
|
||||
dim tmp_kikoan_name_list()
|
||||
redim tmp_kikoan_name_list(adors.recordcount)
|
||||
i = 0
|
||||
|
||||
do while not adors.eof
|
||||
i = i + 1
|
||||
tmp_kikoan_name_list(i) = adors("kikoan_name")
|
||||
|
||||
%>
|
||||
<OPTION value='<%=adors("id")%>' <%if trim(adors("id")) = trim(kikoan_id) then%> selected <%end if%>><%=adors("kikoan_name")%></option>
|
||||
<%
|
||||
|
||||
adors.movenext
|
||||
Loop
|
||||
|
||||
adors.close
|
||||
%>
|
||||
</select>
|
||||
<input type="button" value="다음 분류 선택하기" onclick="categorySelect()"/>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
78
contact/testAjax1.asp
Normal file
78
contact/testAjax1.asp
Normal file
@@ -0,0 +1,78 @@
|
||||
<!-- #include file = "./lib/config.asp" -->
|
||||
<%'
|
||||
Response.CharSet="utf-8"
|
||||
|
||||
Response.codepage="65001"
|
||||
Response.ContentType="text/html;charset=utf-8"
|
||||
|
||||
''///=============
|
||||
''로그인 후 해당 로그인자가 어느 지역 컨택원, 어느지역 면접원, 어느지역 sv인지 확인 후
|
||||
''컨택원의 경우 컨택리스트의 쿼터 지역 선택하기
|
||||
dim i
|
||||
dim Query
|
||||
|
||||
dim login_pwd
|
||||
dim login_name '로그인 아이디
|
||||
dim login_area '로그인 지역
|
||||
dim login_type '로그인 타입(관리자, sv,면접원, 컨택원 등)
|
||||
dim contac_area '쿼터용 기관명
|
||||
dim categori_01, categori_02, categori_03, categori_04, categori_05, categori_06, categori_07 '쿼터용 기관 카테고리(대,중,소)
|
||||
dim ani_num '발신번호
|
||||
dim client_id '면접원 자리번호
|
||||
dim extension '면접원 내선번호
|
||||
dim categori_cnt
|
||||
dim login_id
|
||||
dim quota_area
|
||||
|
||||
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_name = trim(request("kikoan_name"))
|
||||
kikoan_id = trim(request("kikoan_id"))
|
||||
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"))
|
||||
|
||||
categori_name_01 = trim(request("categori_name_01"))
|
||||
categori_name_02 = trim(request("categori_name_02"))
|
||||
categori_name_03 = trim(request("categori_name_03"))
|
||||
categori_name_04 = trim(request("categori_name_04"))
|
||||
categori_name_05 = trim(request("categori_name_05"))
|
||||
categori_name_06 = trim(request("categori_name_06"))
|
||||
categori_name_07 = trim(request("categori_name_07"))
|
||||
|
||||
categori_label_01 = trim(request("categori_label_01"))
|
||||
categori_label_02 = trim(request("categori_label_02"))
|
||||
categori_label_03 = trim(request("categori_label_03"))
|
||||
categori_label_04 = trim(request("categori_label_04"))
|
||||
categori_label_05 = trim(request("categori_label_05"))
|
||||
categori_label_06 = trim(request("categori_label_06"))
|
||||
categori_label_07 = trim(request("categori_label_07"))
|
||||
|
||||
contac_area = trim(request("contac_area"))
|
||||
ani_num = trim(request("ani_num"))
|
||||
categori_cnt = request("categori_cnt")
|
||||
quota_area = request("quota_area")
|
||||
|
||||
'json 데이터
|
||||
'response.write("{ query:'Li', suggestions:['Liberia','Libyan Arab Jamahiriya','Liechtenstein','Lithuania'], data:['LR','LY','LI','LT'] }")
|
||||
|
||||
' Session.CodePage = 65001 '한글
|
||||
Response.CharSet = "utf-8" '한글
|
||||
Response.AddHeader "Pragma","no-cache"
|
||||
Response.AddHeader "cache-control", "no-staff"
|
||||
Response.Expires = -1
|
||||
|
||||
response.write "<option value=''>선택</option>" & "<br>"
|
||||
response.write "<option value='1'>aaa</option>" & "<br>"
|
||||
response.write "<option value='2'>bbb</option>" & "<br>"
|
||||
response.write "<option value='3'>ccc</option>"
|
||||
%>
|
||||
11
contact/web.config
Normal file
11
contact/web.config
Normal file
@@ -0,0 +1,11 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<configuration>
|
||||
<system.webServer>
|
||||
<directoryBrowse enabled="true" />
|
||||
<defaultDocument>
|
||||
<files>
|
||||
<add value="login.asp" />
|
||||
</files>
|
||||
</defaultDocument>
|
||||
</system.webServer>
|
||||
</configuration>
|
||||
Reference in New Issue
Block a user