[ Index ]
 

Code source de Zen Cart E-Commerce Shopping Cart 1.3.7.1

Accédez au Source d'autres logiciels libres

Classes | Fonctions | Variables | Constantes | Tables

title

Body

[fermer]

/includes/modules/sideboxes/ -> categories.php (source)

   1  <?php
   2  /**

   3   * categories sidebox - prepares content for the main categories sidebox

   4   *

   5   * @package templateSystem

   6   * @copyright Copyright 2003-2005 Zen Cart Development Team

   7   * @copyright Portions Copyright 2003 osCommerce

   8   * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0

   9   * @version $Id: categories.php 2718 2005-12-28 06:42:39Z drbyte $

  10   */
  11  
  12      $main_category_tree = new category_tree;
  13      $row = 0;
  14      $box_categories_array = array();
  15  
  16  // don't build a tree when no categories

  17      $check_categories = $db->Execute("select categories_id from " . TABLE_CATEGORIES . " where categories_status=1 limit 1");
  18      if ($check_categories->RecordCount() > 0) {
  19        $box_categories_array = $main_category_tree->zen_category_tree();
  20      }
  21  
  22      require($template->get_template_dir('tpl_categories.php',DIR_WS_TEMPLATE, $current_page_base,'sideboxes'). '/tpl_categories.php');
  23  
  24      $title = BOX_HEADING_CATEGORIES;
  25      $title_link = false;
  26  
  27      require($template->get_template_dir($column_box_default, DIR_WS_TEMPLATE, $current_page_base,'common') . '/' . $column_box_default);
  28  ?>


Généré le : Mon Nov 26 16:45:43 2007 par Balluche grâce à PHPXref 0.7
  Clicky Web Analytics