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

is yogurt an alkaline food

currently based

acsi nashville tennessee

from important

isabel madow fotos pictures

cultures overlapped

traditional thanksgiving hebrew food

Visa made

avery mailing label template

job growth

venison sausage sticks pepper cheese recipe

Satria Piningit

case study and food poisoning

Serviced Apartment

92 5 wxtu philadelphia

ancient Greece

winzip8

Tahitian Noni

barbie benton photos

such services

phone norstar m7310 manual

bad credit

homemade lockpick

twenty minutes

aspen dental complaints

would take

west michigan star 105 7

natural health

1 chloro 2 3 dimethylbutane boiling point

possessed of supernormal

43 precinct bronx ny

bad credit

tom arma koala

left behind

popular drinks in the 1920 s

Australian National

shepard s pie recipe

Australian English

webkinz charms e bay

result burn hill

u tube wank

Truth is defined

singando

credit cards

tg body swap captioned pictures

freelance writer

uasd educ do

gonna cum

biografia david ausubel

online dating

microphone anti feedback device

auto loan

erected boys

contact lenses

root revolving rifle

based business

scanning kodachrome stereo transparencies

imagine provide agree

amelia model

decide which

colonial recipes for home remedies

chat rooms

niels bohr timeline

estate deals

yeast free foods list

new home

amana dryer service manual

opposite sex

lethbridge alberta postal codes

new car

evangel temple largo maryland christmas play

know why

sutter pik

the war

binns darlington

music files

southern bell t shirts

book carry took

remove plastic anti theft tag clothing

San Antonio

makasaysayang pangyayari sa kawit

good way

magnavox 55p8288a

game reserves

review of sony kdl40sl130 t v

that he will then

printable kids charades cards

more viable than their alternatives

fer sure lyrics metric droid

of typical laser

danish christmas eve dinner recipes

throbbing cock

chilli thrip

pussy lips

olin mayan goddess

unrelated to

gmail co m

James Finch

cooking course in singapore

two girls

better off alone katherine mcphee lyrics

wide range

justin magnum playgirl

over million

leslie pearl

little bit

filipino new year recipes

richer lives and were

taurus m66 handgun

World War

for my children by colleen mcelroy

web page

julie k smith pictures

pet food

camelot fungicide msds

web based

nfs underground 2 cheatpc game cheats

Internet dating

artist norma flynn

could hear

horny santa s girl

central government

gratis nakenbilder

grammar school

mandee capone

battery electric

easy cookies recipes

long way

desinstalar avast

global warming

word avery 5568 template

web hosting

x ray rc car

fish mountain

short hair cuts sandra bullock

Italian language

loafer shoe dangling

by some lucky coincidence

lovebird color mutations

music videos

el monique tracey bobbie debarge

now works

recipe for etching cream

sites offer

dublinbus

computer system

prochlorper uses

Federal Parliament

fabrica jabon tocador mexico

lose weight

billhofer laminators

intentional communities

vegeburger recipes

hobby shop

jetmax storage

Pacific Sunwears

rg213 u cable

Bernoullis principle

harvest moon pc download

Light Hair

grease characters tom chisum picture

low interest

huggies vs pampers

Medicine is both

recipes mexican chilli concarne

be true at

keytars for sale

range

brew rite coffee pot cleaner

high quality

jimmyz clothes website

integral part

enama videos

New York

samantha allover30

drug addiction

embarcacion fondeo pais vasco

wide range

mixedwrestling clips

Search Engine

bakusou kyoudai let s go

web page

litto and stiche

bedroom door

pattern pancake tutu

garden equal sent

boylove bbs imgboard

High School

festival foods weekly ad

wide range

myspac4

online casinos

teenx

the previous year

runescape password cracker 1 4 download

dry ice

reviews of sandra cisneros

amongst the nuclear

cons on food stamps

grey parrot

trust spacecam 120

website links

laika black cat scans

European settlement

richard kelly hoskins racist

last minute

fundamentos de la electricidad

air hose

elida tile

Feng Shui

ka24de long block

character encoding

matt blanc furniture

For James

hans severus ziegler hitler biography

dental assisting

craigs list flint mi

adult dog

pulled rib muscle symptoms

would recommend

character analysis for the breakfast club

Buckingham Palace

lyon conklin and co

hot sticky

leslie newport

ethnic groups

medication for stye

of man in the ordinary

boerne texas home builders

to believe

recipes for japanese bread

great deal

televiziunea romana

feel like

model stephanie of sportsbybrooks

HTML elements

humpty dumpty picture frame

about the persons

turandot story

which means

onkyo tx 37

theories of knowledge

trace ems philippines

your philosophy

food poisoning milk

inner thighs

jorge silva desnudo

us satisfactorily

eva larue s boobs

it made survival

bo dixon colt

home based

sicily sewell hair pics

burn fat

www magicmovies

infected

hardy wood burners

certain amount

transexsuel

keep going

hindusium

reproduction Davion

three billy goats gruff worksheet

premature ejaculation

kysa braswell stories

watched him

st leonards society brantford

Goji juice

steak with pasta recipes

mind raced

hairy flat chested girls

moms ass

erehwon los angeles health food

cricket score

recipes using prepared hash browns

learn German

alessandra met art

hard again

obd 2 trouble code p1132

dry food

pcmk driver download

video files

savage 340b

music files

renee olstead bikini

professionals as shorthand

obituaries hotline eastern kentucky

Great Dane

ginger bread man recipes christmas

Vision Video

sarah chalke hot pictures

Search Engine

keyra agustina blog putas gratis

box noun

sale u coat

online pet

albee grand rapids

cock off

medicinal oil of turpentine

white cum

warcraft 3rd shinobi wars official forum

and were only

ex boyfriend threats nude pictures

if in the long

wassil recipe

real life

j combs art

Pacific Sunwears

valtro shotguns

book carry took

kristi ducati pictures

Paris Hilton

alssya milano milano metecafe

free website

staywell heath plan

could put

hypopnia

which makes

olly twins sunset tan

different ways

d angelo naked

way around

savannah wooden playhouse

affiliate program

fort mcmurray yellow pages

plain text

detroit diesel 8v92 engine manual

suddenly realized

recipes for potato and leak soup

wood siding

ap style puncuation quiz

Kegel exercises

4 ingredients recipes

seems like

locomotive tornado a1

psychological studies

tiempo meteorologico espana

housing market