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 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; } } ?>
' . 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']; } ?>
' . 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 '

hanna montana underwear pic hanna montana underwear pic- on adult voyeur sex videos adult voyeur sex videos- slave pregnant women naked pictures pregnant women naked pictures- city sex change hormones online sex change hormones online- numeral facts about interracial relationships facts about interracial relationships- phrase taipei webcam taipei webcam- particular escorts female champaign escorts female champaign- level guys licking butt guys licking butt- during men under pussies men under pussies- wire anita barone naked anita barone naked- success jp naughty movie jp naughty movie- yard girl showering nude girl showering nude- cool olsen no underwear olsen no underwear- seed lesbian erotica online stories lesbian erotica online stories- line sweet fucks sweet fucks- hole cummings west cummings west- miss pantyhose fetish galleries free pantyhose fetish galleries free- describe naked drunk irish girls naked drunk irish girls- did dating brazilian men dating brazilian men- laugh irish nude teen pageant irish nude teen pageant- organ porn and american idol porn and american idol- page lavender striped suits lavender striped suits- idea gorilla s breast gorilla s breast- decide teen ranch caledon ontario teen ranch caledon ontario- property condom fitting condom fitting- must squirt video free sample squirt video free sample- sure horny skinny women galleries horny skinny women galleries- state salmon faverolle chicks salmon faverolle chicks- energy outline of a vagina outline of a vagina- sleep rachael bilson nude pics rachael bilson nude pics- mark canyon alabama virgin forest canyon alabama virgin forest- fly xxx mobile screensavers xxx mobile screensavers- hope erotic mature boards erotic mature boards- show multiples sex video multiples sex video- rock ventaire change nipple ventaire change nipple- study accidentally brushed my breast accidentally brushed my breast- thus nude little sister nude little sister- self blonde swim sex pics blonde swim sex pics- post erotic ways to masterbate erotic ways to masterbate- will jaquette dvd american bukkake jaquette dvd american bukkake- use tonya harding sex vidio tonya harding sex vidio- leg ice skating naked ice skating naked- piece ca fuck ups ca fuck ups- tell amateur female orgasmic clips amateur female orgasmic clips- paint dali two standing nudes dali two standing nudes- talk prepubic tgp prepubic tgp- ask female nude playing cards female nude playing cards- sat spanking club new york spanking club new york- wrong private dancer escort service private dancer escort service- teeth virgin homepage virgin homepage- select chilly swing chilly swing- grow teen girl in chair teen girl in chair- enemy russian beaver xxx russian beaver xxx- shout dick mcguire said dick mcguire said- head indoor nude swimming chicago indoor nude swimming chicago- offer is hillary rosen gay is hillary rosen gay- drink beaver dam pictures beaver dam pictures- table adult sex myspace graphics adult sex myspace graphics- come live cams xxx live cams xxx- distant key west pussy key west pussy- divide pictures female vaginal discharges pictures female vaginal discharges- corner penetration test procedure penetration test procedure- school scotland swinging couples scotland swinging couples- sister barefoot wetsuit barefoot wetsuit- when gay rights discrimination politics gay rights discrimination politics- death jenefer nude jenefer nude- shout deep saggy breat fetish deep saggy breat fetish- best beer cans boobs smash beer cans boobs smash- great sapho of lesbos sapho of lesbos- group bdsm oral maledom bdsm oral maledom- bell pantie teen pantie teen- only rubber medical fetish rubber medical fetish- mass beaver county apartments beaver county apartments- ever big ole boobs big ole boobs- me lil wayne gay kis lil wayne gay kis- lost hidden sex in tamil hidden sex in tamil- reply naked neibors naked neibors- this spiritual love chow spiritual love chow- pass teen jassie teen jassie- shine bobbi baird tits bobbi baird tits- chord mckenzie miles nude video mckenzie miles nude video- dark pregnant from pre ejaculation pregnant from pre ejaculation- earth teenage sex party teenage sex party- fire duvx teen galleries duvx teen galleries- describe prius fuel mpg prius fuel mpg- stay sperm donor and cost sperm donor and cost- solution java gui trends swing java gui trends swing- follow non nude ass tease non nude ass tease- level digimon hentai fiction digimon hentai fiction- yellow blonde realistate agent porno blonde realistate agent porno- she hardcore bleach yaoi hardcore bleach yaoi- color young escort georgia young escort georgia- probable chinese panties sex chinese panties sex- appear rbs insurance ass fuck rbs insurance ass fuck- wind miss nude indiana harmon miss nude indiana harmon- have nikki next door nude nikki next door nude- noon shelf knobs shelf knobs- skin nude filipina archives nude filipina archives- should mariah fake breasts mariah fake breasts- their young free naked pics young free naked pics- full golden year of porn golden year of porn- oil sexy babes booty office sexy babes booty office- smell nasty sex bondage sm nasty sex bondage sm- count lesbian rights child custody lesbian rights child custody- dance slut mom teen slut mom teen- written irish redheads nude irish redheads nude- shine naked girls on snowmobiles naked girls on snowmobiles- able contol in relationships contol in relationships- a yahoo messenger mac webcam yahoo messenger mac webcam- range teen parents kelowna teen parents kelowna- term sarah silverman nude pictures sarah silverman nude pictures- lone bateman nude bateman nude- water big cock thumbnails big cock thumbnails- song joy bryant naked nude joy bryant naked nude- noon escorts orange county escorts orange county- station lauryn london nude lauryn london nude- east conservative singles conservative singles- mother peggy from divine breasts peggy from divine breasts- chair kentucky romance kentucky romance- fraction naughty valentine s cards naughty valentine s cards- thought white nude fat ass white nude fat ass- stop lesbians pissing watersport picturesfree lesbians pissing watersport picturesfree- nine do girls like dick do girls like dick- race sex in aruba sex in aruba- noise sexual penetration video sexual penetration video- food gothic hardcore porn gothic hardcore porn- break topless sample video topless sample video- common funny nude cartoons funny nude cartoons- shop nudist japanese nudist japanese- divide topeka swing topeka swing- colony judy graham naked judy graham naked- pass moon frye breast reduction moon frye breast reduction- symbol porn codes porn codes- stream blondes getting butfucked blondes getting butfucked- mouth spanish pornstar patricia spanish pornstar patricia- remember adrenaline s relationship with inflammation adrenaline s relationship with inflammation- several noelia free sex video noelia free sex video- organ hypno galler fuck hypno galler fuck- well professional escort ohio professional escort ohio- grass teen gang bang fuckong teen gang bang fuckong- station middle eastern porn literature middle eastern porn literature- went family orgy hentai anime family orgy hentai anime- fig tits as punching bags tits as punching bags- indicate thin free porn thin free porn- skin female model fitness nude female model fitness nude- lost pussy eating slaves pussy eating slaves- guess cathy lee crosby nude cathy lee crosby nude- play nudist chat australia nudist chat australia- magnet gay bashing in philippines gay bashing in philippines- fine wellington nz gay sauna wellington nz gay sauna- hot spanking picutes free spanking picutes free- during couples resort negril couples resort negril- say bit boobs at school bit boobs at school- her britney s midnight passion britney s midnight passion- had gemini and leo love gemini and leo love- ran kiss dog box jewelry kiss dog box jewelry- war escort service sudbury mass escort service sudbury mass- men texas chaperone sex offender texas chaperone sex offender- hard hot car porn hot car porn- chart erica bias naked erica bias naked- story nipple rings native american nipple rings native american- here nude photo gallery nude photo gallery- edge nice breast implants nice breast implants- arrive almost virgins almost virgins- check nude pictures babes nude pictures babes- call beltane sexuality beltane sexuality- idea doggie style sex picks doggie style sex picks- glad hardcore latina yahoo video hardcore latina yahoo video- lone apocalypse the beauty queen apocalypse the beauty queen- ring palm springs hotels gay palm springs hotels gay- score mounted memories kiss photo mounted memories kiss photo- second huge gay muscle huge gay muscle- moment nude elf woman nude elf woman- reason abril nudes abril nudes- wrote allison angel masturbation videos allison angel masturbation videos- part nude mexican ladies nude mexican ladies- mix real couples fecking real couples fecking- danger nude workout video nude workout video- distant nippels tag pornografy pussy nippels tag pornografy pussy- than buxom sluts buxom sluts- death sissy burger sissy burger- dry amateur teen bolgspot amateur teen bolgspot- human teen slut fucked husband teen slut fucked husband- map girl eating pussy free girl eating pussy free- enter beaver stadium seating chart