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:
parent
e0ed66df89
commit
fbd64d980b
|
@ -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;
|
||||
|
|
|
@ -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}>
|
|
@ -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}
|
|
@ -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}>
|
|
@ -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}
|
Loading…
Reference in a new issue