Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 15b67fd5

Von Sven Schöling vor fast 9 Jahren hinzugefügt

  • ID 15b67fd51a4e9d274205f59a9f50c4ce86b5e176
  • Vorgänger 6c94b5a5
  • Nachfolger 6c630204

Erzeugnissuche

Unterschiede anzeigen:

SL/IC.pm
872 872
    }
873 873
  }
874 874

  
875
  # special case smart search
876
  if ($form->{all}) {
877
    $form->{"l_$_"} = 1 for qw(partnumber description unit sellprice lastcost cvar_packaging linetotal);
878
    push @where_tokens, "p.partnumber ILIKE ? OR p.description ILIKE ?";
879
    push @bind_vars,    "%$form->{all}%", "%$form->{all}%";
880
  }
881

  
875 882
  # special case insertdate
876 883
  if (grep { $form->{$_} } qw(insertdatefrom insertdateto)) {
877 884
    $form->{"l_insertdate"} = 1;
SL/Layout/Top.pm
18 18
}
19 19

  
20 20
sub javascripts {
21
  ('jquery-ui.js', 'quicksearch_input.js') x!! $::auth->assert('customer_vendor_edit', 1),
21
  ('jquery-ui.js', 'quicksearch_input.js') x!! $::auth->assert('customer_vendor_edit|part_service_assembly_edit', 1),
22 22
  ('jquery-ui.js', 'glquicksearch.js')     x!! $::auth->assert('general_ledger', 1)
23 23
}
24 24

  
js/quicksearch_input.js
15 15
  if (!value)
16 16
    return true;
17 17

  
18
  var url = "ct.pl?action=list_contacts&INPUT_ENCODING=utf-8&filter.status=active&search_term=" + encodeURIComponent(value);
18
  url = {
19
    frame_header_contact_search: "ct.pl?action=list_contacts&INPUT_ENCODING=utf-8&filter.status=active&search_term=",
20
    frame_header_parts_search:   "ic.pl?action=generate_report&INPUT_ENCODING=utf-8&searchitems=assembly&all="
21
  }[element.attr('id')];
19 22

  
20
  window.location.href = url;
23
  window.location.href = url + encodeURIComponent(value);
21 24

  
22 25
  return false;
23 26
}
24
$(function(){ $('#frame_header_contact_search').keydown(on_keydown_quicksearch) });
27
$(function(){
28
  $('#frame_header_contact_search').keydown(on_keydown_quicksearch);
29
  $('#frame_header_parts_search').keydown(on_keydown_quicksearch);
30
});
locale/de/all
2405 2405
  'Search AP Aging'             => 'Offene Verbindlichkeiten',
2406 2406
  'Search AR Aging'             => 'Offene Forderungen',
2407 2407
  'Search bank transactions'    => 'Filter für Bankbuchungen',
2408
  'Search contacts'             => 'Ansprechpersonensuche',
2408
  'Search contacts'             => 'Personensuche',
2409
  'Search email journal'        => 'Emailjournal durchsuchen',
2410
  'Search for delivered parts'  => 'gelieferten Artikeln',
2411
  'Search for undelivered parts' => 'zu liefernden Artikeln',
2412
  'Search parts'                => 'Erzeugnissuche',
2409 2413
  'Search projects'             => 'Projektsuche',
2410 2414
  'Search term'                 => 'Suchbegriff',
2411 2415
  'Searchable'                  => 'Durchsuchbar',
templates/webpages/menu/header.html
5 5
 <span class="frame-header-element frame-header-left">
6 6
    [<a href="controller.pl?action=LoginScreen/user_login" target="_blank" title="[% 'Open a further kivitendo window or tab' | $T8 %]">[% 'New window/tab' | $T8 %]</a>]
7 7
    [<a href="JavaScript:top.print();" title="[% 'Hardcopy' | $T8 %]">[% 'Print' | $T8 %]</a>]
8
[%- IF AUTH.assert('part_service_assembly_edit', 1) %]
9
    [<input name="frame_header_parts_search" id="frame_header_parts_search" placeholder="[% 'Search parts' | $T8 %]" size="14">]
10
[%- END %]
8 11
[%- IF AUTH.assert('customer_vendor_edit|customer_vendor_edit_all', 1) %]
9 12
    [<input name="frame_header_contact_search" id="frame_header_contact_search" placeholder="[% 'Search contacts' | $T8 %]" size="14">]
10 13
[%- END %]

Auch abrufbar als: Unified diff