48 lines
1.9 KiB
Plaintext
48 lines
1.9 KiB
Plaintext
<!-- #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
|
|
|
|
%> |