{**
* 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
*}
{* Отображение корня каталога *}
{assign var="rootId" value=$_THE.PARAMS[0]}
{* Находим корень каталога *}
{if not $rootId}
{xs2GetNodes var="rootNode" NType="categories"}
{assign var="rootId" value=$rootNode[0].NodId}
{if not $rootId}
<p>Каталог не найден</p>
{/if}
{/if}
{if $rootId}
{xs2GetNode NodId=$rootId var="Category"}
{xs2GetChildren NType="category" ParId=$Category.NodId var="childCategories"}
{if $childCategories}
<p>
{foreach from=$childCategories item="child"}
{strip}
<a href="{xs2Href mod=$_THE.QUE.MOD obj=$child.NType met=$_THE.QUE.MET atr=$child.NodId}">
{$child.NName}
</a>
<br>
{/strip}
{/foreach}
</p>
{else}
<p>Каталог пуст</p>
{/if}
{/if}
{* /Отображение корня каталога *}
{* Форма поиска товаров *}
<hr>
{xs2Fetch mod=$_THE.QUE.MOD obj="item" met="find"}
{* /Форма поиска товаров *}
|
|