Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 0925bc9f

Von Moritz Bunkus vor mehr als 17 Jahren hinzugefügt

  • ID 0925bc9f366038b578167a1837098ebe837012c1
  • Vorgänger b3673e83
  • Nachfolger 569b0caf

Filtermaske für Kunden- und Liferantenstammdatenliste auf HTML-Templates umgestellt.

Unterschiede anzeigen:

bin/mozilla/ct.pl
71 71
sub search {
72 72
  $lxdebug->enter_sub();
73 73

  
74
  my $vc_business_type = $form->{db} eq "customer" ?
75
    $locale->text("Customer type") : $locale->text("Vendor type");
74
  $form->{IS_CUSTOMER} = $form->{db} eq 'customer';
76 75

  
77 76
  $form->get_lists("business_types" => "ALL_BUSINESS_TYPES");
78
  my (%labels, @values);
79

  
80
  my $business_types;
81
  if (scalar(@{ $form->{ALL_BUSINESS_TYPES} }) != 0) {
82
    push(@values, undef);
83
    foreach my $item (@{ $form->{ALL_BUSINESS_TYPES} }) {
84
      push(@values, $item->{id});
85
      $labels{$item->{id}} = $item->{description};
86
    }
77
  $form->{SHOW_BUSINESS_TYPES} = scalar @{ $form->{ALL_BUSINESS_TYPES} } > 0;
87 78

  
88
    $business_types =
89
      qq|  <tr>
90
    <th align="right" nowrap>${vc_business_type}</th>
91
    <td>|
92
      . NTI($cgi->popup_menu('-name' => 'business_id', '-values' => \@values,
93
                             '-labels' => \%labels))
94
      . qq|</td>
95
  </tr>
96
|;
97
  }
98

  
99
  $label = ucfirst $form->{db};
100
  $form->{title} = $locale->text($label . "s");
79
  $form->{title} = $form->{IS_CUSTOMER} ? $locale->text('Customers') : $locale->text('Vendors');
101 80
  $form->{fokus} = 'Form.name';
102 81

  
103
  $form->header;
104

  
105
  print qq|
106
<body onload="fokus()">
107

  
108
<form method=post action=$form->{script} name="Form">
109

  
110
<input type=hidden name=db value=$form->{db}>
111

  
112
<table width=100%>
113
  <tr>
114
    <th class=listtop>$form->{title}</th>
115
  </tr>
116
  <tr height="5"></tr>
117
  <tr valign=top>
118
    <td>
119
      <table>
120
	<tr>
121
	  <th align=right nowrap>| . $locale->text($label . ' Number') . qq|</th>
122
	  <td><input name=$form->{db}number size=35></td>
123
	</tr>
124
	<tr>
125
	  <th align=right nowrap>| . $locale->text('Company Name') . qq|</th>
126
	  <td><input name=name size=35></td>
127
	</tr>
128
	<tr>
129
	  <th align=right nowrap>| . $locale->text('Contact') . qq|</th>
130
	  <td><input name=contact size=35></td>
131
	</tr>
132
	<tr>
133
	  <th align=right nowrap>| . $locale->text('E-mail') . qq|</th>
134
	  <td><input name=email size=35></td>
135
	</tr>
136
  $business_types
137
	<tr>
138
	  <td></td>
139
	  <td><input name=status class=radio type=radio value=all checked>&nbsp;|
140
    . $locale->text('All') . qq|
141
	  <input name=status class=radio type=radio value=orphaned>&nbsp;|
142
    . $locale->text('Orphaned') . qq|</td>
143
	</tr>
144
	<tr>
145
	  <td></td>
146
	  <td><input name="obsolete" class="radio" type="radio" value="all">&nbsp;|
147
    . $locale->text('All') . qq|
148
	  <input name="obsolete" class="radio" type="radio" value="Y">&nbsp;|
149
    . $locale->text('Obsolete') . qq|
150
	  <input name="obsolete" class="radio" type="radio" value="N" checked>&nbsp;|
151
    . $locale->text('Not obsolete') . qq|</td>
152
	</tr>
153
	<tr>
154
	  <th align=right nowrap>| . $locale->text('Include in Report') . qq|</th>
155
	  <td>
156
	    <table>
157
	      <tr>
158
	        <td><input name="l_id" type=checkbox class=checkbox value=Y> |
159
    . $locale->text('ID') . qq|</td>
160
		<td><input name="l_$form->{db}number" type=checkbox class=checkbox value=Y> |
161
    . $locale->text($label . ' Number') . qq|</td>
162
		<td><input name="l_name" type=checkbox class=checkbox value=Y checked> |
163
    . $locale->text('Company Name') . qq|</td>
164
		<td><input name="l_address" type=checkbox class=checkbox value=Y> |
165
    . $locale->text('Address') . qq|</td>
166
	      </tr>
167
	      <tr>
168
		<td><input name="l_contact" type=checkbox class=checkbox value=Y checked> |
169
    . $locale->text('Contact') . qq|</td>
170
		<td><input name="l_phone" type=checkbox class=checkbox value=Y checked> |
171
    . $locale->text('Phone') . qq|</td>
172
		<td><input name="l_fax" type=checkbox class=checkbox value=Y> |
173
    . $locale->text('Fax') . qq|</td>
174
		<td><input name="l_email" type=checkbox class=checkbox value=Y checked> |
175
    . $locale->text('E-mail') . qq|</td>
176
	      </tr>
177
	      <tr>
178
		<td><input name="l_taxnumber" type=checkbox class=checkbox value=Y> |
179
    . $locale->text('Tax Number') . qq|</td>
180
		<td><input name="l_sic_code" type=checkbox class=checkbox value=Y> |
181
    . $locale->text('SIC') . qq|</td>
182
		<td><input name="l_business" type=checkbox class=checkbox value=Y> |
183
    . $vc_business_type . qq|</td>
184
	      </tr>
185
	      <tr>
186
		<td><input name="l_invnumber" type=checkbox class=checkbox value=Y> |
187
    . $locale->text('Invoices') . qq|</td>
188
		<td><input name="l_ordnumber" type=checkbox class=checkbox value=Y> |
189
    . $locale->text('Orders') . qq|</td>
190
		<td><input name="l_quonumber" type=checkbox class=checkbox value=Y> |
191
    . $locale->text('Quotations') . qq|</td>
192
	      </tr>
193
	    </table>
194
	  </td>
195
	</tr>
196
      </table>
197
    </td>
198
  </tr>
199
  <tr>
200
    <td><hr size=3 noshade></td>
201
  </tr>
202
</table>
203

  
204
<input type=hidden name=nextsub value=list_names>
82
  $form->header();
83
  print $form->parse_html_template2('ct/search');
205 84

  
206
<input type=hidden name=login value=$form->{login}>
207
<input type=hidden name=password value=$form->{password}>
208

  
209
<br>
210
<input type=submit class=submit name=action value="|
211
    . $locale->text('Continue') . qq|">
212
</form>
213

  
214
</body>
215
</html>
216
|;
217 85
  $lxdebug->leave_sub();
218 86
}
219 87

  
locale/de/all
789 789
  'Order Number missing!'       => 'Auftragsnummer fehlt!',
790 790
  'Order deleted!'              => 'Auftrag gel?scht!',
791 791
  'Ordered'                     => 'Vom Kunde bestellt',
792
  'Orders'                      => 'Auftr?ge',
793 792
  'Orientation'                 => 'Seitenformat',
794 793
  'Orphaned'                    => 'Nie benutzt',
795 794
  'Out of balance transaction!' => 'Buchung ist nicht ausgeglichen!',
......
1335 1334
  'request_quotation'           => 'Angebotsanforderung',
1336 1335
  'reset'                       => 'zur?cksetzen',
1337 1336
  'rfq_list'                    => 'anfragenliste',
1338
  's'                           => 's',
1339 1337
  'sales_order'                 => 'Kundenauftrag',
1340 1338
  'sales_order_list'            => 'auftragsliste',
1341 1339
  'sales_quotation'             => 'Verkaufsangebot',
locale/de/ct
24 24
  'Company Name'                => 'Firmenname',
25 25
  'Confirmation'                => 'Auftragsbest?tigung',
26 26
  'Contact'                     => 'Kontakt',
27
  'Continue'                    => 'Weiter',
28 27
  'Could not spawn html2ps or GhostScript.' => 'html2ps oder GhostScript konnte nicht gestartet werden.',
29 28
  'Could not spawn the printer command.' => 'Die Druckanwendung konnte nicht gestartet werden.',
30 29
  'Could not write the html2ps config file.' => 'Die tempor&auml;re html2ps-Konfigurationsdatei konnte nicht geschrieben werden.',
......
36 35
  'Customer deleted!'           => 'Kunde gel?scht!',
37 36
  'Customer details'            => 'Kundendetails',
38 37
  'Customer saved!'             => 'Kunde gespeichert!',
39
  'Customer type'               => 'Kundentyp',
40 38
  'Customers'                   => 'Kunden',
41 39
  'DELETED'                     => 'Gel?scht',
42 40
  'DUNNING STARTED'             => 'Mahnprozess gestartet',
......
59 57
  'History'                     => 'Historie',
60 58
  'Homepage'                    => 'Homepage',
61 59
  'ID'                          => 'Buchungsnummer',
62
  'Include in Report'           => 'In Bericht aufnehmen',
63 60
  'Invdate'                     => 'Rechnungsdatum',
64 61
  'Invoice'                     => 'Rechnung',
65
  'Invoices'                    => 'Rechnungen',
66 62
  'KNr. beim Kunden'            => 'KNr. beim Kunden',
67 63
  'Kundennummer'                => 'Kundennummer',
68 64
  'Language'                    => 'Sprache',
......
85 81
  'No part was found matching the search parameters.' => 'Es wurde kein Artikel gefunden, auf den die Suchparameter zutreffen.',
86 82
  'No project was found matching the search parameters.' => 'Es wurde kein Projekt gefunden, auf das die Suchparameter zutreffen.',
87 83
  'No vendor has been selected yet.' => 'Es wurde noch kein Lieferant ausgew?hlt.',
88
  'Not obsolete'                => 'G?ltig',
89 84
  'Notes'                       => 'Bemerkungen',
90 85
  'Number'                      => 'Nummer',
91 86
  'Obsolete'                    => 'Ung?ltig',
92 87
  'Order'                       => 'Auftrag',
93
  'Orders'                      => 'Auftr?ge',
94 88
  'Orphaned'                    => 'Nie benutzt',
95 89
  'PAYMENT POSTED'              => 'Rechung gebucht',
96 90
  'PDF export -- options'       => 'PDF-Export -- Optionen',
......
116 110
  'Purchase Order'              => 'Lieferantenauftrag',
117 111
  'Qty'                         => 'Menge',
118 112
  'Quotation'                   => 'Angebot',
119
  'Quotations'                  => 'Angebote',
120 113
  'RFQ'                         => 'Anfrage',
121 114
  'Request for Quotation'       => 'Anfrage',
122 115
  'SAVED'                       => 'Gespeichert',
......
163 156
  'Vendor deleted!'             => 'Lieferant gel?scht!',
164 157
  'Vendor details'              => 'Lieferantendetails',
165 158
  'Vendor saved!'               => 'Lieferant gespeichert!',
166
  'Vendor type'                 => 'Lieferantentyp',
167 159
  'Vendors'                     => 'Lieferanten',
168 160
  'Zipcode'                     => 'PLZ',
169 161
  'bin_list'                    => 'Lagerliste',
......
179 171
  'report_generator_dispatch_to is not defined.' => 'report_generator_dispatch_to ist nicht definiert.',
180 172
  'report_generator_nextsub is not defined.' => 'report_generator_nextsub ist nicht definiert.',
181 173
  'request_quotation'           => 'Angebotsanforderung',
182
  's'                           => 's',
183 174
  'sales_order'                 => 'Kundenauftrag',
184 175
  'sales_quotation'             => 'Verkaufsangebot',
185 176
  'vendor_list'                 => 'lieferantenliste',
templates/webpages/ct/search_de.html
1
[% USE HTML %]<body onload="fokus()">
2

  
3
 <form method="post" action="ct.pl" name="Form">
4

  
5
  <input type="hidden" name="db" value="[% HTML.escape(db) %]">
6

  
7
  <div class="listtop" width="100%">[% title %]</div>
8

  
9
  <table>
10
   <tr>
11
    <th align="right" nowrap>[% IF IS_CUSTOMER %]Kundennummer[% ELSE %]Lieferantennummer[% END %]</th>
12
    <td><input name="[% IF IS_CUSTOMER %]customer[% ELSE %]vendor[% END %]number" size="35"></td>
13
   </tr>
14

  
15
   <tr>
16
    <th align="right" nowrap>Firmenname</th>
17
    <td><input name="name" size="35"></td>
18
   </tr>
19

  
20
   <tr>
21
    <th align="right" nowrap>Kontakt</th>
22
    <td><input name="contact" size="35"></td>
23
   </tr>
24

  
25
   <tr>
26
    <th align="right" nowrap>eMail</th>
27
    <td><input name="email" size="35"></td>
28
   </tr>
29

  
30
   [% IF SHOW_BUSINESS_TYPES %]
31
   <tr>
32
    <th align="right" nowrap>[% IF IS_CUSTOMER %]Kundentyp[% ELSE %]Lieferantentyp[% END %]</th>
33
    <td>
34
     <select name="business_id"><option value=""></option>
35
      [% FOREACH bt = ALL_BUSINESS_TYPES %]<option value="[% HTML.escape(bt.id) %]">[% HTML.escape(bt.description) %]</option>[% END %]
36
     </select>
37
    </td>
38
   </tr>
39
   [% END %]
40

  
41
   <tr>
42
    <td></td>
43
    <td>
44
     <input name="status" class="radio" type="radio" value="all" checked> Alle
45
     <input name="status" class="radio" type="radio" value="orphaned"> Nie benutzt
46
    </td>
47
   </tr>
48

  
49
   <tr>
50
    <td></td>
51
    <td><input name="obsolete" class="radio" type="radio" value="all"> Alle
52
     <input name="obsolete" class="radio" type="radio" value="Y"> Ung?ltig
53
     <input name="obsolete" class="radio" type="radio" value="N" checked> G?ltig
54
    </td>
55
   </tr>
56

  
57
   <tr>
58
    <th align="right" nowrap>In Bericht aufnehmen</th>
59
    <td>
60
     <table>
61
      <tr>
62
       <td>
63
        <input name="l_id" id="l_id" type="checkbox" class="checkbox" value="Y">
64
        <label for="l_id">Buchungsnummer</label>
65
       </td>
66
       <td>
67
        <input name="l_[% db %]number" id="l_[% db %]number" type="checkbox" class="checkbox" value="Y">
68
        <label for="l_[% db %]number">[% IF IS_CUSTOMER %]Kundennummer[% ELSE %]Lieferantennummer[% END %]</label>
69
       </td>
70
       <td>
71
        <input name="l_name" id="l_name" type="checkbox" class="checkbox" value="Y" checked>
72
        <label for="l_name">Firmenname</label>
73
       </td>
74
       <td>
75
        <input name="l_address" id="l_address" type="checkbox" class="checkbox" value="Y">
76
        <label for="l_address">Adresse</label>
77
       </td>
78
      </tr>
79

  
80
      <tr>
81
       <td>
82
        <input name="l_contact" id="l_contact" type="checkbox" class="checkbox" value="Y" checked>
83
        <label for="l_contact">Kontakt</label>
84
       </td>
85
       <td>
86
        <input name="l_phone" id="l_phone" type="checkbox" class="checkbox" value="Y" checked>
87
        <label for="l_phone">Telefon</label>
88
       </td>
89
       <td>
90
        <input name="l_fax" id="l_fax" type="checkbox" class="checkbox" value="Y">
91
        <label for="l_fax">Fax</label>
92
       </td>
93
       <td>
94
        <input name="l_email" id="l_email" type="checkbox" class="checkbox" value="Y" checked>
95
        <label for="l_email">eMail</label>
96
       </td>
97
      </tr>
98

  
99
      <tr>
100
       <td>
101
        <input name="l_taxnumber" id="l_taxnumber" type="checkbox" class="checkbox" value="Y">
102
        <label for="l_taxnumber">Steuernummer</label>
103
       </td>
104
       <td>
105
        <input name="l_sic_code" id="l_sic_code" type="checkbox" class="checkbox" value="Y">
106
        <label for="l_sic_code">SIC</label>
107
       </td>
108
       <td>
109
        <input name="l_business" id="l_business" type="checkbox" class="checkbox" value="Y">
110
        <label for="l_business">[% IF IS_CUSTOMER %]Kundentyp[% ELSE %]Lieferantentyp[% END %]</label>
111
       </td>
112
      </tr>
113

  
114
      <tr>
115
       <td>
116
        <input name="l_invnumber" id="l_invnumber" type="checkbox" class="checkbox" value="Y">
117
        <label for="l_invnumber">Rechnungen</label>
118
       </td>
119
       <td>
120
        <input name="l_ordnumber" id="l_ordnumber" type="checkbox" class="checkbox" value="Y">
121
        <label for="l_ordnumber">[% IF IS_CUSTOMER %]Auftr?ge[% ELSE %]Lieferantenauftr?ge[% END %]</label>
122
       </td>
123
       <td>
124
        <input name="l_quonumber" id="l_quonumber" type="checkbox" class="checkbox" value="Y">
125
        <label for="l_quonumber">[% IF IS_CUSTOMER %]Angebote[% ELSE %]Preisanfragen[% END %]</label>
126
       </td>
127
      </tr>
128
     </table>
129
    </td>
130
   </tr>
131
  </table>
132

  
133
  <input type="hidden" name="nextsub" value="list_names">
134

  
135
  <input type="hidden" name="login" value="[% HTML.escape(login) %]">
136
  <input type="hidden" name="password" value="[% HTML.escape(password) %]">
137

  
138
  <input type="submit" class="submit" name="action" value="Weiter">
139
 </form>
140

  
141
</body>
142
</html>
templates/webpages/ct/search_master.html
1
[% USE HTML %]<body onload="fokus()">
2

  
3
 <form method="post" action="ct.pl" name="Form">
4

  
5
  <input type="hidden" name="db" value="[% HTML.escape(db) %]">
6

  
7
  <div class="listtop" width="100%">[% title %]</div>
8

  
9
  <table>
10
   <tr>
11
    <th align="right" nowrap>[% IF IS_CUSTOMER %]<translate>Customer Number</translate>[% ELSE %]<translate>Vendor Number</translate>[% END %]</th>
12
    <td><input name="[% IF IS_CUSTOMER %]customer[% ELSE %]vendor[% END %]number" size="35"></td>
13
   </tr>
14

  
15
   <tr>
16
    <th align="right" nowrap><translate>Company Name</translate></th>
17
    <td><input name="name" size="35"></td>
18
   </tr>
19

  
20
   <tr>
21
    <th align="right" nowrap><translate>Contact</translate></th>
22
    <td><input name="contact" size="35"></td>
23
   </tr>
24

  
25
   <tr>
26
    <th align="right" nowrap><translate>E-mail</translate></th>
27
    <td><input name="email" size="35"></td>
28
   </tr>
29

  
30
   [% IF SHOW_BUSINESS_TYPES %]
31
   <tr>
32
    <th align="right" nowrap>[% IF IS_CUSTOMER %]<translate>Customer type</translate>[% ELSE %]<translate>Vendor type</translate>[% END %]</th>
33
    <td>
34
     <select name="business_id"><option value=""></option>
35
      [% FOREACH bt = ALL_BUSINESS_TYPES %]<option value="[% HTML.escape(bt.id) %]">[% HTML.escape(bt.description) %]</option>[% END %]
36
     </select>
37
    </td>
38
   </tr>
39
   [% END %]
40

  
41
   <tr>
42
    <td></td>
43
    <td>
44
     <input name="status" class="radio" type="radio" value="all" checked> <translate>All</translate>
45
     <input name="status" class="radio" type="radio" value="orphaned"> <translate>Orphaned</translate>
46
    </td>
47
   </tr>
48

  
49
   <tr>
50
    <td></td>
51
    <td><input name="obsolete" class="radio" type="radio" value="all"> <translate>All</translate>
52
     <input name="obsolete" class="radio" type="radio" value="Y"> <translate>Obsolete</translate>
53
     <input name="obsolete" class="radio" type="radio" value="N" checked> <translate>Not obsolete</translate>
54
    </td>
55
   </tr>
56

  
57
   <tr>
58
    <th align="right" nowrap><translate>Include in Report</translate></th>
59
    <td>
60
     <table>
61
      <tr>
62
       <td>
63
        <input name="l_id" id="l_id" type="checkbox" class="checkbox" value="Y">
64
        <label for="l_id"><translate>ID</translate></label>
65
       </td>
66
       <td>
67
        <input name="l_[% db %]number" id="l_[% db %]number" type="checkbox" class="checkbox" value="Y">
68
        <label for="l_[% db %]number">[% IF IS_CUSTOMER %]<translate>Customer Number</translate>[% ELSE %]<translate>Vendor Number</translate>[% END %]</label>
69
       </td>
70
       <td>
71
        <input name="l_name" id="l_name" type="checkbox" class="checkbox" value="Y" checked>
72
        <label for="l_name"><translate>Company Name</translate></label>
73
       </td>
74
       <td>
75
        <input name="l_address" id="l_address" type="checkbox" class="checkbox" value="Y">
76
        <label for="l_address"><translate>Address</translate></label>
77
       </td>
78
      </tr>
79

  
80
      <tr>
81
       <td>
82
        <input name="l_contact" id="l_contact" type="checkbox" class="checkbox" value="Y" checked>
83
        <label for="l_contact"><translate>Contact</translate></label>
84
       </td>
85
       <td>
86
        <input name="l_phone" id="l_phone" type="checkbox" class="checkbox" value="Y" checked>
87
        <label for="l_phone"><translate>Phone</translate></label>
88
       </td>
89
       <td>
90
        <input name="l_fax" id="l_fax" type="checkbox" class="checkbox" value="Y">
91
        <label for="l_fax"><translate>Fax</translate></label>
92
       </td>
93
       <td>
94
        <input name="l_email" id="l_email" type="checkbox" class="checkbox" value="Y" checked>
95
        <label for="l_email"><translate>E-mail</translate></label>
96
       </td>
97
      </tr>
98

  
99
      <tr>
100
       <td>
101
        <input name="l_taxnumber" id="l_taxnumber" type="checkbox" class="checkbox" value="Y">
102
        <label for="l_taxnumber"><translate>Tax Number</translate></label>
103
       </td>
104
       <td>
105
        <input name="l_sic_code" id="l_sic_code" type="checkbox" class="checkbox" value="Y">
106
        <label for="l_sic_code"><translate>SIC</translate></label>
107
       </td>
108
       <td>
109
        <input name="l_business" id="l_business" type="checkbox" class="checkbox" value="Y">
110
        <label for="l_business">[% IF IS_CUSTOMER %]<translate>Customer type</translate>[% ELSE %]<translate>Vendor type</translate>[% END %]</label>
111
       </td>
112
      </tr>
113

  
114
      <tr>
115
       <td>
116
        <input name="l_invnumber" id="l_invnumber" type="checkbox" class="checkbox" value="Y">
117
        <label for="l_invnumber"><translate>Invoices</translate></label>
118
       </td>
119
       <td>
120
        <input name="l_ordnumber" id="l_ordnumber" type="checkbox" class="checkbox" value="Y">
121
        <label for="l_ordnumber">[% IF IS_CUSTOMER %]<translate>Sales Orders</translate>[% ELSE %]<translate>Purchase Orders</translate>[% END %]</label>
122
       </td>
123
       <td>
124
        <input name="l_quonumber" id="l_quonumber" type="checkbox" class="checkbox" value="Y">
125
        <label for="l_quonumber">[% IF IS_CUSTOMER %]<translate>Quotations</translate>[% ELSE %]<translate>RFQs</translate>[% END %]</label>
126
       </td>
127
      </tr>
128
     </table>
129
    </td>
130
   </tr>
131
  </table>
132

  
133
  <input type="hidden" name="nextsub" value="list_names">
134

  
135
  <input type="hidden" name="login" value="[% HTML.escape(login) %]">
136
  <input type="hidden" name="password" value="[% HTML.escape(password) %]">
137

  
138
  <input type="submit" class="submit" name="action" value="<translate>Continue</translate>">
139
 </form>
140

  
141
</body>
142
</html>

Auch abrufbar als: Unified diff