XT-Commerce - community made shopping http://www.xt-commerce.com Copyright (c) 2003 XT-Commerce Released under the GNU General Public License ---------------------------------------------------------------------------------------*/ //header( 'HTTP/1.0 404 Not Found' ); //header( 'Status: 404 Not Found' ); $module_smarty = new Smarty(); $module_smarty->assign('tpl_path', 'templates/' . CURRENT_TEMPLATE . '/'); $module_smarty->assign('language', $_SESSION['language']); $module_smarty->assign('ERROR', $error); $module_smarty->assign('BUTTON', '<a href="javascript:history.back(1)">' . xtc_image_button('button_back.gif', IMAGE_BUTTON_BACK) . '</a>'); // Tomcraft - 2010-05-04 - Changed alternative text for the button $module_smarty->assign('language', $_SESSION['language']); // search field $module_smarty->assign('FORM_ACTION', xtc_draw_form('new_find', xtc_href_link(FILENAME_ADVANCED_SEARCH_RESULT, '', $request_type, false), 'get') . xtc_hide_session_id()); //WEB28 change NONSSL to $request_type $module_smarty->assign('INPUT_SEARCH', xtc_draw_input_field('keywords', '', 'size="30" maxlength="30"')); $module_smarty->assign('BUTTON_SUBMIT', xtc_image_submit('button_quick_find.gif', IMAGE_BUTTON_SEARCH)); $module_smarty->assign('LINK_ADVANCED', xtc_href_link(FILENAME_ADVANCED_SEARCH)); $module_smarty->assign('FORM_END', '</form>'); $module_smarty->caching = 0; $module_smarty->caching = 0; $module = $module_smarty->fetch(CURRENT_TEMPLATE . '/module/error_message.html'); if (strstr($PHP_SELF, FILENAME_PRODUCT_INFO)) { $product_info = $module; } $smarty->assign('main_content', $module);
$options = array(array('id' => '', 'text' => TEXT_ALL_CATEGORIES)); // DokuMan - 2012-03-27 - added missing "id" for xtc_draw_pull_down_menu } else { $manufacturer_dropdown .= xtc_draw_hidden_field('cat', $current_category_id) . PHP_EOL; $options = array(array('id' => '', 'text' => TEXT_ALL_MANUFACTURERS)); // DokuMan - 2012-03-27 - added missing "id" for xtc_draw_pull_down_menu } if (isset($_GET['sort']) && !empty($_GET['sort'])) { $manufacturer_dropdown .= xtc_draw_hidden_field('sort', $_GET['sort']) . PHP_EOL; } while ($filterlist = xtc_db_fetch_array($filterlist_query, true)) { $options[] = array('id' => $filterlist['id'], 'text' => $filterlist['name']); } $manufacturer_dropdown .= xtc_draw_pull_down_menu('filter_id', $options, isset($_GET['filter_id']) ? (int) $_GET['filter_id'] : '', 'onchange="this.form.submit()"') . PHP_EOL; $manufacturer_dropdown .= '<noscript><input type="submit" value="' . SMALL_IMAGE_BUTTON_VIEW . '" id="filter_submit" /></noscript>' . PHP_EOL; $manufacturer_dropdown .= xtc_hide_session_id() . PHP_EOL; //Session ID nur anhängen, wenn Cookies deaktiviert sind $manufacturer_dropdown .= '</form>' . PHP_EOL; } } include DIR_WS_MODULES . FILENAME_PRODUCT_LISTING; /** * default content page * */ } else { $shop_content_data = $main->getContentData(5); $default_smarty->assign('title', $shop_content_data['content_heading']); include DIR_WS_INCLUDES . FILENAME_CENTER_MODULES; $default_smarty->assign('text', str_replace('{$greeting}', xtc_customer_greeting(), $shop_content_data['content_text'])); $default_smarty->assign('language', $_SESSION['language']);
(c) 2003 nextcommerce (advanced_search.php,v 1.13 2003/08/21); www.nextcommerce.org Released under the GNU General Public License ---------------------------------------------------------------------------------------*/ include 'includes/application_top.php'; // create smarty elements $smarty = new Smarty(); // include boxes require DIR_FS_CATALOG . 'templates/' . CURRENT_TEMPLATE . '/source/boxes.php'; // include needed functions require_once DIR_FS_INC . 'xtc_get_categories.inc.php'; require_once DIR_FS_INC . 'xtc_get_manufacturers.inc.php'; require_once DIR_FS_INC . 'xtc_checkdate.inc.php'; $breadcrumb->add(NAVBAR_TITLE_ADVANCED_SEARCH, xtc_href_link(FILENAME_ADVANCED_SEARCH)); require DIR_WS_INCLUDES . 'header.php'; $smarty->assign('FORM_ACTION', xtc_draw_form('advanced_search', xtc_href_link(FILENAME_ADVANCED_SEARCH_RESULT, '', $request_type, false), 'get', 'onsubmit="return check_form(this);"') . xtc_hide_session_id()); //WEB28 change NONSSL to $request_type $smarty->assign('INPUT_KEYWORDS', xtc_draw_input_field('keywords', '', 'style="width: 100%"')); //BOF - DokuMan - 2009-05-31 - removed quotationmark //$smarty->assign('HELP_LINK', xtc_href_link(FILENAME_POPUP_SEARCH_HELP.'?KeepThis=true&TB_iframe=true&height=400&width=600"')); $smarty->assign('HELP_LINK', xtc_href_link(FILENAME_POPUP_SEARCH_HELP . '?KeepThis=true&TB_iframe=true&height=400&width=600')); //EOF - DokuMan - 2009-05-31 - removed quotationmark $smarty->assign('BUTTON_SUBMIT', xtc_image_submit('button_search.gif', IMAGE_BUTTON_SEARCH)); $smarty->assign('SELECT_CATEGORIES', xtc_draw_pull_down_menu('categories_id', xtc_get_categories(array(array('id' => '', 'text' => TEXT_ALL_CATEGORIES))))); $smarty->assign('ENTRY_SUBCAT', xtc_draw_checkbox_field('inc_subcat', '1', true)); $smarty->assign('SELECT_MANUFACTURERS', xtc_draw_pull_down_menu('manufacturers_id', xtc_get_manufacturers(array(array('id' => '', 'text' => TEXT_ALL_MANUFACTURERS))))); $smarty->assign('SELECT_PFROM', xtc_draw_input_field('pfrom')); $smarty->assign('SELECT_PTO', xtc_draw_input_field('pto')); $error = ''; if (isset($_GET['errorno'])) { if (($_GET['errorno'] & 1) == 1) {
} $manufacturers_list .= '<a href="' . xtc_href_link(DIR_WS_CATALOG . FILENAME_DEFAULT, 'manufacturers_id=' . $manufacturers['manufacturers_id']) . '">' . $manufacturers_name . '</a><br />'; //DokuMan - 2010-09-30 - added DIR_WS_CATALOG for manufacturer_dropdown to work properly } $box_content = $manufacturers_list; } else { // Display a drop-down $manufacturers_array = array(); if (MAX_MANUFACTURERS_LIST < 2) { $manufacturers_array[] = array('id' => '', 'text' => PULL_DOWN_DEFAULT); } while ($manufacturers = xtc_db_fetch_array($manufacturers_query, true)) { $manufacturers_name = strlen($manufacturers['manufacturers_name']) > MAX_DISPLAY_MANUFACTURER_NAME_LEN ? substr($manufacturers['manufacturers_name'], 0, MAX_DISPLAY_MANUFACTURER_NAME_LEN) . '..' : $manufacturers['manufacturers_name']; $manufacturers_array[] = array('id' => xtc_href_link(FILENAME_DEFAULT, xtc_manufacturer_link($manufacturers['manufacturers_id'], $manufacturers['manufacturers_name'])), 'text' => $manufacturers_name); } //BOF - h-h-h - 2011-05-16 - fix view selected manufacturers //$box_content = xtc_draw_form('manufacturers', xtc_href_link(FILENAME_DEFAULT, '', 'NONSSL', false), 'get').xtc_draw_pull_down_menu('manufacturers_id', $manufacturers_array, isset($_GET['manufacturers_id']) ? $_GET['manufacturers_id'] : '', 'onchange="if (form.manufacturers_id.selectedIndex != 0) location = form.manufacturers_id.options[form.manufacturers_id.selectedIndex].value;" size="'.MAX_MANUFACTURERS_LIST.'" style="width: 100%;"').xtc_hide_session_id().'</form>'; $box_content = xtc_draw_form('manufacturers', xtc_href_link(FILENAME_DEFAULT, '', 'NONSSL', false), 'get') . xtc_draw_pull_down_menu('manufacturers_id', $manufacturers_array, isset($_GET['manufacturers_id']) ? xtc_href_link(FILENAME_DEFAULT, xtc_manufacturer_link($_GET['manufacturers_id'], isset($_GET['manufacturers_name']) ? $_GET['manufacturers_name'] : '')) : '', 'onchange="if (form.manufacturers_id.selectedIndex != 0) location = form.manufacturers_id.options[form.manufacturers_id.selectedIndex].value;" size="' . MAX_MANUFACTURERS_LIST . '" class="form-control"') . xtc_hide_session_id() . '</form>'; //EOF - h-h-h - 2011-05-16 - fix view selected manufacturers } if ($box_content != '') { $box_smarty->assign('BOX_CONTENT', $box_content); } } // set cache ID if (!$cache) { $box_manufacturers = $box_smarty->fetch(CURRENT_TEMPLATE . '/boxes/box_manufacturers.html'); } else { $box_manufacturers = $box_smarty->fetch(CURRENT_TEMPLATE . '/boxes/box_manufacturers.html', $cache_id); } $smarty->assign('box_MANUFACTURERS', $box_manufacturers);
// include functions require_once DIR_FS_INC . 'xtc_hide_session_id.inc.php'; if (isset($xtPrice) && is_object($xtPrice)) { $count_cur = ''; reset($xtPrice->currencies); $currencies_array = array(); while (list($key, $value) = each($xtPrice->currencies)) { $count_cur++; $currencies_array[] = array('id' => $key, 'text' => $value['title']); } $hidden_get_variables = ''; reset($_GET); while (list($key, $value) = each($_GET)) { if ($key != 'currency' && $key != xtc_session_name() && $key != 'x' && $key != 'y') { $hidden_get_variables .= xtc_draw_hidden_field($key, $value); } } } // dont show box if there's only 1 currency if ($count_cur > 1) { // reset var $box_smarty = new smarty(); $box_smarty->assign('tpl_path', 'templates/' . CURRENT_TEMPLATE . '/'); $box_content = ''; $box_content = xtc_draw_form('currencies', xtc_href_link(basename($PHP_SELF), '', $request_type, false), 'get') . xtc_draw_pull_down_menu('currency', $currencies_array, $_SESSION['currency'], 'onChange="this.form.submit();" style="width: 100%"') . $hidden_get_variables . xtc_hide_session_id() . '</form>'; $box_smarty->assign('BOX_CONTENT', $box_content); $box_smarty->assign('language', $_SESSION['language']); $box_smarty->caching = 0; $box_currencies = $box_smarty->fetch(CURRENT_TEMPLATE . '/boxes/box_currencies.html'); $smarty->assign('box_CURRENCIES', $box_currencies); }