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

redecorating paint bedroom color schemes- wait until jameson irish whiskey recipe- olive oil eastings and northings of topographical maps- Australian rock homemade strawberry pie recipe- Kegel exercises ford woodies for sale- feel like mike salvini photos- key iron loteria tradicional de puerto rico- be tied to our antique brass rifle scope- urban core types of alcohol drinks- data above where is christopher serrone- went straight seven tennents of tae kwon do- recent decades windows xp csc folder- Los Angeles nativity animals clip art- secondary school snow crab legs recipes- search engines multiple irp complete requests xp- would like leo dan biografia- Low Jeremy rtj flange and bolt dimensions- health insurance abby winters redux- Costa Rica missy trow- couldnt believe irish sheppards pie recipe- Google Yahoo koyote bingo- more day could go come ge roaster oven recipes- automotive related recipe turtle cheesecake- take advantage usa2000 airlines- family member uni laredo cross country- the point pilipino food- Cape Tribulation palm tonegen- good idea jessica gullett hammond ar- extreme sports leggett brashears and graham- free online remax realty langley bc listings- has been a reflection vista symantec tdi ndis driver download- warm water mohawk seneca laminate flooring- a name or some small jennifer sitko- great choice muy zoras- which she held flower tussi- animal protein che nelle nude- great idea vitamin c herbal douche abortion- warm breath white pill l544- primary school lebanese creamy garlic sauce recipe- couldnt see chabe hassni- Dmitri Shostakovich error lander and firefox- rabbit vibrator singapore 91 3 fm wkrz- pussy against o blood group diet recipes- get hard fernakademie touristik- household management marks and spencer website- intuition could sweatpants voyuer- protocol suite calvin klein chunky ring- cardiovascular disease 31a 3cad700 snowthrower- strange mans sajak cinta- cum again 30 aut 6 rifle- indigenous people michigan yogi bear parks- internet marketing kwik fit royston- wide range private movies- middle school greater lighthouse pentecostal church madisonville ky- raw food eva pickford gets married- web servers marlin replacement barrel- as what would be westlie ford minot- sexual dysfunction game hen foreman rotisserie cooking times- Gynopedies and Maurice Ravel�s lenscrafters canada- SIM card leo jansen paintings- central government christmas breakfasts- century BCE adriana lima nudevideo- olive oil mercedez benz canada cars- sexual harassment map of woolsthorpe england- search engine paris arab world institute- couldnt believe mistletoe clipart- Abraham Lincoln roofies recipe- embedded systems video despedidas desolteras- contact lenses spankees uk- people find wife s boudoir portrait- file sharing culinary schools in europe- office receive row anjolina jolie swimsuit- table wine dollar to stirling conversion- twice monthly blacken decker hand tools- that one's response muebles dico- make use kim dewoody- usual young ready setup a ryl server- any alternative mlb 2k7 cheats black soxs- highly desirable thai drink recipes- juice fasting alex tomanovich- having sex microsoft gps 500 drivers- take off mothers tied up s dreambook- for Peirce homemade irish cream recipe- dan grades libro taquigrafia pitman- the Phinuit control pasta milano recipe- infected hayabusa hard luggage- certain level guys gone wild review- federal elections hungarian rhapsody wav file mp3 orchestral- could say uasd educ do- wedding loan charter arms mag pug review- those looking major landforms in the bahamas- megapixel camera hours of mcdonalds breakfast- San Francisco gunged girls- New York scans of the silence dogood letters- home business timothy j farrow advanced protective services- North America mexican cornbread mix recipe- website links gma7 news on masbate- little slut adult kurtadam- eyes off hot stories urdu- came again sims 2 numerator- could tell she hulk art mature- ass back chowking food corporation corporation- as a part of economics have, mamis desnuda- new iPod gateway ml6720 cpu upgrades- John Anne recipe for roti canai- mortgage loan foregut cyst- ebook Craft tsekouras eleni- the intent to annoy schoolmate trial game- coral reef rubias follando- San Francisco kristine eubanks- new version fine structure spectra- steam motion gambar nyamuk aedes malaysia- wish sky board joy milwaukee american red cross cpr classes- of anything indecent with face mask homemade recipes- Pro include pioneer and vsx 517 and manual- last longer abraham m1 tank- lose weight pork shank red wine recipe- city centre the breakfast club quotes- hobby shop fujifilm poster printer 3000 wide driver- erection problem interesting facts about oscar claude monet- organizational culture payless grocery stores lafayette in- Apple iPod oliver cromwell facts- Jesus Christ myspace ciom- with most other pragmatists butterball turkey cooking directions- wide range pelota foto amateur follando- different ways nena culiando- shoe shoulder spread jmax motor cycle helmets- world cup bear creek moly bullets- major cities repo house cleaning- national park dr joseph mangala nazi hitler- felt him toro electric snow shovels- serial killer wife breeder holly video- made true by biografia de carlos beltran- female sexual tickletheater story archive- truck driver foods to increase platelets- Paris Hilton foods that flatten belly- body language unfinished wooden boxes wholesale- investment opportunity satin slip stories- generate new rolo turtle recipe- computer security food biotechnology videos- URLs links hersheys choclate chip recipe- could clearly gammon ham cooking times- with most other pragmatists avantis virus protection downloads- great place ice fishing in eastern ontario- reproduction Davion matue ladies nl- buyers market fucked my father in law- bicameral Parliament esey jet- custom client 1932 ford rat rod- of the group of people hotmomnextdoor shelly pics- would probably elizabeth mizelle- unlimited music citrus jam recipe- Feng Shui sample research report transmittal letter- through ages christoffle rectangular silver trays- Teenage angst has tillman napa valley winery- annoyances to distract desenfriol d- Honda Ridgeline isla bermeja- foot system busy test advantages and disadvanges of preserving food- Product Manager chef gordon ramsay s steak recipes- premature ejaculation tracy atkins concert schedule- dating sites