1033 lines
36 KiB
Plaintext
1033 lines
36 KiB
Plaintext
<!-- #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"))
|
|
research_comp_name = trim(request("research_comp_name"))
|
|
|
|
categori_check = trim(request("categori_check"))
|
|
If categori_check = "" Then
|
|
categori_check = false
|
|
End if
|
|
|
|
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_check%>' name='categori_check' id='categori_check'/>
|
|
<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'/>
|
|
<input type='hidden' value= '<%=research_comp_name%>' name='research_comp_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%>
|
|
(contac_sel.asp)
|
|
<%end if%>
|
|
</td>
|
|
</tr>
|
|
|
|
<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>
|
|
|
|
<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%> 지역의 <%=research_comp_name%> 입니다. 컨택할 쿼터 셀 선택</td>
|
|
</tr>
|
|
<!--프로젝트명 -->
|
|
<tr >
|
|
<td bgcolor=Aqua style="font-size:10pt;" width=140 align="center">프로젝트</td>
|
|
<td bgcolor=Aqua style="font-size:10pt;" width=700>
|
|
<input type="hidden" name="kikoan_name" value="<%=kikoan_name%>" />
|
|
<select id="kikoan_id" name="kikoan_id" onchange="subit('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 & "%'"
|
|
query = "select id, kikoan_name from kikoan_list order by id desc"
|
|
adors.open query, adoconn, 1
|
|
|
|
dim tmp_kikoan_name_list()
|
|
redim tmp_kikoan_name_list(adors.recordcount)
|
|
i = 0
|
|
if research_comp_name = "코리아서베이" then
|
|
%>
|
|
<OPTION value='96' selected >공공기관고객만족도조사-한국과학기술원-기술과가치</option>
|
|
<%
|
|
elseif research_comp_name = "MS리서치" then
|
|
%>
|
|
<OPTION value='98' selected >공공기관고객만족도조사-교통안전공단-기술과가치</option>
|
|
<%
|
|
else
|
|
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
|
|
end if
|
|
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:160px" >분류1(<input type="text" name="categori_name_01" style="width: 100px;" value="<%=adors("category_name")%>" readonly/>)</td>
|
|
<td bgcolor=Aqua style="font-size:10pt;" width=600>
|
|
<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
|
|
%>
|
|
</select>
|
|
</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:160px" >분류2(<input type="text" name="categori_name_02" style="width: 100px;" value="<%=adors("category_name")%>" readonly/>)</td>
|
|
<td bgcolor=Aqua style="font-size:10pt;" width=600>
|
|
<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
|
|
%>
|
|
</select>
|
|
</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:160px" >분류3(<input type="text" name="categori_name_03" style="width: 100px;" value="<%=adors("category_name")%>" readonly/>)</td>
|
|
<td bgcolor=Aqua style="font-size:10pt;" width=600>
|
|
<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
|
|
%>
|
|
</select>
|
|
</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:160px" >분류4(<input type="text" name="categori_name_04" style="width: 100px;" value="<%=adors("category_name")%>" readonly/>)</td>
|
|
<td bgcolor=Aqua style="font-size:10pt;" width=600>
|
|
<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
|
|
%>
|
|
</select>
|
|
</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:160px" >분류5(<input type="text" name="categori_name_05" style="width: 100px;" value="<%=adors("category_name")%>" readonly/>)</td>
|
|
<td bgcolor=Aqua style="font-size:10pt;" width=600>
|
|
<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
|
|
%>
|
|
</select>
|
|
</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:160px" >분류6(<input type="text" name="categori_name_06" style="width: 100px;" value="<%=adors("category_name")%>" readonly/>)</td>
|
|
<td bgcolor=Aqua style="font-size:10pt;" width=600>
|
|
<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
|
|
%>
|
|
</select>
|
|
</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:160px" >분류7(<input type="text" name="categori_name_07" style="width: 100px;" value="<%=adors("category_name")%>" readonly/>)</td>
|
|
<td bgcolor=Aqua style="font-size:10pt;" width=600>
|
|
<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
|
|
%>
|
|
</select>
|
|
</td>
|
|
</tr>
|
|
<%
|
|
End if
|
|
%>
|
|
<!--categori_END -->
|
|
|
|
|
|
<!--실사 지역 --> <% If kikoan_id <> "" Then %>
|
|
<tr align='center'>
|
|
<td bgcolor=Aqua style="font-size:10pt; width:160px" >실사지역</td>
|
|
<td bgcolor=Aqua style="font-size:10pt;" width=600>
|
|
<select id='comp_area' name="comp_area">
|
|
<OPTION value='' selected>선택</option>
|
|
<%
|
|
query = "SELECT comp_area FROM list where kikoan_id = '" & kikoan_id & "' group by comp_area order by comp_area"
|
|
adors.open query, adoconn, 1
|
|
|
|
do while not adors.eof
|
|
%>
|
|
<OPTION value='<%=adors("comp_area")%>' <%if trim(adors("comp_area")) = trim(comp_area) then%> selected <%end if%>><%=adors("comp_area")%></option>
|
|
<%
|
|
adors.movenext
|
|
Loop
|
|
|
|
adors.close
|
|
%>
|
|
</select>
|
|
</td>
|
|
</tr>
|
|
<% End If %>
|
|
</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='left' 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 width='50' align='center'>
|
|
<span stype="font-weight:bold;">차수 : </span>
|
|
</td>
|
|
<td width='200' align='center' bgcolor='#FFFFFF'>
|
|
<input type="radio" value="원표본" name="chasu" style="border: 0px;" checked/>원표본
|
|
|
|
<input type="radio" value="2차표본" name="chasu"style="border: 0px;" />2차(기타)
|
|
</td>
|
|
<td align='center' >
|
|
<input type = button value='전화걸기 화면으로' onclick='tel_dial();'
|
|
style='cursor:hand; font-weight:bold; border-style:outset; width: 140px; 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>
|
|
</table>
|
|
</td>
|
|
</tr>
|
|
|
|
<%
|
|
If login_type = "관리자" Then
|
|
%>
|
|
<tr>
|
|
<td bgcolor='#FFFFFF'>
|
|
<table width='100%' cellpadding='3' cellspacing='1' border='1' bgcolor='#DADADA'>
|
|
<tr>
|
|
<td width='83' align='center'>
|
|
<span stype="font-weight:bold;">리스트 초기화 : </span>
|
|
</td>
|
|
<td width='650' align='left' 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='right' 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 == "선택" || 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.categori_check.value = true;
|
|
f.action = "contact_select.asp";
|
|
f.submit();
|
|
}
|
|
}
|
|
|
|
function subit(opt)
|
|
{
|
|
var f = document.frm_main;
|
|
|
|
f.categori_cnt.value = opt;
|
|
//f.kikoan_id.value = f.kikoan_id.value;
|
|
if(opt != '0'){
|
|
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 = "contact_select.asp";
|
|
f.submit();
|
|
|
|
}
|
|
|
|
function search(id)
|
|
{ //프로젝트 재선택 부터
|
|
var f = document.frm_main;
|
|
f.action = "contact_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 == "선택" || f.kikoan_id.value == "")
|
|
{
|
|
alert("프로젝트를 선택하세요");
|
|
f.kikoan_id.focus();
|
|
return false;
|
|
}
|
|
|
|
// if (f.login_area.value == "서울")
|
|
// {
|
|
f.action = "contact_tel_dial.asp";
|
|
// }
|
|
// else
|
|
// {
|
|
// f.action = "inc_list.asp";
|
|
// }
|
|
/*
|
|
if (eval(categori_cnt) >= 1)
|
|
{
|
|
if (f.categori_01.value == "분류1" )
|
|
{
|
|
alert("분류1을 선택하세요");
|
|
f.categori_01.focus();
|
|
return false;
|
|
}
|
|
}
|
|
|
|
if (eval(categori_cnt) >= 2)
|
|
{
|
|
if (f.categori_02.value == "분류2" )
|
|
{
|
|
alert("분류2를 선택하세요");
|
|
f.categori_02.focus();
|
|
return false;
|
|
}
|
|
}
|
|
|
|
if (eval(categori_cnt) >= 3)
|
|
{
|
|
if (f.categori_03.value == "분류3" )
|
|
{
|
|
alert("분류3를 선택하세요");
|
|
f.categori_03.focus();
|
|
return false;
|
|
}
|
|
}
|
|
|
|
if (eval(categori_cnt) >= 4)
|
|
{
|
|
if (f.categori_04.value == "분류4" )
|
|
{
|
|
alert("분류4를 선택하세요");
|
|
f.categori_04.focus();
|
|
return false;
|
|
}
|
|
}
|
|
|
|
if (eval(categori_cnt) >= 5)
|
|
{
|
|
if (f.categori_05.value == "분류5" )
|
|
{
|
|
alert("분류5를 선택하세요");
|
|
f.categori_05.focus();
|
|
return false;
|
|
}
|
|
}
|
|
|
|
if (eval(categori_cnt) >= 6)
|
|
{
|
|
if (f.categori_06.value == "분류6" )
|
|
{
|
|
alert("분류6을 선택하세요");
|
|
f.categori_06.focus();
|
|
return false;
|
|
}
|
|
}
|
|
|
|
if (eval(categori_cnt) >= 7)
|
|
{
|
|
if (f.categori_07.value == "분류7" )
|
|
{
|
|
alert("분류7을 선택하세요");
|
|
f.categori_07.focus();
|
|
return false;
|
|
}
|
|
}
|
|
|
|
if (f.quota_area.value == "쿼터지역" )
|
|
{
|
|
alert("쿼터지역을 선택하세요");
|
|
f.quota_area.focus();
|
|
return false;
|
|
}
|
|
|
|
if (eval(categori_cnt) >= 1)
|
|
{
|
|
if (f.contac_area.value == "지역 Error" )
|
|
{
|
|
alert("리스트가 없습니다. 다른 기관 또는 분류를 선택하세요");
|
|
f.contac_area.focus();
|
|
return false;
|
|
}
|
|
|
|
if (f.login_area.value == "서울")
|
|
{
|
|
f.action = "tel_dial.asp";
|
|
}
|
|
else
|
|
{
|
|
f.action = "inc_list.asp";
|
|
}
|
|
f.submit();
|
|
}
|
|
else
|
|
{
|
|
alert("분류를 최소 1개 이상 선택하세요");
|
|
return false;
|
|
}
|
|
*/
|
|
|
|
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 == "선택" || 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 = "contact_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> |