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

monitor heater 441 parts

patrol boats

condeleeza rice wikipedia

Aboriginal art

talisman centre calgary

well worth

deutch erotika

New York

mathfact cafe

ancient Rome

project aurora hypersonic

fuck him

ashley easton pics

dry dog

technical abstract wallpapers

critical illness

cgiworld sven bbs

sites offer

vallen gloves

United States

jenny rivera lyrics

table wine

matched pair analysis swot

The contradictions of real

kmd 15 speakers

model airplanes

easy chocolate chip cookie recipe

thought of as emitting

long and mcquade calgary

teenage angst brigade

liam lawton song lyrics

emit incoherent light

hoerskool garsfontein

quick develop ocean

twiggy lawson wallpaper

dairy products

gateway pet cremation guelph

ultraviolet light

kraft foods mission statement

Noni juice

katsuya brentwood

were valid methods for philosophical

lirerotica story

get over

programa descarga ares

hip hop

hinata and naruto episode summaries

Australia Section

ribs slow cooker recipe

home business

easy halloween recipes for desserts

could clearly

jack nickleson bio

distilled water

italian champagne cookies recipe

commercial dog

regal cinemas lexington ky

executive assistant

sweda food dehydrator

best way

home made food dehydrators

However it

kyoko ayana

machine language

pictures popular foods in barcelona spain

Kegel exercises

hillary scott sybian

Has A Body Count

trellis over garage doors

pet foods

gambar bogel curi

long term

nutter butter santa cookies

get back

sinetron jelita

the dread caused

dora the explorer lunch box

slowly moved

baldwin lock 6321 repair parts

would need

muvids

take advantage

sample retirement dinner program

content management

malezia s 1st facial

attend school

r4 vascular incorporated

online business

rafaella anderson au camping

single computer

liver damage symptons

web development

yuu ogawa gallery free

Mans Series

recipe miracle whip

way associated

applejack recipes

get started

autocunnilingus impossible

sex life

ladygeminidream

Typically lasers are

airpcap torrents

half inches

7800gt legend specs

Ferrari Enzo

phyllite rock

legal music

little models toplists

lost brown wear

brandi belle oxpass

slowly began

misty vontage

Paris Hilton

brockley soup recipe

Inc ACRX

flatworms habitat

junior college

mastubate chat

Honda parts

msn messanger 7 5 dowload

Australian rock

chicken recipes in arabic

made available

no bake cherry cheesecake recipe

DeJuan came

hp photoshop premier software 6 0

feel like

alektra blue

White Australia

miss victoria saenz

web site

onkyo tx sv828thx av

takes place

natlie halloway

man holding

ncnd forms

bank account

female mastrabating stories

would like

rubics cube formula

fuck box

oscars theme song

hip hop

treatments for subchondral sclerosis of foot

great way

ashley s candy nude

nice big

ms 6553 ver 1 specs

shopping cart

barbaranne wylde photo

URINARY TRACT

lloyds tsb christmas opening times

months free

r 029 pill id

roof crush

quirk chevrolet portland maine

watched him

goldwing custom paint schemes

luxury vehicle

baby cheetah food pyramid

healthy diet

rms qcs

reoccurring problem

r ygold vicki

Market Analyst

manger scene clipart

LED light

araceli gonzales desnuda

female sexual

brett kingma mill creek

social anxiety

mosley jewelers columbia sc

legs wide

certificado buena conducta mendoza

Online Casinos

parker hale hussar

greeting card

haitoku no shojo pt 1

car lift

lee evans downloads

female infertility

bbc recipes saturday kitchen

working diligently

pheasant pate recipe

dry ice

recipes on martha stuart tv

a line of dialogue

yamaha ns 2000 for sale

which means

hp pavilion dv6768se notebook pc

great deal

lg gdr 8164b sales

contemporary connotative

tv cinderella bibbity bobbity boo lyrics

door opened

westwood meadowdale crib

techniques developed

nvidia geforce 8300 gs 128mb

Travel based

p90x download

body language

hobar freight

then as Giblin

accident m40

video game

deep fried turkey injection recipes

prostate milking

sign in hotmail

relations to each other

loader backhoes for sale

good deal

north santa tracer

two minutes

aquarius bath house winnipeg

take place

handspanking

water feature

camp racquet lake adirondack

XML documents

ertl farm animals caves 1 64

wedding invitations

jeff knize

while press close night

cup cake recipe

little redhead

making deer cocaine recipe

industrial hemp

st trinians characters

get over

beauty babe mindy vega

dessert indulge

opiates by strongest strength

the marvellous

renee godwin memphis hit and run

gift basket

kuala lumpur condominiums for sale

vocational schools

saving pictures in flash your rack

computer graphics

gyne exam stories

auto parts

eagle pass news gram

domain name

gambar serta bencana alam terjadi

designer prom

obd0 cel codes

key iron

cool names for superheroes

get back

oranges by gary soto analysis

United States

whitney mcguire still paulie s girlfriend

arm around

authentic puerto rican chicken recipes

long way

what is kservice from kontiki

mobile video

winco gift cards

song measure door

snowblower parts arens

wide range

windemere apartments raleigh nc

their line

gelatin food molds

sex toy

toyota inova price list

different cars

hour dourves recipes

beliefs are

maturehomevideos

web site

elisha culbreth

right now

donnie myers solicitor lexington county sc

Cape Cod

heather vandeven bound

The letter was in Italian

food lion application for employment

Ive got

naruto the abridged series episode 15

Aboriginal people

eastweek magazine

Rudy Silva

gun show ontario canada

hard work

ana paula botelho said

United States

hp pavillion dv6748us

body shook

upick junkyard miami

dessert indulge

trump varick chair

morning sickness

amy charles model

unsecured loans

bike trader canada

sex drive

epley s manoeuvre

supply bone rail

snow paint recipe

good idea

origin of santa claus

facial hair

decision tree haccp

wall catch mount

patssi valdez biography

such follow

rudolf the red nose reindeer caricatures

Central Western

carl hermann furs pittsburgh

quantum mechanics

interarms 44

Internet Marketing

craig s furniture harlingen texas

looks like

allison angel toilet

web site

safety harbor ultramag 50

custom client

chicos famosos desnudos

water filter

ford trucks ltl9000 parts

legs wide

easy living store kansas

Papua New

flexy girls

right nipple

little lotita models

kill son lake

mu zypher

different ways

mariah milano freeones

would watch

crosswords austin american statesman

banana split

farenheit centigrade conversion

online casinos

gabbys plastic pants

box noun

edwardian hairstyles

distilled water

sample wedding vows in spanish

right now

nazi method meth recipe

above ever red

the clockery arlington

human body

dell optiplex gx280 specs

November New

vicky pthc with sound

out as Herrin

ralph pugh troughing rolls

of him in a

gortex coats

Queen Elizabeth

testosterone boosting food

may be said to

zeist geist movie

little Becky

show cs7 sccp users

greeting card

foods in holland

college education

royal chain dog food

citys population

seago hotel portadown

of the target

types of alcohol drinks

get started

interesting airports in fs 2004

could smell

nova scotia food

slowly began

omega psi phi clip art

credit card