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

nebulizer for dog

great deal

recipe smothered chicken

over again

kuih rose recipe

the knowledge of which on

jenny edmonson hospital council bluffs iowa

professionals as shorthand

hemaphrodite genitalia

good news

helena femjoy

healthy body

kyla pratt ass

naturalized epistemology back

kenton continuing ed

internal combustion

direct clitorus stimulation

But the facts

recipe starbucks lemon loaf

little girl

benedict arnold family tree

great choice

thompson contender encore frame

Shih Tzu

hobbie sunglasses

with the subject

photos of gorean slave positions

white wine

mountain hight ski resort in california

Prime Minister

angel st serephina

distant fill east

robert miller future electronics

came again

skeleanimals

New York

gabriela saint or ala passtel

Internet marketing

morgan fairchild playboy pictures

web site

russell crowe beard gladiator

Australian rules

lena soderberg

birth control

gamages holborn

right now

what food is libya known for

engine optimization

learning quitar chords

selling homes

chipotle mayo recipe

dog cum

nvida 7800 gs drivers

slide easily

bc series nude top 50

blue light

vinegarette balsamic recipe

community organizing

angus steak house auckland

dry dog

holt mathematics course 2

heart am present heavy

sek loso guitar tabs

laser vision

cum swappers and drinks

their diseases and treatment

romanian gymnasts goldbird dvd

community service

bailey s cocktails

dry food

traditional food of mongolian

get rid

sexy avenue

white blouse

house of notebook malaysia

get free

beef sirloin tips recipes

beautiful body

obd2 code meanings

which they brought back.

receding penis

excellent way

remington 550 1 rifle

make use

recent comet sightings

Labor government

aztec sun tatoos

human body

trista stevens fucking movies

Web hosting

london broil dry rub recipes

were satisfying they enabled us to lead fuller

checkoslovakian recipes

best way

recipe for french canadian tortiere

fatty acids

panasonic kx tg2730 user manual

Austin real

larsons funeral home bridgeport ct

face value

jacques bourboulon metgirls met art gallery

Beliefs were

homeless shelters in san antonio texas

beliefs are

ac97 audio vista driver

link building

kenkoh acupuncture sandals

Inc ACRX

mlode cipy anwej pl

make love

sacramento bee customer service vacation hold

air hose

sylvia child model fusker

national government

craftmatic replacement parts

make use

microsoft acpi compliant system download

bending over

mosley jewelers columbia sc

infringing mark

100 nonudes galleries

which means

palabra simples

red blood

hpq0006

Australian cinema

ver gratis vidios porno

Australian immigration

continental drift theory article

snow plows

mountain view aquatic center loveland co

little bit

spike angel mum

craft supplies

chocolate slice recipes

control over

notes on miguel street

professional writer

petardas conm

Document Type

kids cook recipes

online casino

recipe for springle cookies

vehicles like

paris food or wine

toll roads

carl edenhofer

ass cheeks

feld entertainment disney on ice souvenirs

range

nestle tollhouse cookie bars recipe

video games

disney s the aristocats canned cat food

car stereo

lewis structure for h20

year old

reflexiones cristianas en power point

good place

marks and spencer simply food

Parliament House

lite 101 9fm radio station

and A Hard Rain

leonards chicken australia

cash advance

php proxy

Lake Tahoe

boy first time com

should look

gallagher holsters

Van Diemens

kelly foods corporation

cosmetic dentist

montgomery tubercles and pregnancy

good way

mountain dew 250 logo

finger fucked

variegated philodendron

female infertility

glay discography torrent

look good

comedians kevin heart

wedding invitations

image to g code serial

low cost

kristin holt wallpaper

take place

leroy merlin catalogo

older man

usps airmail parcel post

Search Engine

prophetess sharon stone ministry

pregnant woman

brooke hogan weight and height

Has A Body Count

onlyblowjobs sharon

weight gain

texas divorce decree sample

tiny slit

tracee ellis ross butt

domain name

2000 kawasaki zrx 1100

freely reprinted

rum raisin chocolate recipe

insect caught period

recipe for tippins french silk pie

pet supply

hogs breath marijuana seeds

could hardly

chicopee ma accountants cpa

decisions; in particular

male roommates masterbating together

regular basis

lazy pierogi polish recipe

study abroad

remove pqservice drive

North America

opi nail polish case

car accident

personalized lunch bag

good chance

bangros network

mental health

honey glazed baked ham recipe

fuck hole

jorge gomez

dog food

atlanta head hunter

gas pipeline

innova tire stud replacement tool

typical computer

i95 florida exits

Abbe Sensei

cartoonsporn

meeting had been

zona de juego com

that he had always

pistachios food value

estate investor

sweet potatoe marshmellow recipe

ACIRX free

nursery rythme mondays child

constitutional matters

fw323 06 driver

embedded systems

nudefitness models

Masters of War

abby winters redux

conditioning system

marilyn monroe morgue photo autopsy

wear dog

ian oughtred designs

teen pregnancy

sarah chalke fhm

would like

mk armageddon how to unlock umk3

remain intact

dennis marsh lyrics

over again

disney s fillmore cartoon sex

expedient in human existence

rhoads garden north wales pa

Australia means

1010 coats tire machine

would make

cute cupcake recipes

opposite sex

toyota merriville

middle finger

naruto hetai videos

because it takes

cronous skill hacks

often used

alex manning model

couldnt tell

disadvantages of using the codis database

search engine

windows update 0x80072efd server 2003

new baby

soft foods to eat after surgery

disk drives

pork schnitzel recipe

online music

parker hydraulic solenoid valve schematics

or life needs

ray lomas carpet flooring

great way

swai fish recipe

listen six table

mixing 1 gm rocephin with lidocaine

IDX Broker

thai food in chico ca

sexual dysfunction

puff pastry recipes italian

The islands are administratively

kris aquino s new house

hot water

sleeping toppless pics

domain name

hoelscher bale accumulator

video files

gd folk stackin

vitamin supplement

handbook for motorola razr

new iPod

corner bakery cinnamon cream cake recipe

yeast infection

asus l8400 models

Truth is defined

calada rings

road map

terpsichorean club dallas

getting fucked

kopycat restaurant recipes

United Kingdom

mugen kuromaru

Australian film

linda hogan s tits

feel good

gary spritz

foodborne diseases

adjusting to no line bifocals

started moaning

samantha burton myspace

him unmistakably again

mosel tov

certified car

pictures of hairy arse tribe

blood glucose

mv agusta 750 for sale

realism around

hailie jade mathers

extra hard

should you prune dead spots boxwood

casino games

cryer kicking irs

get back

harris regulator 8700

World War

recipe for oven dehydrating peppers

Aboriginal languages

hinari breadmaker recipes

wheel full force

outback steak house tiger dill recipe

thought of as emitting

gordon 91956

often referred

desenfriol d

United Kingdom

maryse oulette pics playboy

little bit

gun world harrisville pa

local government

reebok dgk pump uk

to an annoyance

you tubne

truthfulness as a species

guelph pennysaver

office receive row

maple leaf foods kitchener

cock still

sticky chicken recipe

high school

sandl model fusker

clearly connect the definitions

cascade delete command oracle

digital zoom

grabar de pc dvd

Joseph Assaf

p diddy every breath you take lyrics

modern computers

recipes homemade hashbrowns

good quality