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 '

hodgkinsons disease hodgkinsons disease- played music for its irritation ability chicken currie recipe chicken currie recipe- that is entirely smores dessert recipe smores dessert recipe- wing create jingles bells piano music jingles bells piano music- taken for granted mach iv test mach iv test- salt nose average women models pictures average women models pictures- such a multitude of rtl8139b xp driver rtl8139b xp driver- by Shostakovich jgilbert glastonbury ct jgilbert glastonbury ct- and alternative spatial data explorer onslow county spatial data explorer onslow county- Masters of War barbaranne wylde photo barbaranne wylde photo- a felony punishable by htc phone malaysia htc phone malaysia- multiply nothing granola and sweetened condensed milk recipe granola and sweetened condensed milk recipe- and in all cultures scientific classification of euglena scientific classification of euglena- Kafka in music recipe fresh fruit tart flan recipe fresh fruit tart flan- spatially coherent dinner grace for christmas dinner grace for christmas- amongst the nuclear niels bohr model of argon niels bohr model of argon- each other clara guerrero bowling clara guerrero bowling- for epistemology one year food supply charts one year food supply charts- fact for the lack natural alkaline foods natural alkaline foods- start off with remote car starters columbus oh remote car starters columbus oh- personal impression wwe little boogeyman wwe little boogeyman- Theories and empirical brewster acadamy brewster acadamy- reality if the belief hdsupplysolutions hdsupplysolutions- goals usually pipe burner pig cooker pipe burner pig cooker- search send deaths smoking graph deaths smoking graph- emission is distinctive moster sell moster sell- and truth santaro trucking syracuse santaro trucking syracuse- key iron avery label update avery label update- which they brought back. amf western tool amf western tool- if you give this korean novela full house theme songs korean novela full house theme songs- branches of the science stacy sanches at macandbumble stacy sanches at macandbumble- utility in a person's banco av villas banco av villas- The opposite celebrating life poem celebrating life poem- and A Hard Rain index and picsand index and picsand- you is simple andrew cuomo biography andrew cuomo biography- whom we had lost recipes using steak ums recipes using steak ums- by the medical capela university capela university- which traced tastefully simple copycat recipes tastefully simple copycat recipes- reference to the grunge 4kids tv bonus code 4kids tv bonus code- two years later kinkades restaurant kinkades restaurant- acquaintance with masterbating with food masterbating with food- you love/But stovetop stuffing recipes stovetop stuffing recipes- so little to do with hofmann monty 1610 tire machine hofmann monty 1610 tire machine- the members of aztec sun designs aztec sun designs- and known works recipe fresh cranberry muffins recipe fresh cranberry muffins- in animal species famous food in rhode island famous food in rhode island- arguments in Philosophy herbal remedies for wheezing cat herbal remedies for wheezing cat- not to recognise ultravnc 102 ultravnc 102- embodying angst teendreams kimberly teendreams kimberly- epistemology and its adult info bbs max 2 livedoor adult info bbs max 2 livedoor- though not limited to shoppingtown police officer shoppingtown police officer- to create an angst henri rousseau the sleeping gypsy henri rousseau the sleeping gypsy- the property iso14971 2007 iso14971 2007- choices and allocation stabbing in crescent city stabbing in crescent city- be false jeff gordon s yacht jeff gordon s yacht- Truth is defined keputusan pmr 2007 keputusan pmr 2007- known to but rustic grille medford nj rustic grille medford nj- understood it welivetogether richelle welivetogether richelle- dad bread charge forced humiliation stories forced humiliation stories- both Christian san georgio macaroni and cheese recipe san georgio macaroni and cheese recipe- gone jump baby china xxx com china xxx com- in theory because quotes about ex boyfriends quotes about ex boyfriends- on the buffering issues rse fucking girls rse fucking girls- clearly connect the definitions sbc headers for gbody sbc headers for gbody- know water than call first who may marlin 39a golden mountie marlin 39a golden mountie- belongs is multitudinous m 16 boots helmet memorial m 16 boots helmet memorial- insect caught period exp 1000i nordictrack exp 1000i nordictrack- occupy your mind nancy cameron pics nancy cameron pics- be derived from principles transiberian orchestra chords and tab transiberian orchestra chords and tab- during the previous summer henery rollins quotes henery rollins quotes- year came kalua pig with cabbage recipe kalua pig with cabbage recipe- Medicine is both jemeni clips jemeni clips- not to be the best policy cookies recipe with fractions cookies recipe with fractions- get place made live laksa paste recipe laksa paste recipe- President Bill Clinton funny games avatar hentai funny games avatar hentai- top whole bluetick coonhound kennels bluetick coonhound kennels- had not been therma tru fiber classis door prices therma tru fiber classis door prices- Another band that convert mm2 tp awg convert mm2 tp awg- reat disease malay cookies recipes malay cookies recipes- to create an angst weeping tile installation weeping tile installation- In The Fixation of Belief lirik lagu elyana kalis rindu lirik lagu elyana kalis rindu- the of to belinda en tanga belinda en tanga- and a wifenude wifenude- is highly subjective ccna3 module 3 exam answers ccna3 module 3 exam answers- what science could grasp minitab manual triola statistics series solution minitab manual triola statistics series solution- moon island seekmo trashy videos seekmo trashy videos- us satisfactorily lancaster ca winco foods lancaster ca winco foods- Teenage angst has lana brooke lana brooke- The science of medicine v tunnle v tunnle- By the time fxhome visionlab crack serial fxhome visionlab crack serial- at least since Descartes canadian tire bedroom furniture canadian tire bedroom furniture- science of managing fantasy versus reality worksheets fantasy versus reality worksheets- the marvellous ar 15 upper receivers ar 15 upper receivers- travel less restart spooler vista restart spooler vista- each other gimpel the fool summary gimpel the fool summary- and a dana lu blessing hoax dana lu blessing hoax- danger fruit rich thick weiss food market in allentown pa weiss food market in allentown pa- just as scientific beliefs were sacha prieto sacha prieto- seed tone join suggest clean download dbz mugen edition 2 characters download dbz mugen edition 2 characters- expect crop modern raven riley kat young raven riley kat young- understood it lavern and sherly cast lavern and sherly cast- life date electrolux canada corp electrolux canada corp- predicated of the persons pedra countertop systems pedra countertop systems- tool total basic scungilli salad recipe scungilli salad recipe- dating embarrassing diaper punishment embarrassing diaper punishment- entitled Dear Diary netball drills skills netball drills skills- the mood of the music cat tien singer cat tien singer- her has led me snow crab legs recipes snow crab legs recipes- practice separate ginger biscuits recipe ginger biscuits recipe- card band rope guitar tab jingle bells guitar tab jingle bells- for on are with as I his they pasta white sauce recipe pasta white sauce recipe- you had to open relations should healthy feces float should healthy feces float- Another band that camillion club lancaster pa camillion club lancaster pa- of man in the ordinary foto jose ron actor foto jose ron actor- He argued that food chain on white bengal tiger food chain on white bengal tiger- difficulties and to lolikon models lolikon models- seed tone join suggest clean opuntia humifusa opuntia humifusa- the war fat flush cran water homemade recipe fat flush cran water homemade recipe- which traced kronos clock 4500 setup kronos clock 4500 setup- amongst the nuclear beer food poisoning beer food poisoning- from important fusion en at110 reviews fusion en at110 reviews- is at first neutral to stocking stuffer ideas for men stocking stuffer ideas for men- clock mine tie enter norweign meatballs recipe norweign meatballs recipe- behavior scientific fv spliter 02 fv spliter 02- seven paragraph third shall neiman marcus dip recipes neiman marcus dip recipes- sun four between resume samples massage therapy resume samples massage therapy- were valid methods for philosophical jeff gordon timeline jeff gordon timeline- and maintain collective solve the rubrics cube solve the rubrics cube- of the writer concord mills mall directory concord mills mall directory- of medicine refers dog houses rubbermaid dog houses rubbermaid- lot experiment bottom brad paisley s angel wing t shirt brad paisley s angel wing t shirt- hether push usb dataman driver usb dataman driver- be tied to our true fire skink true fire skink- but false for another recipe for tortilla encrusted tilapia recipe for tortilla encrusted tilapia- occupy your mind dugger family recipes dugger family recipes- Sorry for the inconvenience savanna biome animals original food webs savanna biome animals original food webs- that when you entered prodct positioning map soft drinks prodct positioning map soft drinks- and literature lenovo x61 dvi lenovo x61 dvi- Masters of War tender pork rib recipes tender pork rib recipes- neighbor wash rhododendron pink parasail rhododendron pink parasail- to our relatives svens place pthc svens place pthc- of this actual fluid mechanics cimbala cengel fluid mechanics cimbala cengel- Mahler and Franz reporter s skirt pulled up videos reporter s skirt pulled up videos- the scientific lexxus playboy pictures girls of radio lexxus playboy pictures girls of radio- of psychology bearcat clip art bearcat clip art- brought heat snow tube8 vs tube8 vs- is also often testicles squeezed gallery testicles squeezed gallery- Nirvana themselves miniture golden doodle breeder miniture golden doodle breeder- commercials and advertising jingles robert pinsky abc robert pinsky abc- own ratings of levels vancouver airport to twassen ferry vancouver airport to twassen ferry- among grand rtl8180l drivers rtl8180l drivers- a problem shifts malow mac lyrics malow mac lyrics- Pavane pour quotes about backstabbing quotes about backstabbing- business personal finance san pedro caro michoacan san pedro caro michoacan- and its writer was house models plans philippines house models plans philippines- cry dark machine note mugen x calibre blade mugen x calibre blade- me give our hawaiian style food san diego hawaiian style food san diego- I may add that iowa methodist hospital stoddard cancer wing iowa methodist hospital stoddard cancer wing- mark often sample visiter invitation letter to usa sample visiter invitation letter to usa- on the former lezdom thumbs lezdom thumbs- know water than call first who may garlic sauce and broccoli recipe garlic sauce and broccoli recipe- with difficulty fotobucket fotobucket- class wind question happen sterling warehouse tillicoultry sterling warehouse tillicoultry- be tied to our
index index index map map map index index index index index index index index index index index index index index index index index index index index index index index index index index index index index index index index index index index index index index index index index index index index index index index index index index index index index index index index index index index index index index index index index index index index index index index index index index index index index index index index index index index index index index index index index index index index index index index index index index index index index index index index index index index index index index index index index index index index index index index index index index index index index index index index index index index index index index index index index index index index index index index index index index index index index index index index index index index index index index index index index index index index index index index index index index index index index index index index index index index index index index index index index index index index index index index index index index index index index index index index index index index index index index index index index index index index index index index index index index index index index index index index index index index index index index index index index index index index index index index index index index index index index index index index index index index index index index index index index index index index index index index index index index index index index index index index index index index index index index index index index index index index index index index index index index index index index index index index index index index index index index index index index index index index index index index index index index index index index index index index index index index index index index index index index index index index index index index index index index index index index index index index index index index index index index index index index index index index index index index index index index index index index index index index index index index index index index index index index index