{**
* XS2:
*
* This file is developed by Solutecs, LLC for the purpose of the company
* and is provided together with XS2 Framework as and inherent part of the
* system. This file can be used on the terms of License Agreement.
*
* +7 (495) 585-0833 / 13 Rusakovskaya street, Moscow 107140 Russia
*
* @link http://www.solutecs.com
* @copyright ©1998-2007 Solutecs, LLC
* @version 1.XX
*}
{* Поведение: загружает одно сообщение *}
{* Параметры: 0: message.NodId (или thread.NodId)
1: счетчик для предотвращения кэширования *}
{assign var="messageId" value=$_THE.PARAMS[0]}
{xs2GetNode var="message" NodId=$messageId mod="forum"}
{assign var="msgText" value=""}
{assign var="msgNName" value=""}
{if $message.NodId>0 and ($message.NType eq "thread" or $message.NType eq "message")}
{if $message.NType eq "message" or $message.NType eq "thread"}
{assign var="msgText"
value=$message.Text|ForumParseIcons:$message.ParseIcons|ForumParseLineBreaks:$message.ParseLineBreaks}
{assign var="msgNName"
value=$message.NName|ForumParseIcons:$message.ParseIcons|ForumParseLineBreaks:$message.ParseLineBreaks|ForumParseMessageNName:$message.Deleted}
{else}
{assign var="msgText" value="{$MessageNotFoundError}"}
{/if}
{/if}
{strip}
setMessage({$message.NodId},
{xs2Php2Js value=$msgNName},
{xs2Php2Js value=$msgText},
{if not $message.ParseIcons}0{else}1{/if},
{if not $message.ParseLineBreaks}0{else}1{/if},
{if not $message.Deleted}0{else}1{/if},
{$message.Author[0].NodId|default:0});
{/strip}
window.loading = false;
|
|