{$list[$k]['title']}"; if (count($list[$k]['subsections'])) { echo ""; } echo ""; } } function displayLinks($text) { $l = explode('(.*\n)*.*/', '\1', $t); $toName = preg_replace('/\s/', '', $toName); $t = preg_replace('/^[A-Za-z0-9_\-]+[\'"]>/', '', $t); $secId = handler::$h->lib->call('getSectionId', handler::$h->lang, $toName); $link = ""; if (!is_null($secId)) { $pageId = handler::$h->lib->call('getPageId', $secId); if (!is_null($pageId)) { $lt = handler::$h->lib->call('readSectionRecord', $secId); if ($pageId == handler::$h->page['id']) { $link = ""; } else { $pg = handler::$h->lib->call('readSectionRecord', $pageId); $link = ""; } } } $nText .= $link . preg_replace('/^(.*)<\/mlink>(.*\n)*.*/', '\1', $t) . ($link != '' ? "" : "") . preg_replace('/^.*<\/mlink>/', '', $t); } return $nText; } function drawSecTitle(&$section, $depth) { $pgLink = ""; if ($section['linkto'] != "") { $pageId = handler::$h->lib->call('getPageId', $section['linkto']); if (!is_null($pageId)) { $lt = handler::$h->lib->call('readSectionRecord', $section['linkto']); if ($pageId == handler::$h->page['id']) { $pgLink = " (view)"; } else { $pg = handler::$h->lib->call('readSectionRecord', $pageId); $pgLink = " (view)"; } } } $mDepth = ($depth - 2) * 10; echo "
{$section['title']}$pgLink" . "Top
"; } function drawSections (&$list, $depth = 2) { $kl = array_keys($list); foreach ($kl as $k) { if ($depth == 2) { echo "
"; } drawSecTitle($list[$k], $depth); if ($list[$k]['contents'] != '') { echo "
" . displayLinks($list[$k]['contents']) . "
"; } if (count($list[$k]['subsections'])) { drawSections($list[$k]['subsections'], $depth + 1); } } } if (is_null(handler::$h->page)) { include('manual_notfound.en.inc'); return; } ?>

page['title']?>

page['subsections'])) { $st = input::$IE ? "margin:0px 0px 0px 30px" : "margin:0px 0px 0px -15px"; echo "
Contents:
"; drawSections(handler::$h->page['subsections']); } ?>