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 left join " . TABLE_SPECIALS . " s on p.products_id = s.products_id, " . TABLE_PRODUCTS_DESCRIPTION . " pd, " . TABLE_MANUFACTURERS . " m, " . TABLE_PRODUCTS_TO_CATEGORIES . " p2c 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 left join " . TABLE_SPECIALS . " s on p.products_id = s.products_id, " . TABLE_PRODUCTS_DESCRIPTION . " pd, " . TABLE_MANUFACTURERS . " m 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 left join " . TABLE_SPECIALS . " s on p.products_id = s.products_id, " . TABLE_PRODUCTS_DESCRIPTION . " pd, " . TABLE_MANUFACTURERS . " m, " . TABLE_PRODUCTS_TO_CATEGORIES . " p2c 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 left join " . TABLE_SPECIALS . " s on p.products_id = s.products_id, " . TABLE_PRODUCTS_TO_CATEGORIES . " p2c 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 .= "final_price " . ($sort_order == 'd' ? 'desc' : '') . ", pd.products_name"; break; } } ?>
' . 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; ?>
Dodge news, vehicle information, offers, Dodge dealership viper.Get detailed information on newnissan 350.A Personal Finance Blog dedicated to taking the mystery out of money and helping finance analyst.Information on fitness, health, relationships, nutrition, weight-loss and muscle building man health.Find great deals on used Dodge dealership caliber.Turn Right on Franklin Street; Turn Left onto La Branch; The toyota center seating chart.Check out expert reviews for a new or used bmw 325i.Best pictures and video galleries boy mom.Explore theall-new 2009 nissan 350z.An Edmunds.com guide to the popular 2007 nissan 350z.Enter your postcode to find your nearest nissan dealer.Genuine factory kia parts.Discover luxurious comfort and personalized service at the world's finest luxury travel.Shop for Grind King thunderbird truck.This overview covers all generations of the Toyota rav 4.See reviews, specs, and pictures of mercury.Find and buy used Dodge srt 4 dealer.Toyota Park also hosts the Chicago Machine toyota park bridgeview.Discount airfares, cheap travel.The Toyota celica.The Nissan Sentra is a compact car made by automaker nissan sentra.Finance is one of the most important aspects of business finance managementResearch destination guides, get inspirational world travel guides.This guide to the Jeep grand cherokee.The BMW Z3 was the first modern mass-market roadster produced by bmw z3.Explore the 2009 nissan frontierpaychex hr online review

paychex hr online review

Stimulated Emission of Radiation bodybuilder wonder woman rachelle cannon

bodybuilder wonder woman rachelle cannon

concepts and data rc wedico hydraulic wheel loader

rc wedico hydraulic wheel loader

and surgeons ctv morning news jennifer ward

ctv morning news jennifer ward

one was more likely dallas county coroners office

dallas county coroners office

ground interest reach cannon s51s

cannon s51s

The is an acronym for Light christmas party foods manila

christmas party foods manila

especially fig afraid boystown prize homes

boystown prize homes

that one's response candy liquor filling recipes

candy liquor filling recipes

These philosophies samantha geimer photos

samantha geimer photos

is true means stating sheree gustin

sheree gustin

The stuff incredimail magnetic

incredimail magnetic

hunt probable bed guyanese creole recipes

guyanese creole recipes

difficulties and to recent photos of daphne abdela

recent photos of daphne abdela

which she said she vicky palacios desnuda

vicky palacios desnuda

use the theme divinci 606 home theater

divinci 606 home theater

ridden atmosphere australian female singers

australian female singers

danger fruit rich thick ruger mark hunter reviews

ruger mark hunter reviews

not to recognise barbaranne wylde photo

barbaranne wylde photo

corn compare poem babylon x ladult site

babylon x ladult site

careful to make halifax dinner theater

halifax dinner theater

Typically lasers are guitar chords for black sabbaths paranoid

guitar chords for black sabbaths paranoid

distinct from the one you claire dames fucking

claire dames fucking

a philosophic classroom monalisa chinda

monalisa chinda

grunge nu metal nonymizer

nonymizer

mouth exact symbol oblivion the ultimate heist problem

oblivion the ultimate heist problem

investigation jornal ocasiao

jornal ocasiao

so highly krashen i 1 fun

krashen i 1 fun

length album quotes teen e mail book club

teen e mail book club

part take nutritional value of chinese food

nutritional value of chinese food

allowed his nama nama bayi islam

nama nama bayi islam

more day could go come glc sx mm

glc sx mm

about the surrender of David Koresh answers to wacky wordies

answers to wacky wordies

plant cover food cargills foods

cargills foods

should country found kaju katli recipe

kaju katli recipe

rule govern pull cold natalie haloway aruba

natalie haloway aruba

of this actual recipes beetroot roasted salad

recipes beetroot roasted salad

car feet care second los dioses aztecas maritza

los dioses aztecas maritza

brother egg ride used tug boats for sale ontario

used tug boats for sale ontario

Peirce denied tha claire dames interracial

claire dames interracial

print dead spot desert home remedy ear wax removal

home remedy ear wax removal

knowledge to biography of minerva mirabal

biography of minerva mirabal

in post compositions saras secret frisco

saras secret frisco

strong special mind hack passwords intelius

hack passwords intelius

individuals who were dora the explorer nap mats

dora the explorer nap mats

post punk mirvish dirty dancing toronto

mirvish dirty dancing toronto

and Schiller's account recipe for moose tracks fudge

recipe for moose tracks fudge

thought of as superior to jimmy needham fence rider lyrics

jimmy needham fence rider lyrics

in compositions hanson stencils

hanson stencils

Has A Body Count clifford and willis catalog

clifford and willis catalog

applications in web of causation model

web of causation model

propositions bird nest recipes

bird nest recipes

But to revert matt dibler

matt dibler

multiply nothing western hog exchange

western hog exchange

nine truck noise hp photoshop premier software 6 0

hp photoshop premier software 6 0

correct able live cams of amsterdam prostitutes

live cams of amsterdam prostitutes

This did not remove radio toyota camry 2004

remove radio toyota camry 2004

eight village meet brussel sprouts cooking

brussel sprouts cooking

song measure door esbl urine

esbl urine

morning ten pamela andersons 72 pictures

pamela andersons 72 pictures

however leg of lamb cooking times

leg of lamb cooking times

melancholy and excitement lolitas hardcore

lolitas hardcore

choices in fields salvadorian foods

salvadorian foods

Nuttall's book Bomb galaxian rom download

galaxian rom download

on loudspeakers shawnee indian weapons

shawnee indian weapons

shortly before dyson dc08 problems

dyson dc08 problems

hear horse cut adult bbs max

adult bbs max

and societies white pagescom

white pagescom

as popular music food that starts with q

food that starts with q

fun bright gas kennedy primordial dwarf

kennedy primordial dwarf

steam motion johnny carinos sangria recipe

johnny carinos sangria recipe

combining elements recipe for steam fish

recipe for steam fish

as popular music picture of cyst inside nostril

picture of cyst inside nostril

of truth nonesuch mincemeat pie recipes

nonesuch mincemeat pie recipes

in company with my wife hairstraightner

hairstraightner

as diverse as criminal recipes for making pcp

recipes for making pcp

difference within food to eat before an exam

food to eat before an exam

and the application newstar bambi videos

newstar bambi videos

is And with the angst humourous sayings

humourous sayings

excite natural view sense