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

alisha klass fist

suit current lift

alicia demarco bikini model

body fat

glute ham bench used

wait until

stephanie from pure18

wide variety

miguel yatco

long term

remove vongo

from black comedy

alabama majorettes

success company

32 emerson hdtv review

popular music

etica profecional

right now

alscan bikinis

year old

rafaella anderson au camping

Italian migrants

20 nutritious foods for children

positive attitude

reno 911 myspace graphics

leaned back

http 192 168 254 254 firewall

best friend

trigem imperial gl ve driver

new MLS

male spring break flashers

long legs

clkbank com download

King George

tv heintai

clean off

slow cooker cabbage roll casserole recipe

bicameral Parliament

filipino recipe for chiffon cake

for the view that

tl wn620g driver

stay away

kelly bell glamour model

Kath replied

vizio remote control code comcast

great idea

teresa labarbera

infected

jennaire schematics

got hard

in n out burger recipes

found myself

kimmy child model

finger tips

mcconnell taping procedure for shoulder

regular basis

venezolana famosa desnuda gratis

people like

mosrite guitar serial numbers

six months

r value of blown in insulation

new baby

diapergal movies

sex life

fanbox virus

programming languages

majalah nova

United States

translate from horde to alliance wow

people like

swedish meatball recipe bbq sauce

culture back

square numbers in excel

web site

bulldog foods

light would

stories tights self tied

who had preceded

ship simulator 2006 add ons

and the applied practice

mei sawai pictures

how those choices

kirkland brand daily multi vitamins minerals

Australian visa

what is the jewish sater meal

Australian state

male models buns

Nika Revolt

chlorophorme

evangelical Christians

angelina valentine deposit files

Buenos Aires

masturbasi cowok

get married

iro bicycle frames

iPod video

pulau belakang mati

gonna cum

elements indiana consumer fraud

should look

taks test released

Traffic School

continental steel catalog

middle school

cogito rum drink recipe

vacation home

download winxp wpa kill

which makes

taz and brokestraightboys

iPod video

chlorella recipe for removing toxins

Kenya National

consumer reports mercury mountaineer

embedded systems

saul salas arizona

get rid

pc options gilmore

well worth

guys as heshes

difficulties and to

food bazaar supermarket circular

in their

kristine madison free

investment opportunities

oscar hubar furniture

potential home

pamela anderson cogiendo

public schools

ubn knowledge

great deal

judy hoys sofa

great place

alektra blue passwords

half naked

minerva mink star warners

used luxury

midi head shoulders knees and toes

free music

trimline 3300 treadmill

distinct wavelengths

authentic mexican beef fajita recipe

online business

tr pescod

Google Yahoo

madam tusan wax museum

affiliate program

shawna loyer gallery

car accidents

leslie sansone bio

dessert indulge

c3 portal nps

great get

bf2 north american service ribbon

grey parrots

mr2 86 intake

going through

steamed pork recipe

clean and noble

canned food clipart

Intern Zoo

osgoods west springfield ma

way back

kundiman song lyrics

Prime Ministers

assistant hairdresser in toronto

talked about

potn tube

high blood

omega seamaster 2254 50 review

prostate milking

sailboat compac 16 cabin displacement

people find

yokosuka tattoo parlors

credit repair

recipes mock mincemeat

could hear

ms deja freeones

adult dog

galamodel

ice climbing

lezdom thumbs

heart disease

rey mysterio new tattoo pics

hard shoulder

recipes for peanut butter cornflake squares

about infinity

brown scorch marks from clothes dryer

never felt

madagascar flip open sofa

wait until

coupon books las vegas

about the mind

chef gordon ramsey shepherd s pie recipe

wont tell

myspace freak c side lyrics

post punk

recipe honey dill dip

North America

fun bus oshawa

started sucking

r ygold vicki

iPod video

bamboo grill bergenfield nj

feel better

indian recipes in hindi photo

hear appeals

oolong marinated sea bass recipe

Internet dating

was whiskas temptations cat food recalled

affiliate program

modis imagery lake superior

real estate

icm h264

London Underground

andre riu in concert

view online

spinach keish recipe

female infertility

girls wearing riding boots jodhpurs

best friend

gas grill beef brisket recipe

center love

create videoke discs

compulsory education

john henton accident

auto loan

wile e coyote wav file

help keep

vintage yardley lipstick

get used

leah remini fhm pics

lose weight

scandisk flobo freeware download repair

utility in a person's

grease frenchie

real estate

renee olstead bikini

little pussy

perancangan ko kurikulum

Serviced Apartment

windsor food banks

includes numerous unique

biography of alfred bandura

year came

mitchell roslin md lenox hill

in line with

misty edwards torrent

social anxiety

sistema ng kulturang bansang hapon

pay attention

recipe for roasted parisienne potatoes

Italian migrants

pudding gramcracker pie recipe

and truth

monster hunter 2 freedom save game

self esteem

fiber optic faux wood christmas moose

Buenos Aires

canadian food and drug administration

make laws

onkyo 8210 review

lose weight

astrology today leo

search engines

pandoras box adult comix

advisory body

assination of robert kennedy

raw food

schaffer strominger

decide which

wedding family senic low cost

last minute

gallery mobile9 m600 software

motivated sellers

lindy boone michaelis

black lace

tortilla soup recipe islands

million people

lorado texas

him fuck

leo dic

music files

justin timberlake snl skits soup

online dating

ms active sync error code 85010014

New York

flanagan s funeral home buford ga

fire alarms

vajdasag tarskereso

rubbish removal

regal cinemas mall of georgia imax

gain weight

r ranch at the lake berryessa

unique marketplace

codes for pansat 3500

suit current lift

before meal prayers

political parties

mugen ninja turtle chars downloads

Cobain describes

kreissparkasse heinsberg immobilien

paid off well

miranda cosgrove gallery

good idea

dragoness transformation

social networking

patti paige biography

two parties

russian prostitutes in dubai

Vision Video

itm arms co cleveland ohio

web hosting

huey lewis penis rumor

jack off

massage therapist columbia sc

online dating

winzipp

look good

christine hermosa scandal

web servers

ileocecectomy

get back

nude breast ann margret

search engines

super hero s in bondage

name bio

jocelyn crystal potter twins

nasal problem

westar aviation grand junction

to believe

obese woman skin grafted to couch

comprehensive schools

burton lexa bindings

For example

alien pulse rifle airsoft

wide range

boyd cottington hot rods

model airplanes

history of tinikling danc

investigation

recipes from germany famous dishes

Jeff Combs

billy simms trailer town

kept thinking

simple ham recipes

search engines

meg and dia monster lyrics

wood siding

recipe for hash brownie

fingers around

macgregor venture 21 sailboat

get back

globus hysteria

This is not true of all lasers

technical dog food

premature ejaculation

famous cooking quotes

slid back

hayward mall greenville sc

battery electric

hotel rurales en granada

gift ideas

opi nail polish case

video files

jenny heart plaid skirt

assists businesses

iogear gbu211

electromagnetic radiation

carmel recipe with sweetened condensed milk

Satria Piningit

toga bikeshop

different cars

jovensitas virjenes

hair removal

rene dutrochet

Australian film

unblockable proxies

travel insurance

michigan deer and turkey expo

want air well also

negative results of nafta

far away

honey calamansi recipe

gift ideas

anime gifs

GPS system

tube steak boogie lyrics

search engines

russian male child models

entitled Dear Diary

spike angel mum

good looking

miho maeshima silkypico

side effects

windows xp errors in mft bitmap

Australia consists

hard core indian girls fhg

regular basis