1
0
Fork 0
mirror of https://github.com/Oreolek/ifhub.club.git synced 2024-06-26 03:30:48 +03:00

fix topic-question

This commit is contained in:
Mzhelskiy Maxim 2011-09-02 09:22:43 +00:00
parent 214f56dd1d
commit 130d456030
2 changed files with 4 additions and 0 deletions

View file

@ -36,6 +36,8 @@
<input type="submit" value="{$aLang.topic_question_vote}" onclick="ls.poll.vote({$oTopic->getId()},$('#topic_answer_{$oTopic->getId()}_value').val());" />
<input type="submit" value="{$aLang.topic_question_abstain}" onclick="ls.poll.vote({$oTopic->getId()},-1)" />
<input type="hidden" id="topic_answer_{$oTopic->getId()}_value" value="-1" />
<p class="poll-total">{$aLang.topic_question_vote_result}: {$oTopic->getQuestionCountVote()} | {$aLang.topic_question_abstain_result}: {$oTopic->getQuestionCountVoteAbstain()}</p>
{else}
<ul class="poll-result">
{foreach from=$oTopic->getQuestionAnswers() key=key item=aAnswer}

View file

@ -44,6 +44,8 @@
<input type="submit" value="{$aLang.topic_question_vote}" onclick="ls.poll.vote({$oTopic->getId()},$('#topic_answer_{$oTopic->getId()}_value').val());" />
<input type="submit" value="{$aLang.topic_question_abstain}" onclick="ls.poll.vote({$oTopic->getId()},-1)" />
<input type="hidden" id="topic_answer_{$oTopic->getId()}_value" value="-1" />
<p class="poll-total">{$aLang.topic_question_vote_result}: {$oTopic->getQuestionCountVote()} | {$aLang.topic_question_abstain_result}: {$oTopic->getQuestionCountVoteAbstain()}</p>
{else}
<ul class="poll-result">
{foreach from=$oTopic->getQuestionAnswers() key=key item=aAnswer}