%'
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 "
" & kikoan_id & ".."
adors.open query, adoconn, 1
'%>