function zen_get_basis_category_name($category_id, $fn_language_id) { global $db; $category_query = "select cd.`categories_name`, c.`categories_id`, c.`parent_id`\n from " . TABLE_CATEGORIES_DESCRIPTION . " cd , " . TABLE_CATEGORIES . " c\n where c.`categories_id` = cd.`categories_id` and c.`categories_id` = '" . $category_id . "'\n and cd.`language_id` = '" . $fn_language_id . "'"; $category = $db->Execute($category_query); if ($category->fields['parent_id'] == 0) { $category_name = $category->fields['categories_name']; } else { $category_name = zen_get_basis_category_name($category->fields['parent_id'], $fn_language_id); } return $category_name; }
//--> <div style="position: relative; z-index: 200; height: 70px; float: left;" id="menu_btn"> <span id="litbBtn" style="DISPLAY: block; Z-INDEX: 11; BACKGROUND: url(includes/templates/chanelwatches/images/menu_arrow.gif) no-repeat; LEFT: 154px; OVERFLOW: hidden; WIDTH: 16px; CURSOR: pointer; POSITION: absolute; TOP: 18px; HEIGHT: 17px"></span> <div id="litbCon1" class="absolute"> <ul id="menu_index_top"> <li><?php echo $title; ?> </li> </ul> <ul> <li class="cate_title"> <?php if ((int) $current_category_id) { echo '<a href="' . zen_href_link(FILENAME_DEFAULT, 'cPath=' . zen_get_basis_category_id($current_category_id, (int) $_SESSION['languages_id'])) . '">' . zen_get_basis_category_name($current_category_id, (int) $_SESSION['languages_id']) . '</a>'; } else { echo NAVBAR_TITLE; } ?> </li> </ul> </div> <div id="litbCon2" class="absolute" style="display: none;"> <ul id="menu_index_top"> <li><?php echo $title; ?> </li> </ul> <?php