{**
* 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:forume.NodId *}
{xs2Fetch mod="forum" obj="user" met="login"}
{xs2GetNode var="board" NodId=$_THE.PARAMS[0]}
{* Если форум не задан или не найден, берем первый *}
{if not $section.NodId or $section.NType neq "board"}
{xs2GetNodes var="board" NType="board"}
{if $board|@count}
{assign var="board" value=$board[0]}
{/if}
{/if}
{if $board.NType eq "board"}
<h1>{$board.NName}</h1>
{xs2GetChildren var="sections" ParId=$board.NodId NType="section"}
{foreach from=$sections item="section"}
<p>
<a href="{xs2Href mod="forum" obj="section"
met="show" atr=$section.NodId}">{$section.NName}</a>
</p>
{/foreach}
{else}
<p>Форум не найден не найден</p>
{/if}
|
|