= 1 GROUP BY cat_father_id, cat_id", $glob['dbprefix']); $results = $db->select($sql); for ($i=0; $iassign('OPTION_VALUE', $results[$i]['cat_id']); $content->assign('OPTION_TITLE', getCatDir($results[$i]['cat_name'], $results[$i]['cat_father_id'], $results[$i]['cat_id'])); $content->parse("adv_search.adv_search_category"); } $content->assign('LANG_SEARCH_TITLE', $lang['search']['search_title']); $content->assign('LANG_SEARCH_KEYWORD', $lang['search']['search_keyword']); $content->assign('LANG_SEARCH_PRICE', $lang['search']['search_price']); $content->assign('LANG_SEARCH_INSTOCK', $lang['search']['search_instock']); $content->assign('LANG_SEARCH_CATEGORY', $lang['search']['search_category']); $content->assign('LANG_SEARCH_CATEGORY_HELP', $lang['search']['search_category_help']); $content->assign('LANG_SEARCH_SUBMIT', $lang['search']['search_submit']); $content->assign('LANG_SEARCH_RESET', $lang['search']['search_reset']); $content->parse("adv_search"); $page_content = $content->text("adv_search"); ?>