{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 id="q{$i}A" type="radio" name="q[{$question.id}]" value="A" {if $smarty.post.q.$i eq "A"}checked="checked" {/if}/> <a href="javascript://" onclick="document.getElementById('q{$i}A').checked = true;">{$question.A}</a></dt>{/if}
		{if $question.B != ""}<dt><input id="q{$i}B" type="radio" name="q[{$question.id}]" value="B" {if $smarty.post.q.$i eq "B"}checked="checked" {/if}/> <a href="javascript://" onclick="document.getElementById('q{$i}B').checked = true;">{$question.B}</a></dt>{/if}
		{if $question.C != ""}<dt><input id="q{$i}C" type="radio" name="q[{$question.id}]" value="C" {if $smarty.post.q.$i eq "C"}checked="checked" {/if}/> <a href="javascript://" onclick="document.getElementById('q{$i}C').checked = true;">{$question.C}</a></dt>{/if}
		{if $question.D != ""}<dt><input id="q{$i}D" type="radio" name="q[{$question.id}]" value="D" {if $smarty.post.q.$i eq "D"}checked="checked" {/if}/> <a href="javascript://" onclick="document.getElementById('q{$i}D').checked = true;">{$question.D}</a></dt>{/if}
		{if $question.E != ""}<dt><input id="q{$i}E" type="radio" name="q[{$question.id}]" value="E" {if $smarty.post.q.$i eq "E"}checked="checked" {/if}/> <a href="javascript://" onclick="document.getElementById('q{$i}E').checked = true;">{$question.E}</a></dt>{/if}
	</dl></li>
	{/foreach}
</ol>

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