$Id: categories.php,v 1.27 2004/02/16 07:26:01 hpdl Exp $ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright (c) 2004 osCommerce Released under the GNU General Public License */ ?> <!-- categories //--> <tr> <td> <?php $info_box_contents = array(); $info_box_contents[] = array('text' => BOX_HEADING_CATEGORIES); new infoBoxHeading($info_box_contents, true, false); $osC_CategoryTree = new osC_CategoryTree(); $osC_CategoryTree->setCategoryPath($cPath, '<b>', '</b>'); $osC_CategoryTree->setParentGroupString('', ''); $osC_CategoryTree->setParentString('', '->'); $osC_CategoryTree->setChildString('', '<br>'); $osC_CategoryTree->setSpacerString(' ', 2); $info_box_contents = array(); $info_box_contents[] = array('text' => $osC_CategoryTree->buildTree()); new infoBox($info_box_contents); ?> </td> </tr> <!-- categories_eof //-->
*/ require 'includes/application_top.php'; require DIR_WS_MODULES . FILENAME_SITEMAP_SEO; $keys_query = tep_db_query('SELECT name, value FROM seo WHERE type="sitemap"'); while ($keys = tep_db_fetch_array($keys_query)) { define('SITEMAP_' . strtoupper(str_replace('ë', 'e', $keys['name'])), $keys['value']); } /****************** DISPLAY CATEGORIES *********************/ $showCategories = ''; if (SITEMAP_CATEGORIEEN == '1') { $showCategories .= '<tr><td><h2>' . Translate('Categorieën') . '</h2></td></tr><tr><td height="10"></td></tr><tr><td class="sitemap">'; $class = 'category_tree_no_products.php'; $class = 'category_tree.php'; require DIR_WS_CLASSES . $class; $osC_CategoryTree = new osC_CategoryTree(); $showCategories .= $osC_CategoryTree->buildTree(); $showCategories .= '</td></tr>'; } /****************** DISPLAY INFOPAGES LINKS *********************/ $showInfoPages = ''; if (SITEMAP_INFOPAGINA == '1') { $sitemap_list = ''; $countfirst = ''; function tep_count_sitemap_children($nav_id) { $navigatie_count = 0; $navigatie_query = tep_db_query("select id from navigatie where parent_id = '" . (int) $nav_id . "'"); while ($navigatie = tep_db_fetch_array($navigatie_query)) { $navigatie_count++; } return $navigatie_count;
</tr> </table></td> </tr> <tr> <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?> </td> </tr> <tr> <td><table border="0" width="100%" cellspacing="1" cellpadding="2"> <tr> <td width="60%" class="main" valign="top"><?php require DIR_WS_CLASSES . 'category_tree.php'; $osC_CategoryTree = new osC_CategoryTree(); echo $osC_CategoryTree->buildTree(); ?> </td> <td width="40%" class="main" valign="top"> <ul> <li><?php echo '<a href="' . tep_href_link(FILENAME_ACCOUNT, '', 'SSL') . '">' . PAGE_ACCOUNT . '</a>'; ?> </li> <ul> <li><?php echo '<a href="' . tep_href_link(FILENAME_ACCOUNT_EDIT, '', 'SSL') . '">' . PAGE_ACCOUNT_EDIT . '</a>'; ?> </li> <li><?php echo '<a href="' . tep_href_link(FILENAME_ADDRESS_BOOK, '', 'SSL') . '">' . PAGE_ADDRESS_BOOK . '</a>';