Execute("SELECT manufacturers_id, manufacturers_name FROM " . $oostable['manufacturers'] . " ORDER BY manufacturers_name"); while ($manufacturers = $manufacturers_result->fields) { $aManufacturers[] = array('id' => $manufacturers['manufacturers_id'], 'text' => $manufacturers['manufacturers_name']); $manufacturers_result->MoveNext(); } return $aManufacturers; } require 'includes/languages/' . $sLanguage . '/search_advanced.php'; $error = ''; if (isset($_GET['errorno'])) { if (($_GET['errorno'] & 1) == 1) { $error .= str_replace('\n', '
', $aLang['js_at_least_one_input']); } if (($_GET['errorno'] & 10) == 10) { $error .= str_replace('\n', '
', $aLang['js_invalid_from_date']); } if (($_GET['errorno'] & 100) == 100) { $error .= str_replace('\n', '
', $aLang['js_invalid_to_date']); } if (($_GET['errorno'] & 1000) == 1000) { $error .= str_replace('\n', '
', $aLang['js_to_date_less_than_from_date']); } if (($_GET['errorno'] & 10000) == 10000) { $error .= str_replace('\n', '
', $aLang['js_price_from_must_be_num']); } if (($_GET['errorno'] & 100000) == 100000) { $error .= str_replace('\n', '
', $aLang['js_price_to_must_be_num']); } if (($_GET['errorno'] & 1000000) == 1000000) { $error .= str_replace('\n', '
', $aLang['js_price_to_less_than_price_from']); } if (($_GET['errorno'] & 10000000) == 10000000) { $error .= str_replace('\n', '
', $aLang['js_invalid_keywords']); } } $aCategoriesID = oos_get_categories(array(array('id' => '', 'text' => $aLang['text_all_categories']))); $aManufacturersID = oos_get_manufacturers(array(array('id' => '', 'text' => $aLang['text_all_manufacturers']))); /* $options_box .= ' ' . "\n" . ' ' . $aLang['entry_date_from'] . '' . "\n" . ' ' . oos_draw_input_field('dfrom', DOB_FORMAT_STRING, 'onFocus="RemoveFormatString(this, \'' . DOB_FORMAT_STRING . '\')"') . '' . "\n" . ' ' . "\n" . ' ' . "\n" . ' ' . $aLang['entry_date_to'] . '' . "\n" . ' ' . oos_draw_input_field('dto', DOB_FORMAT_STRING, 'onFocus="RemoveFormatString(this, \'' . DOB_FORMAT_STRING . '\')"') . '' . "\n" . ' ' . "\n"; */ // links breadcrumb $oBreadcrumb->add($aLang['navbar_title']); $sCanonical = oos_href_link($aContents['advanced_search'], '', FALSE, TRUE); $aTemplate['page'] = $sTheme . '/page/advanced_search.html'; $nPageType = OOS_PAGE_TYPE_CATALOG; $sPagetitle = $aLang['heading_title'] . ' ' . OOS_META_TITLE; require_once MYOOS_INCLUDE_PATH . '/includes/system.php'; if (!isset($option)) { require_once MYOOS_INCLUDE_PATH . '/includes/message.php'; require_once MYOOS_INCLUDE_PATH . '/includes/blocks.php'; } // assign Smarty variables; $smarty->assign( array( 'breadcrumb' => $oBreadcrumb->trail(), 'heading_title' => $aLang['heading_title'], 'canonical' => $sCanonical, 'error' => $error, 'categoriesID' => $aCategoriesID, 'manufacturersID' => $aManufacturersID ) ); // display the template $smarty->display($aTemplate['page']);