mirror of
https://github.com/Oreolek/ifhub.club.git
synced 2024-07-05 07:54:24 +03:00
37 lines
1.3 KiB
Smarty
37 lines
1.3 KiB
Smarty
<ul class="poll-result" id="poll-result-original-{$oTopic->getId()}">
|
|
{foreach from=$oTopic->getQuestionAnswers() key=key item=aAnswer}
|
|
<li {if $oTopic->getQuestionAnswerMax()==$aAnswer.count}class="most"{/if}>
|
|
<dl>
|
|
<dt>
|
|
<strong>{$oTopic->getQuestionAnswerPercent($key)}%</strong><br />
|
|
<span>({$aAnswer.count})</span>
|
|
</dt>
|
|
<dd>{$aAnswer.text|escape:'html'}<div style="width: {$oTopic->getQuestionAnswerPercent($key)}%;" ></div></dd>
|
|
</dl>
|
|
</li>
|
|
{/foreach}
|
|
</ul>
|
|
|
|
|
|
<ul class="poll-result" id="poll-result-sort-{$oTopic->getId()}" style="display: none;">
|
|
{foreach from=$oTopic->getQuestionAnswers(true) key=key item=aAnswer}
|
|
<li {if $oTopic->getQuestionAnswerMax()==$aAnswer.count}class="most"{/if}>
|
|
<dl>
|
|
<dt>
|
|
<strong>{$oTopic->getQuestionAnswerPercent($key)}%</strong><br />
|
|
<span>({$aAnswer.count})</span>
|
|
</dt>
|
|
<dd>{$aAnswer.text|escape:'html'}<div style="width: {$oTopic->getQuestionAnswerPercent($key)}%;" ></div></dd>
|
|
</dl>
|
|
</li>
|
|
{/foreach}
|
|
</ul>
|
|
|
|
|
|
|
|
<div class="poll-total">
|
|
<i class="poll-sort" title="{$aLang.topic_question_vote_result_sort}" onclick="return ls.poll.switchResult(this, {$oTopic->getId()});"></i>
|
|
|
|
{$aLang.topic_question_vote_result} — {$oTopic->getQuestionCountVote()}<br />
|
|
{$aLang.topic_question_abstain_result} — {$oTopic->getQuestionCountVoteAbstain()}
|
|
</div> |