Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 87c46045

Von Moritz Bunkus vor mehr als 12 Jahren hinzugefügt

  • ID 87c46045dc9c7c26954404d81f08f0ab3e2f8840
  • Vorgänger dedbaf15
  • Nachfolger 969e749c

Ansprechpersonensuche um PLZ, Ort ergänzt

Und nach Straße, PLZ, Ort sortierbar gemacht

Unterschiede anzeigen:

SL/CT.pm
1171 1171
    'vcnumber'  => 'vcnumber, cp_name, cp_givenname',
1172 1172
    );
1173 1173

  
1174
  my %sortcols  = map { $_ => 1 } qw(cp_name cp_givenname cp_phone1 cp_phone2 cp_mobile1 cp_email vcname vcnumber);
1174
  my %sortcols  = map { $_ => 1 } qw(cp_name cp_givenname cp_phone1 cp_phone2 cp_mobile1 cp_email cp_street cp_zipcode cp_city vcname vcnumber);
1175 1175

  
1176 1176
  my $order_by  = $sortcols{$::form->{sort}} ? $::form->{sort} : 'cp_name';
1177 1177
  $::form->{sort} = $order_by;
bin/mozilla/ct.pl
301 301
  my $cvar_configs = CVar->get_configs('module' => 'Contacts');
302 302

  
303 303
  my @columns      = qw(
304
    cp_id vcname vcnumber cp_name cp_givenname cp_street cp_phone1 cp_phone2
304
    cp_id vcname vcnumber cp_name cp_givenname cp_street cp_zipcode cp_city cp_phone1 cp_phone2
305 305
    cp_mobile1 cp_mobile2 cp_email cp_abteilung cp_birthday cp_gender
306 306
  );
307 307

  
......
327 327
    'cp_name'      => { 'text' => $::locale->text('Name'), },
328 328
    'cp_givenname' => { 'text' => $::locale->text('Given Name'), },
329 329
    'cp_street'    => { 'text' => $::locale->text('Street'), },
330
    'cp_zipcode'   => { 'text' => $::locale->text('Zipcode'), },
331
    'cp_city'      => { 'text' => $::locale->text('City'), },
330 332
    'cp_phone1'    => { 'text' => $::locale->text('Phone1'), },
331 333
    'cp_phone2'    => { 'text' => $::locale->text('Phone2'), },
332 334
    'cp_mobile1'   => { 'text' => $::locale->text('Mobile1'), },
templates/webpages/ct/search_contact.html
73 73
        <input name="l.cp_givenname" id="l_cp_givenname" type="checkbox" class="checkbox" value="Y" checked>
74 74
        <label for="l_cp_givenname">[% 'Given Name' | $T8 %]</label>
75 75
       </td>
76
      </tr>
77
      <tr>
76 78
       <td>
77 79
        <input name="l.cp_street" id="l_cp_street" type="checkbox" class="checkbox" value="Y">
78 80
        <label for="l_cp_street">[% 'Street' | $T8 %]</label>
79 81
       </td>
82
       <td>
83
        <input name="l.cp_zipcode" id="l_cp_zipcode" type="checkbox" class="checkbox" value="Y">
84
        <label for="l_cp_zipcode">[% 'Zipcode' | $T8 %]</label>
85
       </td>
86
       <td>
87
        <input name="l.cp_city" id="l_cp_city" type="checkbox" class="checkbox" value="Y">
88
        <label for="l_cp_city">[% 'City' | $T8 %]</label>
89
       </td>
80 90
      </tr>
81 91
      <tr>
82 92
       <td>

Auch abrufbar als: Unified diff