enqueteSumBatchSp_TMPUTIL.html 4.38 KB
Newer Older
Kim Gyeongeun committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 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
#set($title = "アンケート結果速報")
#set( $userInfo = $tools.getUserInfo())
#set( $adminUserInfo = $tools.getAdminUserInfo())
<!DOCTYPE html>
<html lang="ja">
<head>
#if($ContentType)
	<meta charset="Shift_JIS">
#else
	<meta charset="UTF-8">
#end
	<title>$!title</title>
	<meta name="viewport" content="width=device-width, initial-scale=1,maximum-scale=1">
	<link rel="stylesheet" href="http://code.jquery.com/mobile/1.1.0/jquery.mobile-1.1.0.min.css" />
	<link rel="stylesheet" href="/em/css/smartphone.css" />
	<script src="http://code.jquery.com/jquery-1.6.4.min.js"></script>
<!--[if !IE]><!-->
	<script type="text/javascript" src="http://code.jquery.com/mobile/1.0/jquery.mobile-1.0.min.js"></script>
<!--<![endif]-->
</head>

<body>
<div data-role="page" id="enquete" data-theme="f">
<center>
<!-- header -->

<table width="100%"  cellspacing="0" cellpadding="0"><!-- TABLE1 -->
	<tr>
		<TD>#parse( "/common/header_sp.vm" )</TD>
	</tr>
	<tr>
		<TD>
			<table width="100%" border="0" cellspacing="0" cellpadding="0"><!-- TABLE2 -->
				<tr>

				    <td width="100%" 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="90%">
          								<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
							  <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="90%">
						        <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="90%" 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.round($math.mul($math.div($!enqueteResultSum.cnt  ,$!totalCnt), 100)))
						        <tr>
						          <td class="listcts" width="40%" align="left"><font color="#666666">$!{enqueteResultSum.answer}</font></td>
						          <td class="listcts" width="20%" align="right"><font color="#666666">$!{enqueteResultSum.cnt}件</font></td>
						          <td class="listcts" width="10%" align="right"><font color="#666666">$!{percent}%</font></td>
						          <td class="listcts" width="30%" align="left">
						            <table border="0" cellpadding="1" cellspacing="1" width="$!percent%" >
						              <tr>
						                <td align="left" height="8" #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>

			    </table><!-- TABLE 3 END -->
			    </td>
			</tr>
		</table><!-- TABLE2 END -->
	</TD>
</tr>
<tr>
	<TD>#parse( "/common/footer_sp_sum.vm" )</TD>
</tr>
</table><!-- TABLE1 END -->
</center>
</div>
</body>
</html>