<?php
/* -----------------------------------------------------------------------------------------
$Id: search.php 2 2011-02-17 13:35:25Z akausch $
XT-Commerce - community made shopping
http://www.xt-commerce.com
Copyright (c) 2003 XT-Commerce
-----------------------------------------------------------------------------------------
based on:
(c) 2000-2001 The Exchange Project (earlier name of osCommerce)
(c) 2002-2003 osCommerce(search.php,v 1.22 2003/02/10); https://support.commerce-seo.de/www.oscommerce.com
(c) 2003 nextcommerce (search.php,v 1.9 2003/08/17); https://support.commerce-seo.de/www.nextcommerce.org
Released under the GNU General Public License
---------------------------------------------------------------------------------------*/
$box_smarty = new smarty;
$box_smarty->assign('tpl_path', 'templates/'.CURRENT_TEMPLATE.'/');
require_once (DIR_FS_INC.'xtc_image_submit.inc.php');
require_once (DIR_FS_INC.'xtc_hide_session_id.inc.php');
$box_smarty->assign('FORM_ACTION', '<form>');
$box_smarty->assign('FORM_ACTION', xtc_draw_form('quick_find_head', xtc_href_link(FILENAME_ADVANCED_SEARCH_RESULT, '', $request_type, false), 'get')."\n".xtc_hide_session_id()."\n".xtc_draw_hidden_field('n1','1'));
#$box_smarty->assign('INPUT_SEARCH', xtc_draw_input_field('keywords', '', 'size="20" maxlength="30" title="'.WCAG_SEARCH.'"'));
$box_smarty->assign('INPUT_SEARCH', '<input type="search" id="search" name="keywords" size="20" accesskey="s" maxlength="30" title="'.WCAG_SEARCH.'">', 'search');
$box_smarty->assign('BUTTON_SUBMIT', xtc_image_submit('button_quick_find.png', IMAGE_BUTTON_SEARCH));
$box_smarty->assign('FORM_END', '</form>');
$box_smarty->assign('language', $_SESSION['language']);
// set cache ID
if (!CacheCheck()) {
$box_smarty->caching = 0;
$box_content = $box_smarty->fetch(CURRENT_TEMPLATE.'/boxes/box_searchhead.html');
} else {
$box_smarty->caching = 1;
$box_smarty->cache_lifetime = CACHE_LIFETIME;
$box_smarty->cache_modified_check = CACHE_CHECK;
$cache_id = $_SESSION['language'];
$box_content = $box_smarty->fetch(CURRENT_TEMPLATE.'/boxes/box_searchhead.html', $cache_id);
}
?>