[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 源代码 product_listing_alpha_sorter.php

Zen Cart 源代码 product_listing_alpha_sorter.php




下载文件

文件名: product_listing_alpha_sorter.php
文件类型: PHP文件
文件大小: 1.47 KiB
MD5: 2f40e5db9000960f6dce418ec38c49e4

product_listing_alpha_sorter.php - 关闭高亮
  1. <?php
  2. /**
  3.  * product_listing_alpha_sorter module
  4.  *
  5.  * @package modules
  6.  * @copyright Copyright 2003-2006 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: product_listing_alpha_sorter.php 4330 2006-08-31 17:10:26Z ajeh $
  10.  */
  11. if (!defined('IS_ADMIN_FLAG')) {
  12.   die('Illegal Access');
  13. }
  14.  
  15. // build alpha sorter dropdown
  16.   if (PRODUCT_LIST_ALPHA_SORTER == 'true') {
  17.     if ((int)$_GET['alpha_filter_id'] == 0) {
  18.       $letters_list[] = array('id' => '0', 'text' => TEXT_PRODUCTS_LISTING_ALPHA_SORTER_NAMES);
  19.     } else {
  20.       $letters_list[] = array('id' => '0', 'text' => TEXT_PRODUCTS_LISTING_ALPHA_SORTER_NAMES_RESET);
  21.     }
  22.     for ($i=65; $i<91; $i++) {
  23.       $letters_list[] = array('id' => sprintf('%02d', $i), 'text' => chr($i) );
  24.     }
  25.     for ($i=48; $i<58; $i++) {
  26.       $letters_list[] = array('id' => sprintf('%02d', $i), 'text' => chr($i) );
  27.     }
  28.     if (TEXT_PRODUCTS_LISTING_ALPHA_SORTER != '') {
  29.       echo '<label class="inputLabel">' . TEXT_PRODUCTS_LISTING_ALPHA_SORTER . '</label>' . zen_draw_pull_down_menu('alpha_filter_id', $letters_list, (isset($_GET['alpha_filter_id']) ? $_GET['alpha_filter_id'] : ''), 'onchange="this.form.submit()"');
  30.     } else {
  31.       echo zen_draw_pull_down_menu('alpha_filter_id', $letters_list, (isset($_GET['alpha_filter_id']) ? $_GET['alpha_filter_id'] : ''), 'onchange="this.form.submit()"');
  32.     }
  33.   }
  34. ?>