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
 *}



{* Поведение: показывает профиль пользователя *}
{* Параметры: 0:user.NodId *}

{xs2GetNode var="author" mod="forum" NodId=$_THE.PARAMS[0] NType="user"}

{if $author}

  {strip}

    <h1>{$author.NName}</h1>

    {if $author.User[0].NodId}
      {if $author.User[0].Avatar.width}
        <p>
          <img src="{$author.User[0].Avatar.path}" width="{$author.User[0].Avatar.width}" height="{$author.User[0].Avatar.height}"/>
        </p>
      {/if}
      {if $author.User[0].NName}<p>ФИО: <b>{$author.User[0].NName}</b></p>{/if}
      {if $author.User[0].Birthday}<p>День рождения: <b>{$author.User[0].Birthday}</b></p>{/if}
      {if $author.User[0].Country}<p>Страна: <b>{$author.User[0].Country}</b></p>{/if}
      {if $author.User[0].City}<p>Город: <b>{$author.User[0].City}</b></p>{/if}
      {if $author.User[0].Phone}<p>Телефон <b>{$author.User[0].Phone}</b></p>{/if}
      {if $author.User[0].Email}<p>Email: <b>{$author.User[0].Email}</b></p>{/if}
      {if $author.User[0].Sex}<p>Пол: <b>{$author.User[0].Sex}</b></p>{/if}
      {if $author.User[0].About}<p>О себе: <b>{$author.User[0].About}</b></p>{/if}
    {/if}

    {xs2GetLinks var="messages" mod="forum"
                 NodId=$author.NodId NType="message" lnkField="Author"}

    {if $messages|@count}
      <h2>Сообщения пользователя</h2>
      <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}

  {/strip}

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