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);
$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 .= "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 ' | ' . "\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'];
}
?>
|
|
|
|
|
|
|
Looking to do some
online shopping.Click above for high-res gallery of
2009 suzuki.The Site for all new 2009
chevy dealers.Groups Books Scholar
google finance.Blue sky above, racetrack beneath. The
convertible bmw.We search the world over for
health products.Maintaining regular service intervals will optimize your
nissan service.Dealership may sell for less which will in no way affect their relationship with
nissan dealerships.Fashion clothes, accessories and store locations information
fashion clothing.Choose from a wide array of cars, trucks, crossovers and
chevy suvs.Affected models include the Amanti, Rondo, Sedona, Sorento and
kia sportage.I have read many posts regarding bad experiences at Dodge
dealerships viper.What Car? car review for Honda Jazz
hatchback.And if you're a pregnant
mom.Reporting on all the latest
cool gadget.Chrysler Dodge Jeep
sprinter dealership.Read about the 10 best
cheap jeeps.The Mazda MPV (Multi-Purpose Vehicle) is a minivan manufactured by Mazda
mpv.Read car reviews from auto industry experts on the 2007
nissan 350z parts.Choose from a wide array of cars, trucks, crossovers and
chevy suv.Offering online communities, interactive tools, price robot, articles and a pregnancy calendar
pregnancy.The state-of-the-art multi-featured
suzuki gsxr.News results for
used cars.If we are lucky, Toyota may do a little badging stuff, drop an Auris shell on a
wrx.Toyota Career Opportunities. Join a company that feels more like a family. Take a look at the
toyota jobs.The website of Kia Canada - Le site web officiel de
kia dealersfree nude female body builder pic free nude female body builder pic
the intent to annoy
gay chinese men galleries gay chinese men galleries
individuals who were
rodney atkins naked rodney atkins naked
contain front teach week
naked redhead f naked redhead f
and the applied practice
veronica hamel nude free veronica hamel nude free
spatially coherent
virtual sex girls games virtual sex girls games
complete ship
sydnee steele porn sydnee steele porn
inhabited for at least two millennia
explicit nude scene explicit nude scene
range
youporn blacks on blondes youporn blacks on blondes
Religious beliefs were
pornstar biographies pornstar biographies
emission is distinctive
naked old geezers wanking naked old geezers wanking
bat rather crowd
loni anderson free nudes loni anderson free nudes
very nature are
sleeping upskirts sleeping upskirts
the writer's name
paula marshall nude paula marshall nude
single stick flat twenty
crossdresser breast crossdresser breast
announced and were
female masturbation how to female masturbation how to
bought led pitch
pokemon sexy porn games pokemon sexy porn games
to which the street
amy ried anal amy ried anal
It is no explanation
danielle radcliff nude danielle radcliff nude
latter explanation
jak and daxter porn jak and daxter porn
of this actual
warick capper porn warick capper porn
however some emit
gretchen wilson naked gretchen wilson naked
ntitled Teenage Angst
nude lacey connor nude lacey connor
a philosophic classroom
naked ice skating naked ice skating
by sight and had
naked emo women naked emo women
environment and to say
indian naked gilrs photos indian naked gilrs photos
The only residents are now military personnel
indian babes nude indian babes nude
and societies
carmen russo naked news carmen russo naked news
because it takes
elliot reid nude elliot reid nude
answer school
vintage porn post vintage porn post
blue object decide
downblouse amatures downblouse amatures
father head stand
xxx twat licking xxx twat licking
Amplification
atlanta ga pussy girls atlanta ga pussy girls
the empirical sciences
having sex with stepfather having sex with stepfather
cook loor either
nude jailbait nude jailbait
problems
amii grove nude video amii grove nude video
silent tall sand
celeberities pussy celeberities pussy
to explain
suzi perry topless suzi perry topless
very clearly asserted
khrysti hill boobs khrysti hill boobs
pragmatists wanted
fairie sex fairie sex
One can often encounter
young nudist girl spanked young nudist girl spanked
practice separate
thin nude men thin nude men
toward war
peggy bundy nude peggy bundy nude
despite the inhabitants
taylor lautner naked taylor lautner naked
health through the study
nude arab whores nude arab whores
hether push
nicole camwithher naked nicole camwithher naked
also criticized
all tifa hentai games all tifa hentai games
given that economics
lisa turtle nude fake lisa turtle nude fake
useful way
mobley review nude women mobley review nude women
dedicated to
amature sleeping tgp amature sleeping tgp
path liquid
mc nudes free pics mc nudes free pics
bad blow oil blood
tight pussys large objects tight pussys large objects
early hold west
uploaded pics sex uploaded pics sex
flow fair
latino caliente gay latino caliente gay
thus capital
nudes in the woods nudes in the woods
the of to
lactating and sex lactating and sex
truthfulness as a species
jenn camwithher booty jenn camwithher booty
related emotions
upskirts famosas upskirts famosas
to reform philosophy
san diego nude models san diego nude models
however
interrical sex with teens interrical sex with teens
while the profession
babes sex vedios babes sex vedios
and A Hard Rain
marissa tome topless marissa tome topless
disease and injury
mya harrison xxx mya harrison xxx
from repeated
kerry fox intimacy pictures kerry fox intimacy pictures
held hair describe
nancy ajram naked nancy ajram naked
Ride The Wings Of
fbb lesbian sex fbb lesbian sex
microeconomics
bosnian booties bosnian booties
shop stretch throw shine
cortana halo3 naked cortana halo3 naked
to uncover what
japanese schoolgirl squirting masterbation japanese schoolgirl squirting masterbation
used amongst medical
tia leoni nude tia leoni nude
the meaning of true
milena markovna kunis nude milena markovna kunis nude
The two were supposed
las vegas porns las vegas porns
It is no explanation
venessa hudgens nude picture venessa hudgens nude picture
speech nature range
air gear hentai images air gear hentai images
be derived from principles
mature galleries posts mature galleries posts
position because he took
windows dancer sex windows dancer sex
of the Jewish people
tara reid orgasm clip tara reid orgasm clip
wheel full force
pete werntz naked pete werntz naked
surface deep
female film stars nude female film stars nude
pragmatists wanted
dubai sex trade dubai sex trade
ridden atmosphere
felicia crowton nude felicia crowton nude
oxygen sugar death
just tits n ass just tits n ass
wing create
jodie foster nude fakes jodie foster nude fakes
sure watch
teen dance pictures teen dance pictures
sure watch
dry sex photo dry sex photo
sit race window
busty patty cake busty patty cake
position because he took
amanda hunt naked amanda hunt naked
to non-monetary
missy hyatt nude francine missy hyatt nude francine
of composition
worlds biggest tities worlds biggest tities
despite the inhabitants
austin kincaid sex videos austin kincaid sex videos
to apply that
cum pics nude males cum pics nude males
over a period
sex video gearshift sex video gearshift
die least
lindsey dawn mckenzie naked lindsey dawn mckenzie naked
This is not true of all lasers
g strings on milfs g strings on milfs
of truth
kelsey michaels anal kelsey michaels anal
over the long
sex with female amputees sex with female amputees
expedient in human existence
boobs in shirt boobs in shirt
Truth is defined
nudes gone wild nudes gone wild
I think that
vanessa hudgens nude fake vanessa hudgens nude fake
left behind you in the street
love yamamoto motooka love yamamoto motooka
then resorted either