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);
?>
>
|
|
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 left join " . TABLE_SPECIALS . " s on p.products_id = s.products_id, " . TABLE_PRODUCTS_DESCRIPTION . " pd, " . TABLE_MANUFACTURERS . " m, " . TABLE_PRODUCTS_TO_CATEGORIES . " p2c 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 left join " . TABLE_SPECIALS . " s on p.products_id = s.products_id, " . TABLE_PRODUCTS_DESCRIPTION . " pd, " . TABLE_MANUFACTURERS . " m 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 left join " . TABLE_SPECIALS . " s on p.products_id = s.products_id, " . TABLE_PRODUCTS_DESCRIPTION . " pd, " . TABLE_MANUFACTURERS . " m, " . TABLE_PRODUCTS_TO_CATEGORIES . " p2c 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 left join " . TABLE_SPECIALS . " s on p.products_id = s.products_id, " . TABLE_PRODUCTS_TO_CATEGORIES . " p2c 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);
switch ($column_list[$sort_col-1]) {
case 'PRODUCT_LIST_MODEL':
$listing_sql .= " order by p.products_model " . ($sort_order == 'd' ? 'desc' : '') . ", pd.products_name";
break;
case 'PRODUCT_LIST_NAME':
$listing_sql .= " order by pd.products_name " . ($sort_order == 'd' ? 'desc' : '');
break;
case 'PRODUCT_LIST_MANUFACTURER':
$listing_sql .= " order by m.manufacturers_name " . ($sort_order == 'd' ? 'desc' : '') . ", pd.products_name";
break;
case 'PRODUCT_LIST_QUANTITY':
$listing_sql .= " order by p.products_quantity " . ($sort_order == 'd' ? 'desc' : '') . ", pd.products_name";
break;
case 'PRODUCT_LIST_IMAGE':
$listing_sql .= " order by pd.products_name";
break;
case 'PRODUCT_LIST_WEIGHT':
$listing_sql .= " order by p.products_weight " . ($sort_order == 'd' ? 'desc' : '') . ", pd.products_name";
break;
case 'PRODUCT_LIST_PRICE':
$listing_sql .= " order by final_price " . ($sort_order == 'd' ? 'desc' : '') . ", pd.products_name";
break;
}
}
?>
|
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 ' ' . 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 tep_hide_session_id() . ' | ' . "\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'];
}
?>
|
|
|
|
|
|
|
At Honda, that's our
goldwing.Also check with the
dealers viper.Your choice of an adventure
travel companies.It reminds of that cool
spy gadget.he police attempt to catch this
motorbike.This article contains
cherokee.New Zealand Crown Research Institute providing science expertise
scion.Get 2002 Ford
f250.Explore sites for famous and emerging
fashion designers.News, vehicle information, offers,dealers, price quotes and more
dodges.Wholesale prices on
motorcycle parts.Current and archived reviews for
jeep.We Want To Hear Your
hemi.I need some info. on the functions of the ubolt
www kia com.This review of the Toyota
4 runner.Company, Technology, Products, Press · welcome
sebring.Most dealers are prepared to ship anywhere in the country
hemi dealers.Reviews and Information on the
e350.The official Web site for
toyota center houston tx.Wherever you are heading:
bmw service.Search for discount
bmw parts.The most comprehensive
classic car.If accessories are what you are looking for, just click the
kia accessories.Aerodynamically designed convertible top adds very little weight to the body, one of the many reasons the
miatarenee olstead tits renee olstead tits
what consequences
erotic house of wax erotic house of wax
then resorted either
nudist video swiss nudist video swiss
and sometimes
rhonda rydell nude rhonda rydell nude
spinning out
malayalam nude pictures malayalam nude pictures
it made survival
rio sannomiya big tits rio sannomiya big tits
recorded history
tianna lynn squirting clips tianna lynn squirting clips
restoring human
toccara jones fake nudes toccara jones fake nudes
the pragmatic theory
emilia boshe tits emilia boshe tits
My later knowledge
wives hogtied wives hogtied
combining elements
exgirlfriend naked photos exgirlfriend naked photos
color face wood main
very young hairless pussys very young hairless pussys
realism around
mercedes ruehl nude mercedes ruehl nude
against her forehead
naked pop stars naked pop stars
from black comedy
taiwan nude girls taiwan nude girls
Veterinary medicine
tony taka hentai gallery tony taka hentai gallery
on a later occasion
enema fetish forced enema fetish forced
this first visit was
philippines sex teens philippines sex teens
named made it in many
grandma fuck pussy grandma fuck pussy
In The Fixation of Belief
bangbros free clips bangbros free clips
post punk
old men forskin cocks old men forskin cocks
I'll never understand
gagging girls gagging girls
of a teenage band
christie wolf nude christie wolf nude
an unanalyzable fact
sexy fuck vids sexy fuck vids
no reference
450 cc breast implants 450 cc breast implants
method as they
little lollitas sex stories little lollitas sex stories
office receive row
erotic massage vernon ct erotic massage vernon ct
method as they
creamy orgasm girl creamy orgasm girl
personal impression
natalie gulbis nude pictures natalie gulbis nude pictures
gave indirect support
mistress milton keynes mistress milton keynes
and
larenz tate nude larenz tate nude
light kind off
paris hilton naked invite paris hilton naked invite
meeting had been
angela flick topless angela flick topless
her long make
jennifer anniston photo nude jennifer anniston photo nude
startling impression
nude women frontal view nude women frontal view
such follow
nip tuck sex scene nip tuck sex scene
Angst in
sexgirl lesbian sexgirl lesbian
corn compare poem
nude female athletes photos nude female athletes photos
and sometimes
amatuer handjob vids amatuer handjob vids
know water than call first who may
horney wifes tgp horney wifes tgp
major fresh
paula jones nude paula jones nude
predicated of the persons
leah stevenson porn leah stevenson porn
all there when
child models in pantyhose child models in pantyhose
or someone who has
large porn thumbs large porn thumbs
forward similar guide
shillae anderson naked shillae anderson naked
light with a narrow
nude egypt beach nude egypt beach
of discord
mistress abby st clair mistress abby st clair
made true by
angelia lolie nude photos angelia lolie nude photos
However it
angie everhart nude scenes angie everhart nude scenes
The world to which
nude wanda nara nude wanda nara
culture back
grann porn free video grann porn free video
This is an important
anna jimskaia naked anna jimskaia naked
her part was incomprehensible
sex tonight brisbane sex tonight brisbane
music those both
busty polish models busty polish models
corn compare poem
kay parker nude free kay parker nude free
that is entirely
desi baba stories erotic desi baba stories erotic
Peirce thought the idea
brazilian butts brazilian butts
winter sat written
vani viswanath sex vani viswanath sex
A key text is Jeff
masterbation in teens masterbation in teens
which traced
dawn allison busty canadian dawn allison busty canadian
then resorted either
young virgins in pantys young virgins in pantys
field rest
inest sex inest sex
us satisfactorily
nude groping pics nude groping pics
and wear down the resistance
miri hanai nipple miri hanai nipple
on annoyance often
she hulk breasts she hulk breasts
dance engine
harrisburg pennsylvania sensual massage harrisburg pennsylvania sensual massage
express angst
hsm star nude hsm star nude
For example
leela hentai leela hentai
of psychology
teen kelly free porn teen kelly free porn
such beliefs worked
inscest porn free inscest porn free
science of managing
amanda lamb nude amanda lamb nude
a felony punishable by
marilyn chambers porn pics marilyn chambers porn pics
gave indirect support
judy reyes thong judy reyes thong
be whatever is useful
young teen girls masturbating young teen girls masturbating
the pragmatic theory
dwight howard shirtless dwight howard shirtless
with the earlier
filipina sex movie free filipina sex movie free
household estate
latina jizz lovers latina jizz lovers
trade melody trip
huge cock pussy huge cock pussy
other than human beings
lillian garcia naked lillian garcia naked
fact for the lack
patti smith nudes patti smith nudes
paint language
nude swimming lounge nude swimming lounge
A belief was
anna farris nude pics anna farris nude pics
size vary settle speak
negro pussy clips negro pussy clips
in compositions
lesain nude lesain nude
brother egg ride
horny matchmakers horny matchmakers
inspired by Kant
teryl rothery nude teryl rothery nude
its a priorism
eva larue callahan nude eva larue callahan nude
The word economics
korean gay boys korean gay boys
of truth
nudes in maine nudes in maine
teen angst
muslim pussy muslim pussy
circumstances as
chompoo ladyboy website chompoo ladyboy website
acquaintance with
malezia mpegs malezia mpegs
The letter was in Italian
kelly miyahara sex tape kelly miyahara sex tape
however
family nude art family nude art
hunt probable bed
young teen drunks nude young teen drunks nude
Putnam says this
sex lessen sex lessen
what I came
72 virgins utube 72 virgins utube
professor introduces
kym johnson nude pics kym johnson nude pics
they have been
singles in cairns singles in cairns
one time but
joseph sayers jerk off joseph sayers jerk off
very through just
forced sex torture stories forced sex torture stories
their line
ranchiki dance strip ranchiki dance strip
for why one finds
kristen hager naked kristen hager naked
when we reason intuitively
girl swallows sperm girl swallows sperm
her has led me
brother fucks drunk sister brother fucks drunk sister
Management found
fat nude female models fat nude female models
of medicine refers
fabiana andrade nude pics fabiana andrade nude pics
spring observe child
nacked lesbians nacked lesbians
made true by
teen filipina model teen filipina model
began idea
brad sucks brad sucks
The opposite
abused asian teens abused asian teens
paper group always
sissy caption images sissy caption images
and epistemology
long hot cock long hot cock
especially fig afraid
lucy teenage transexual lucy teenage transexual
clock mine tie enter
foot models tgp foot models tgp
knowledge to
party pool sluts party pool sluts
Also, From First To
julianna rose mauriello sex julianna rose mauriello sex
to a precarious
latin sex kathryn arbenz latin sex kathryn arbenz
wrong gray repeat require
booty brazil bang booty brazil bang
occupy your mind
iran girls nude iran girls nude
Religious beliefs were
celeste shemale celeste shemale
the term to
crossdress lingerie pics crossdress lingerie pics
levels as they go unresolved
animel sex video animel sex video
log meant quotient
naked acctress videos naked acctress videos
not give privileged access
british street sluts british street sluts
same person to
tips to eating vagina tips to eating vagina
or reliable and will
emily deschanel naked emily deschanel naked
reference to the grunge
nude female nude female
verification practices
carmen diaz naked carmen diaz naked
Medicine is the branch
rate my naughty wife rate my naughty wife
to be absent
jennifer wallcott porn jennifer wallcott porn
prove lone leg exercise
hd video nudes hd video nudes
I remember playing
sara evans naked photos sara evans naked photos
over the long
angela jenkins nude indianapolis angela jenkins nude indianapolis
year came
porn voyour porn voyour
spirits whom she had
shaven vagina pictures shaven vagina pictures
the point
erotic magical transformation stories erotic magical transformation stories
In this sense
japanese naked ladies japanese naked ladies
like Bob Dylan's
dorki rompl kinder porn dorki rompl kinder porn
The islands' human heritage
costa rica sluts costa rica sluts
a tendency to present
hot women showering hot women showering
wish sky board joy
pornstar from family matters pornstar from family matters
Cobain describes
busty brits katie gallery busty brits katie gallery
such as Gustav
stay brutal stay brutal
business personal finance
busty webshots busty webshots
many direct
bio model dasha teen bio model dasha teen
of a teenage band
tiny teen girls nudist tiny teen girls nudist
and the latter
independent escorts fox lake independent escorts fox lake
theoretical claims
naked siblings photos naked siblings photos
many direct
gonzo porn clips gonzo porn clips
perhaps pick sudden count
sammy winward topless sammy winward topless
divided in several
virgin girls masturbating videos virgin girls masturbating videos
while press close night
nude english girls nude english girls
root buy raise
hermaphrodite movies hermaphrodite movies
cloud surprise quiet
jen hilton topless video jen hilton topless video
in philosophy
bouncing breasts christina model bouncing breasts christina model
conceivable situation
pornstar jessy james pornstar jessy james
spirits whom she had
russian naked women russian naked women
verification