add(HEADER_TITLE_CATALOG, zen_href_link(FILENAME_DEFAULT)); /** * add category names or the manufacturer name to the breadcrumb trail */ if (isset($cPath_array)) { for ($i=0, $n=sizeof($cPath_array); $i<$n; $i++) { $categories_query = "select categories_name from " . TABLE_CATEGORIES_DESCRIPTION . " where categories_id = '" . (int)$cPath_array[$i] . "' and language_id = '" . (int)$_SESSION['languages_id'] . "'"; $categories = $db->Execute($categories_query); if ($categories->RecordCount() > 0) { $breadcrumb->add($categories->fields['categories_name'], zen_href_link(FILENAME_DEFAULT, 'cPath=' . implode('_', array_slice($cPath_array, 0, ($i+1))))); } else { break; } } } /** * split to add manufacturers_name to the display */ if (isset($_GET['manufacturers_id'])) { $manufacturers_query = "select manufacturers_name from " . TABLE_MANUFACTURERS . " where manufacturers_id = '" . (int)$_GET['manufacturers_id'] . "'"; $manufacturers = $db->Execute($manufacturers_query); if ($manufacturers->RecordCount() > 0) { $breadcrumb->add($manufacturers->fields['manufacturers_name'], zen_href_link(FILENAME_DEFAULT, 'manufacturers_id=' . $_GET['manufacturers_id'])); } } /** * add the products model to the breadcrumb trail */ if (isset($_GET['products_id'])) { $productname_query = "select products_name from " . TABLE_PRODUCTS_DESCRIPTION . " where products_id = '" . (int)$_GET['products_id'] . "' and language_id = '" . $_SESSION['languages_id'] . "'"; $productname = $db->Execute($productname_query); if ($productname->RecordCount() > 0) { $breadcrumb->add($productname->fields['products_name'], zen_href_link(zen_get_info_page($_GET['products_id']), 'cPath=' . $cPath . '&products_id=' . $_GET['products_id'])); } } ?>