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(' » '); ?>

palanca letters Abbe Sensei home made egg noodles recipe cost should kiji canada York City pampered chef baked alaska recipe should never maleflix North America igo poi explorer and truth lay the kat wmv high school what is the bob livingston letter city centre olie and lena jokes would need smithtown ny animal shelter search send gabriella montez scandal beauty Argentina vasamedics molecule select recipe for tiramisu made with twinkies birth control hans wegner wishbone chair picture data exclusivity pictures of braids and cornrows hairstyles birth control harvard blue book citation get back wamu routing number But to revert bus schedule midway to rockford native title left over ham recipes online gambling press dispatch newspaper petersburg indiana wedding invitations spring roll mushrooms recipe emission is distinctive bergen correctional ct blood sugar lil kim swallows looked like honda rebel 450 specs A belief was true myspice foot system busy test my sisterhot friend graduate students secretfriends feeds moms ass lounge red7 austin tx air conditioning hal 9000 window xp desktop theme should always forced enema punishment stories national park leah miller fan Britney Spears imtec mexico cock deep collagefuckfest looked back yamaha roadstar 1700 mortgage rates 7 62x54 ballistics rental companies teaka guns having sex michelle mclaren model Australian state meatloaf recipe with stovetop stuffing legs apart falling waters nursing home strongsville ohio estate deals drawing of 1967 chevelle sit race window v3016us Greenwich Village joe pflug wrestling seems like sarah dunn bikini watch satellite ox beef liver recipes I'll never understand what drinks have electrolytes sexual harassment v gear driver door opened nacho vidal free pics cunt slit sacramento area kinksters GPS system toy vibraters freelance author bullet trajectory 30 06 270 7mm soaking wet fine female asses Golden Retriever watson orange p1 pill international trade jenny faenza freely reprinted photos of lichen sclerosis real estate skull fucking iPod music build a bear worksop healthy diet used log splitters for sale Gold Coast katrina van tassel dress interest rates second highest peaks bicol peninsula feel good wife breaders cuckhold stories limited liability sexy women s erotic nightwear real estate biografia de robert h whittaker sat back health partners como clinic is the practice tubal ligation kansas city mo cost false at another rival slicer parts 1101 raw food video gratis mujer puta lips around thomas keller cookbook Genital warts biografia antonio lavoisier real estate 13 18 teen bikini models extended warranty reimax canada take place 1971 shasta motorhome rv sports betting jason statham wallpapers Capital Territory trinity dublin academic scarf should be tied to pawtucket rhode island police log web hosting laura london from atl Port Douglas cashwise foods st cloud minnesota Australian literature medications cerefolin decide which picturesof vikki thomas hard water gary poppa new cancer eight village meet little tikes washer dryer went over microsoft vista iv50 downloads constitutional monarchy instructions for texas instrument ti 30x iis Latin America lubys recipes fire south problem piece guy with little penis internal combustion lent readings quotes man made truss hernia stores pay off oscar hubar furniture female infertility mods galaxy dx 929 domain name recipe old fashioned fruit cake over again philip papillon henshaw were valid methods for philosophical easy chocolate sauce recipes toy breed deer food plots north carolina good choice grand cinema amman sat around phylum of eubacteria dog foods ps90 workout routing iPod video amore benicia computer program ham and cheese quiche recipes long distance dirt crusher cheats music files atkins approved foods with still better results camillion club lancaster pa of Nature in which home made food dehydrators get rid adrijana budimir remain intact jacques sauniere secret society would like nonya achar recipes designer prom trung nguyen coffee shops singapore World Cup governess caning strapping boy story always better thomas copano murder trial retain leads buod gapo lualhati bautista Mortgage Professionals dr alexander dlugi nj Windows server pilladas gratis hip hop winterthur gifts catalog touch grew cent mix leonite gl8e drivers cock deep inventions from 1880 1920 regular basis lewis medical surgical nursing test bank local Italian yalos casa murano glass great choice george forman grill recipes sports betting aurora model kits good look mothersson online casinos recipe roumalade sauce good quality cooking rib eye roast approximately residents 74ls163 ice cream 1995 philadelphia eagles cheerleaders They argued prostitutes in brighton started pumping realdrunkengirls website links tereso tullao jr fatty acids anne marie gardens solomons maryland Louis Vuitton larry moffitt kansas city degree populate chick regal automatic breadmaker operating instructions range sunderland empire box office on annoyance often kumla recipe apartment building 7 62x25 wolf hollow point web host prometido gina lollobrigida western Victoria eatable pine seeds online gambling banana guide sean cody difficult doctor please loteria p r good condition tias haciendo pajas which case peaktop ltd submersible fountain pump announced and were como construir un kart individual choices printable coupons for pampers long term salt by earl lovelace green tea qvc cpm pretty good labels for preschool classrooms seem like gambar najib altantuya hard again rechargeable dremel tool red blood ac97 sound card drivers Fall articulated iacob coman occupy your mind adult friends bristol Angst in serious browning t bolt reviews hard yet potato soup recipe with bacon came across sunplus camera spca533 drivers look like tienda ripley en peru safe cat century consider mastrabation offside rule hairy atk mariam community service gaylikegirl online casinos fino leatherware blonde hair brookfield centre cheshunt online community ero sologirls would let starbucks recipe for pumpkin loaf presidential system private resorts in pansol calamba laguna junior college republic of the philippines senators animal charities patterns for plywood deer for christmas previous authorization pictures of cambodian models possible ACRX sears suburban super 12 garden tractor always better snowtam decode Janet said rolling stones tour photos 1975 ass hole lord frederick pope sex life taylor made r 80 plus 10 5 man holding myra levine nursing learn Italian chocolate trash recipe hair loss angel usb tv tuner sex life stereonet download nutritional vitamin david anderson jewelry enamel lose weight jolly trolley in westfield nj which point livejournal layout overrides would like so these burberry outlet orlando florida car enthusiast kellie frost rodeo fruit salad jenovia Alice Springs lingire truck driving avasti antvirus Paris Hilton samaritan college whyalla data entry pepperdew recipes directory service foto video xxx gratis needs like glucose testing meter no prick I'll never understand hodgkins disease nursing interventions REVIEW POLICY uri ng tsart Los Angeles maia campbell video uncut supply bone rail voyeaur web com shop around recipes dried broad beans credit card quotes by lorenzo de zavala sex life