#set($title = "設問編集確認")
#set($menukubun = "3")
#parse( "/WEB-INF/view/common/header_admin.vm" )
<script language="JavaScript" type="text/JavaScript">
    <!--
    function backQuestionEdit(eid){
    	location.href="#q('/admin/enquete/enqueteRegist/backFromQuestionEditConfirm')?eid="+eid;
	}
    -->
</script>

<div id="contents">
<div id="contents_main">
<div id="breadcrumbsWrap">
						<!-- <div id="breadcrumbs" class="fs01 clearfix">
							<ul class="crumbs">
								<li><a href="#q('/admin/member/memberSearch/')">アンケート管理</a>&nbsp;></li>
								<li><a href="#q('/admin/member/memberSearch/')">設問編集</a>&nbsp;></li>
								<li><em>設問編集確認</em></li>
							</ul>
						</div>[ /breadcrumbs ] -->
</div><!--[ /breadcrumbsWrap ]-->
<div id="main" class="clearfix">

<form method="POST" action="#q('/admin/enquete/enqueteRegist/questionEditRegist/')"  name="frm">
#makeToken()
<input type="hidden" name="qid" value="$!{enqueteRegistForm.qid}"/>
<h2 class="contents_title">設問編集確認</h2>

<div id="right_contents">
<h3 class="enquete_title"><a href="#">$escape.html($!{enqueteRegistForm.enquete.enqueteName})</a><br>$!tools.getMsg("isSendMailAddress")</h3>
<div class="form_edit clearfix">
<h4 class="form_title">設問</h4>
<div class="edit_contents">
<table border="0" cellspacing="0" cellpadding="0" class="stripe2 mgb30 w650">
	<tr>
		<td class="w70">設問内容</td>
		<td>
			$!tools.newLineToBr($!{inputQuestion.questionName})
		</td>
	</tr>
	<tr>
		<td>補足</td>
		<td>
			$!tools.newLineToBr($!{inputQuestion.question})
		</td>
	</tr>
	<tr>
		<td>必須</td>
		<td>
			#if($!{inputQuestion.requiredFlg} == "1") 必須 #else 非必須 #end
		</td>
	</tr>
	<tr>
		<td>条件付必須項目</td>
		<td>

			 <!-- <select name="" id="select" class="w470" onchange="getCondRequiredQuestionNo()" disabled> -->
			##<option value="0" #if(${inputQuestion.condRequiredQuestionNo} == ${question.questionId}) selected #end></option>
			#foreach($question in $enqueteRegistForm.questionList)
				##<!-- <option value="$question.questionId" #if(${inputQuestion.condRequiredQuestionNo} == ${question.questionId}) selected #end> -->

			#if(${inputQuestion.condRequiredQuestionNo} == ${question.questionId}) $!{question.questionName} #end

				##<!-- </option> -->
			#end
			</select>
		</td>
	</tr>
	<tr>
		<td>条件付必須回答</td>
		<td>
			<label for="textarea2"></label>
				#foreach($condAnswer in $condRequiredQuestionAnswerList)
					#set($seletedFlg = "")
				    #foreach($answerId in $condRequiredAnswerIdList)

				    	#if($condAnswer.answerId == $answerId)
				    		#set($seletedFlg="selected")
				    	#end
				    #end
				    #if($seletedFlg != "") $!{condAnswer.answer} </BR> #end
				#end
		</td>
	</tr>
</table>
</div>
</div>

<div class="form_edit clearfix">
<h4 class="form_title">回答</h4>
<div class="edit_contents">
<table border="0" cellspacing="0" cellpadding="0" class="stripe2 mgb30 w650">
	<tr>
		<td class="w70">コントロール</td>
		<td >
			<label for="select"></label>
			<!-- <select name="inputQuestion.controlId" id="controlType" class="w200" onchange="showSetting()" disabled>
				<option value="0" #if($enqueteRegistForm.inputQuestion.controlId =="0") selected #end>ラジオボタン</option>
				<option value="1" #if($enqueteRegistForm.inputQuestion.controlId =="1") selected #end>チェックボックス</option>
				<option value="2" #if($enqueteRegistForm.inputQuestion.controlId =="2") selected #end>セレクトメニュー</option>
				<option value="3" #if($enqueteRegistForm.inputQuestion.controlId =="3") selected #end>テキストエリア</option>
				<option value="4" #if($enqueteRegistForm.inputQuestion.controlId =="4") selected #end>テキストボックス</option>
				<option value="5" #if($enqueteRegistForm.inputQuestion.controlId =="5") selected #end>日付入力フォーム</option>
				<option value="6" #if($enqueteRegistForm.inputQuestion.controlId =="6") selected #end>1%支援制度ポイント寄付</option>
			</select> -->



#if($enqueteRegistForm.inputQuestion.controlId =="0") ラジオボタン
#elseif($enqueteRegistForm.inputQuestion.controlId =="1") チェックボックス
#elseif($enqueteRegistForm.inputQuestion.controlId =="2") セレクトメニュー
#elseif($enqueteRegistForm.inputQuestion.controlId =="3") テキストエリア
#elseif($enqueteRegistForm.inputQuestion.controlId =="4") テキストボックス
#elseif($enqueteRegistForm.inputQuestion.controlId =="5") 日付入力フォーム
#elseif($enqueteRegistForm.inputQuestion.controlId =="6") 1%支援制度ポイント寄付  #end

		</td>
	</tr>
	<!-- ラジオボタン0 -->
	#if($inputQuestion.controlId == "0")
		<tr id="radioType" >  <!-- style="display:none" -->
			<td class="w70" valign="top">設定</td>
			<td>
			<div class="text_number">
				表示列項目数&nbsp;&nbsp;&nbsp;&nbsp;:
				$!radioColumnCount
			</div>

			<!-- *****************************ラジオ********************************* -->
			<div id="addRadio"><!-- ラジオが追加される領域 -->
				#foreach($radioAdminTextOne in $radioAdminText)
				#set($no=$velocityCount+1)
					<div id="delRadioLine${no}">
						<div class="text_number">
							<input type="radio" name="" id="radioDefault${no}" value="1" onchange="checkValue(${no})" #if($no == $radioDefault) checked #end disabled/>
							選択肢:$escape.html($!{radioAdminTextOne})
						</div>
					</div>
				#end
			</div>
			<!-- *****************************ラジオEND********************************* -->

			<div class="text_number">
				フリーアンサー設定
				<input type="checkbox" id="radioFreeAnserUse"  value="0" onchange="checkBoxChange('radioFreeAnserUse')" #if($radioFreeAnserUse == "1") checked #end disabled/>

			</div>

			<div class="text_number">
				該当選択数&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
				$!radioFreeNo
				必須にする<input type="checkbox" id="radioFreeAnserRequired"  value="0" onchange="checkBoxChange('radioFreeAnserRequired')"  #if($!radioFreeAnserRequired =="1") checked #end disabled/>

			</div>
			<div class="text_number">
				表示幅(文字数)&nbsp;&nbsp;&nbsp;&nbsp;
				$enqueteRegistForm.radioFreeTextColWidth
			</div>
			<div class="text_number">
				最大入力文字数&nbsp;&nbsp;&nbsp;
				$enqueteRegistForm.radioFreeTextLimit
			</div>
			</td>
		</tr>
	<!-- ラジオボタンEND -->
	#end
	#if($inputQuestion.controlId == "1")
	<!-- チェックボックス1 -->
		<tr id="checkType" > <!-- style="display:none" -->
			<td class="w70"valign="top">設定</td>
			<td>
			<div class="text_number">
				最大選択数:
				$!checkMaxSelectNum&nbsp;&nbsp;

				最小選択数:$!checkMinSelectNum
				&nbsp;&nbsp;
				表示列項目数:
				$!checkColumnCount
				<font color="red" size="1">※携帯端末の場合は無視されます。</font>
			</div>
			<!-- *****************************チェック********************************* -->
			<div id="addCheck">
				#foreach($checkAdminTextOne in $checkAdminText)
					#set($no=$velocityCount+1)
					<div id="delCheckBoxLine${no}">
						<div class="text_number">
							<input type="checkbox" name="" id="checkDefault${no}" onchange="checkBoxChange('checkDefault${no}')" #if($list.get($checkDefault,$velocityCount) =="1") checked #end disabled/>
							選択肢:$escape.html($checkAdminTextOne)
						</div>
					</div>
				#end

			</div><!-- チェックボックスが追加される領域 -->
			<!-- *****************************チェックEND********************************* -->

			<div class="text_number">
				フリーアンサー設定
				<input type="checkbox" id="checkFreeAnserUse"  onchange="checkBoxChange('checkFreeAnserUse')" #if($!checkFreeAnserUse == "1") checked #end disabled/>
			</div>

			<div class="text_number">
				該当選択肢&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
				$!checkFreeNo
				必須にする<input type="checkbox" id="checkFreeAnserRequired"   onchange="checkBoxChange('checkFreeAnserRequired')" #if($!checkFreeAnserRequired =="1") checked #end disabled/>

			</div>
			<div class="text_number">
				表示幅(文字数)&nbsp;&nbsp;&nbsp;&nbsp;
				$!checkFreeTextColWidth
			</div>
			<div class="text_number">
				最大入力文字数&nbsp;&nbsp;&nbsp;
				$!checkFreeTextLimit
			</div>
			</td>
		</tr>
	<!-- チェックボックス1END -->
	#end
	#if($inputQuestion.controlId == "2")
	<!-- セレクトメニュー2 -->
		<tr id="selectType" > <!-- style="display:none" -->
			<td class="w70" valign="top">設定</td>
			<td  >
				<table border="0" cellspacing="3" >
					<tr valign="top" align="left"><td style="border-right-style:none;border-bottom:0px;" border="0" >空白追加&nbsp;&nbsp;&nbsp;&nbsp;</td>
						<td style="border-right-style:none;border-bottom:0px;" border="0" >#if($!selectKuhakuUse == 1) 表示する #end #if($!selectKuhakuUse == 0) 表示しない #end</td>
					</tr>
					<tr valign="top" align="left"><td style="border-right-style:none;border-bottom:0px;" border="0" >選択候補&nbsp;&nbsp;&nbsp;&nbsp;</td><td style="border-right-style:none;border-bottom:0px;" border="0" > $tools.newLineToBr($!escape.html($!{selectCand}))</td></tr>
					<tr valign="top" align="left"><td style="border-right-style:none;border-bottom:0px;" border="0" >デフォルト値:</td><td style="border-right-style:none;border-bottom:0px;" border="0" >$!escape.html($!{selectDefault})</td></tr>
				</table>				
							
			</td>
		</tr>
	<!-- セレクトメニューEND -->
	#end
		#if($inputQuestion.controlId == "3")
	<!-- テキストエリア4 -->
		<tr id="areaType" > <!-- style="display:none" -->
			<td class="w70" valign="top">設定</td>
			<td>
				<div class="text_number">
					列幅(文字数)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
					$!areaCols
				</div>
		
				<div class="text_number">
					行数&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
					  $!areaRows
				</div>
			<div class="text_number">
				最大入力文字数&nbsp;&nbsp;&nbsp;
				  $!areaMaxCount
			</div>
			</td>
		</tr>
	<!-- テキストエリア3END -->
	#end
	#if($inputQuestion.controlId == "4")
	<!-- テキストボックス3 -->
		<tr  id="textType" > <!-- style="display:none" -->
			<td class="w70" valign="top">設定</td>
			<td>
			<div class="text_number">
				表示幅(文字数)&nbsp;:
				$!textSize
			</div>

			<div class="text_number">
				最小入力文字数:$!{textMinLength}
			</div>

			<div class="text_number">
				最大入力文字数:$!{textMaxLength}
			</div>

			<div class="text_number">
				入力文字制限&nbsp;&nbsp;&nbsp;:
					#foreach( $seigen in ["なし","半角数字のみ","半角英数字のみ","全角カナのみ","全角のみ","郵便番号","電話番号","メールアドレス"] )
	    				#if($!textSeigen == $velocityCount) $seigen #end</option>
					#end

			</div>

			#if($enquete.enqueteType == "4" && $textSeigen == "7")
			<div class="send_mail">
				メールを送信する:#if($isSendMailAddress == "1") ○ #else × #end
			</div>
			#end
			</td>
		</tr>
	<!-- テキストボックス END-->
	#end

	#if($inputQuestion.controlId == "5")
	<!-- 日付5 -->
		<tr id="dateType" > <!-- style="display:none" -->
			<td class="w70" valign="top">設定</td>
			<td >
				<div class="text_number">
				#if($!{dateFrom}=="" && $!{dateTo} == "")
					未設定
				#elseif($!{dateFrom}=="" && $!{dateTo} != "")
					未設定~$!{dateTo}
				#elseif($!{dateFrom} !="" && $!{dateTo}=="")
					$!{dateFrom}~未設定
				#else
					$!{dateFrom}~$!{dateTo}
				#end
				</div>
			</td>
		</tr>
	<!-- 日付5END -->
	#end
	#if($inputQuestion.controlId == "6")
	<!-- 1%支援制度ポイント寄付6 -->
	<tr id="percentType" > <!-- style="display:none" -->
		<td class="w70" valign="top">設定</td>
		<td >
		<div class="text_number">
			#foreach($pecent1 in $enqueteRegistForm.organizationListFor1Percent)
					#if($!percentOrganizationId ==  $!pecent1.organizationId) $!{pecent1.organizationNo} : $!{pecent1.organizationName} #end
            #end
		</div>

		<!-- <div class="text_number">
			デフォルト値:$!percentDefaultOrganizationId
		</div> -->
		</td>
	</tr>
	<!-- 1%支援制度ポイント寄付6END -->
	#end
</table>
</div>
</div>

<!-- 		<div class="form_edit clearfix">
		<h4 class="form_title">フリーアンサー</h4>
		<div class="edit_contents">
		<table border="0" cellspacing="0" cellpadding="0" class="stripe2 mgb30 w650">
			<tr class="gray">
				<th class="w130">フリーアンサー設定</th>
				<td>
					<input type="checkbox" name="checkbox" id="checkbox" checked/>
					<label for="checkbox"></label>
					必須項目にする
				</td>
			</tr>
			<tr class="white">
				<th>該当選択肢</th>
				<td>
					回答1
				</td>
			</tr>
			<tr class="gray">
				<th>列幅</th>
				<td>
					200
				</td>
			</tr>
			<tr class="white">
				<th>最大入力文字数</th>
				<td>
					200
					</select>
				</td>
			</tr>
		</table>
		</div>
		</div> -->
<div class="btn_area2">
##<a href="#" onclick="backQuestionEdit(1);" >
##	<img src="/em/images/btn_back_off.jpg" width="170" height="35" alt="戻る" />
##</a>
<input type="button" class="button" value="戻る"  onclick="backQuestionEdit(1);"/>
##<a href="#" onclick="document.frm.submit();" >
##	<img src="/em/images/reload_off.jpg" width="130" height="35" alt="上記設問を更新" />
##</a>
<input type="button" class="button" value="上記設問を更新"  onclick="document.frm.submit();"/>
</div>
</div>
</form>

</div>
<div id="contents_bottom"><img src="/em/images/bg_contents_bottom.jpg" width="1036" height="15" /></div>
</div>


</div>
#parse( "/WEB-INF/view/common/footer_admin.vm" )