enqueteSumBatchMb.html 8.84 KB
Newer Older
Kim Gyeongeun committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
#set($title = "アンケート結果速報")
<!-- preHeader -->
#parse( "/WEB-INF/view/common/preHeader.vm" )
##<!-- JAVASCRIPTはここに記載 -->
<body bgcolor="#B3C9E1" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<center>
<!-- header -->


<table width="1024"  cellspacing="0" cellpadding="0">
	<tr> 
		<TD>#parse( "/WEB-INF/view/common/header.vm" )</TD>
	</tr>
	<tr>
		<TD>
			<table width="1024" border="0" cellspacing="0" cellpadding="0">
				<tr>
18
			   <td width="25" ><img src="/em/images/spacer.gif" width="25" height="1" border="0"></td>
Kim Gyeongeun committed
19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199
				    <td width="1024" bgcolor="#FFFFFF">
				    <table width="100%" border="0" cellspacing="5" cellpadding="0">
					    <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
      
      <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>

	#foreach($age in $enqueteSumBatchForm.ageList)
	    ##パーセント計算
		#set($percent = $math.toInteger($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>

		#set($manPercent    = $math.toInteger($math.mul($math.div($!enqueteSumBatchForm.genderInfo.manCnt  ,$!enqueteSumBatchForm.genderInfo.totalCnt), 100)))
		#set($womanPercent    = $math.toInteger($math.mul($math.div($!enqueteSumBatchForm.genderInfo.womanCnt,$!enqueteSumBatchForm.genderInfo.totalCnt), 100)))
        <!-- 男性 -->
        <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">$!{manPercent}%</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($manPercent,6)" #if($math.mul($manPercent,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">$!{womanPercent}%</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($womanPercent,6)" #if($math.mul($womanPercent,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">$!{womanPercent}%</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($womanPercent,6)" bgcolor="#0000ff"></td>
              </tr>
            </table>
          </td>
        </tr>
      ##end
      </table>
      <BR>
      
      #foreach($enqueteResultSumList  in $!enqueteSumBatchForm.enqueteResultSumList)
      #set($totalCnt = 0 )
      	##設問別totalCntを求める
      	#foreach($enqueteResultSum in $enqueteResultSumList)
      		#set($totalCnt = $totalCnt + $enqueteResultSum.cnt)	
      	#end
      	
      	#set($preQuestionNo = "")
      	#foreach($enqueteResultSum in $enqueteResultSumList)
      	##$preQuestionNo :: $enqueteResultSum.questionNo
      		#if($preQuestionNo != $enqueteResultSum.questionNo)
			  <table width="950">
		        <tr>
		          <td class=""><font color="#000099">設問: $!{enqueteResultSum.questionName} </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>
	        #end
			
			#set($percent    = $math.toInteger($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
      
    </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>
				    </td>
200
			   <td width="25" ><img src="/em/images/spacer.gif" width="25" height="1" border="0"></td>
Kim Gyeongeun committed
201 202 203 204 205 206 207 208 209 210 211 212
				</tr>
			</table>
		</TD>
	</tr>
	<tr>
		<TD>#parse( "/WEB-INF/view/common/footer.vm" )</TD>		
	</tr>
</table>

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