%@ LANGUAGE="VBSCRIPT" %> <% PageStrings = "1154, 1155, 1156, 1157, 1158, 1159, 1160, 1161, 1162, 1163, 1164, 1165, 1166, 1167, 1168" strThisBackPage = "config" %> <% '=============================================== ' CactuShop ASP Shopping Cart ' ©1999-2004 Cactusoft Ltd. www.cactusoft.com '=============================================== ' All rights reserved. ' Use of this code is covered by the terms and ' conditions in the license agreement. No ' unauthorized duplication or distribution is ' permitted. Cactusoft's copyright notices must ' remain in the ASP sections of the code. '=============================================== '----------------------------------------------- 'FUNCTION 'Recursive function to write out the categories 'and sub-categories in a trail '----------------------------------------------- Function DoCats(objCategoriesDictionary, objSubCategoriesDictionary, numMotherID, strTrail) 'Ignore it if the category is the current category - we don't want them to put a category 'inside itself, or inside one of it's children! If numMotherID & "" <> PT_ID & "" then 'Write out the trail response.write "" & vbcrlf 'If there are any sub categories for this category If objSubCategoriesDictionary.Exists(CInt(numMotherID)) then 'Get all sub categories and loop through them arySubCategories = split(objSubCategoriesDictionary.Item(CInt(numMotherID)), ",") For each numSubCategory in arySubCategories If isnumeric(numSubCategory) then 'Add the sub category to the end of the trail and call the function with the new sub-cat strTrailToPass = " " & strTrail DoCats objCategoriesDictionary, objSubCategoriesDictionary, numSubCategory, strTrailToPass end if Next end if end if end Function %>