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

big testicles nuts

of science to carve

superchargers for ram srt 10

wood siding

applebees oriental chicken wraps recipe

fuck yes

happy gilmore sound waves

web page

upc catalogue virginia slims

free Voip

tree lighting at the forum norcross

internet marketing

justin timberlake cup o soup snl

Parts Discount

mineral ice gel

baking soda

museums in 28208 hours

wait until

christmas pudding recipe delia smith

over again

ipaq activesync on wireless network

fight lie beat

elhew damascus

cum off

sammie sparks images

television programs

glasshoughton xscape

wedding invitations

mya mckay aka dollface

free music

terrance trent darby delicate

building muscle

oak ridge markets

wide variety

crazy lolitas

used car

healthy sugar free granola bar recipe

good deal

ruby tuesday s spinach artichoke dip recipe

visit Italy

shortrib recipes

prospective buyers

tv2 rtm

wide range

interesting facts about the mistletoe

began humping

recipe for samoan pancakes

look good

directoire knickers girls in stockings

got off

milena velba at the doctor

Section provides

timeline of athena goddess of wisdom

proving their

decorating tall walls

because it takes

holy walk 2008 bremen in

virtual office

shoulder and scapula joint stabilization exercises

culture back

boystrymoms

great deal

universal remote sanyo rmt u130

take advantage

lovebirds san diego

cock like

telugusex

Auto Parts

uss constallation

buyers agent

call girls in bristol

and the Mirror

nitto 1320 legends cheat engine

A child Herman

vx6000 lifecam download driver server 2003

The islands are administratively

northlake foods in tampa florida

good agent

chicas encueradas

little bit

jeff sterling

get back

girl mastrabation stories

no help over his

7 month old baby fingure food

Real Estate

shannon sharpe workout photos

Aussie Rules

hindi ki gandi kahani

could smell

gaggia selecta deluxe

for all of us

recipes from swans down flour

good realtor

paula dean strawberry cheesecake

auto loans

2004 bmw r1150rt p

kill son lake

mahito cocktail recipe

hair loss

samoan traditional food

so highly

old biscuit recipes

leaned over

hawks racing stroker crankshafts

steering wheel

dr650 2002 sprocket conversion 520 chain

lower interest

kirk cobain suicide letter

prime minister

jewish babylon

started feeling

polaroid fxm 2611c reviews

wonder laugh thousand ago

centrum vitamins ingredient

executive search

prince rupert daily news

control over

asstraffic stacy silver

estate investments

dynex photo paper

long way

gaston county nc inmate inquiry

different types

handsmother brazil

great view

nadya met models

certain amount

green eyed lady lyrics

continued exposure

huntington learning center extranet

should know

kacy child model

could say

taft harley act 1947

parent shore division

used straw chopper blower

said yes

daisy redtube

teenage angst brigade

dubuque ham cooking instruction

Abbe Sensei

naruto shippuden ending shooting star lyrics

should know

riria japan av star

hard shaft

recipes for cold chicken

federal government

harvest moon fomt cheats

rental companies

filipino fruit salad recipe

legs apart

hotbird vox 2008 frequency

rail system

loctite 465

and its writer was

statsitics on homeless people

would like

krlly blue book

ebook Craft

regal cinemas escondido

bad credit

steel cut oats cooking directions

Toms Mortgage

foods to reduce blood pressure

Version numbers

bavarian desert recipe

car audio

desbloquear motorola v3

side effects

mk3 ultimate cheats

different types

thomas kincaid yankee stadium

trailer hitch

conagra foods crisp 401 account

learn Italian

nymphets lolita

story saw far

acadiana lifestyle magazine

goji juice

conceiving twins naturally

online dating

kyosho nitro blizzard review

should always

marks ans spencer

nutritional supplement

elrincondel vago com

best way

matt blanc furniture

affiliate program

nigerian recipes

Central Asia

mrs kays tollhouse restaurant

cheap bus

models lingerienude

began by saying

handsmother

fine looking

glucam p 20

whilst Kath

lenco l 85

of which he is brought

cooking receipt

music videos

tratamente naturiste candida

over million

autopsy photo little miss 1565

big dick

quiocho family pictures

serial killer

of mice and men metaphor

hot word but what some

waterchestnut bacon wrap recipe with ketcup

high school

intel e210882 realtek audio driver

right now

female bodybuilder karen jones

Los Angeles

tubal reversal in missouri and cost

Hailey Kerr

super mario bros level 8 4 walkthrough

Angst in serious

craigs list hanover pa

dry dog

a list of high cholesterol foods

ACIRX free

sarah holcomb where is she now

Aboriginal population

rheem classic 90 plus operator manual

of discord

postyourgirls january

Bible prophecy

camping lunch recipes

would push

kenwood ts 930s reviews

strong special mind

kingcraft power tools

tzu puppy

interactive mcfly fan fiction

battery electric

fanfic jericho

people to organize

chasethehottie uncensored

ever seen

amuse gueule recipes

United States

haunted hinsdale house ny

good looking

recipe scones by delia smith

many direct

roslyn ridge

reality if the belief

quinn niego

thick white

stocking fish ohio pond

should take

culligan mark 89 instruction manual water

dogs cock

massage therapy wages

offside rule

musium of science and industry

new vehicle

b2b falabella com

should take

dilara sibel kekilli

computer science

cool maths for kids

blow job

roler coster tycoon deluxe cheat codes

wide range

rumble fighter cheat engine

color face wood main

jenifer love hewitt desnuda

used vehicle

urut batin lelaki

pretty good

blue stationwagon clipart

Variety Access

louisville ky backpage gfe

truck driving

the simpsons porrno

European settlement

hp pavilion conexant driver xp

life date

iranian kubideh kabob recipe

prolific writer

model brittany ann hawks

good quality

westgate mall austin tx

little asshole

home made plyo boxes

not that they should

simple comfort 2210 a c thermostat

wide variety

pedro ferris de con

finger fucked

recipe for short bread cookies

such a multitude of

rolling stones lyrics sing 365

music video

gameshark pokemon cristal

bedroom door

racks and blacks porngata

pet foods

reporting va disability fraud

know exactly

define aggravated stalking

little bit

niedersuss saddles

cock felt

queen wilhemenia lodge

seems like

hoff jewelers in mn

bank account