enquete_pub.html 11.6 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
<!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>市川市パブリックコメント制度(意見募集)</title>
<link href="#q('/css/public.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
30
#parse( "/WEB-INF/view/common/question_disable.vm" )
Kim Gyeongeun committed
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
</head>
<body>
<div id="wrapper">
<div id="logo"><img src="/em/images/ichikawa_logo01.jpg" width="190" height="65" />
</div>
<div id="header"><img src="/em/images/ttl_public.jpg" width="974" height="150" /></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

<TABLE cellSpacing=0 cellPadding=0 width="500" border=0>
    <TBODY>
        <TR height="25">
            <TD align="left">
            &nbsp;&nbsp;<br>
            </TD>
        </TR>
    </TBODY>
</TABLE>

<P class=caption>
<!-- 管理画面で入力するヘッダstart-->
	$!enqueteForm.enquete.header
<!-- 管理画面で入力するヘッダend-->
</P>
<!-- 管理画面で入力する設問情報start //-->
<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>
96
					<td align="left" class="listcts" colspan="2" #if($!question.questionInitDisable == "1") style="background-color: darkgray" #end>
Kim Gyeongeun committed
97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115
							<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")
116
							 <select name="$answerIdValueName" id="#he($!question.questionId)" #if($!question.questionInitDisable == "1") disabled #end>
Kim Gyeongeun committed
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
									#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")
146
													 <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
147
													     #if($!answer.defaultFlg == 1 && $enqueteForm.initCount =="1") checked #end
148
													 	 #if($!question.questionInitDisable == "1") disabled #end> $!escape.html($!answer.answer)
Kim Gyeongeun committed
149 150 151 152
															##end

												##<!-- 自由入力欄。freeTextFlg=1(あり)、2(必須) -->
												#if($!answer.freeTextFlg == "1" || $!answer.freeTextFlg == "2")
153
												 	<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
154 155 156 157
												#end
											##<!-- 1:CHECKBOX answer.answerNo値を値にする。-->
											#elseif($!question.controlId == "1")
															##if($!answer.freeTextFlg != "1" && $!answer.freeTextFlg != "2")
158
													<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
159
																									#if($!answer.defaultFlg == 1 && $enqueteForm.initCount =="1") checked #end
160
																									#if($!question.questionInitDisable == "1") disabled #end> $!escape.html($!answer.answer)
Kim Gyeongeun committed
161 162 163 164
															##end

												##<!-- 自由入力欄。freeTextFlg=1(あり)、2(必須) -->
												#if($!answer.freeTextFlg == "1" || $!answer.freeTextFlg == "2")
165
												 		<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
166 167 168
												#end
											##<!-- 3:TEXTAREA ユーザー入力値を値にする。-->
											#elseif($!question.controlId == "3")
169
												<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
170 171
											##<!-- 4:TEXTFIELD ユーザー入力値を値にする。-->
											#elseif($!question.controlId == "4")
172
												<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
173 174 175
											##<!-- 5:日付入力 ユーザー入力値を値にする。-->
											#elseif($!question.controlId == "5")
												#set($dateIndex = $dateIndex+1)
176
												<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>
177
												<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
178 179
												<input type="hidden" name="$answerIdValueName" value="$!answer.answerId" />
											#elseif($!question.controlId == "6")
180
								 				<select name="$answerIdValueName" id="#he($!question.questionId)" #if($!question.questionInitDisable == "1") disabled #end>
Kim Gyeongeun committed
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 237 238 239 240 241 242 243 244
												#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="入力情報確認">
            <!-- <a href="#q('/user/enquete/pubIndex/')">意見を送信する</a> -->
        </td>
    </tr>
</table>
<!-- 管理画面で入力する設問情報end //-->

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



</FORM>
</center>

</div><!--contents_areaここまで-->

<!-- 固定フッタstart //-->
<div class="push"></div><!--消さないでください-->
</div>



<div id="footer">
 Copyright (c) Ichikawa City. all rights reserved.</div>
</body>
</html>
<!-- 固定フッタend //-->