enquete_web_rec.html 11.8 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
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>$!enqueteForm.enquete.enqueteName</title>
<link href="#q('/css/w_enquete.css')" rel="stylesheet" type="text/css" />
<link rel="stylesheet" type="text/css" href="/em/css/jquery.datepick.css" media="all" />
<script type="text/javascript" src="/em/js/jquery-1.3.1.min.js"></script>
<script type="text/javascript" src="/em/js/jquery.datepick.js"></script>
<script type="text/javascript" src="/em/js/jquery.datepick-ja.js?20170316"></script>
#set($dateIndex=0)
#foreach($question  in  $!enqueteForm.questionList)
	#if($question.controlId == 5)
		#set($dateIndex = $dateIndex+1)
		<script language="javascript" type="text/javascript" charset="utf-8">
				<!--
				//開始日
				$(function() {
				  $("#enqStartFrom${dateIndex}").datepick({showTrigger: "#enqFrom${dateIndex}",
					  yearRange: "$question.yearRange",
					  minDate: "$question.startymd",
					  maxDate: "$question.endymd"});
				});
		// -->
		</script>
	#end
#end
</head>
29
#parse( "/WEB-INF/view/common/question_disable.vm" )
Kim Gyeongeun committed
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
<body>

<div id="wrapper">
<div id="logo"><img src="#q('/images/ichikawa_logo01.jpg')" width="190" height="65" />
</div>
<table width="100%" border="0" cellpadding="0" cellspacing="0" id="header">
	<tr>
		<td><div id="enquete_ttl">
			$!enqueteForm.enquete.enqueteName 
		</div></td>
	</tr>
</table>
<div></div>
<div id="contents_area">




<!------------------------------------------------------------------------------------->
<center>
<STYLE type=text/css>TD {
    FONT-SIZE: 12pt; COLOR: #444444; FONT-FAMILY: "MS Pゴシック", "Osaka"
}
.caption {
    FONT-SIZE: 12pt; COLOR: #444444; FONT-FAMILY: "MS Pゴシック", "Osaka"
}
</STYLE>
<!-- ここまで固定ヘッダ-->

<FORM method="post" action="/em/user/enquete/confirm/" >
<input type="hidden" name="resetFlg" value="0"/>##Reset処理しない
<input type="hidden" name="initCount" value="2"/>##初期表示フラグ
<input type="hidden" name="chkeid" value="$!enqueteForm.eid"/>##複数タブ表示異常確認用

#if($!enqueteForm.type == "pre")<font color="red"><b>※※これはテストページです。※※</b></font>#end

<P class=caption>
<!-- 管理画面で入力するヘッダstart-->
$!enqueteForm.enquete.header
<!-- 管理画面で入力するヘッダend-->
</P>
<BR>

<!-- ここからアンケート回答部分 //-->
<font size="2"><font color="red">&nbsp;*&nbsp;</font>の項目は必須回答項目です。)</font><br><br>


<!-- 管理画面で入力する設問情報start kim//-->
<TABLE width="500" cellspacing="0" cellpadding="0" border="0">
####質問開始######
##$questionFor開始
#set($questionIndex = 0)
#set($dateIndex = 0)
			#foreach($question  in  $!enqueteForm.questionList)

			#set($questionIndex = $velocityCount)
				<tr>
					<td align="left" class="listmenu" colspan="2">
					<!-- 質問NO //-->
					■Q$!question.questionNo
					<!-- 必須有無 //-->
					#if($!question.requiredFlg == "1")
					<font color="red">&nbsp;*&nbsp;</font>
					#end
					<!-- 質問項目 //-->
					$!question.questionName
					#if($question.question && $question.question != "")
						<BR> $!question.question
					#end
					<br>&nbsp;
					</td>
				</tr>
				<tr>
103
					<td align="left" class="listcts" colspan="2" #if($!question.questionInitDisable == "1") style="background-color: darkgray" #end>
Kim Gyeongeun committed
104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122
							<table width="100%">
								<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 align="left" width="$tdWidthPercent%" valign = "top" >
							#set($answerIdValueName = "questionList[$questionIndex].answerList[0].answerIdValue")
123
							 <select name="$answerIdValueName" id="#he($!question.questionId)" #if($!question.questionInitDisable == "1") disabled #end>
Kim Gyeongeun committed
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
									#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>
										  <!-- <option value="$!selectAnswer.answerId" #if($enqueteForm.initCount =="2" && $!selectAnswer.answerId == $!selectAnswer.answerIdValue) selected $!selectAnswer.answerId , $!selectAnswer.answerIdValue #elseif($!selectAnswer.defaultFlg == "1" ) selected  $!selectAnswer.answerId , $!selectAnswer.answerIdValue  #end >$!escape.html($!selectAnswer.answer)</option> -->
					   				#end
							</select>

						</td></tr>
						</table>
						<font class="error">$!tools.getMsg("$!question.enqueteId.toString(),$!question.questionId.toString()")</font>
						</td>
						#else
								#foreach($answer in $question.answerList)
								    #set($colNum = $colNum + 1)

									#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
										<td align="left" width="$tdWidthPercent%" valign = "top" colspan="$!colSpan">
										    <!-- 0:RADIO インデクスを値にする。 -->
											#if($!question.controlId == "0")
															##if($!answer.freeTextFlg != "1" && $!answer.freeTextFlg != "2")
153
													 <input type="radio" class="#he($!question.questionId)" id="#he($!answer.answerId)" name="$!answerIdValueRadioName"  value="$velocityCount"  #if($!answer.answerIdValue ==  $velocityCount.toString() && $enqueteForm.initCount =="2") checked #end
Kim Gyeongeun committed
154
													     #if($!answer.defaultFlg == 1 && $enqueteForm.initCount =="1") checked #end
155
													      #if($!question.questionInitDisable == "1") disabled #end
Kim Gyeongeun committed
156 157 158 159 160
													 > $!escape.html($!answer.answer)
															##end

												##<!-- 自由入力欄。freeTextFlg=1(あり)、2(必須) -->
												#if($!answer.freeTextFlg == "1" || $!answer.freeTextFlg == "2")
161
												 	<input type="text" class="#he($!question.questionId)" id="#he($!answer.answerId)_ft" name="$answerValue"  size="$!answer.freeTextColWidth"  value="$!escape.html($!answer.answerValue)" #if($!question.questionInitDisable == "1") disabled #end/>
Kim Gyeongeun committed
162 163 164 165
												#end
											##<!-- 1:CHECKBOX answer.answerNo値を値にする。-->
											#elseif($!question.controlId == "1")
															##if($!answer.freeTextFlg != "1" && $!answer.freeTextFlg != "2")
166
													<input type="checkbox" class="#he($!question.questionId)" id="#he($!answer.answerId)" name="$answerIdValueName"  value="$!escape.html($!answer.answerNo)"  #if($answer.answerIdValue != "" && $enqueteForm.initCount =="2") checked #end
Kim Gyeongeun committed
167
																									#if($!answer.defaultFlg == 1 && $enqueteForm.initCount =="1") checked #end
168
																									#if($!question.questionInitDisable == "1") disabled #end> $!escape.html($!answer.answer)
Kim Gyeongeun committed
169 170 171 172
															##end

												##<!-- 自由入力欄。freeTextFlg=1(あり)、2(必須) -->
												#if($!answer.freeTextFlg == "1" || $!answer.freeTextFlg == "2")
173
												 		<input type="text"  class="#he($!question.questionId)" id="#he($!answer.answerId)_ft" name="$answerValue" size="$!answer.freeTextColWidth"  value="$!escape.html($!answer.answerValue)" #if($!question.questionInitDisable == "1") disabled #end/>
Kim Gyeongeun committed
174 175 176
												#end
											##<!-- 3:TEXTAREA ユーザー入力値を値にする。-->
											#elseif($!question.controlId == "3")
177
												<textArea type="text" id="#he($!question.questionId)" name="$answerIdValueName" cols="$!question.dispWitdth" rows="$!question.rowCount" #if($!question.questionInitDisable == "1") disabled #end>$!answer.answerIdValue</textarea>
Kim Gyeongeun committed
178 179
											##<!-- 4:TEXTFIELD ユーザー入力値を値にする。-->
											#elseif($!question.controlId == "4")
180
												<input type="text" id="#he($!question.questionId)" name="$answerIdValueName"  value="$!escape.html($!answer.answerIdValue)"  size="$!question.dispWitdth" #if($!question.questionInitDisable == "1") disabled #end/>
Kim Gyeongeun committed
181 182 183
											##<!-- 5:日付入力 ユーザー入力値を値にする。-->
											#elseif($!question.controlId == "5")
												#set($dateIndex = $dateIndex+1)
184
												<input name="$answerValue" id="enqStartFrom${dateIndex}" type="text"  class="w100 mgl10 #he($!question.questionId)"  value="$!escape.html($!answer.answerValue)" #if($!question.questionInitDisable == "1") disabled #end>
185
												<div style="display: none;"><img id="enqFrom${dateIndex}" src="/em/images/icon_cal.gif" style="padding-left:5px;padding-right:5px; vertical-align: middle; #if($!question.questionInitDisable == '1') display: none; #end"></div>
Kim Gyeongeun committed
186 187
												<input type="hidden" name="$answerIdValueName" value="$!answer.answerId" />
											#elseif($!question.controlId == "6")
188
								 				<select name="$answerIdValueName" id="#he($!question.questionId)" #if($!question.questionInitDisable == "1") disabled #end>
Kim Gyeongeun committed
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 237 238 239 240 241 242 243 244 245 246 247 248
												#foreach($pecent1 in $enqueteForm.organizationListFor1Percent)
													<option value="$!pecent1.organizationId" #if($!percentOrganizationId ==  $!pecent1.organizationId) selected #end>$!{pecent1.organizationNo} : $!escape.html($!{pecent1.organizationName})</option>
												#end
												</select>
												</td>
											#end

										</td>
										##<!-- TRの開閉 -->
										#if($questionColNum ==  $colNum)  ##<!-- カラム数と同一になった場合 -->
											#set($colNum = 0)
											</tr>
										#elseif($question.answerList.size() == ($velocityCount+1)) ##<!-- 最後のカラムになった場合 -->
											</tr>
											##終わりじゃない場合開始タグを作る。
										#elseif($question.answerList.size() == ($velocityCount+1)) ##<!-- 表示するのカラムが残っている場合 -->
											<tr>
										#end
								#end
								</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>
						</td>
					</tr>

				#end
				<tr><td>&nbsp;</td></tr>
			#end  ##<!-- 2:SELECTMENU 終了-->
			####質問終了######
</TABLE>


<!-- ここまでアンケート回答部分 //-->
<table width="800" cellspacing="0" cellpadding="0" border="0">
	<tr>
		<td class="text12px" align="center" valign="top">
			<input type="submit" value="入力内容の確認">
		</td>
	</tr>
</table>
<!-- 管理画面で入力する設問情報end kim//-->

<P class=caption>
<!-- 管理画面で入力するフッタstart //-->
$!enqueteForm.enquete.footer
<!-- 管理画面で入力するフッタend //-->
</P>

</form>
</center>
</div><!--contents_areaここまで-->
<!-- 固定フッタstart //-->
<div class="push"></div>
</div>
<div id="footer">
<div id="to_top"><img src="#q('/images/to_top.gif')" width="10" height="7" /><a href="#" onclick="top(); return false">トップページ</a></div>
<div class="copyright">Copyright (c) Ichikawa City. all rights reserved.</div></div>

</body>
</html>
<!-- 固定フッタend //-->