Projekt

Allgemein

Profil

Revision 3

Unterschiede anzeigen:

api/autocomplete/autocomplete.php
20 20
  $module_smarty = new Smarty;
21 21
  $module_smarty->assign('language', $_SESSION['language']);
22 22
  
23
  if (isset($_POST['queryString'])) {
24
    
23
  if (isset($_POST['queryString'])) {   
25 24
    $from_str = $where_str = '';
26 25
    
27 26
    $queryString = stripslashes(trim(decode_utf8(urldecode($_POST['queryString']))));    
......
30 29

  
31 30
    // create $search_keywords array
32 31
    $keywordcheck = xtc_parse_search_string($queryString, $search_keywords);
33
        
32

  
34 33
    if ($keywordcheck === true && mb_strlen($queryString, $_SESSION['language_charset']) >= SEARCH_AC_MIN_LENGTH) {
35 34
      
36 35
      $from_str .= SEARCH_IN_ATTR == 'true' ? " LEFT OUTER JOIN ".TABLE_PRODUCTS_ATTRIBUTES." AS pa ON (p.products_id = pa.products_id) 
......
76 75
                                   GROUP BY p.products_id 
77 76
                                   ORDER BY p.products_id ASC
78 77
                                      LIMIT ".MAX_DISPLAY_ADVANCED_SEARCH_RESULTS;
79
      
78
                                      
79
      # Modul Kategorie-Keywords: Erg?nzung relevanter Artikel IDs                                
80
      if(defined('MODULE_CATEGORY_KEYWORDS_STATUS') 
81
         && MODULE_CATEGORY_KEYWORDS_STATUS == 'True'){          
82
           require_once (DIR_WS_INCLUDES.'extra/default/listing_sql/category_keywords.php'); 
83
           # Erg?nzung relevanter Artikel IDs 
84
           if(isset($arr_included_products)){
85
              $autocomplete_search_query = str_replace("AND (  (", "AND (  ( p.products_id IN (".join($arr_included_products, ",") . ") OR ", $autocomplete_search_query);  
86
           }   
87
           # Erg?nzung relevanter Kategorien 
88
           if(count($categories_keyword_content) > 0) {  
89
                  $module_smarty->assign('categories_content', $categories_keyword_content);
90
           }  
91
      }
80 92
      $autocomplete_search_query = xtc_db_query($autocomplete_search_query);                      
81 93
      if (xtc_db_num_rows($autocomplete_search_query) > 0) {
82 94
        $module_content = array();
templates/tpl_modified/lang/lang_english.custom
12 12
last = 'last »'
13 13

  
14 14
heading_miscellaneous = 'Payment methods'
15
text_miscellaneous = 'Die Box kann unter tpl_modified/boxes/box_miscellaneous.html verändert werden. Die Sprachvariablen befinden sich in der Datei tpl_modified/lang/german/lang_german.custom.'
15
text_miscellaneous = 'Die Box kann unter tpl_modified_responsive/boxes/box_miscellaneous.html verändert werden. Die Sprachvariablen befinden sich in der Datei tpl_modified_responsive/lang/german/lang_german.custom.'
16 16

  
17 17
ab_admin = 'Adminarea'
18 18
ab_orders = 'Orders'
......
42 42
text_search_again = 'Sorry, we could not find a product matching your search request'
43 43

  
44 44
listing_listview = 'List view'
45
listing_boxview = 'Box view'
45
listing_boxview = 'Box view'
46
header_menu = 'Menu'
47

  
48
# Modul Kategorie-Keywords
49
heading_keyword_categories = 'was found in following categories:'
templates/tpl_modified/lang/lang_german.custom
12 12
last = 'Letzter »'
13 13

  
14 14
heading_miscellaneous = 'Zahlungsmethoden'
15
text_miscellaneous = 'Die Box kann unter tpl_modified/boxes/box_miscellaneous.html verändert werden. Die Sprachvariablen befinden sich in der Datei tpl_modified/lang/german/lang_german.custom.'
15
text_miscellaneous = 'Die Box kann unter tpl_modified_responsive/boxes/box_miscellaneous.html verändert werden. Die Sprachvariablen befinden sich in der Datei tpl_modified_responsive/lang/german/lang_german.custom.'
16 16

  
17 17
ab_admin = 'Adminbereich'
18 18
ab_orders = 'Bestellungen'
......
42 42
text_search_again = 'Die Suche ergab keine genauen Treffer'
43 43

  
44 44
listing_listview = 'Listenansicht'
45
listing_boxview = 'Boxansicht'
45
listing_boxview = 'Boxansicht'
46
header_menu = 'Menü'
47

  
48
# Modul Kategorie-Keywords
49
heading_keyword_categories = 'gefunden in folgenden Kategorien:'
templates/tpl_modified/module/autocomplete.html
24 24
          </span>
25 25
        </a>
26 26
      </li>
27
    {/foreach}            
27
    {/foreach}
28
    
29
    {* Modul Kategorie-Keywords *}
30
    {foreach name=aussen item=categories_data from=$categories_content key=spalten}
31
      <li class="cf autocomplete_content">
32
        <a class="autocomplete cf" href="{$categories_data.CATEGORIES_LINK}">
33
          {if $categories_data.CATEGORIES_IMAGE}
34
            <span class="autocomplete_image cf"><img src="{$categories_data.CATEGORIES_IMAGE}" alt="{$categories_data.CATEGORIES_NAME|onlytext}" title="{$categories_data.CATEGORIES_NAME|onlytext}" /></span>
35
          {else}
36
            <span class="autocomplete_image cf">&nbsp;</span>
37
          {/if}
38
          <span class="hl_text" style="width:145px;">{$categories_data.CATEGORIES_NAME}</span>
39
        </a>
40
      </li>
41
    {/foreach}
28 42
  </ul>
29 43
  
30 44
  <ul id="autocomplete_pagination" class="cf">
templates/tpl_modified/module/sub_categories_listing.html
2 2
{config_load file="lang_`$language`.custom"}
3 3
{config_load file="lang_`$language`.section" section="categorie_listing"}
4 4
{if isset($categories_content) && $categories_content != '' && $TR_COLS > 0}
5
<h4>{#heading_more_categories#}</h4>
5

  
6
{* Modul Kategorie-Keywords *}
7
<h4>{if $KEYWORD_RESULT}{#heading_keyword_categories#}{else}{#heading_more_categories#}{/if}</h4>
8

  
6 9
<div class="subcats cf">
7 10
  {foreach name=aussen item=categories_data from=$categories_content key=spalten}
8 11
  <div class="subcatlist{if $smarty.foreach.aussen.iteration is div by $TR_COLS} last{/if}">
templates/tpl_modified_responsive/lang/lang_english.custom
43 43

  
44 44
listing_listview = 'List view'
45 45
listing_boxview = 'Box view'
46
header_menu = 'Menu'
46
header_menu = 'Menu'
47

  
48
# Modul Kategorie-Keywords
49
heading_keyword_categories = 'was found in following categories:'
templates/tpl_modified_responsive/lang/lang_german.custom
43 43

  
44 44
listing_listview = 'Listenansicht'
45 45
listing_boxview = 'Boxansicht'
46
header_menu = 'Men&uuml;'
46
header_menu = 'Men&uuml;'
47

  
48
# Modul Kategorie-Keywords
49
heading_keyword_categories = 'gefunden in folgenden Kategorien:'
templates/tpl_modified_responsive/module/autocomplete.html
31 31
        </a>
32 32
      </li>
33 33
    {/foreach}
34
    {* Modul Kategorie-Keywords *}
35
    {foreach name=aussen item=categories_data from=$categories_content key=spalten}
36
        <li class="cf autocomplete_content">
37
          <a class="autocomplete cf" href="{$categories_data.CATEGORIES_LINK}">
38
             {if $categories_data.CATEGORIES_IMAGE != '' || (isset($categories_data.CATEGORIES_IMAGE_LIST) && $categories_data.CATEGORIES_IMAGE_LIST != '')}
39
              <span class="autocomplete_image cf">                                 
40
                  <img class="lazyload" data-src="{$categories_data.CATEGORIES_IMAGE}" alt="{$categories_data.CATEGORIES_NAME|onlytext}" title="{$categories_data.CATEGORIES_NAME|onlytext}" />
41
              </span>
42
            {else}
43
              <span class="autocomplete_image cf">&nbsp;</span>
44
            {/if}
45
            <span class="ac_text">{$categories_data.CATEGORIES_NAME}</span>
46
          </a>
47
        </li>
48
    {/foreach}
49
      
34 50
  </ul>
35 51
  
36 52
  <ul id="autocomplete_pagination" class="cf">
templates/tpl_modified_responsive/module/sub_categories_listing.html
2 2
{config_load file="lang_`$language`.custom"}
3 3
{config_load file="lang_`$language`.section" section="categorie_listing"}
4 4
{if isset($categories_content) && $categories_content != '' && $TR_COLS > 0}
5
<h4>{#heading_more_categories#}</h4>
5

  
6
{* Modul Kategorie-Keywords *}
7
<h4>{if $KEYWORD_RESULT}{#heading_keyword_categories#}{else}{#heading_more_categories#}{/if}</h4>
8

  
6 9
<div class="subcats cf">
7 10
  {foreach name=aussen item=categories_data from=$categories_content key=spalten}
8 11
  <div class="subcatlist">

Auch abrufbar als: Unified diff