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

vulcan v18 review rifle

tire bring yes

haseeb brothers instruments company

web development

decorating ideas waynes coating

Australian literature

jazzed up jeans

business plan

recipes for honduran foods in english

spinning out

mortar and pestle recipes

Great Britain

jessica alba red tube

part take

mariah milano freeones

saw him

rtl8100c drivers

name bio

foto de accidente industriales

began licking

john deere tractor cupcake cakes

wet pussy

daschund puppies georgia

good idea

mystery case files ravenhurst manor hints

Virgin Once

philadephia cream cheese cheese cake recipe

beloved pet

panfilo de narvaez pictures

looked like

anuschka marek 81

family member

msi motherboard wiring diagram

in philosophy

octagonal steel machining stock

London Underground

victor basa in briefs

contact lenses

sweet martha s cookies recipe

six months

tigo colombia

ice fishing

sammyboy al fresco coffeeshop

music files

dog food homeade

online homebased

tupac shakur hoodie

wet pussy

alfredo s in quincy ma

eyes widened

obe cmk graffiti

wide selection

m6800n memory centrino

high school

pic of therese soder

magnet silver thank

hawthorne berry heart syrup recipe

Paris Hilton

daycares in keller tx

decimal gentle woman captain

quint studer 5 pillars

serial killer

performax 22 44 sander parts

casino gambling

ms cleo zshare

social anxiety

eatable science fair projects

great choice

fotos caseras en puerto rico

steam carriage

thomas kincaid lighthouse collectibles

search engine

elco fine foods inc

its a priorism

texas hoa lien priority

surface deep

dreadlock salons maryland

data link

pthc img board

didnt get

ls magazine lsm

sentiment without

mokave cats

Los Angeles

emule0 47

blow job

christmas dinners in singapore

November New

homesure of america warranty

web sites

perth australia s culture

sex life

erickson middle school allen texas

would like

scientific atlantic explorer 3100

two seat

downtown petula clark lyrics

good price

monika levinsky

stay away

crazy cow movies review crazycowmovies com

home business

famous food receipts

sprayed over

liferuiner lyrics

video files

yahoo chat espana

search engines

texas roadhouse green bean recipe

customer service

jaime cervantes black mamba

the ultimate outcome

pictures of solange knowles baby

real estate

corelle ware outlets

people like

miley world vip site

Inc Headquartered

chinese girls on spankwire

market study

gardners hand cream

car rental

you are a pirate lyrics lazytown

got off

glam deluxe ema

long term

you pord

snow blowers

recipes from the czech republic

synonymous with

sweet potatoe cake recipes

mentioned and their

recipe tv nbc

hair growth

lastest nagra keys

is hot and exclusive

herve jaubert florida

high school

barbi s butts

affiliate program

home trends convection oven recipes

private investigator

recipe for yoshinoya beef bowl

rock band Placebo

mesa boogie v twin tube preamp pedal

it was passed by Congress

kuala lumpur pavillion

Another song

washington state food handlers permit

went back

leo jerome mccarthy

ass cheeks

ave maria bookstore cupertino

user agent

tv tuner schematics

human capital

rubee tuesday

look like

flashsex game

freelance writer

dog food for sensitive stomach dogs

commit crimes

humvee m998 for sale

responsible government

biography eugene torre

casino dealer

sekolah kebangsaan puchong utama 2

would say

lyrics 5th dimension stone soul picnic

arm around

food recipe of philippines

condo conversion

constantine stanislavsky

apartment building

chicken croquettes recipe using gelatine

would tell

where can i buy uzo liquor

wet cunt

hayley williams sexy pics

wait until

chasey lambert

comprehensive schools

flu symtoms

ice wine

secadoras bosch

truck insurance

mt sophia academy delaware

shop around

satoh erika gallery

two parties

v p4mfp533

by examining

butterbeer recipe harry potter

older sister

tuber texensis

several weeks

converse outlets

get compensation

tv3 mhi

new girl

craigs milwaukee list

United States

natalie sparks blue delight

pretty skill

tsubasa chronicle screensaver

Governor Huckabee

kwento ng katutubong kulay

given that economics

icbc road testing

look good

michael bulea

to knowledge

milltronics multiranger plus

pragmatism about

dvdxpressdx2 drivers

Cocos Keeling

sears billing address

great deal

irobot 4290

two boys

starforce focus protection drivers confirmation

compact car

howsexyareu com test

United States

dolce and cabana fragrances

meat rub tube famous

negritos of the philippines

good idea

royal marines from the chatham division

New York

coeneo michoacan mexico

business plan

wachovia counterfeit official checks

motor vehicles

recipe fresh pineapple jam

the question

occ where s vinnie

video conferencing

everybody wants you billy squire lyrics

and the sector

child punished with diapers

East Africa

photos of joy tanner

way associated

electric heat conducting rubber mats

URLs links

mysistershotfriend jasmine tame

dog should

grc proactive solution

restoring human

nigella lawson s tits

control over

real life examples of hyperbolas

boarding schools

comoro islends seismic data

slip win dream

mac and cheese velveeta recipe

would let

define aggravated stalking

iPod Video

name given for nuns headdress

form sentence great

boise cascade hunting leases

Big Ticket

ucav x 45

external territories

gambar bokep jilbab

laid back

problem formulation identification powerpoint presentation

fee simple

the works toilet cleaner msds

is also often

model sharon petock

Aboriginal groups

lopi wood stove 520

good place

pull a part lynnwood

Project Management

leeds united tattoos

wide variety

home brew racing tire prep

hot clips

moose sausage recipes

Kraig Johanssen

zombie recipe

Paris Hilton

arnold cinema arnold mo

Laser light is usually

history of tahbso

professional gambler

figaro cat food bumble bee

good news

los mejores culos de cubanas calientes

good way

kylee kross on myspace

Search Engine

putas striper puerto rico

network layer

lyn may foto

pound done

super mario land rom

cum covered

tatuajes de escorpiones

wide array

venison loin recipes

casino gambling

norton 501 ignitor

programming languages

bbs ls pics model

morning sickness

recipe silly puddy

head back

hydrilla leaf cell parts

popular vote

tmj unlock jaw

anal sex

russian male child models

background checks

8 mile rap battles the lyrics

whilst Kath

pattie labell recipes

utility vehicles

la blue girl torrent

Honda Motor

hks fcon pro

ice climbing

kyoko ayana preview

went straight

beverly nye recipes

know why

seafood crepes recipe

get rid

chris rockway ass

reproduction Davion

waterproof storage containers for pickup trucks

specialty SLM

kieso intermediate accounting solutions

Sri Lanka

abrams gym fort hood

would like

crawfish cooking trailers

local Italian

pan de sol recipe

martial arts

whitecock black girls

dry food

dorothy lemay

with maintaining

dwg skp converter

great place

homologate

personal impression

anna olson sugar recipes

made available