{* Шаблон результатов голосования *} {if $show_survey_results eq 1} {assign var="preheader" value="+"} {if $admlink}{assign var="postheader" value=`$preheader``$smarty.const.STRING_SURV_INDEX`}{else}{assign var="postheader" value=$smarty.const.STRING_SURV_INDEX}{/if} {include file="header.tpl.html" header=$postheader}

{$survey_question}

{if $user_voted eq 1}
{$smarty.const.STRING_VOTINGERR}
{/if} {section name=y loop=$survey_answers}
{$survey_answers[y]} ({$smarty.const.STRING_VOTES}: {$survey_results[y]})
| {if $voters_count ne 0}{math equation="round(100 * $survey_results[y] / $voters_count)"}{else}0{/if}%
{/section}
| {$smarty.const.STRING_ALL_VOTES}: {$voters_count}

{/if}