enqueteResult.html 8.99 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 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 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236
#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>