2012-04-03 19:11:21 +03:00
|
|
|
<ul class="poll-result" id="poll-result-original-{$oTopic->getId()}">
|
2012-03-07 18:48:14 +02:00
|
|
|
{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}
|
2011-07-20 15:17:46 +03:00
|
|
|
</ul>
|
2012-04-05 09:40:55 +03:00
|
|
|
|
|
|
|
|
2012-04-03 19:11:21 +03:00
|
|
|
<ul class="poll-result" id="poll-result-sort-{$oTopic->getId()}" style="display: none;">
|
2012-04-05 09:40:55 +03:00
|
|
|
{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}
|
2012-04-03 19:11:21 +03:00
|
|
|
</ul>
|
2012-04-05 09:40:55 +03:00
|
|
|
|
|
|
|
|
2012-06-04 17:46:47 +03:00
|
|
|
<button type="submit" class="button button-icon" title="{$aLang.topic_question_vote_result_sort}" onclick="return ls.poll.switchResult(this, {$oTopic->getId()});"><i class="icon-align-left icon-white"></i></button>
|
2012-04-05 09:40:55 +03:00
|
|
|
|
2012-04-21 17:09:17 +03:00
|
|
|
<span class="poll-total poll-total-result">{$aLang.topic_question_vote_result}: {$oTopic->getQuestionCountVote()} | {$aLang.topic_question_abstain_result}: {$oTopic->getQuestionCountVoteAbstain()}</span>
|