1
0
Fork 0
mirror of https://github.com/Oreolek/ifhub.club.git synced 2024-07-01 05:55:02 +03:00

Topic poll result

This commit is contained in:
Denis Shakhov 2013-05-06 13:33:38 +07:00
parent e0ed66df89
commit fbd64d980b
5 changed files with 15 additions and 3 deletions

View file

@ -605,7 +605,7 @@ class ActionAjax extends Action {
$this->Message_AddNoticeSingle($this->Lang_Get('topic_question_vote_ok'),$this->Lang_Get('attention'));
$oViewer=$this->Viewer_GetLocalViewer();
$oViewer->Assign('oTopic',$oTopic);
$this->Viewer_AssignAjax('sText',$oViewer->Fetch("question_result.tpl"));
$this->Viewer_AssignAjax('sText',$oViewer->Fetch("topics/question_result.tpl"));
} else {
$this->Message_AddErrorSingle($this->Lang_Get('system_error'),$this->Lang_Get('error'));
return;

View file

@ -1,3 +1,9 @@
{**
* Результат опроса
*
* @styles css/topic.css
*}
<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}>

View file

@ -21,7 +21,7 @@
<input type="hidden" id="topic_answer_{$oTopic->getId()}_value" value="-1" />
{else}
{include file='question_result.tpl'}
{include file='topics/question_result.tpl'}
{/if}
</div>
{/block}

View file

@ -1,3 +1,9 @@
{**
* Результат опроса
*
* @styles css/topic.css
*}
<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}>

View file

@ -30,7 +30,7 @@
<input type="hidden" id="topic_answer_{$oTopic->getId()}_value" value="-1" />
{else}
{include file='question_result.tpl'}
{include file='topics/question_result.tpl'}
{/if}
</div>
{/block}