File name
Commit message
Commit date
File name
Commit message
Commit date
File name
Commit message
Commit date
File name
Commit message
Commit date
File name
Commit message
Commit date
File name
Commit message
Commit date
File name
Commit message
Commit date
<%--
Class Name : EgovQustnrRespondInfoManageStatistics.jsp
Description : 설문지 통계
Modification Information
수정일 수정자 수정내용
------- -------- ---------------------------
2008.03.09 장동한 최초 생성
2011.08.31 JJY 경량환경 버전 생성
author : 공통서비스 개발팀 장동한
since : 2009.03.09
--%>
<%@ page contentType="text/html; charset=utf-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="ui" uri="http://egovframework.gov/ctl/ui"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags" %>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
<%@ taglib prefix="validator" uri="http://www.springmodules.org/tags/commons-validator" %>
<c:set var="ImgUrl" value="/images/egovframework/com/cmm/"/>
<%pageContext.setAttribute("crlf", "\r\n"); %>
<!DOCTYPE html>
<html>
<head>
<title>설문조사 통계</title>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<meta http-equiv="content-language" content="ko">
<link rel="stylesheet" href="<c:url value='/'/>css/post.css" type="text/css" >
<script src="<c:url value='/js/jquery.js' />"></script>
<!-- 취약점위한 외부 js 제거함. cdnjs cloudflare chart js -->
<script src="<c:url value='/js/Chart-2.5.0.min.js' />"></script>
<script type="text/javaScript" language="javascript">
$(document).ready(function(){
window.resizeTo( $('.popview_wrapper').width()+130 , $('.popview_wrapper').height()+50);
<c:forEach items="${Comtnqustnrqesitm}" var="QestmInfo" varStatus="status">
<c:if test="${QestmInfo.qestnTyCode == '1'}">
var iemCn = new Array();
var iemCnCnt = new Array();
<c:forEach items="${Comtnqustnriem}" var="QestmItem" varStatus="status2"><%-- 설문항목 LOOP --%>
<c:if test="${QestmInfo.qestnrTmplatId eq QestmItem.qestnrTmplatId && QestmInfo.qestnrId eq QestmItem.qestnrId && QestmInfo.qestnrQesitmId eq QestmItem.qestnrQesitmId}">
//iemCn.push("${QestmItem.iemCn}");
<c:forEach items="${qestnrStatistic1}" var="QestmStatistic1" varStatus="status3">
<c:if test="${QestmInfo.qestnrTmplatId eq QestmStatistic1.qestnrTmplatId && QestmInfo.qestnrId eq QestmStatistic1.qestnrId && QestmStatistic1.qestnrQesitmId eq QestmItem.qestnrQesitmId && QestmStatistic1.qustnrIemId eq QestmItem.qustnrIemId}">
iemCnCnt.push("${QestmStatistic1.qustnrIemIdCnt}");
iemCn.push("${QestmItem.iemCn} (${QestmStatistic1.qustnrPercent}% / ${QestmStatistic1.qustnrIemIdCnt}명)");
</c:if>
</c:forEach>
</c:if>
</c:forEach>
new Chart(document.getElementById("pie_chart_${status.count}"), {
type: 'pie',
data: {
labels: iemCn,
datasets: [{
label: "Population (millions)",
backgroundColor: ["#3e95cd", "#8e5ea2","#3cba9f","#e8c3b9","#c45850"],
data: iemCnCnt
}]
},
options: {
title: {
display: true,
text: '${QestmInfo.qestnCn}'
}
}
});
</c:if>
</c:forEach>
});
</script>
</head>
<body>
<div class="popview_wrapper">
<p class="vi_head"><c:if test="${preview == 'Y'}">설문조사 결과보기</c:if><button class="popview_close_btn" onclick= "self.close()">닫기</button></p>
<div class="popview_box">
<div class="popview_head">
<p>${Comtnqestnrinfo[0].qestnrSj}<span>
<c:if test="${preview == 'Y'}">
진행상태 : <c:forEach items="${qustnrManageSttusList}" var="result" varStatus="status">
<c:if test="${result.code eq qustnrManageDetail[0].sttus}">
${result.codeNm}
</c:if>
</c:forEach> / 참여인원 : ${qustnrManageDetail[0].rrspnsResultCnt} 명
</c:if>
</span></p>
</div>
<c:forEach items="${Comtnqustnrqesitm}" var="QestmInfo" varStatus="status">
<c:if test="${QestmInfo.qestnTyCode == '1'}">
<canvas id="pie_chart_${status.count}" width="800" height="350"></canvas>
<br/><br/>
</c:if>
</c:forEach>
<div class="popview_bottom">
<c:forEach items="${Comtnqustnrqesitm}" var="QestmInfo" varStatus="status">
<div class="popview_form2">
<div class="popview_fhead">
<p><c:out value="${fn:replace(QestmInfo.qestnCn , crlf , '<br/>')}" escapeXml="false" /></p>
</div>
<div class="popview_fbody">
<c:if test="${QestmInfo.qestnTyCode == '1'}"><%-- 객관식 일때 --%>
<c:forEach items="${Comtnqustnriem}" var="QestmItem" varStatus="status2"><%-- 설문항목 LOOP --%>
<%-- 해당 설문문항 AND 설문문항 체크 --%>
<c:if test="${QestmInfo.qestnrTmplatId eq QestmItem.qestnrTmplatId && QestmInfo.qestnrId eq QestmItem.qestnrId && QestmInfo.qestnrQesitmId eq QestmItem.qestnrQesitmId}">
<ul>
<li><c:out value="${fn:replace(QestmItem.iemCn , crlf , '<br/>')}" escapeXml="false" />
<c:forEach items="${qestnrStatistic1}" var="QestmStatistic1" varStatus="status3">
<c:if test="${QestmInfo.qestnrTmplatId eq QestmStatistic1.qestnrTmplatId && QestmInfo.qestnrId eq QestmStatistic1.qestnrId && QestmStatistic1.qestnrQesitmId eq QestmItem.qestnrQesitmId && QestmStatistic1.qustnrIemId eq QestmItem.qustnrIemId}">
<ul>
<li><progress value="${QestmStatistic1.qustnrPercent}" max="100" style="width:450px;"></progress><span class="view_text">(${QestmStatistic1.qustnrPercent}% / ${QestmStatistic1.qustnrIemIdCnt}명)<span></li>
</ul>
</c:if>
</c:forEach>
</li>
</ul>
</c:if>
</c:forEach>
</c:if>
<%-- 주관식 --%>
<c:if test="${QestmInfo.qestnTyCode == '2'}">
<%-- 설문통계(객관식) LOOP --%>
<c:forEach items="${qestnrStatistic2}" var="QestmStatistic2" varStatus="status4">
<c:if test="${QestmInfo.qestnrTmplatId eq QestmStatistic2.qestnrTmplatId && QestmInfo.qestnrId eq QestmStatistic2.qestnrId && QestmInfo.qestnrQesitmId eq QestmStatistic2.qestnrQesitmId}">
<tr>
<td style="background-color:#E3E3E3;" width="10px" align="right" valign="top"></td>
<td style="background-color:#E3E3E3;" >
<br>
<c:out value="${fn:replace(QestmStatistic2.respondNm , crlf , '<br/>')}" escapeXml="false" /> <c:out value="${fn:replace(QestmStatistic2.respondAnswerCn , crlf , '<br/>')}" escapeXml="false" />
<br>
</td>
</tr>
</c:if>
</c:forEach>
</c:if>
</div>
</div>
</c:forEach>
</div>
</div>
</div>
</body>
</html>