Display Category Name | Last Update: 18th August, 2005 Article ID: 257 |
// start of added code for category/subcategory names
function last() { $trail_size = sizeof($this->_trail); return
$this->_trail[$trail_size-1]['title']; }
// end of added code
function breadcrumb() {
$this->reset();
}
function reset() {
$this->_trail = array();
}
<td class="pageHeading"><?php echo HEADING_TITLE; ?></td>
<td class="pageHeading"><?php echo $breadcrumb->last(); ?></td>
<td class="pageHeading"><?php echo HEADING_TITLE; ?></td>
<td class="pageHeading"><?php echo HEADING_TITLE . ' ' . tep_get_categories_name($cPath); ?></td>
////
// TABLES: categories_description
function tep_get_categories_name($who_am_i) {
global $languages_id;
$the_categories_name_query= tep_db_query("select categories_name from " . TABLE_CATEGORIES_DESCRIPTION . " where categories_id= '" . $who_am_i . "' and language_id= '" . $languages_id . "'");
$the_categories_name = tep_db_fetch_array($the_categories_name_query);
return $the_categories_name['categories_name'];
}
define('HEADING_TITLE', 'Let\'s See What We Have Here');
define('HEADING_TITLE', 'Categories');
define('HEADING_TITLE', '');
define('HEADING_TITLE', '');
<td class="pageHeading"><?php echo HEADING_TITLE; ?></td>
<td class="pageHeading"><?php echo HEADING_TITLE . ' ' . tep_get_categories_name($current_category_id); ?></td>
Trademark Policy | Copyright Policy | Sitemap Copyright © 2000-2005 osCommerce. All rights reserved. |