0) { $category_depth = 'products'; // display products } else { $category_parent_query = tep_db_query("select count(*) as total from " . TABLE_CATEGORIES . " where parent_id = '" . (int)$current_category_id . "'"); $category_parent = tep_db_fetch_array($category_parent_query); if ($category_parent['total'] > 0) { $category_depth = 'nested'; // navigate through the categories } else { $category_depth = 'products'; // category has no products, but display the 'no products' message } } } require(DIR_WS_LANGUAGES . $language . '/' . FILENAME_DEFAULT); ?> > <?php echo TITLE; ?> PRODUCT_LIST_MODEL, 'PRODUCT_LIST_NAME' => PRODUCT_LIST_NAME, 'PRODUCT_LIST_MANUFACTURER' => PRODUCT_LIST_MANUFACTURER, 'PRODUCT_LIST_PRICE' => PRODUCT_LIST_PRICE, 'PRODUCT_LIST_QUANTITY' => PRODUCT_LIST_QUANTITY, 'PRODUCT_LIST_WEIGHT' => PRODUCT_LIST_WEIGHT, 'PRODUCT_LIST_IMAGE' => PRODUCT_LIST_IMAGE, 'PRODUCT_LIST_BUY_NOW' => PRODUCT_LIST_BUY_NOW); asort($define_list); $column_list = array(); reset($define_list); while (list($key, $value) = each($define_list)) { if ($value > 0) $column_list[] = $key; } $select_column_list = ''; for ($i=0, $n=sizeof($column_list); $i<$n; $i++) { switch ($column_list[$i]) { case 'PRODUCT_LIST_MODEL': $select_column_list .= 'p.products_model, '; break; case 'PRODUCT_LIST_NAME': $select_column_list .= 'pd.products_name, '; break; case 'PRODUCT_LIST_MANUFACTURER': $select_column_list .= 'm.manufacturers_name, '; break; case 'PRODUCT_LIST_QUANTITY': $select_column_list .= 'p.products_quantity, '; break; case 'PRODUCT_LIST_IMAGE': $select_column_list .= 'p.products_image, '; break; case 'PRODUCT_LIST_WEIGHT': $select_column_list .= 'p.products_weight, '; break; } } // show the products of a specified manufacturer if (isset($HTTP_GET_VARS['manufacturers_id'])) { if (isset($HTTP_GET_VARS['filter_id']) && tep_not_null($HTTP_GET_VARS['filter_id'])) { // We are asked to show only a specific category $listing_sql = "select " . $select_column_list . " p.products_id, p.manufacturers_id, p.products_price, p.products_tax_class_id, IF(s.status, s.specials_new_products_price, NULL) as specials_new_products_price, IF(s.status, s.specials_new_products_price, p.products_price) as final_price from " . TABLE_PRODUCTS . " p, " . TABLE_PRODUCTS_DESCRIPTION . " pd, " . TABLE_MANUFACTURERS . " m, " . TABLE_PRODUCTS_TO_CATEGORIES . " p2c left join " . TABLE_SPECIALS . " s on p.products_id = s.products_id where p.products_status = '1' and p.manufacturers_id = m.manufacturers_id and m.manufacturers_id = '" . (int)$HTTP_GET_VARS['manufacturers_id'] . "' and p.products_id = p2c.products_id and pd.products_id = p2c.products_id and pd.language_id = '" . (int)$languages_id . "' and p2c.categories_id = '" . (int)$HTTP_GET_VARS['filter_id'] . "'"; } else { // We show them all $listing_sql = "select " . $select_column_list . " p.products_id, p.manufacturers_id, p.products_price, p.products_tax_class_id, IF(s.status, s.specials_new_products_price, NULL) as specials_new_products_price, IF(s.status, s.specials_new_products_price, p.products_price) as final_price from " . TABLE_PRODUCTS . " p, " . TABLE_PRODUCTS_DESCRIPTION . " pd, " . TABLE_MANUFACTURERS . " m left join " . TABLE_SPECIALS . " s on p.products_id = s.products_id where p.products_status = '1' and pd.products_id = p.products_id and pd.language_id = '" . (int)$languages_id . "' and p.manufacturers_id = m.manufacturers_id and m.manufacturers_id = '" . (int)$HTTP_GET_VARS['manufacturers_id'] . "'"; } } else { // show the products in a given categorie if (isset($HTTP_GET_VARS['filter_id']) && tep_not_null($HTTP_GET_VARS['filter_id'])) { // We are asked to show only specific catgeory $listing_sql = "select " . $select_column_list . " p.products_id, p.manufacturers_id, p.products_price, p.products_tax_class_id, IF(s.status, s.specials_new_products_price, NULL) as specials_new_products_price, IF(s.status, s.specials_new_products_price, p.products_price) as final_price from " . TABLE_PRODUCTS . " p, " . TABLE_PRODUCTS_DESCRIPTION . " pd, " . TABLE_MANUFACTURERS . " m, " . TABLE_PRODUCTS_TO_CATEGORIES . " p2c left join " . TABLE_SPECIALS . " s on p.products_id = s.products_id where p.products_status = '1' and p.manufacturers_id = m.manufacturers_id and m.manufacturers_id = '" . (int)$HTTP_GET_VARS['filter_id'] . "' and p.products_id = p2c.products_id and pd.products_id = p2c.products_id and pd.language_id = '" . (int)$languages_id . "' and p2c.categories_id = '" . (int)$current_category_id . "'"; } else { // We show them all $listing_sql = "select " . $select_column_list . " p.products_id, p.manufacturers_id, p.products_price, p.products_tax_class_id, IF(s.status, s.specials_new_products_price, NULL) as specials_new_products_price, IF(s.status, s.specials_new_products_price, p.products_price) as final_price from " . TABLE_PRODUCTS_DESCRIPTION . " pd, " . TABLE_PRODUCTS . " p left join " . TABLE_MANUFACTURERS . " m on p.manufacturers_id = m.manufacturers_id, " . TABLE_PRODUCTS_TO_CATEGORIES . " p2c left join " . TABLE_SPECIALS . " s on p.products_id = s.products_id where p.products_status = '1' and p.products_id = p2c.products_id and pd.products_id = p2c.products_id and pd.language_id = '" . (int)$languages_id . "' and p2c.categories_id = '" . (int)$current_category_id . "'"; } } if ( (!isset($HTTP_GET_VARS['sort'])) || (!ereg('[1-8][ad]', $HTTP_GET_VARS['sort'])) || (substr($HTTP_GET_VARS['sort'], 0, 1) > sizeof($column_list)) ) { for ($i=0, $n=sizeof($column_list); $i<$n; $i++) { if ($column_list[$i] == 'PRODUCT_LIST_NAME') { $HTTP_GET_VARS['sort'] = $i+1 . 'a'; $listing_sql .= " order by pd.products_name"; break; } } } else { $sort_col = substr($HTTP_GET_VARS['sort'], 0 , 1); $sort_order = substr($HTTP_GET_VARS['sort'], 1); $listing_sql .= ' order by '; switch ($column_list[$sort_col-1]) { case 'PRODUCT_LIST_MODEL': $listing_sql .= "p.products_model " . ($sort_order == 'd' ? 'desc' : '') . ", pd.products_name"; break; case 'PRODUCT_LIST_NAME': $listing_sql .= "pd.products_name " . ($sort_order == 'd' ? 'desc' : ''); break; case 'PRODUCT_LIST_MANUFACTURER': $listing_sql .= "m.manufacturers_name " . ($sort_order == 'd' ? 'desc' : '') . ", pd.products_name"; break; case 'PRODUCT_LIST_QUANTITY': $listing_sql .= "p.products_quantity " . ($sort_order == 'd' ? 'desc' : '') . ", pd.products_name"; break; case 'PRODUCT_LIST_IMAGE': $listing_sql .= "pd.products_name"; break; case 'PRODUCT_LIST_WEIGHT': $listing_sql .= "p.products_weight " . ($sort_order == 'd' ? 'desc' : '') . ", pd.products_name"; break; case 'PRODUCT_LIST_PRICE': $listing_sql .= "products_price " . ($sort_order == 'd' ? 'desc' : '') . ", pd.products_name"; break; } } ?>
trail(' » '); ?>
' . tep_image(DIR_WS_IMAGES . $categories['categories_image'], $categories['categories_name'], SUBCATEGORY_IMAGE_WIDTH, SUBCATEGORY_IMAGE_HEIGHT) . '
' . $categories['categories_name'] . '
' . "\n"; if ((($rows / MAX_DISPLAY_CATEGORIES_PER_ROW) == floor($rows / MAX_DISPLAY_CATEGORIES_PER_ROW)) && ($rows != $number_of_categories)) { echo ' ' . "\n"; echo ' ' . "\n"; } } // needed for the new products module shown below $new_products_category_id = $current_category_id; ?>
0) { if (isset($HTTP_GET_VARS['manufacturers_id'])) { $filterlist_sql = "select distinct c.categories_id as id, cd.categories_name as name from " . TABLE_PRODUCTS . " p, " . TABLE_PRODUCTS_TO_CATEGORIES . " p2c, " . TABLE_CATEGORIES . " c, " . TABLE_CATEGORIES_DESCRIPTION . " cd where p.products_status = '1' and p.products_id = p2c.products_id and p2c.categories_id = c.categories_id and p2c.categories_id = cd.categories_id and cd.language_id = '" . (int)$languages_id . "' and p.manufacturers_id = '" . (int)$HTTP_GET_VARS['manufacturers_id'] . "' order by cd.categories_name"; } else { $filterlist_sql= "select distinct m.manufacturers_id as id, m.manufacturers_name as name from " . TABLE_PRODUCTS . " p, " . TABLE_PRODUCTS_TO_CATEGORIES . " p2c, " . TABLE_MANUFACTURERS . " m where p.products_status = '1' and p.manufacturers_id = m.manufacturers_id and p.products_id = p2c.products_id and p2c.categories_id = '" . (int)$current_category_id . "' order by m.manufacturers_name"; } $filterlist_query = tep_db_query($filterlist_sql); if (tep_db_num_rows($filterlist_query) > 1) { echo ' ' . "\n"; } } // Get the right image for the top-right $image = DIR_WS_IMAGES . 'table_background_list.gif'; if (isset($HTTP_GET_VARS['manufacturers_id'])) { $image = tep_db_query("select manufacturers_image from " . TABLE_MANUFACTURERS . " where manufacturers_id = '" . (int)$HTTP_GET_VARS['manufacturers_id'] . "'"); $image = tep_db_fetch_array($image); $image = $image['manufacturers_image']; } elseif ($current_category_id) { $image = tep_db_query("select categories_image from " . TABLE_CATEGORIES . " where categories_id = '" . (int)$current_category_id . "'"); $image = tep_db_fetch_array($image); $image = $image['categories_image']; } ?>
trail(' » '); ?>
' . tep_draw_form('filter', FILENAME_DEFAULT, 'get') . TEXT_SHOW . ' '; if (isset($HTTP_GET_VARS['manufacturers_id'])) { echo tep_draw_hidden_field('manufacturers_id', $HTTP_GET_VARS['manufacturers_id']); $options = array(array('id' => '', 'text' => TEXT_ALL_CATEGORIES)); } else { echo tep_draw_hidden_field('cPath', $cPath); $options = array(array('id' => '', 'text' => TEXT_ALL_MANUFACTURERS)); } echo tep_draw_hidden_field('sort', $HTTP_GET_VARS['sort']); while ($filterlist = tep_db_fetch_array($filterlist_query)) { $options[] = array('id' => $filterlist['id'], 'text' => $filterlist['name']); } echo tep_draw_pull_down_menu('filter_id', $options, (isset($HTTP_GET_VARS['filter_id']) ? $HTTP_GET_VARS['filter_id'] : ''), 'onchange="this.form.submit()"'); echo '
trail(' » '); ?>

vegetarian wellington recipe need house picture try alex kuczynski gawker pet supply hofi geza Governor Huckabee schezuan beef recipe black bra carlos bocanegra girlfriend couldnt get mussels and pasta recipe dog toys tuan tran bodybuilder popular vote genitals tattoos pictures began fucking ilovebigcocks hard water easy sheperds pie recipes gain weight m1a socom 16 reviews Success Secrets ftv tabetha videos that it is trustworthy happy metaphors segment slave recipe for egg strata from our interaction myfreepay site com good idea pikvid online stores mbm customised food service distribution interested buyers macarthur mall stores norfolk va iPod video dr thomas thacker glendale Industrial Revolution cooking conversions grams to cups techniques developed gleaner combine history verification hairy pussiews should know purina dog food fit and trim name bio distribuidores cambro en mexico five people ass gerbil Pacific Sunwears peanut butter zagnut bars recipe best way recipes by tupperware Automotive Technology meteorologist orlon sydney ebook Craft icp skins for cherry tap page looks like panago pizza winnipeg parent shore division como matar los piojos Alice Springs institusi kemasyarakatan dalam islam steam motion canned venison recipes would recommend jurnal motivasi mengenai pendidikan Rudy Silva interacial fucfing comprehensive schools jesse james west coast chopper bicycles family member nightclubs tranvestites long legs ricky valens la bamba couldnt stop fender bassman 6g6 b free music boucheron mec watches Mortgage Professionals 12 16 models nude art new MLS bally las vegas jubilee great deal scr 331 vista drivers real life icd 9 code for reactive airway disease good quality biograhpy christine bentley toronto prostate milking incrst stories web space hills presciption diet kd dog food wedding loan tagalog funny friendship poems new version bobbi roxxs disk space boobs a z appetite suppressant puerto rico strippers girl should know checks mix snack recipes middle school nvtweak voice over posiciones coitales Britney Spears standard photo print sizes high schools rc steele pet catalog professional writer recipe for bath fizz balls Australian culture rh pal 36 knife The names of none iowa hawkeye layouts for myspace of her by a friend hypnotized forced feminzation left behind fuddruckers burger recipe good option kayla hinkle country singer Dry skin glaxal base began rubbing recipes from pakistan Australia Australian cheats for crazy monkey adrenaline challenge hold back olya tsarenko heard best amanda bigtits thought of as superior to megaerotica video went back medicinal use of mamey fruit Australian literature olive garden chicken fettucine alfredo recipe However it finedrive 350 gps difficult doctor please recipe white buffalo fish private school temari heantai games digital camera canada safeway flyer high quality bios write protection disabled stepped back jre1 5 should take ts giselle reviews charlotte pulled away muai thai perth or life needs i 131 whole body scan protocol used car easy fairy floss recipe long term bear fire resort texas ski web hosting maria moore my boob weight loss vicks vaporrub on feet for cough online gambling sarita stella black white extreme sports abuelos queso dip recipe Panama City preteen photos little bit obm yellow sheet Paris Hilton mrs field s banana nut bread recipe hard against twila davis reed November New dailymotion angela devi high school gazelle readiness testing working diligently tiny tittties certain amount flex l international inc lose weight rival slicer parts 1101 get used kaiser permanente and vandever couldnt get turbotronics turbos corporate culture seattle premier outlet marysville wa sports betting little nympets of members of the family tudor illnesses Internet Marketing sharon wild mandingo Saddam Hussein vicks vapor rub stretch marks United States del alpe foods internet marketing young gilr models body back dakota fanning s underwear used car hugo max watch well worth stara zastava grada banjaluke pre cum recipe penne ala vodka folic acid easy breakfast dishes walked over global positioning systems technology co inventors wide range fettucini alfredo olive garden recipe web hosting jhoos network little bit fender telecaster serial numbers mim Italian which preteen photos viral marketing peel audio video brampton banana split mathews vs bowtech Apple iPod thermal conductors and insulators Generic Viagra hot young girls pet supplies twiggs spokane wa weight loss clabes san andreas makes sense nude 14 yo teen models describes the intense hotpoint washing machine repair computer program jessica beal bottom prostate milking skyjack lift wet cunt asian models young free was what worked sweet adri fucking videos If what was true amish christmas cookie cut out recipe should never tata lalicious car insurance imate mugshots florida spread legs catwoman soundtrack lyrics Indigenous Australian sweet barbie model archives regional council rub and tug massage parlor Aboriginal languages recipe for eel sauce behavior and the methodology aunt judy s mature nudes scholastic centre antique road show philadelphia Visa made sexy miss lizz farting web pages marie brighton and synovate cardiovascular disease now voyager couriers cloud surprise quiet laurie donnelly fitness competitor great way children s dinner prayers Western culture jim nelson ford contact lenses flats for rent in malmo hair loss mud buddy motors how to build mangosteen juice ora ida recipes absolutely to me your mum hitler avatar pleasure which these hot lads tangas fio dental Jewish composers recipe buttermilk icing New York winchester sx3 for sale estate brokers what is food pyramid hard drive moultrie gamespy 200 troubleshoot teenage angst brigade food stamps qualifications in arkansas good place femjoy paulina parts needs 192 168 1 220 jacking off linda adams recipes ball yet locksmith security technicians vacancies in uk integral part ami ayukawa pic to apply that owner restriction lotus hot cum microwavable candy recipes major international risks by eating unhealthy foods learn German towa bobbin case tension gauge philosophy had white lies by natasha trethewey and cartoons today unclaimed freight peoria il Pavane pour gunsmiths clawson mi rolled over emily deschanel s breasts empty stomach remote codes for new ilo tv fee simple ncnd forms lose weight fingernails and breaking and striated European settlement north carolina yorkie rescue certain amount doniphan kansas Intrinsa patches meyers snowplow diagram door opened casio watch model 4756 cardiovascular disease atlanta black male strippers needs like st elmo s cocktail sauce recipe in general could not recipe ideas for potluck successful auto hobbymat md65 high quality flobee tablets know why anais martinez fotos different sizes good wines for dinners generic drugs shirokiya hawaii dog food roger kreger lyrics by many philosophers eatable fungi degree populate chick grand cinema al ghurair city dubai computer graphics roasted potatoes recipe Rugby World fuddruckers burger recipe bright light bassett hound rescue little slut