#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>
			   <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">
					    <tr>
					        <td align="right" width="155" valign="top">#parse( "/WEB-INF/view/common/menu.vm" )</td>
					        <td align="left" width="10" background="/em/images/cts_bar.gif"><img src="/em/images/spacer.gif" border="0"></td>
					        <td align="center" valign="top">
##CONTENT START 各ページコンテンツ
<!-- 管理用ヘッダー //-->
<!-- Contents Title Table Start -->
		<table width="780" border="0" cellspacing="0" cellpadding="0">
		<tr> 
			<td class="ctsTitle" height="24">アンケート ( 回答 → <font color="red">[確認]</font> → 完了 )</td>
		</tr>
		<tr> 
			<td align="center"><img src="/em/images/spacer.gif" width="1" height="10" border="0"></td>
		</tr>
	<tr> 
		<td align="center"> 
			<table width="780" border="0" cellspacing="0" cellpadding="0">
				<tr>
				<!-- 
					<td width="6" background="/em/images/how_topbg.gif"><img src="/em/images/how_toplft.gif" width="6" height="20" border="0"></td>
					<td background="/em/images/how_topbg.gif" class="txt12wh">
					
					$!enqueteForm.enquete.enqueteName ( 
					$!tools.addSlashDate( $!enqueteForm.enquete.startDate )
							 ~ $!tools.addSlashDate($!enqueteForm.enquete.endDate) )</td>
					<td width="6" align="right" background="/em/images/how_topbg.gif"><img src="/em/images/how_toprgt.gif" width="6" height="20"></td>
				-->
					<td width="6" background="/em/images/how_topbg.gif"><img src="/em/images/how_toplft.gif" width="6" height="20" border="0"></td>
					<td style="border: 1px #0000ff solid;" class="txt12wh">
					
					$!enqueteForm.enquete.enqueteName ( 
					$!tools.addSlashDate( $!enqueteForm.enquete.startDate )
							 ~ $!tools.addSlashDate($!enqueteForm.enquete.endDate) )</td>
					<td width="6" align="right" background="/em/images/how_topbg.gif"><img src="/em/images/how_toprgt.gif" width="6" height="20"></td>
				</tr>
				<tr>
					<td background="/em/images/how_lft.gif"><img src="/em/images/spacer.gif" width="6" height="6" border="0"></td>
					<td align="center"> 
						<table width="100%" border="0" cellspacing="3" cellpadding="0">
							<tr> 
								<td><DIV ALIGN="left">
									$!enqueteForm.enquete.header
									</div>
								</td>
							</tr>
						</table>
					</td>
					<td background="/em/images/how_rgt.gif"><img src="/em/images/spacer.gif" width="6" height="6" border="0"></td>
				</tr>
				<tr>
					<td background="/em/images/how_btmbg.gif"><img src="/em/images/how_btmlft.gif" width="6" height="6" border="0"></td>
					<td background="/em/images/how_btmbg.gif"><img src="/em/images/spacer.gif" width="6" height="6" border="0"></td>
					<td background="/em/images/how_btmbg.gif"><img src="/em/images/how_btmrgt.gif" width="6" height="6" border="0"></td>
				</tr>
			</table>
			<BR>
		
			<table width="780" border="0" cellspacing="0" cellpadding="0">
				<tr>
				    <td width="5"><img src="/em/images/cts_cmt01.gif" width="5" height="23" border="0"></td>
				    <td width="740" class="attention">ご回答にあたっての注意</td>
				    <td width="5" align="right"><img src="/em/images/cts_cmt03.gif" width="5" height="23" border="0"></td>
				</tr>
				<tr>
				    <td background="/em/images/cts_cmt02_bg.gif"><img src="/em/images/spacer.gif" width="5" height="5" border="0"></td>
				    <td>「<font class="listpoint" >*</font>」印の項目は必ず回答してください。(※半角カナは使用しないでください)
				    <td background="/em/images/cts_cmt03_bg.gif"><img src="/em/images/spacer.gif" width="5" height="5" border="0"></td>
				</tr>
				<tr>
				    <td><img src="/em/images/cts_cmt02.gif" width="5" height="5" border="0"></td>
				    <td background="/em/images/cts_cmt04_bg.gif"><img src="/em/images/spacer.gif" width="1" height="5" border="0"></td>
				    <td><img src="/em/images/cts_cmt04.gif" width="5" height="5" border="0"></td>
				</tr>
			</table>
		</td>
	</tr>
	<tr> 
		<td><img src="/em/images/spacer.gif" width="1" height="5" border="0"></td>
	</tr>
	</table>

<!-- ここからアンケート回答部分 //-->
<!-- Category Table 01 Start -->
		<table width="780" border="0" cellpadding="2" cellspacing="1" bgcolor="#004080">  

			####質問開始######
##$questionFor開始
#set($questionIndex = 0)
			#foreach($question  in  $!enqueteForm.questionList)
			#set($questionIndex = $velocityCount)
				<tr>
					<td class="listmenu" colspan="2">
					<!-- 質問NO //-->
					Q$!question.questionNo
					<!-- 必須有無 //-->
					#if($!question.requiredFlg == "1")
					<font color="red">&nbsp;*&nbsp;</font>
					#end
					<!-- 質問項目 //-->
					$!question.questionName <BR> $!question.question
					<!-- 質問内容 //-->
					<BR>&nbsp;
					<!-- 設問間タグ //-->
					&nbsp;
					</td>
				</tr>
				<tr>
					<td class="listcts" colspan="2">
							<table width="100%">
								##<!-- 質問の表示列項目数を求める -->
								#if($!question.colNum)
									#set($questionColNum = $!question.colNum)
								#else
									#set($questionColNum = 1)
								#end

								#set($tdWidthPercent = (100/$questionColNum))

								##<!-- ○○番目カラム変数 -->
								#set($colNum = 0)

								#set($answerCount = 0)

								#foreach($answer in $question.answerList)

								 	
									#set($answerCount = $answerCount + 1)
									<tr>
										<td>
										#set($answerIdValueName = "questionList[$questionIndex].answerList[$velocityCount].answerIdValue")
										#set($answerIdValueRadioName = "questionList[$questionIndex].answerList[0].answerIdValue")
										#set($answerValue = "questionList[$questionIndex].answerList[$velocityCount].answerValue")
												<!-- 1:RADIO answer.answerNo値を値にする。-->
												#if($!question.controlId == "0")
													#if($!answer.freeTextFlg >= 1)
													   $!{answer.answer}:$escape.html($!{answer.answerValue})
													#else
														$!escape.html($!answer.answer) <!-- <BR>
														$escape.html($!answer.answerIdValue) -->
													#end
												##<!-- 1:CHECKBOX answer.answerNo値を値にする。-->
												#elseif($!question.controlId == "1")
													#if($!answer.freeTextFlg >= 1)
														$!{answer.answer}:$escape.html($!{answer.answerValue})
													#else
														$!escape.html($answer.answer)<!-- <BR>
														$answer.answerIdValue -->
													#end
											    ##<!-- 2:SELECTMENU answer.answerNo値を値にする。-->
												#elseif($!question.controlId == "2" )
													$escape.html($answer.answer)
												##<!-- 5:日付入力 ユーザー入力値を値にする。-->
												#elseif($!question.controlId == 5)
													$answer.answerValue
												#elseif($!question.controlId == 6)
												$!escape.html($!enqueteForm.organizationMap.get(${answer.answerIdValue}))
												##<!-- 3:TEXTAREA ユーザー入力値を値にする。-->
												##<!-- 4:TEXTFIELD ユーザー入力値を値にする。-->
												#else
													$!tools.newLineToBr($escape.html($answer.answerIdValue))
												##
												#end
										</td>
									<tr>
									
								#end

								##<!-- 回答が一つもなかった場合 -->
								#if($answerCount == 0)
									#if($tools.getMsg("$!question.enqueteId.toString(),$!question.questionId.toString()"))
									<tr>
										<td>
											<font class="error">$!tools.getMsg("$!question.enqueteId.toString(),$!question.questionId.toString()")</font>
										</td>
										<tr>
									#else
									<tr>
										<td>
											&nbsp;
										</td>
										<tr>
									#end
								#end
								</table>
						</td>
					</tr>
			#end
			####質問終了######
		</table>

							
						
##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>
			   <td width="25" background="/em/images/shadowrgt2.jpg"><img src="/em/images/spacer.gif" width="25" height="1" border="0"></td>
				</tr>
			</table>
		</TD>
	</tr>
	<tr>
		<TD>#parse( "/WEB-INF/view/common/footer.vm" )</TD>		
	</tr>
</table>

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