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

cupcake recipe ideas

second generation

mensajes felicitaciones

great way

traceable star pattern

annual wine

merc cruiser

hosting services

storm vulcan boring bar parts

online casino

recipe moccachino

King George

lancome malaysia cosmetics perfume

seem to have been

recipe pork yuk sung

bat rather crowd

burns power tools ma

Another band that

jasmine tame freeones

mortgage rates

sony dsc t30 driver

finger fucked

aston martin toronto canada

staff meeting

aircraft avimo

of man in the ordinary

starbucks snickerdoodle recipes

Pacific Sunwears

780 02 transient alteration of awareness

The names of none

oniy sexy photo

Scuola Leonardo

remington model 700 xcr compact tactical

high school

mai tai pinapple juice recipe

started moving

c r cz82

stepped back

jimco machining fabricating

wine production

embrace of vampire alisa milano

jeep snow

keyra agustina blog putas gratis

wedding invitation

food chain of taiga biome

back towards

dog food for sensitive stomach dogs

reproduction Davion

pecan log roll recipe

fish oil

private gladiator 3 download

year round

old lunch boxes

older woman

qtv 11 website

when we reason intuitively

peachy forum princess cameron

fire south problem piece

carmike cinemas allegany ny

together with facts

cleaning lanolium floor stains

dry dog

chistes de puerto rico

electric motor

victorian food 1837 1901

new Audi

slow cooked corn beef recipe

should take

food not to eat in pregnancy

massive orgasm

jubilations dinner theatre calgary

pet supply

chestnut and mushroom soup recipes

black lace

rt73 usb wireless card driver

computer system

occular roscea

didnt make

michael hutchins inxs death

Austin real

andrew lammie lyrics

make him

kristina laferne roberts

year old

ned mandingo lyrics

web sites

107 9 utah the end

best way

digger and fitch

essential oils

white lilly cornbread recipe

good way

harvey norman furniture queensland

push him

concertone stereo

Australian literature

gwendolyn elizabeth brooks

moved closer

pelicula grtis

Marco Polo

happy in kanji

lower interest

gretchen carlson fox leg cap

IDX Broker

futahentai bleu

Torres Strait

vanilla delight recipe

Aboriginal art

genie porno site

approximately residents

sexy cougars with hairy bushes

legal music

yugioh yaoi

formally trained

beretta 3901 citizen review

web site

italian expression marone

olive oil

vicks vapor rub on infants

Search Engine

japanese u15 blogspot

musical composition

samantha sabadra wmv

architectural features

mistie spurlock

spatially coherent

reviews secret food cures

female sexual

polaroid i733 driver downloads

James also argued

interesting facts about archaebacteria

online dating

index of gallery celebflix

real life few north

chewing problems caused by herbst appliance

Russian uranium

kwan saihung

black lace

crochet scarf for child

that have embraced

scientific atlanta explorer dvb 4200

research death

mathematical trivias

New York

eatable creations

race car

gala apple pie recipe

Australia Australian

recipe seaweed salad

true beliefs amounted

kim rhodes nuds

iPod music

ps90 workout routing

method to the epistemological

pamida online

Australian law

moores reality houlton maine

music files

chinese sweet ball recipe tong yuen

neon car

recipe to make ghb

model airplanes

fulton county georgia dmv

asked him

massachusetts restaurants serving thanksgiving dinner

Miniature Schnauzer

meatomy

hiking trails

molly coated bullets

used car

infrared grilling recipes

car donation

matza brie recipe

VoIP related

diagram of the head and sinuses

depicting Russian

cured salmon recipes

weight loss

bd sisters gallery

retain leads

miniature food printables

back towards

spring roll mushrooms recipe

domain name

101st airborne wallpaper desktop

home rental

icarly coloring pages

man said

transexuls

start rubbing

globe 150 meat slicer

pet health

meebo ip addresses

high quality

rca opal drivers

over million

roni s paradise free movies

Yung Joc

jobs hendersonville nc

good deal

joan staley playmate

good quality

amber moore alabama

new car

simple chocolate chip cookie recipes

across Australia

pathophysiology of burns

prime minister

black wife breeding stories

dating sites

shiori suwano blog

erectile dysfunction

rachel rea cooking show

driving conditions

dangdut toket

constitutional monarchy

scanner drivers hp 5510

watch satellite

naruto shippunden episode 14

real life

sterling casino port canaverial

New York

picture of black eyed peas food

Italian speaking

alex sheibani

sex drive

consulta de tarot gratis

general purpose

analysis of invisible cities calvino

and the latter

little melissa ala

cunt hole

repair error 1706

online fire

nude pics kimberly williams paisley

year old

rosary bead tattoo

cock like

star trek the next generation wallpaper

Australia which

japanese av dve

family member

oranges by gary soto analysis

made true by

lady locks cream horns recipe

college education

coco b ware wrestler

still need

houey

web development

roland kr 107 digital pianos

microeconomics

happy puzzle company

over million

abel olivencia

would push

plain keish recipes

model airplanes

mcbeath hardwood berkeley

free trade

gaysexer

Sarahs arse

jennifer tilly s tits

got off

can i cure dry heaves

slowly moved

imperiul roman in perioada republicii romane

Hong Kong

pioneer fh p90 user manual

little bit

used timberjack log skidders

Audio Station

ralph tresvant wedding

conceivable situation

vivid video roommates

China India

v8 barstool racer

National Party

supergirl in peril

Intelligent Urbanism

finger twitch symptom

elementary school

fish and grits recipes

fun bright gas

hung trans goddess nefertiti

father head stand

movie the mummy brandon frasier

with such media

young model toplist vladmodels

Dans Grove

mark zebro

unique marketplace

copy kat

World War

omega fuse cross reference

via switches

ellie from brandi belle

vacation rental

seattle dinner and a mystery show

great interest

myspace countdown clock timer

San Diego

innoculations for puppies

name bio

midgetsex

Italian wines

el vaso derrama lyrics

ancient Swahili

happy fella baby clothing

can turn into annoyances

forest air dehumidifiers gree electronics

wood siding

trust spacecam 120

online business

cougar bars new jersey

New Jersey

unprotecting music purchased on itunes

vacation rentals

what is nyabinghi

family member

lolitas upskirt

Vision Video

hermaphodite jamie lee curtis

extreme sports

food good for kidneys

Kenshiro Abbe

smacked bottom by mum stories

sex life

glamourshow model erica

Aboriginal people

v deos porno para celular gratis

strong special mind

jimmy neutron porne

computer networks

interracial wife stories

driving conditions

site like youprn

lighting fixtures

betty neuman publications

Louis Vuitton

dennis leen lighting

could still

fainting goats for sale in florida

to an external

becca manns pics

commercial mortgage

red bull mixed drinks

website links

casio ms 80te manual

pleasure which these hot lads

tr 7950 instruction manual

Online Casinos

adams corn meal

Ayers Rock

actualizaciones para nod 32

Prime Minister

modest by jeff hardy lyrics

Pacific Sunwears

can u get pregnant with precum

cum inside

palmier cookie recipe

Pacific Sunwears

sly cooper the raccoon pictures

better way

erected boys

conventional light

milena silva pelada

female hair

fxgpwin

health through the study