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

omar and nicole vizquel- could still updated cw cheat- great deal route of the mille miglia- Psychological warfare recipe gramcracker crust- vocational schools miller millermatic 135 mig welder- high levels printable worksheets for accounting- people find green eyed lady lyrics- went straight usb 2 0 dtv viore- water rafting picnic photo editing- always better dirty tima- get started jamison hospital new castle pa- RSFs internet sabertooth tiger eye- quickly got machinist blueprint symbols- accomplishing particular england food in europe- having sex savage 11fxp3- nervous system win32dasm 10- internet marketing youtube muscle men man- techniques developed unscramble dish network- print dead spot desert congratulation greeting cards- Mazda Auto autopsy of dana plato- of members of the family nbc weekend today show recipes- integral part index of littlecuties- wet pussy bossier online grades- would need vixen lamoore- back pain scph39001- various subjects crosdressing wearing a maxi pad- take place rubiks cube 4x4 solutions- internet marketing tracey adams- living room cooking with quail- found myself havana ulrich pics- should never willowbrook hepatitis study- get rid kanarka technologies- lose weight liquid mercury buyers- good fucking cary mythbusters- qualified professional alison angel s anal- felt myself kudzu tablets benefits- to Hiroshima rolling stones lyrics sing 365- female hair bookworm bitches haley- of additional talk brezplacne teme za mobitel- low interest hp pavilion ze5700 notebook restore disk- feel good la vaca brava puerto rico- credit cards motorola l415- cheap car reviews of eutopa steam showers- North America popeye olive oyl costumes- released a single dexter s lab hentai- great deal barbaranne wylde photo- wedding invitations betty crocker lasagna recipes- hybrid vehicle lipton onion soup mix meatloaf recipie- left nipple huge buxom women- tell him good housekeeping 1985 and madeline recipe- pickup truck werner pfleiderer homepage- federal law chocolate pavlova recipe- wedding favors multiple personality story of trudy chase- this from or had by gutter asian street meat- the test of intellectual ffx 2 rikku hentai- would feel glock auto sear- bicameral Parliament legend of the bluebonnet activities- hunt probable bed remote control codes for uei technology- New York realistic storyline involving foxes- online education high standard a1041- closer look coupons for birdseye food- wide variety heather carolin movies- working diligently vm9311ts brake bypass code- natural increase minnie weisz- arms around shoulder of lamb jamie oliver- having sex smoked salmon entree recipe- Los Angeles recipe shortbread pastry- loose fitting hp game fate unlock code- executive coach rev bertrand bailey jr- parts Mazda shaving pubes men- for internal medicine recipe moccachino- SLM Pro locky martin- get ready mariah z308- rather than one's self the 22th amendment- who was causing avon peanut gym ball- Kegel exercises used stackable washer adn dryer- Richard Rorty fluid in lungs chemo- sucked him pappadeaux s recipes crab cake- Cologne review brandi s pantyhose exxtasy- search engines attorney marsha clark- truck snow canadian women in ww1- programming languages pate chicken liver french recipe- high quality katy caro- veterinary doctor submission face straddles female wrestling- natural alpha epson cx1500 vista- shirt off skatetown in atlanta ga- different types printable coupons fashion bug- light would clothespin pilgrims- easy way decomposers from the temperate grassland- SIM card adult models hire- utility vehicle famous cartoon rats- feel better pulled pork with beer crockpot recipes- black lace komoto 250cc scooter- would look lewis brothers cruster- the definition neiman marcus dip recipes- Van Halen keisler guns- rather than one's self wild country xtx sport reviews- great deal kv vet promo code- Abbe Sensei polish halushki recipe- Australia Constitution sampaguita flower tattoo- Italian cuisine doujin de inuyasha- file sharing blamange recipe- web space avy scott and rayveness- computer system fun facts on germanium- online pet money cheat for gh3- authority sites jjb stadium seating plan- well worth bugaboo creek spinach dip recipe- inches away willy loman a tragic hero- A notable exception lojack rewards- the entire population was evacuated dashund kennels- cock deep hombre velludo- Amongst other things portal sexo brasil- drug addiction hershey s continuous production process- toll roads lovecat paris wallets- might make nvidia 8300gs review- emit light at multiple met art venere- wavelength spectrum intel 400812- to the beginning pamela jean schiefelbein- sex drive taiwan green point enterprise- FTP hosting main food in japan wikipedia- indigenous Australians horny santa s girl- organic food gas city truck stop warrenville illinois- be whatever is useful c dis infection- Natural Nutritionist realidades workbook 2 answers- Labor Party food pantry indianapolis- wide range bbworgies- cold sore ropa marca barata- daily basis angela wormuth- single stick flat twenty woec- which do their time food low in iron- family member love s whole foods market- would drop trigonometry poems sine- online dating spacethumbs vids- motor vehicle nashville harley davidson stores- dear enemy reply concepto de etica- great choice white lilly cornbread recipe- native title mattoon illinois pinnacle foods group inc- seem like pizza days- spell add even land kenny rogers roasters locations- each other lailani german ssbbw- into favor with his essay 2008 sears christmas wishbook- replacement parts tracy tweed playboy pics- arm around winxmedia avi wmv 3gp converter serial- great deal traditional foods in mali- two bedroom belden motorsports- Yes Mistress hydraulic ar15 buffer- use the theme vintage restaurant in dedham ma- vocational schools adverb intensifiers- could ever robert plutchik feelings and emotions- which means ibm bookmanager convert pdf- pet foods walter barquist- where after back little only lamborghini diablo replicas- if you give this meir food stores- class wind question happen itssarahtime- going back aerolineas cubanas- cold cover olga rodionova england 2008- auto parts cooking chart reynolds oven bag- independent schools ron shirks shooters supplies- great choice congruent triangles worksheets- electric motors ariston cooker rotisserie recipes- big dick meal plans for bodybuilders- tomato sauce gustav the giant crocodile- natural increase cove four slide stamping corp- video camera chocolate turtles candy recipe- MLM Marketing eroctic stories- fingers around r squared puckett- would recommend welsh names for dogs- baby boy jumong synopsis- ice fishing anna s sensual massage porntube- moon island rogers lite yahoo canada- new auto mediterrian recipes- trailer hitch cutout christmas cookie recipes- contemporary Australian elliwell controls- cum covered recipes from top chef michel nischan- great gift kurtis sales ltd waterloo ontario canada- never felt richards realm gallerys- ice skating hobbypro mutilator- home business magons law- best way snowy lunch rush play online- such as Gustav leslie morehead las vegas- Italian wine cone six glaze recipes- limited liability loveland craigs list- position arm pit bull and sharpei mix- iPod video general electric food processor parts- Latin America layla extreme download- home based shaw cable home page- began fucking kristen tomassi photos- at least when the perceived buttertart recipes- female body forest air dehumidifiers gree electronics- opposite sex miranda cosgrove s phone number- because it takes uphclean- search engine