{assign var="pgLayout" value="layouts/lite.tpl"}
{include_php file="shared_handle:company/surveyReview"}
<h2 class="withBG">Reviewing: {$survey.surveyName|default:"Undefined"}</h2>

<ol id="surveyQuestionList">
	{foreach name="questions" from=$survey.questions item="question"}
	<li>{$question.question}
	<dl>{assign var="i" value=$smarty.foreach.questions.iteration}
		{if $question.A != ""}<dt><input type="radio" name="q[{$question.id}]" value="A" disabled="disabled" {if $question.response eq "A"}checked="checked" /><b><u>{$question.A}</u></b>{else}/>{$question.A}{/if}</dt>{/if}
		{if $question.B != ""}<dt><input type="radio" name="q[{$question.id}]" value="B" disabled="disabled" {if $question.response eq "B"}checked="checked" /><b><u>{$question.B}</u></b>{else}/>{$question.B}{/if}</dt>{/if}
		{if $question.C != ""}<dt><input type="radio" name="q[{$question.id}]" value="C" disabled="disabled" {if $question.response eq "C"}checked="checked" /><b><u>{$question.C}</u></b>{else}/>{$question.C}{/if}</dt>{/if}
		{if $question.D != ""}<dt><input type="radio" name="q[{$question.id}]" value="D" disabled="disabled" {if $question.response eq "D"}checked="checked" /><b><u>{$question.D}</u></b>{else}/>{$question.D}{/if}</dt>{/if}
		{if $question.E != ""}<dt><input type="radio" name="q[{$question.id}]" value="E" disabled="disabled" {if $question.response eq "E"}checked="checked" /><b><u>{$question.E}</u></b>{else}/>{$question.E}{/if}</dt>{/if}
	</dl>{assign var="feedbackField" value="feedback`$question.response`"}
	{if $user->username eq "trave"}{display var=$feedbackField}{/if}
	{if $question.feedback}<blockquote class="feedbackContainer">{$question.feedback}{if $feedbackField|var neq ""}<br /><br />{$feedbackField|var}{/if}</blockquote>{/if}
	</li>
	{/foreach}
</ol>

<div class="underline"></div>
<div style="text-align:center;margin-top:20px;"><input type="button" onclick="location.replace('index.php?pg=surveyHistory')" value="Return to Survey History" /></div>
