<!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>
#parse( "/WEB-INF/view/common/question_disable.vm" )
<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>
					<td align="left" class="listcts" colspan="2" #if($!question.questionInitDisable == "1") style="background-color: darkgray" #end>
							<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")
							 <select name="$answerIdValueName" id="#he($!question.questionId)" #if($!question.questionInitDisable == "1") disabled #end>
									#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")
													 <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
													     #if($!answer.defaultFlg == 1 && $enqueteForm.initCount =="1") checked #end
													      #if($!question.questionInitDisable == "1") disabled #end
													 > $!escape.html($!answer.answer)
															##end

												##<!-- 自由入力欄。freeTextFlg=1(あり)、2(必須) -->
												#if($!answer.freeTextFlg == "1" || $!answer.freeTextFlg == "2")
												 	<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/>
												#end
											##<!-- 1:CHECKBOX answer.answerNo値を値にする。-->
											#elseif($!question.controlId == "1")
															##if($!answer.freeTextFlg != "1" && $!answer.freeTextFlg != "2")
													<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
																									#if($!answer.defaultFlg == 1 && $enqueteForm.initCount =="1") checked #end
																									#if($!question.questionInitDisable == "1") disabled #end> $!escape.html($!answer.answer)
															##end

												##<!-- 自由入力欄。freeTextFlg=1(あり)、2(必須) -->
												#if($!answer.freeTextFlg == "1" || $!answer.freeTextFlg == "2")
												 		<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/>
												#end
											##<!-- 3:TEXTAREA ユーザー入力値を値にする。-->
											#elseif($!question.controlId == "3")
												<textArea type="text" id="#he($!question.questionId)" name="$answerIdValueName" cols="$!question.dispWitdth" rows="$!question.rowCount" #if($!question.questionInitDisable == "1") disabled #end>$!answer.answerIdValue</textarea>
											##<!-- 4:TEXTFIELD ユーザー入力値を値にする。-->
											#elseif($!question.controlId == "4")
												<input type="text" id="#he($!question.questionId)" name="$answerIdValueName"  value="$!escape.html($!answer.answerIdValue)"  size="$!question.dispWitdth" #if($!question.questionInitDisable == "1") disabled #end/>
											##<!-- 5:日付入力 ユーザー入力値を値にする。-->
											#elseif($!question.controlId == "5")
												#set($dateIndex = $dateIndex+1)
												<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>
												<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>
												<input type="hidden" name="$answerIdValueName" value="$!answer.answerId" />
											#elseif($!question.controlId == "6")
								 				<select name="$answerIdValueName" id="#he($!question.questionId)" #if($!question.questionInitDisable == "1") disabled #end>
												#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 //-->