[phpBB Debug] PHP Warning: in file [ROOT]/includes/crs/crs_misc_functions.php on line 37: mime_content_type(): Empty filename or path
[phpBB Debug] PHP Warning: in file [ROOT]/includes/crs/crs_misc_functions.php on line 37: mime_content_type(): Empty filename or path
Zen Cart 源代码 category_icon_display.php

Zen Cart 源代码 category_icon_display.php




下载文件

文件名: category_icon_display.php
文件类型: PHP文件
文件大小: 1.96 KiB
MD5: c3ccee8f9c0f769142a6ec88e4884c18

category_icon_display.php - 关闭高亮
  1. <?php
  2. /**
  3.  * category_icon_display module
  4.  *
  5.  * @package modules
  6.  * @copyright Copyright 2003-2007 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: category_icon_display.php 6104 2007-04-01 14:54:40Z ajeh $
  10.  */
  11. if (!defined('IS_ADMIN_FLAG')) {
  12.   die('Illegal Access');
  13. }
  14. if ($cPath == '') {
  15.   $cPath= zen_get_product_path((int)$_GET['products_id']);
  16. }
  17.  
  18. $cPath_new = zen_get_path(zen_get_products_category_id((int)$_GET['products_id']));
  19. //      if ((zen_get_categories_image(zen_get_products_category_id((int)$_GET['products_id']))) !='') {
  20. switch(true) {
  21.   case ($module_show_categories=='1'):
  22.   $align='left';
  23.   break;
  24.   case ($module_show_categories=='2'):
  25.   $align='center';
  26.   break;
  27.   case ($module_show_categories=='3'):
  28.   $align='right';
  29.   break;
  30. }
  31. //echo 'I SEE ' . $cPath . ' vs ' . $current_category_id;
  32. //$category_icon_display_name = zen_get_categories_name(zen_get_products_category_id((int)$_GET['products_id']), $_SESSION['languages_id']);
  33. //$category_icon_display_image = zen_get_categories_image(zen_get_products_category_id((int)$_GET['products_id']));
  34.  
  35.  
  36. $category_icon_display_name = zen_get_categories_name((int)$current_category_id);
  37. $category_icon_display_image = zen_get_categories_image((int)$current_category_id);
  38.  
  39. switch(true) {
  40.   // name only
  41.   case (PRODUCT_INFO_CATEGORIES_IMAGE_STATUS == 1):
  42.     $category_icon_display_image = '';
  43.     break;
  44.   // name and image but name only when blank
  45.   case (PRODUCT_INFO_CATEGORIES_IMAGE_STATUS == 2 && $category_icon_display_image == ''):
  46.     $category_icon_display_image = '';
  47.     break;
  48.   default:
  49.     // name and image always display image regardless
  50.     $category_icon_display_image = zen_image(DIR_WS_IMAGES . $category_icon_display_image, $category_icon_display_name, CATEGORY_ICON_IMAGE_WIDTH, CATEGORY_ICON_IMAGE_HEIGHT) . '<br />';
  51.     break;
  52. }
  53. //    }
  54. ?>