{title}{tr}Stats for survey:{/tr} {$survey_info.name}{/title}
{self_link print='y' _icon_name='print' hspace='1' _class='tips float-end' _title=":{tr}Print{/tr}"} {/self_link} {button href="tiki-list_surveys.php" class="btn btn-info" _icon_name='list' _text="{tr}List Surveys{/tr}"} {button href="tiki-survey_stats.php" class="btn btn-info" _icon_name='chart' _text="{tr}Survey Stats{/tr}"} {if $tiki_p_admin_surveys eq 'y'} {button _keepall='y' href="tiki-admin_surveys.php" surveyId=$surveyId class="btn btn-primary" _icon_name='edit' _text="{tr}Edit this Survey{/tr}"} {button _keepall='y' href="tiki-survey_stats_survey.php" surveyId=$surveyId clear=$surveyId class="btn btn-primary" _icon_name='trash' _text="{tr}Clear Stats{/tr}"} {button href="tiki-admin_surveys.php" class="btn btn-primary" _icon_name='cog' _text="{tr}Admin Surveys{/tr}"} {/if}

{section name=ix loop=$channels}
{if $channels[ix].type eq 'r'} {elseif $channels[ix].type eq 's'} {elseif $channels[ix].type neq 'h'} {section name=jx loop=$channels[ix].qoptions} {/section} {/if}
{$channels[ix].question|escape|nl2br}
{tr}Votes:{/tr} {$channels[ix].votes}
{tr}Average:{/tr} {$channels[ix].average|string_format:"%.2f"}
{tr}Votes:{/tr} {$channels[ix].votes}
{tr}Average:{/tr} {$channels[ix].average|string_format:"%.2f"}/10
{if $channels[ix].qoptions[jx].uservoted}{icon name='user' alt="{tr}User voted{/tr}"}{/if} {if $channels[ix].type eq 'g'}
{thumb _id=$channels[ix].qoptions[jx].qoption _max=40 name='thumb' style='margin:3px;'}
{fileinfo _id=$channels[ix].qoptions[jx].qoption _field='name' _link='thumb'}
{fileinfo _id=$channels[ix].qoptions[jx].qoption _field='description'}
{elseif !$channels[ix].qoptions[jx].qoption} ({tr}no answer{/tr}) {else} {$channels[ix].qoptions[jx].qoption} {/if}
{$channels[ix].qoptions[jx].votes} {$channels[ix].qoptions[jx].average|string_format:"%.2f"}% {quotabar length=$channels[ix].qoptions[jx].width}

{/section}