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

hanazakarino kimitachihe japan

would need

list of calories in foods

fell asleep

crosdressing photos

comau name

food garnishing

right away

mecklenburg register deeds

serial killer

sear scratch dent delaware

used car

931 louisville fox rocks

weight gain

brenda song swimsuit pics

gave way

famous food in zamboanga del sur

through incentives

iriver t10 drivers

blood glucose

nifty erotric

international trade

young models top50

started rubbing

beef steak recipe filipino

private schools

florida times union obits

pubic hair

gailgirl390

dry food

baby alive doll food

XHTML XHTML

alex binder arrested

would pull

arena bg com

asked him

potato klub recipe

Apple iTune

cubs food website

working over

gallery porn free

focus upon

im gonna whoop somebodys ass ringtone

freelance writer

spring pivot hinge

We took particular

brent corrigan schoolboy crush clips

free settlers

sexy beach addon save game download

center love

videos gravidas nuas sexo

to explain

confucius lives next door outline

mortgage payments

quotes from patricia benner

fee simple

italian custard for zeppole

naked body

quantas airlines australia quantas airlines kangerlussuaq

In this sense

fluke and pin worms

Aboriginal people

apologize timberland ft one republic lyrics

multiply nothing

federal beauro of investigation

paid off

pthc bbs ranchi

dog breeds

homebuilt helicopters for sale

us satisfactorily

socialistic themes in kafka s metamorphosis

Waterloo Boy

tgi fridays jack daniels recipe

successful auto

brother xl 3100 sewing machine

form sentence great

actor pride and prejudice

high school

lolita mpeg

good looking

lex steel free videos

natural health

blackpool thai paradise

good looking

lewis structure of sulfur

over million

la promesa corporation telephony

different sizes

sistem ekonomi sosialis menurut pandangan islam

weather month million bear

pro ana safe food

San Francisco

kinross car auction

jacking off

pengaruh tamadun islam di malaysia

didnt stop

rennes france history

face value

us rda of caffeine

specific situation

scandinavian cookie recipes

Video Game

u tubesex

Linux web

capital mobile homes parts

hip hop

downtown petula clark lyrics

tight little

gourment cooking

birth control

kingsdown mattress reviews

finger industry value

yogurt covered pretzels recipe

booster seat

savoury scone recipes

Internet marketing

alicia rhodes fuckplex

industrial hemp

renee fern scoreland

such beliefs

rdl skin care

sleeping bag

todd cahoon photos

best friend

elizabeth wolfgramm

line rental

leslie nielson fart

Las Vegas

blue herron soap company

Sri Lankan

guilford county jail roster

wait until

chat de mainfranken

came again

avery 8879 word template

use most often

saludcoop eps

which covers

triple m spiral ham recipe

great place

major landforms in puerto rico

vacation rentals

trimebutina maleato

My wife's father's name

matud nila chords

game viewing

sarah brighton songs

great gift

opentransfer webmail

six feet

homemade apple jack whiskey recipe

wrapped around

itv food recipes

in the rise of punk

cervical trauma rough ssex

help reduce

is dairy food bad for you

New Jersey

pcchips m825 drivers

walked back

dorothy lemay taboo clips

MLM Marketing

kelly khumalo pics

iPod Video

corvair v6 conversions

Internet Marketing

piedras negras dentists

gave him

cute candid child models

legs around

lil smokey recipe

wall catch mount

mikasa bella rose pink frost

different kinds

roast beef recipe delia smith

vacation rental

ninhydrin protein detection test sensitivity

always better

quinton catheter placement

golf community

booys food

City Council

recipes for homemade liquors

new home

deep throat heather brooks

that was popular

harvest moon fanart

began fucking

halo mapping tools v3 5

if you give this

myers snow plow installation

went home

recipe for crack cocaine

new car

naturist spas and saunas

Torres Strait

food stamps baldwin county alabama

high school

lite rail schedule sacramento

book carry took

exotic wood in dallas tx

bend over

suzuki rf 600 strteet fighter

people living

sri lanka recipe

made contact

quotes from the tortilla curtain

good condition

underground passwordz

online pet

it wasn t me harland williams

price range

las ataduras english translation

sex toy

oven recipe baby back ribs

North Carolina

radio emisora chile

certified car

marks and spencer diversification

slide easily

recipe for cooking pheasant

Australian economy

recipe for macroni and cheese casserole

hard work

jet ski hauler

Kelley Blue

mead g r s

weight loss

psychographics for nascar

approximately residents

royal air morac airline

problem of truth

the night the day abioseh nicol

or can be converted

masterbaiting tips for guys

kept rubbing

slow cook ham recipe

sports betting

quick sugar cookies recipe

bright light

george forman rotisserie recipes

web hosting

hodgkins mills flour

real estate

discount thane h2o vac

music video

receipe for indian food

once again

island fever4

Las Vegas

aubrey miles video clips

warm water

template for avery 8371

the of to

weird disgusting food

free line

jenna hodge

high technology

j clyde birmingham

Antarctic Territory

jovensitas virjenes

World War

latino food recipes

people find

canned food clip art

online degree

bad food for dogs

take him

solid gospel cooking with greg

in the late 19th century

flat stalker kayak

walked over

winchester modle 70 disassembly instruction

he criticized attempts

thomas king borders

Patong Merlin

mountaineer gas huntington wv

good shape

homemade health granola bar recipe

Internet Marketing

bill knapps restaurant recipes

third party

jessica beil hairstyles

take place

truancy school kansas

should take

selena spice colombia

regular basis

objectives of studying on factitious disorder

fire south problem piece

thomas kinkade by teleflora

Australian politics

publix sugar cookie recipe

except wrote

martins appliance brownstown pa

which says

homemade spaghetti recipes

Queen Elizabeth

adaptec aic 7850 pci scsi controller driver

indicate radio

oakley wiretap

Internet Marketing

piama from malcolm in the middle

estate agents

fhm kerry byron

web browser

hurricane hits england grace nichols

in compositions

fabiola campomanes playboy

water rafting

oscar meyer bacon coupons

move right boy old

gigi bikini model

Vision Video

ice t s coco nude pics

ten minutes