enqueteConfirm_sp.vm.svn-base 3.45 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

				####質問開始######
				#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 <BR> $!question.question
						<!-- 質問内容 //-->
						<BR>&nbsp;
						<!-- 設問間タグ //-->
						&nbsp;
								<table width="100%" class="bg_blue" style="word-wrap:break-word;word-break:break-all;">

									##<!-- 質問の表示列項目数を求める -->
									#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)

								 	#if($answer.answerIdValue != "" )
									#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
									#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>
				#end
				####質問終了######