[ 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/ -> document_categories.php (source)

   1  <?php
   2  /**

   3   * document_categories sidebox - displays the categories sidebox containing ONLY "document" products (product type = 3)

   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: document_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 . " c, " . TABLE_PRODUCT_TYPES . " pt, " . TABLE_PRODUCT_TYPES_TO_CATEGORY . " ptc where pt.type_master_type = 3 and ptc.product_type_id = pt.type_id and c.categories_id = ptc.category_id and c.categories_status=1 limit 1");
  18      if ($check_categories->RecordCount() > 0) {
  19        $box_categories_array = $main_category_tree->zen_category_tree(3);
  20        require($template->get_template_dir('tpl_document_categories.php',DIR_WS_TEMPLATE, $current_page_base,'sideboxes'). '/tpl_document_categories.php');
  21  
  22        $title = BOX_HEADING_DOCUMENT_CATEGORIES;
  23        $title_link = false;
  24  
  25        require($template->get_template_dir($column_box_default, DIR_WS_TEMPLATE, $current_page_base,'common') . '/' . $column_box_default);
  26      }
  27  
  28  ?>


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