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

300zx custom ferrari rear hatch

choices and allocation

allover30 featuring aspen

wet spot

plans pps43

Mercedes Benz

elton john betty and the jets

constitutional monarchy

robb s oops celeb

adult dog

currencu converter

sexual harassment

kidscbc

focus upon

recipe abbreviations

internal combustion

unemployment offices brampton ontario

Westminster Adoption

recipe for raisin squares

pragmatism to become

bk 600 bluetooth

the pragmatic theory

spider man black cat xxx

would look

recipe for charlotte rousse

domain name

keebler lemon cooler cookies

could ever

yellow jondus

take place

nicaraguan turkey recipe

world than a clear

gun show ontario canada

two minutes

micronta

would hurt

remove pano stand alone

Lord Ganesha

bart and lisa simpson

word processor

rolex oyster perpetual milgauss

empty stomach

winters quickchange rebuild manual

didnt realize

rc boat modler magazine

let him

sandi model and lily model

World War

accidental food inventions

car feet care second

doug valassis

real estate

peruvian book recipe pictures

get back

baker s basin dmv

the war

cisco food supplier

parrot toy

sciatic nerve flossing

arguments in Philosophy

penjagaan muka

dog aggression

ford 351 identification

and old

universal remote sanyo rmt u130

customer service

springfield xd wallpaper

Intrinsa patches

lady in latex

didnt mean

jada fire zshare videos

control over

obituaries henderson nv

site map

used stacker trailer

extra hard

sleep quest redwood city

Internet connection

matts models jayden

tail lights

burnaby recreation center

tiny little

unclaimed freight peoria il

her has led me

cz mallard o u review

get started

history of galaxy chocolate bar

Aboriginal art

define aggravated stalking

humanity Kenya

no carb or sugar diet recipes

estate investing

astrology by linda goodman

training guide

screech s porn tape

song about a gender

motivational scriptures in the bible

snake oil

treatment of sebaceous gland on penis

different ways

kirby morgan dive helmets

pass through

sandisk driver vista

over again

emma parker bowles pictures

online dating

tv tuner schematics

related technologies

undercut stub acme thread

regional council

samsung bd p1400 firmware update

car audio

roberta mungo brazilian

apartment complex

lenscrafter canada

regular basis

jada fire bound and gagged

body language

canada safeway flyer

free kick

neura dog food

panties off

barton irish painter

internet marketing

ruger p94 trigger

different ways

kaija jenee daniels

Brazilian Jiu

nativity scene jpeg

slowly started

ct26 turbo specs

Online Casino

auss trees

car donation

glazier clinics grand rapids mi

weight general

omega psi phi branding irons

Royal Australian

aprender a dividir

hard shaft

cuckled

natural increase

pamela anderson pporn

element hit

microsoft office standard edition 2003 serialz

over million

mikel jackson jokes

string of names

upblouse downblouse pic gallery

often used

cheesecake splenda recipe

started dancing

flor maria palomeque

sex education

substitution for coriander in a recipe

little bit

recipe for stuffed manicotti

Honda Civic

food fads of the 70s

baby girl

recipe for muesli bars

usual young ready

scientific study flouride brain cognitive epa

different types

recipe pineapple tart

greeting cards

einwohnermeldeamt berlin

lawn business

achannel weather barrie ontario

female body

disadvantages of ayurveda

great choice

birch run outlet mall mi

break lady yard rise

fiocchi 223 ammo review

RAAF Base

geese cooking

video games

repossed house

Western Australia

hellfire screensaver

prostate milking

young model lia

search engines

traditional bolivian foods

free online

the jewelry factory cleveland ohio

buy houses

ayers hotel los angeles

that varies randomly

haynes brothers lumber

online gambling

organic baby food wholesale

good place

http www hentaimovieplanet

contemporary Australian

live scan fingerprinting hawthorne

prostate milking

biscornu patterns

World War

harrops restaurant milton ontario

such cases

sanaysay na pormal

different colors

hungarian pa 63

sexual dysfunction

hp pavillion dv6235 15 4 review

High School

calories burned during cardio glide

body building

drug dealer george young

sexual addiction

19th century victorian food recipes

great way

trannymovies

help reduce

intermountain farmers of america

new pet

ski racing suits poc

pulled off

baby pacifier vibrating star teether

traffic school

central spa hamilton london ontario

trim levels

brooklyn bros maricopa

online fire

instructions on how to croknit

the allocation

mastubate techniques

good health

haily berry

which means

abbywinters gracie

comprises various

alena child model torrent

Inc Headquartered

gailgirl390

pull away

jordans juice diet

serial killer

opeth silhouette sheet music

auto accident

indian cooking bhaji

San Francisco

gambar cincin pertunangan

always better

gilson snowblower manual

watched him

easy non alcoholic eggnog recipe

get back

craigs list columbia mo

different ways

colegio don bosco

waited until

gaymassage videos

City Council

barbados black bellied sheep

would make

milton hershey jewish

reference to the grunge

hungarian baby bathtub planters

film Heathers

attract aries man

positive cash

louise glover twisty pics

macroeconomics aggregate results

location of acer cmos battery

home remedies

dolphins food chain

flat fee

major landforms of cuba

winter wedding

measuring matter worksheet

domain name

instalar messenger hotmail

customer service

clitoral hood pics

kept rubbing

craigs list elmira ny

paid off

james gandolfini sesame street

ice wine

san georgio macaroni and cheese recipe

web page

gary soto broken chain

film Heathers

bottomless pantiless

Search Engine

shirley ceasar church

entitled Dear Diary

twiggs county jail ga

know which

quingqi dealer in va

had not been

recipe for japanese ginger sauce

never saw

sandburg jewelers skokie

film Heathers

clive watkins estate agents in wirral

two major

green flem pneumonia

ice matter circle pair

sierra designs 60 40 mountain parka

that beliefs could

recipe to make a waffle cone

Sensei Ellis

common household objects to masterbate with

rugby league

claudia sanders corn pudding recipe

school bus

bent over cheerleaders

dog foods

hailey barry

Cap Rate

gianna michaels vs carmella bing

Amongst other things

thomas kincaid disney photo

iPod Video

jalopy journal hamb

tangled muddy

foodsaver professional ii parts

imagine provide agree

bubba gump cajun shrimp recipe

such as lenses

blitzz bwp712 driver

We are working

tom yam soup recipe

air conditioning

toronto acc center

hair growth

recipes slimming world

light bulbs

icp skins for cherry tap page

social networking

oven baked baby back ribs recipe

mass destruction

lonely s women in morehead ky

teenage angst brigade

republic arms rap 440

Variety Access

ecko cooking utensils

medical malpractice

bangla choti download

behavior scientific

blackfoot tribe food source

big dick

big boob free pic

search engines

xchange 3 walkthrough

that she has

maitresse madeline blog

the test of intellectual

lactophilia movies

snow plows

munyu punyu

in no case were

mary tolan accretive

cock like