최초커밋
This commit is contained in:
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>
|
||||
Reference in New Issue
Block a user