#set($title = "アンケート結果速報")
<!-- preHeader -->
#parse( "/common/preHeader.vm" )
##<!-- JAVASCRIPTはここに記載 -->
<body bgcolor="#B3C9E1" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<center>
<!-- header -->


<table width="1024"  cellspacing="0" cellpadding="0"><!-- TABLE1 -->
	<tr> 
		<TD>#parse( "/common/header.vm" )</TD>
	</tr>
	<tr>
		<TD>
			<table width="1024" border="0" cellspacing="0" cellpadding="0"><!-- TABLE2 -->
				<tr>
			   		<td width="25" background="/em/images/shadowlft2.jpg"><img src="/em/images/spacer.gif" width="25" height="1" border="0"></td>
				    <td width="1024" bgcolor="#FFFFFF">
				    	<table width="100%" border="0" cellspacing="5" cellpadding="0"><!-- TABLE3 -->
					    	<tr>
					        	<td align="center" bgcolor="#FFFFFF" align="center" >
									##CONTENT START 各ページコンテンツ
									<!-- Contents Title Table Start -->
    								<BR>
        							<font color="#666666" size="4"><B>$!{enqueteSumBatchForm.enquete.enqueteName}</B></font>
    								<BR>
        							<table width="950">
          								<tr><td align="right">${date.format("yyyy年MM月dd日HH:mm",$date.getDate())}  現在</td></tr>
        							</table>
								    #set($totalCnt = 0 )
								    #foreach(${age} in $enqueteSumBatchForm.ageList)
								    	#set($totalCnt = $totalCnt + $age.cnt)
								    #end
								    
      								#if($enqueteSumBatchForm.enquete.enqueteType != 4)
							        <table width="950">
							          <tr>
							            <td class=""><font color="#000099">設問: 年代</font></td>
							            <td nowrap class="" align="right" width="20%"><font color="#000099">有効回答者数: ${totalCnt}名</font></td>
							          </tr>
							        </table>

									<table width="950" border="0" cellspacing="0" cellpadding="2" bgcolor="#FFFFFF">
										<tr>
											<td class="listmenu" align="left"><font color="#FFA500">選択項目</font></td>
											<td class="listmenu" align="right"><font color="#FFA500">回答件数</font></td>
											<td class="listmenu" align="right"><font color="#FFA500">割合</font></td>
											<td class="listmenu" >&nbsp;</th>
										</tr>
									#set($percent = 0)
									#foreach($age in $enqueteSumBatchForm.ageList)
									    ##パーセント計算
									    #set($percent = $math.round( $math.mul( $math.div( $age.cnt , $totalCnt ) , 100) ) )
										<tr>
											<td class="listcts" width="170" align="left"><font color="#666666"> $!{age.sai10} </font></td>
											<td class="listcts" width="100" align="right"><font color="#666666">$!{age.cnt}件</font></td>
											<td class="listcts" width="80" align="right"><font color="#666666"> $!{percent}%</font></td>
											<td class="listcts" width="600" align="left">
		          				            	<table border="0" cellpadding="1" cellspacing="1">
									              <tr>
									                <td align="left" height="8" width="${math.mul(${percent},6)}"  #if($math.mul($percent,6) != 0 ) bgcolor="#0000ff"  #end ></td>
									              </tr>
									            </table>
											</td>
										</tr>
									    #end
							      </table>
								  <BR>
								<table width="950">
								  <tr>
								    <td class=""><font color="#000099">設問: 性別</font></td>
								    <td nowrap class="" align="right" width="20%"><font color="#000099">有効回答者数: $!{enqueteSumBatchForm.genderInfo.totalCnt}名</font></td>
								  </tr>
								</table>

						      <table width="950" border="0" cellspacing="0" cellpadding="2" bgcolor="#FFFFFF">
						        <tr>
						          <td class="listmenu" align="left"><font color="#FFA500">選択項目</font></td>
						          <td class="listmenu" align="right"><font color="#FFA500">回答件数</font></td>
						          <td class="listmenu" align="right"><font color="#FFA500">割合</font></td>
						          <td class="listmenu" >&nbsp;</th>
						        </tr>
								<!-- 男性 -->
								<tr>
								  <td class="listcts" width="170" align="left"><font color="#666666">男性</font></td>
								  <td class="listcts" width="100" align="right"><font color="#666666">$!{enqueteSumBatchForm.genderInfo.manCnt}件</font></td>
								  <td class="listcts" width="80" align="right"><font color="#666666">$!{enqueteSumBatchForm.genderInfo.manCntPer}%</font></td>
								  <td class="listcts" width="600" align="left">
								    <table border="0" cellpadding="1" cellspacing="1">
								      <tr>
								        <td align="left" height="8" width="$math.mul($!{enqueteSumBatchForm.genderInfo.manCntPer},6)" #if($math.mul($!{enqueteSumBatchForm.genderInfo.manCntPer},6) != 0 ) bgcolor="#0000ff"  #end></td>
								      </tr>
								    </table>
								  </td>
								</tr>
								<!-- 女性 -->
							    <tr>
								    <td class="listcts" width="170" align="left"><font color="#666666">女性</font></td>
								    <td class="listcts" width="100" align="right"><font color="#666666">$!{enqueteSumBatchForm.genderInfo.womanCnt}件</font></td>
								    <td class="listcts" width="80" align="right"><font color="#666666">$!{enqueteSumBatchForm.genderInfo.womanCntPer}%</font></td>
								    <td class="listcts" width="600" align="left">
								      <table border="0" cellpadding="1" cellspacing="1">
								        <tr>
								          <td align="left" height="8" width="$math.mul($!{enqueteSumBatchForm.genderInfo.womanCntPer},6)" #if($math.mul($!{enqueteSumBatchForm.genderInfo.womanCntPer},6) != 0 ) bgcolor="#0000ff"  #end></td>
								        </tr>
								      </table>
								    </td>
							  </tr>
							##if($enqueteSumBatchForm.genderInfo.whoCnt > 0)
							  <!-- 不明 -->
						         <tr>
						          <td class="listcts" width="170" align="left"><font color="#666666">不明</font></td>
						          <td class="listcts" width="100" align="right"><font color="#666666">$!{enqueteSumBatchForm.genderInfo.whoCnt}件</font></td>
						          <td class="listcts" width="80" align="right"><font color="#666666">$!{enqueteSumBatchForm.genderInfo.whoCntPer}%</font></td>
						          <td class="listcts" width="600" align="left">
						            <table border="0" cellpadding="1" cellspacing="1">
						              <tr>
						                <td align="left" height="8" width="$math.mul($!{enqueteSumBatchForm.genderInfo.whoCntPer},6)" #if($math.mul($!{enqueteSumBatchForm.genderInfo.whoCntPer},6) != 0 ) bgcolor="#0000ff"  #end></td>
						              </tr>
						            </table>
						          </td>
						         </tr>
						      ##end
							  </table>
							#end <!-- WEBアンケートの場合 年齢、性別出さない -->
							  <BR>
							  <!-- 開始 -->
						  #if($enqueteSumBatchForm.enqueteResultSumList)
							      <!-- ERROR START -->
						      #foreach($enqueteResultSumList  in $!enqueteSumBatchForm.enqueteResultSumList) ##
							      #set($preQuestionNo = "")
							      #foreach($enqueteResultSum in $enqueteResultSumList)
							      	#set($totalCnt = $enqueteSumBatchForm.totalCountMap.get($enqueteResultSum.questionId))
							      	#if($preQuestionNo != $enqueteResultSum.questionNo)
								  <table width="950">
								        <tr>
									          <td class=""><font color="#000099">設問: $!{enqueteResultSum.questionName} <BR> $!{enqueteResultSum.question}  </font></td>
									          <td nowrap class="" align="right" width="20%"><font color="#000099">有効回答者数: ${totalCnt}名</font></td>
								        </tr>
							      </table>
										      
								  <table width="950" border="0" cellspacing="0" cellpadding="2" bgcolor="#FFFFFF">
								      <tr>
									        <td class="listmenu" align="left"><font color="#FFA500">選択項目</font></td>
									        <td class="listmenu" align="right"><font color="#FFA500">回答件数</font></td>
									        <td class="listmenu" align="right"><font color="#FFA500">割合</font></td>
									        <td class="listmenu" >&nbsp;</td>
								      </tr>
						        #end
										
								#set($percent    = $math.round($math.mul($math.div($!enqueteResultSum.cnt  ,$!totalCnt), 100)))	      
						        <tr>
						          <td class="listcts" width="170" align="left"><font color="#666666">$!{enqueteResultSum.answer}</font></td>
						          <td class="listcts" width="100" align="right"><font color="#666666">$!{enqueteResultSum.cnt}件</font></td>
						          <td class="listcts" width="80" align="right"><font color="#666666">$!{percent}%</font></td>
						          <td class="listcts" width="600" align="left">
						            <table border="0" cellpadding="1" cellspacing="1">
						              <tr>
						                <td align="left" height="8" width="$!math.mul($!{percent},6)"  #if($!math.mul($percent,6) != 0)  bgcolor="#0000ff" #end ></td>
						              </tr>
						            </table>
						          </td>
						        </tr>
						    	  #set($preQuestionNo = $enqueteResultSum.questionNo)
					      	#end
					      	</table>
					      <BR>	
					     #end
					     <!-- ERROR END -->
					   #end  
					   <!-- 終了 -->
					    </td>
				     </tr>
				    <tr>
					    <td>
							##CONTENT END 各ページコンテンツ
					        <!-- Button Table Start 点線-->
							<table width="780" border="0" cellspacing="5" cellpadding="0">
								<tr>
									<td background="/em/images/cts_btnbar.gif"><img src="/em/images/spacer.gif" width="1" height="10" border="0"></td>
								</tr>
							</table>
							<!-- Button Table End -->
				        </td>
				    </tr>					    
			    </table><!-- TABLE 3 END -->
			    </td>
		   		<td width="25" background="/em/images/shadowrgt2.jpg"><img src="/em/images/spacer.gif" width="25" height="1" border="0"></td>
			</tr>
		</table><!-- TABLE2 END -->
	</TD>
</tr>
<tr>
	<TD>#parse( "/common/footer.vm" )</TD>		
</tr>
</table><!-- TABLE1 END -->

</center>
</body>
</html>