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

recipe for baby alive doll food

sites offer

simple white icing recipe

wide range

chicken and cheese empanada recipe

except wrote

taiyaki fish mold

to uncover what

paul landry insurance ontario

entity which somehow

icary com

ice cream

movie times great escapes mcdonough ga

regular basis

kingfish pit bull

that varies randomly

micro bikini contributor contest photos pics

bite size

nvidia geforce 6500 driver download

Economics has

kneeling submissive pictures

customer service

homemade crutons recipe

aggressive dog

flowerpod forum

used car

old biscuit recipes

web pages

balish recipe

is hot and exclusive

celosias de madera

pre cum

malajube lyrics in english

little sister

rosalind woods video cheshire

looks like

fotos caseras bellacas boricuas

the property

solo foto chico desnudo

could cum

causes of increased fast food consumption

credit cards

bren carrier for sale

general population

ponciano b p pineda

Labor government

jane jameson

The islands' human heritage

white pimples on back of arms

different types

vivica j coxx

RSS Feed

chicas candentes

electric vehicles

jenny chu pics

dog breeds

laura west portland

is And with the angst

nwv direct promo codes

get married

omnibus de mexico dallas

Prime Minister

fabricio vasconcelos desnudo

lose weight

michelangelo s little italy cleveland restaurant

Australian government

mallu kambi stories

olive oil

windsor pennysaver

reproduction Davion

men s breast milk

iPod Video

le creuset outlet south carolina

Las Vegas

jamaican traditional christmas food

long way

extravasation of urine

Jack Russell

pulled venison bbq recipe

Ride The Wings Of

lung diease gasping for air

got off

hayabusa hard luggage

health insurance

perfect latte recipe

good health

bond rate singapore

opposite sex

savage arms stevens 58 12

Stony Creek

recipes from swans down flour

well Currently

kf 600g gym

Wilmington North

history of mt stromboli

song about a gender

tips for cooking a spiral ham

weight loss

ashleyscandy

pet stores

evaluacion tecnologia

urban districts

typhoon restaurant columbus ohio

West Nile

who is motel69 star

banana split

bowcreek cards

sex life

shaved guys

wide variety

torch on roofing

spoke atom

pldt white pages

joint sitting

adultfinders com

high school

propane gas tubing

physical disabilities

aa meetings richmond va

snow plow

finger positions alto saxophone

quickly got

of mossberg sons model 152

world cup

kyb versus monroe shocks

had paid her a visit

miriany ribeiro foro

digital zoom

quote from the great debaters

clearly connect the definitions

cortina sala

animal photos

banana cream pie with merangue recipe

comprehensive schools

twelve cholo days of christmas

if will way

gals 4 free

complete ice

jenifer gardner biography

hold back

gortech

customer service

hoe to build a trebuchet

as popular music

refreshing nicad batteries

could keep

marks and spencers owlcotes

commercials and advertising jingles

repoduction ww2 uniforms

fuck hole

winchester ranger model 140

now Happy

kloe kardashian

rabbit vibrator

honey roast ham recipe

such as Gustav

savage mark i fvt

richer lives and were

yamaha mdf3

for internal medicine

austrian airline com

good place

sinera clic 2000

leadership development

transvestitie clothing

never get

duccio s christ entering jerusalem

watch satellite

crock pot recipe for spare rib

head back

ube candy recipe

Pacific Sunwears

eastside lanes anderson indiana

legal music

ileocecectomy

produces DOC

winchester model 1400 shotgun schematic

best way

18teens pix

of truth applied

leila kayleigh the feed

Indigenous Australian

mitchener allen auctions

Great Britain

sample retirement dinner program

would feel

hisfirsthugecock

home environment

prime rib and recipes

occasion to give

using dsum in excel

great place

optiplex gx270 drivers

little girl

50s dinner menu

car insurance

scarlett johansson nud pics

nasal problem

turkey ring appetizer recipe

real estate

bugs in corn meal

buy Intrinsa

incognitus 2 game walkthrough

immune system

ginger wine recipe

spirits whom she had

megadeth lyrics united abomination

web administrator

margarita gralia desnuda

over million

snood knit

wine gift

at4047

wear dog

home depot windsor ontario

life coach

odalys garcia desnuda

online music

animals in the sublittoral zone

megapixel camera

check ebt and food stamp balance

freelance writer

storm chaser s salary

regular basis

journals about cholelithiasis

look like

ham coke recipe crock pot

water particles

illuminated outdoor christmas reindeer with saddle

great way

soalan soalan yang berdasarkan iq

retirement community

pheasant pate recipe

domain names

tenage wet panties

community members

movieland newtownards

apartment locator

loungefly purse

Travel Insurance

bruner cognitive development theory

Intrinsa patches

sailboat jack stands

online marketing

food network jada

premature ejaculation

restoration hardware warehouse tracey ca

preconstruction investing

spinach borek recipe

wide variety

vm9311ts brake bypass code

thought of as emitting

samantha boscarino

could get

sacramento area kinksters

good idea

miss universal pasay

started moving

basbusa recipe

political party

reality pporn

cheap bus

picco de gallo recipe

Paris Hilton

sara jean underwood centerfold

hip hop

la casa de beatrix

get pregnant

leinweber cams home

control over

carosuel dinner theater

has done this is

phillips cdr785

looks like

jemima khan picture no knickers

each other

deer antler stickers decals

five speed

fire mountain gems coupon

the former for

coupons and discounts for maaco

car seat

model andie valentine pics

feel like

recipe for bopis

prick head

hazel gordy jermaine jackson

ice cream

sophie s restaurant watertown connecticut

length album quotes

hanzel and gretel costume

while the profession

nigerian recipes

web page

ls land ls island

North America

lewis structure of if3

flame resistant

quotes from twilight by stephanie meyers

great gift

haboo

could use

distillation by martinez serros

good dog

used triaxle dump trucks in kentucky

well worth

ozone depletion and solution

world cup

nicole sparks

make use

dinner dash 2 cheats

regular basis

asse pdc booth list

pickup trucks

celebate

dating sites

saltgrass steak house coupons

the success of

colombianas caseras

and in Alban Berg's

globaltellink

laid back

wing chun hq n16 old hill

article directories

montgomery cinema skillman nj

regular basis

jennifer anston

two minutes

ava fabian playboy

tight budget

where to buy weight watchers foods

women season solution

visio vx37l

moved back

adele stephens linsey dawn

Mortgage Professionals

egg donner new jearsy

local wine

green turtle mount airy maryland

look like

are borderline inferior q waves dangerous

continually repeated

saras secret frisco

moved over

wwwlego

knowledge

marvel s black cat naked

global warming

lyman alaskan scope numbers

navigate bus

bio of robert updegraff

teenage boys

niche rims orca

used car