<{strip}>
<{* 回答画面用テンプレート *}>
<{include file="questionnaire_mobile_head.html"}>

<{if $action.answerSummaryShow}>
	<{if $action.questionnaire.anonymity_flag == _ON}>
		<span style="color:red">
			<{$lang.questionnaire_anonymity_name}>
		</span>
	<{else}>
		<{$action.summary.insert_user_name}>
		<{$lang.questionnaire_parenthesis_number|sprintf:$action.summary.answer_number}>
	<{/if}>

	<br />
	<{$action.summary.answer_time|timezone_date_format:$lang._mobile_date_format}>
	<br /><br />
<{/if}>

<form method="get" action=.<{$smarty.const.INDEX_FILE_NAME}>>
	<div>
		<input type="hidden" name="block_id" value="<{$block_id}>">
		<input type="hidden" name="questionnaire_id" value="<{$action.questionnaire.questionnaire_id}>">

		<{foreach from=$action.questions item=question name="question"}>
			<div>
				<{include file="questionnaire_mobile_question.html"}>
				<{include file="questionnaire_mobile_answer.html" choiceDisplay=$smarty.const.QUESTIONNAIRE_CHOICE_DISPLAY_ANSWER answer=$question.answer}>
				<{if !empty($question.description|smarty:nodefaults)}>
					<h6>
						<{$question.description|smarty:nodefaults|wysiwig_convert_url}>
					</h6>
				<{/if}>
			</div>
			<br />
		<{/foreach}>

		<{if empty($action.prefix_id_name|smarty:nodefaults)}>
			<div>
				<{if $action.nextQuestion}>
					<input type="hidden" name="action" value="questionnaire_view_main_single">
					<input type="submit" value="<{$lang.questionnaire_next_question}>">
				<{elseif $action.questionEnd}>
					<input type="hidden" name="action" value="questionnaire_view_main_answer">
					<input type="hidden" name="summary_id" value="<{$action.summary.summary_id}>">
					<input type="submit" value="<{$lang.questionnaire_answer_result}>">
				<{else}>
					<input type="hidden" name="action" value="questionnaire_view_main_init">
					<input type="submit" value="<{$lang.questionnaire_end}>">
				<{/if}>
			</div>
		<{/if}>
		<{$token_form|smarty:nodefaults}>
		<{$session_form|smarty:nodefaults}>
	</div>
</form>

<{if $action.answerSummaryShow}>
	<div style="text-align:right">
		<a href="?action=questionnaire_view_main_summary&amp;block_id=<{$block_id}>&amp;questionnaire_id=<{$action.questionnaire.questionnaire_id}>&amp;answer_user_id=<{$smarty.session._user_id}><{$session_param}>">
			<{$lang._btn_prev_arrow|smarty:nodefaults}>
		</a>
	</div>
<{/if}>

<{/strip}>