<?
$Structure = new Structure();
$structure_row = $Structure->GerStructureItem(CURRENT_STRUCTURE_ID);
$structure_parent_id = $structure_row['structure_parent_id'];
/* В качестве родительского узла указываем текущий */
$param['parent_id'] = CURRENT_STRUCTURE_ID;
while ($structure_parent_id != 0)
{
$structure_row = $Structure->GetStructureItem($structure_parent_id);
$structure_parent_id = $structure_row['structure_parent_id'];
$param['parent_id'] = $structure_row['structure_id'];
}
if($structure_parent_id != 0)
{
$structure_row = $Structure->GerStructureItem($structure_parent_id);
print_r ($structure_row['structure_menu_name']);
}
else
{
print_r ($structure_row['structure_menu_name']);
}
?>
Спасибо большое вот может кому пригодиться!!!