[ Index ] |
|
Code source de Zen Cart E-Commerce Shopping Cart 1.3.7.1 |
1 <?php 2 /** 3 * @package admin 4 * @copyright Copyright 2003-2006 Zen Cart Development Team 5 * @copyright Portions Copyright 2003 osCommerce 6 * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0 7 * @version $Id: prod_cat_header_code.php 3009 2006-02-11 15:41:10Z wilt $ 8 */ 9 if (!defined('IS_ADMIN_FLAG')) { 10 die('Illegal Access'); 11 } 12 require (DIR_WS_CLASSES . 'currencies.php'); 13 $currencies = new currencies(); 14 15 16 if (isset($_GET['product_type'])) { 17 $product_type = zen_db_prepare_input($_GET['product_type']); 18 } else { 19 $product_type='1'; 20 } 21 22 $type_admin_handler = $zc_products->get_admin_handler($product_type); 23 24 function zen_reset_page() { 25 global $db, $current_category_id; 26 $look_up = $db->Execute("select p.products_id, pd.products_name, p.products_model, p.products_quantity, p.products_image, p.products_price, p.products_date_added, p.products_last_modified, p.products_date_available, p.products_status, p.products_quantity_order_min, p.products_quantity_order_units, p.products_priced_by_attribute, p.product_is_free, p.product_is_call, p.products_quantity_mixed, p.product_is_always_free_shipping, p.products_quantity_order_max from " . TABLE_PRODUCTS . " p, " . TABLE_PRODUCTS_DESCRIPTION . " pd, " . TABLE_PRODUCTS_TO_CATEGORIES . " p2c where p.products_id = pd.products_id and pd.language_id = '" . (int)$_SESSION['languages_id'] . "' and p.products_id = p2c.products_id and p2c.categories_id = '" . $current_category_id . "' order by pd.products_name"); 27 while (!$look_up->EOF) { 28 $look_count ++; 29 if ($look_up->fields['products_id']== $_GET['pID']) { 30 exit; 31 } else { 32 $look_up->MoveNext(); 33 } 34 } 35 return round( ($look_count+.05)/MAX_DISPLAY_RESULTS_CATEGORIES); 36 } 37 // make array for product types 38 39 $sql = "select * from " . TABLE_PRODUCT_TYPES; 40 $product_types = $db->Execute($sql); 41 while (!$product_types->EOF) { 42 $product_types_array[] = array('id' => $product_types->fields['type_id'], 43 'text' => $product_types->fields['type_name']); 44 45 $product_types->MoveNext(); 46 } 47 ?>
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 |
![]() |