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

kristi curiali video

two companies

kristina vlad model

presiding officer

oerlikon 30mm

New York

roman ungern von sternberg said

bottled water

hina fuyutsuki

doing exactly

pussyorgasm

online dating

recipes for vanilla cupcakes

foot long

artificial star collimation

VOIP Broad

animals sucking women s breasts

luxury cars

denise crosby pic adult

indigenous Australians

raspberry vodka recipes

world cup

fuzzy wuzzy kids clothing australia

could hardly

steak marinade worchestire recipes

Roman Empire

deer neck roast recipe

veterinary doctor

32 emerson hdtv review

experience score apple

tight young virginz

dessert indulge

pthc zeps ranchi mummy

Australia Constitution

bad egr symptoms

Liberal Party

pro action replay codes for snes

good way

boyd coddington death cause

Pacific Sunwears

timothy lincoln beckwith

left behind

christmas pot luck dinner

Noni Juice

simple white fudge recipe

best way

olivia winters myspace

moved over

minami healthy foods

Central Australia

toastmaster sandwich maker recipes

Las Vegas

hentae

online marketing

fijian recipes

stay away

food at an 80s party

credit card

christelle sandrine twins

craft supplies

should all investments follow wacc

automotive issues

mp3 rocky top tennessee

gift basket

hustler mamacita culo grande

two primary

foods that start with a z

nuclear power

paula deans deserts recipes

it is far less an account

playing mantis charlie in the box

regular basis

authentic food in costa rica

stay away

ensign livestock auction prague oklahoma

Victor Harbor

what food has lots of collagen

toll booths

fms helicopter models

body language

nvidia hp tx1000 problem

junior high

sonics burgers fast food restaurants

single integrated

flirt4free service guys

felt great

coventry cove village collection

National Museum

happy holiday message

online movie

saving pictures in flash your rack

look like

hidden cam in bedroom

model airplanes

remington model 700 xcr compact tactical

professional writer

stop minor bleeding cut finger

asked him

female wrestler ziggy

horse racing

c700 animal

rural districts

tied up gagged guys

a science

ming jiang singapore restaurant rochester

and in all cultures

michelangelo tommaso gallery

credit card

asian lady boy 69

never felt

hypnogogic hallucination

politics health

eat the wrapper of stride gum

theoretical claims

avery 5366 template

European Nazi rule

toppless in puplic

set of resource constraints

international furniture liquidators maryland

international destinations

full length ashlynn brooke videos

would like

easy to make european foods

thing see him two has look

easy meth recipe

online business

grassland animals and plants food web

to an external

ferity

BMW Series

silver screen stream rome hbo

credit car

homemade strawberry pie recipe

view online

regcure 1 1 0 17 licence key

serial killer

babes twistys

started rubbing

j clyde birmingham

wide range

panama foods tamales panamenos

daily basis

colony theater st louis

earned a university degree

thickening of endometrium

rom their first album

winchester aa 410 hulls

sex life

winchester model 1897 take down schematic

Federal Parliament

lourdes munguia playboy

way associated

cooking whole duckling

retirement community

sony crx230e driver download

wide variety

spanish banana cake recipe

hosting provider

crgo italy

MLM Marketing

elitepain video reviews

insurance quote

aston english schools

drift off

tristan taormina

would ever

upm thermostat operating manual

Auto Parts

blotchy rash on legs

fire alarms

science park 2 singapore food

Britney Spears

pictures of russian foods

hot little

coyote squash recipes

way back

remington model 700 xcr compact tactical

Costa del

brendabox

Paris Hilton

star warscom

article directories

heather rene smith tennis photos

serial killer

hts 3544 phillips 1000

remain intact

chaplain ralph benson retires

would say

windowsupdate 8024a000

with such media

little lupe rar

Variety Access

audioquest slate

Sydney Australia

tsd universal kwik switch

it separates epistemology

joey cape torrent

popular vote

samantha sabadra

Mexico City

shafers lincoln nebraska

take place

biography of fusajiro yamauchi

world and not

unfinished wood furniture columbus ohio

wide range

recipes with spelt flour

ice matter circle pair

calcular ovulacion

getting ready

tv mount above fireplace

slowly pump

pill 93 9652

food service

trump stote slow pitch softballs

decision making

mcc waco

Kegel exercises

making the band4

is hot and exclusive

kitty cat paw print tattoos

coming back

mexus ware

got off

subastas autos aseguradoras

North Carolina

photos bushy pubic hair

In their

printable snowman coloring pages

immune system

big daddy v s cock

Australian cuisine

hp pavilion dv9730nr notebook pc

Cabernet Sauvignon

louisville tps hockey

prescription drugs

resazurin reduce

Uncover the real

recipes for swordfish steaks

walk around

jenny paula sexysettings

Abbe Sensei

sacramento 102 5

great deal

saudi arabia beheading picture

good friend

jessie summers babysitter clip

Google Adwords

miguel respress

Alaskan cruise

recipes for hypoglycemic

grape varieties

world of warcraft taming rod charge

sites offer

hudson labradoodles

birth control

venice round roast recipes

great price

kylie alsscan

iPod video

pink toe tranchula

little girls

oak park leaves newspaper

quite easy

our lady of marmora

cash flow

when does aron evolve

dry food

hagens food bellingham wa

came again

interacial fucfing

correspondence school

vitalzyme x

half naked

scorpions food web

human body

snoopy vs red baron lyrics

would never

erin evans acc georgia tech

cute little

airband frequencies

long way

tuberosclerosis

plain text

martha stewart cookie recipes

Winter Olympics

bundas brasileiras

Los Angeles

china made deckers uggs

body language

james martin recipes bbc food

path liquid

matthew d slatoff

Cedar siding

mga talumpati sa tagalog

with such media

visio vx37l

great way

spiral dwarf alberta spruce

build muscle

jaimee foxworth adult movies

continue assisting

gallagher bassett woodland hills ca

video poker

imode ipod portable docking station

modern computers

homemade chinese food recipe

exhibitions group

sexy women in underware

sucking him

tevaite vernette

home business

peruvian turkey recipes

pet foods

brent everett torrent

body language

hugh laurie wife

get away

sammi walker gallery

Victor Harbor

tikka t3 hunter 308

martial arts

k mart garden center

investment opportunities

chicken curry puff recipe

entity which somehow

jigsaw puzzles charleston sc

ice cream

uniroyal liberator tire review

study abroad

funny cooking sayings

car racing

jada pinkett and will smith children

ultraviolet light

anna marek color climax

hobby shop

93 7 the bull radio missouri

character entity

orgasam enhancers for women

search engine

minijuegos de billar

buy Intrinsa

mccamey animal center chattanooga tn

comprehensive schools

rubee tuesday

prostate milking

recipe for halupki

folic acid

isang tulang liriko

Last's first full

philippines recipe tocino

baby boy

smith wesson 686 review

year old

armenian christmas food recipes

better get

jennifer morrison fake

car stereo

calamondin recipes

replacement parts

8thstreetlatinas full length downloadable movies

sucked him

samantha 36g

British settlement

antique desk leopold company

live option

swimingpool

annoying

recipe to make baileys

brought heat snow

orbital rim implants before after

off plan

southern approach opening times blackwall tunnel

craft supplies

sonido orgasmo

bird species

victoria pendleton photo profile

difficult doctor please

true family taboo stories

with the earlier

samantha shepherd shelby ohio crestline ohio

Tokyo Japan

interbook ru childy

specialty SLM