Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision c4713436

Von Sven Schöling vor mehr als 12 Jahren hinzugefügt

  • ID c4713436b68fcaad7f7f14ace8d28aefb820a1e4
  • Vorgänger 91a33368
  • Nachfolger cc78d935

filter_prefix für CVar->render_search_options

Unterschiede anzeigen:

SL/CVar.pm
402 402

  
403 403
  $params{include_prefix}   = 'l_' unless defined($params{include_prefix});
404 404
  $params{include_value}  ||= '1';
405
  $params{filter_prefix}  ||= '';
405 406

  
406 407
  my $filter  = $form->parse_html_template('amcvar/search_filter',  \%params);
407 408
  my $include = $form->parse_html_template('amcvar/search_include', \%params);
templates/webpages/amcvar/search_filter.html
8 8
    <td valign="top">
9 9

  
10 10
     [%- IF var.type == 'bool' %]
11
     <select name="cvar_[% HTML.escape(var.name) %]">
11
     <select name="[% filter_prefix %]cvar_[% HTML.escape(var.name) %]">
12 12
      <option value="">---</option>
13 13
      <option value="yes">[% 'Yes' | $T8 %]</option>
14 14
      <option value="no">[% 'No' | $T8 %]</option>
......
16 16

  
17 17
     [%- ELSIF var.type == 'date' %]
18 18
     [% 'from (time)' | $T8 %]
19
     <input name="cvar_[% HTML.escape(var.name) %]_from" id="cvar_[% HTML.escape(var.name) %]_from" size="12">
19
     <input name="[% filter_prefix %]cvar_[% HTML.escape(var.name) %]_from" id="cvar_[% HTML.escape(var.name) %]_from" size="12">
20 20
     <input type="button" name="cvar_[% HTML.escape(var.name) %]_from_button" id="cvar_[% HTML.escape(var.name) %]_from_trigger" value="?">
21 21
     [% 'to (time)' | $T8 %]
22
     <input name="cvar_[% HTML.escape(var.name) %]_to" id="cvar_[% HTML.escape(var.name) %]_to" size="12">
22
     <input name="[% filter_prefix %]cvar_[% HTML.escape(var.name) %]_to" id="cvar_[% HTML.escape(var.name) %]_to" size="12">
23 23
     <input type="button" name="cvar_[% HTML.escape(var.name) %]_to_button" id="cvar_[% HTML.escape(var.name) %]_to_trigger" value="?">
24 24

  
25 25
     <script type="text/javascript">
......
36 36
     </script>
37 37

  
38 38
     [%- ELSIF var.type == 'number' %]
39
     <select name="cvar_[% HTML.escape(var.name) %]_qtyop">
39
     <select name="[% filter_prefix %]cvar_[% HTML.escape(var.name) %]_qtyop">
40 40
      <option selected>==</option>
41 41
      <option>=/=</option>
42 42
      <option>&gt;</option>
......
47 47
     <input name="cvar_[% HTML.escape(var.name) %]"[% IF var.maxlength %]maxlength="[% HTML.escape(var.maxlength) %]"[% END %]>
48 48

  
49 49
     [%- ELSIF var.type == 'customer' %]
50
     <input name="cvar_[% var.name | html %]">
50
     <input name="[% filter_prefix %]cvar_[% var.name | html %]">
51 51

  
52 52
     [% ELSIF var.type == 'select' %]
53
     <select name="cvar_[% HTML.escape(var.name) %]">
53
     <select name="[% filter_prefix %]cvar_[% HTML.escape(var.name) %]">
54 54
      <option value="" selected>---</option>
55 55
      [%- FOREACH option = var.OPTIONS %]
56 56
      <option>[% HTML.escape(option.value) %]</option>
......
58 58
     </select>
59 59

  
60 60
     [%- ELSE %]
61
     <input name="cvar_[% HTML.escape(var.name) %]"[% IF var.maxlength %]maxlength="[% HTML.escape(var.maxlength) %]"[% END %]>
61
     <input name="[% filter_prefix %]cvar_[% HTML.escape(var.name) %]"[% IF var.maxlength %]maxlength="[% HTML.escape(var.maxlength) %]"[% END %]>
62 62

  
63 63
     [%- END %]
64 64
    </td>

Auch abrufbar als: Unified diff