[ Index ] |
|
Code source de Zen Cart E-Commerce Shopping Cart 1.3.7.1 |
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 ?>
titre
Description
Corps
titre
Description
Corps
titre
Description
Corps
titre
Corps
Généré le : Mon Nov 26 16:45:43 2007 | par Balluche grâce à PHPXref 0.7 |
![]() |