<div class="bg_blue">
$tools.getMsg("errorheader")
			####質問開始######
##$questionFor開始
#set($questionIndex = 0)
			#foreach($question  in  $!enqueteForm.questionList)
			#set($questionIndex = $velocityCount)
					<!-- 質問NO //-->
					Q$!question.questionNo
					<!-- 必須有無 //-->
					#if($!question.requiredFlg == "1")
					<font color="red">&nbsp;*&nbsp;</font>
					#end
					<!-- 質問項目 //-->
					$!question.questionName 
					#if($question.question != "")
						<BR> $!question.question
					#end
					
							<table width="100%" border="0">
								<tr>

								##<!-- 質問の表示列項目数を求める -->
								#if($!question.colNum)
									#set($questionColNum = $!question.colNum)
								#else
									#set($questionColNum = 1)
								#end

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

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

						##<!-- 2:SELECTMENU answer.answerNo値を値にする。-->
							#if($!question.controlId == "2")
							<td width="$tdWidthPercent%" valign = "top" >
								#set($answerIdValueName = "questionList[$questionIndex].answerList[0].answerIdValue")
								 <select name="$answerIdValueName">
										#foreach($selectAnswer in $question.answerList)
						   					 <option value="$!selectAnswer.answerId" #if($enqueteForm.initCount =="2" && $!selectAnswer.answerId == $!selectAnswer.answerIdValue) selected #elseif($!selectAnswer.defaultFlg == "1" && $enqueteForm.initCount!="2") selected    #end >$!escape.html($!selectAnswer.answer)</option>
						   				#end
								</select>
							</td></tr>
							</table>
							<font class="error">$!tools.getMsg("$!question.enqueteId.toString(),$!question.questionId.toString()")</font>
							<br>
							</td>
						#else

								#foreach($answer in $question.answerList)
								    #set($colNum = $colNum + 1)

									#set($answerIdName = "questionList$!{questionIndex}_answerList$!{velocityCount}_answerIdValue")
									#set($answerIdValueName = "questionList[$questionIndex].answerList[$velocityCount].answerIdValue")
									#set($answerIdValueRadioName = "questionList[$questionIndex].answerList[0].answerIdValue")
									#set($answerValue = "questionList[$questionIndex].answerList[$velocityCount].answerValue")

										##<!-- colSpan変数 -->
										#set($colSpan = 1)

										##<!-- 最後のカラムの場合、不足ColSpan数を計算する。 -->
										#if($question.answerList.size() == $velocityCount+1)
												#set($colSpan = $questionColNum - $colNum + 1)
										#end

											<!-- 0:RADIO インデクスを値にする。 -->
											#if($!question.controlId == "0")

												#set($answerId ="$!answerIdValueRadioName"+"$velocityCount")
												<div data-role="fieldcontain">
													<input type="radio" name="$!answerIdValueRadioName" id=$answerId value="$velocityCount"
													#if($!answer.answerIdValue ==  $velocityCount.toString() && $enqueteForm.initCount =="2") checked #{end}
													 #if($!answer.defaultFlg == 1 && $enqueteForm.initCount =="1") checked #end>
													<label for=$answerId>$!answer.answer</label>
										 		</div>

												##<!-- 自由入力欄。freeTextFlg=1(あり)、2(必須) -->
												#if($!answer.freeTextFlg == 1 || $!answer.freeTextFlg == 2)
											 		<div data-role="fieldcontain">
											 		<input type="text" id="$answerValue" name="$answerValue" size="$!answer.freeTextColWidth" value="$!escape.html($!answer.answerValue)" />
													<label for=$answerValue class="ui-hidden-accessible"></label>
											 		</div>
												#end

											##<!-- 1:CHECKBOX answer.answerNo値を値にする。-->
											#elseif($!question.controlId == "1")

												#set($answerId ="$!answerIdValueName"+"$velocityCount")
										 		<div data-role="fieldcontain">
												 <input type="checkbox" id=$answerId name="$answerIdValueName"  value="$!escape.html($!answer.answerNo)" #if($answer.answerIdValue != "" && $enqueteForm.initCount =="2") checked #end
								 															#if($!answer.defaultFlg == 1 && $enqueteForm.initCount =="1") checked #end>
												<label for=$answerId>$!answer.answer</label>
										 		</div>

												##<!-- 自由入力欄。freeTextFlg=1(あり)、2(必須) -->
												#if($!answer.freeTextFlg == 1 || $!answer.freeTextFlg == 2)
													<div data-role="fieldcontain">
														<input type="text" id="$answerValue" name="$answerValue" size="$!answer.freeTextColWidth"  value="$!escape.html($!answer.answerValue)"/>
														<label for=$answerValue class="ui-hidden-accessible"></label>
													</div>
												 #end

										    ##<!-- 2:SELECTMENU answer.answerNo値を値にする。-->
											#elseif($!question.controlId == "2")

												#if($velocityCount == 0)
													<div data-role="fieldcontain">
														<select name="$answerIdValueName"  >
															#foreach($selectAnswer in $question.answerList)
										   					    <option value="$!selectAnswer.answerId" #if($!selectAnswer.defaultFlg == "1") selected #end >$!selectAnswer.answer</option>
											   				#end
														</select>
													</div>
												#end

											##<!-- 3:TEXTAREA ユーザー入力値を値にする。-->
											#elseif($!question.controlId == "3")
										 		<div data-role="fieldcontain">
												<textArea type="text" name="$answerIdValueName" cols="$!question.dispWitdth" rows="$!question.rowCount">$!answer.answerIdValue</textarea>
										 		</div>
											##<!-- 4:TEXTFIELD ユーザー入力値を値にする。-->
											#elseif($!question.controlId == "4")
										 		<div data-role="fieldcontain">
												<input type="text" id="$answerIdValueName" name="$answerIdValueName" value="$!escape.html($!answer.answerIdValue)" size="$!question.dispWitdth"/>
												<label for=$answerIdValueName class="ui-hidden-accessible"></label>
										 		</div>
											##<!-- 5:日付入力 ユーザー入力値を値にする。-->
											#elseif($!question.controlId == "5")
										 		<div data-role="fieldcontain">
												<input type="date" id="$answerIdName" name="$answerValue" value="$!escape.html($!answer.answerValue)"/>
												<label for=$answerIdName class="ui-hidden-accessible"></label>
												<input type="hidden" name="$answerIdValueName" value="$!answer.answerId" />
										 		</div>
											 #elseif($!question.controlId == "6")
												<div data-role="fieldcontain">
								 				<select name="$answerIdValueName" >
								 				<option value="" >下記より選択してください</option>
												#foreach($pecent1 in $enqueteForm.organizationListFor1Percent)
													<option value="$!pecent1.organizationId" #if($!answer.answerIdValue ==  $!pecent1.organizationId) selected #end>$!{pecent1.organizationNo} : $!escape.html($!{pecent1.organizationName})</option>
												#end
												</select>
												</div>
											#end
								#end
								</tr>
							</table>

							<font class="error">$!tools.getMsg("$!question.enqueteId.toString(),$!question.questionId.toString()") $!tools.getMsg("$!question.enqueteId.toString(),$!question.questionId.toString()_1") $!tools.getMsg("$!question.enqueteId.toString(),$!question.questionId.toString()_2")</font>
							<br>
			#end
			#end  ##<!-- 2:SELECTMENU 終了-->
			####質問終了######
</div>