Solution Technologies
Управление сайтом без ограничений
{**
 * 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
 *}



{if $forumCurrentUser.NodId}

  {xs2GetNodes
      mod="forum"
      NType="thread"
      var="threads"
      condition="('`$forumCurrentUser.LastVisitDate`' <= LastChangeDate) AND NodId NOT IN (`$VisitedThreadsList`)"}

  {if $threads|@count>0}
    {strip}

      <h1>Свежие сообщения</h1>
      <ul>
        {foreach from=$threads item="thread"}
          <li>
            <a href="{xs2Href mod="forum" obj="thread" met="show" atr=$thread.NodId}">
              {$thread.NName}
            </a>
            {if $thread.LastChangeDate}
              &nbsp;({$thread.LastChangeDate})
            {/if}
            {xs2GetNodes mod="forum"
                         NType="message"
                         var="messages"
                         condition="'`$forumCurrentUser.LastVisitDate`' <= CDate AND '`$thread.LtCnt`' < LtCnt AND '`$thread.RtCnt`' > RtCnt"}
            {if $messages|@count}
              <ul>
                {foreach from=$messages item="message"}
                  <li>
                    <a href="{xs2Href mod="forum" obj="message"
                                      met="show" atr=$message.NodId}">
                      {$message.NName|ForumParseMessageNName:$message.Deleted}
                    </a>
                  </li>
                {/foreach}
              </ul>
            {/if}
          </li>
        {/foreach}
      </ul>

    {/strip}
  {else}
    <h3>У вас нет непрочитанных сообщений</h3>
  {/if}

{else}

  <h3>Войдите в систему, чтобы увидеть список свежих сообщений.</h3>
  {xs2Fetch mod="forum" obj="user" met="login"}

{/if}
Copyright ©1998-2008 Солютекс. Все права защищены.
Этот сайт сделан в designLab | Работает на технологии XS2
Условия использования | О защите конфиденциальности