]> wagnertech.de Git - mfinanz.git/blob - templates/design40_webpages/ct/search.html
date error in mapping
[mfinanz.git] / templates / design40_webpages / ct / search.html
1 [% USE T8 %]
2 [% USE L %]
3 [% USE HTML %]
4 [% USE LxERP %]
5
6 <h1>[% title %]</h1>
7
8 <form method="post" action="ct.pl" name="Form" id="form">
9 <input type="hidden" name="db" value="[% HTML.escape(db) %]">
10
11 <div class="wrapper">
12
13     <table class="tbl-horizontal">
14       <caption> [% 'Customer & Contact' | $T8 %] </caption>
15       <tbody>
16         <tr>
17           <th>[% IF IS_CUSTOMER %][% 'Customer Number' | $T8 %][% ELSE %][% 'Vendor Number' | $T8 %][% END %] </th>
18           <td><input type="text" name="[% IF IS_CUSTOMER %]customer[% ELSE %]vendor[% END %]number" class="wi-normal"></td>
19         </tr>
20         <tr>
21           <th>[% IF IS_CUSTOMER %][% 'Customer Name' | $T8 %][% ELSE %][% 'Vendor Name' | $T8 %][% END %] </th>
22           <td><input type="text" id="name" name="name" class="initial_focus wi-normal"></td>
23         </tr>
24         <tr>
25           <th>[% 'Department' | $T8 %]</th>
26           <td><input type="text" name="department_1" class="wi-normal"></td>
27         </tr>
28         <tr>
29           <th></th>
30           <td><input type="text" name="department_2" class="wi-normal"></td>
31         </tr>
32         <tr>
33           <th>[% 'Contact' | $T8 %] </th>
34           <td><input type="text" name="contact" class="wi-normal"></td>
35         </tr>
36         <tr>
37           <th>[% 'Contact person (surname)' | $T8 %] </th>
38           <td><input type="text" name="cp_name" class="wi-normal"></td>
39         </tr>
40         <tr>
41           <th>[% 'E-mail' | $T8 %] </th>
42           <td><input type="text" name="email" class="wi-normal"></td>
43         </tr>
44         <tr>
45           <th>[% 'All phone numbers' | $T8 %]</th>
46           <td><input type="text" name="all_phonenumbers" class="wi-normal"></td>
47         </tr>
48         [% IF IS_CUSTOMER %]
49         <tr>
50           <th>[% 'Dunning lock' | $T8 %]</th>
51           <td>[% L.yes_no_tag('dunning_lock', dunning_lock, default='', with_empty=1, class="wi-normal") %]</td>
52         </tr>
53         [% END %]
54       </tbody>
55     </table>
56
57     <table class="tbl-horizontal">
58       <caption> [% 'Billing/shipping address' | $T8 %] </caption>
59       <tbody>
60         <tr>
61           <th>[% 'Street' | $T8 %] </th>
62           <td><input type="text" name="addr_street" class="wi-normal"></td>
63         </tr>
64         <tr>
65           <th>[% 'ZIPcode' | $T8 %] </th>
66           <td><input type="text" name="addr_zipcode" class="wi-normal"></td>
67         </tr>
68         <tr>
69           <th>[% 'City' | $T8 %] </th>
70           <td><input type="text" name="addr_city" class="wi-normal"></td>
71         </tr>
72         <tr>
73           <th>[% 'Country' | $T8 %] </th>
74           <td><input type="text" name="addr_country" class="wi-normal"></td>
75         </tr>
76         <tr>
77           <th>[% 'GLN' | $T8 %] </th>
78           <td><input type="text" name="addr_gln" class="wi-number"></td>
79         </tr>
80       </tbody>
81     </table>
82
83
84   <table class="tbl-horizontal">
85     <caption> [% 'Handling & Scope' | $T8 %] </caption>
86     <tbody>
87       [% IF SHOW_BUSINESS_TYPES %]
88       <tr>
89         <th>[% IF IS_CUSTOMER %][% 'Customer type' | $T8 %][% ELSE %][% 'Vendor type' | $T8 %][% END %] </th>
90         <td>[% L.select_tag('business_id', ALL_BUSINESS_TYPES, title_key = 'description', with_empty = 1, class='wi-lightwide') %] </td>
91       </tr>
92       [% END %]
93       [% IF IS_CUSTOMER %]
94          <tr>
95            <th>[% LxERP.t8("Factur-X/ZUGFeRD settings") %]</th>
96            <td>[% L.select_tag('create_zugferd_invoices', ZUGFERD_SETTINGS, with_empty = 1) %]</td>
97          </tr>
98       [% END %]
99       [% IF IS_CUSTOMER && ALL_SALESMEN.size %]
100         <tr>
101           <th>[% 'Salesman' | $T8 %] </th>
102           <td>[% L.select_tag('salesman_id', ALL_SALESMEN, title_key = 'name', with_empty = 1, class='wi-lightwide') %] </td>
103         </tr>
104       [% END %]
105         <tr>
106           <th>[% 'Insert Date' | $T8 %] [% 'From' | $T8 %] </th>
107           <td>[% L.date_tag('insertdatefrom') %] [% 'Bis' | $T8 %] [% L.date_tag('insertdateto') %] <!-- PENDENT: Klassen implementieren in Funktion --></td>
108         </tr>
109         <tr>
110           <th>[% 'Payment Term' | $T8 %]</th>
111           <td>[% L.select_tag('payment_id', ALL_PAYMENT_TERMS, with_empty=1, title_key='description', with_empty=1, class="wi-lightwide") %]</td>
112         </tr>
113         <tr>
114           <th>[% 'Tax rate' | $T8 %]</th>
115           <td>[% L.select_tag('taxzone_id', ALL_TAXZONES, with_empty=1, title_key='description', class="wi-lightwide") %]</td>
116         </tr>
117       [% CUSTOM_VARIABLES_FILTER_CODE %]
118       <tr>
119         <th>[% 'Scope' | $T8 %] </th>
120         <td>
121           <input name="status" type="radio" value="all" checked id="chckb1"> <label for="chckb1">[% 'All' | $T8 %]</label>
122           <input name="status" type="radio" value="orphaned" id="chckb2"> <label for="chckb2">[% 'Orphaned' | $T8 %]</label>
123         </td>
124       </tr>
125       <tr>
126         <th>[% 'Validity' | $T8 %] </th>
127         <td>
128           <input name="obsolete" type="radio" value="all" id="rd1"> <label for="rd1">[% 'All' | $T8 %]</label>
129           <input name="obsolete" type="radio" value="Y" id="rd2"> <label for="rd2">[% 'Obsolete' | $T8 %]</label>
130           <input name="obsolete" type="radio" value="N" checked id="rd3"> <label for="rd3">[% 'Not obsolete' | $T8 %]</label>
131         </td>
132       </tr>
133     </tbody>
134   </table>
135
136 </div>
137
138
139 <div class="form-addition control-panel">
140   <h3>[% 'Include in Report' | $T8 %]</h3>
141
142   <div class="list col">
143     <h4> [% 'Numbers & IDs' | $T8 %] </h4>
144     <div>
145       <input name="l_id" id="l_id" type="checkbox" value="Y">
146       <label for="l_id"> [% 'ID' | $T8 %] </label>
147     </div>
148     <div>
149       <input name="l_[% db | html %]number" id="l_[% db | html %]number" type="checkbox" value="Y" checked>
150       <label for="l_[% db | html %]number"> [% IF IS_CUSTOMER %][% 'Customer Number' | $T8 %][% ELSE %][% 'Vendor Number' | $T8 %][% END %] </label>
151     </div>
152     <div>
153       <input name="l_taxnumber" id="l_taxnumber" type="checkbox" value="Y">
154       <label for="l_taxnumber"> [% 'Tax Number' | $T8 %] </label>
155     </div>
156     <div>
157       <input name="l_invnumber" id="l_invnumber" type="checkbox" value="Y">
158       <label for="l_invnumber"> [% 'Invoices' | $T8 %] </label>
159     </div>
160   </div>
161
162   <div class="list col">
163     <h4> [% 'Customer' | $T8 %] </h4>
164     <div>
165       <input name="l_name" id="l_name" type="checkbox" value="Y" checked>
166       <label for="l_name"> [% IF IS_CUSTOMER %][% 'Customer Name' | $T8 %][% ELSE %][% 'Vendor Name' | $T8 %][% END %] </label>
167     </div>
168     <div>
169       <input name="l_department_1" id="l_department_1" type="checkbox" value="Y">
170       <label for="l_department_1"> [% 'Department' | $T8 %] 1</label>
171     </div>
172     <div>
173       <input name="l_department_2" id="l_department_2" type="checkbox" value="Y">
174       <label for="l_department_2"> [% 'Department' | $T8 %] 2</label>
175     </div>
176     <div>
177       <input name="l_contact" id="l_contact" type="checkbox" value="Y" checked>
178       <label for="l_contact"> [% 'Contact' | $T8 %] </label>
179     </div>
180     [% IF IS_CUSTOMER %]
181     <div>
182       <input name="l_contact_origin" id="l_contact_origin" type="checkbox" class="checkbox" value="Y">
183       <label for="l_contact_origin">[% 'Origin of personal data' | $T8 %]</label>
184     </div>
185     <div>
186       <input name="l_invoice_mail" id="l_invoice_mail" type="checkbox" class="checkbox" value="Y">
187       <label for="l_invoice_mail">[% 'Email of the invoice recipient' | $T8 %]</label>
188     </div>
189     [% END %]
190     <div>
191       <input name="l_ustid" id="l_ustid" type="checkbox" class="checkbox" value="Y">
192       <label for="l_ustid">[% 'VAT ID' | $T8 %]</label>
193     </div>
194     [% IF IS_CUSTOMER %]
195     <div>
196       <input name="l_creditlimit" id="l_creditlimit" type="checkbox" class="checkbox" value="Y">
197       <label for="l_creditlimit">[% 'Credit Limit' | $T8 %]</label>
198     </div>
199     <div>
200       <input name="l_dunning_lock" id="l_dunning_lock" type="checkbox" class="checkbox" value="Y">
201       <label for="l_dunning_lock">[% 'Dunning lock' | $T8 %]</label>
202     </div>
203     <div>
204       <input name="l_commercial_court" id="l_commercial_court" type="checkbox" class="checkbox" value="Y">
205       <label for="l_commercial_court">[% 'Commercial court' | $T8 %]</label>
206     </div>
207     <div>
208       <input name="l_main_contact_person" id="l_main_contact_person" type="checkbox" class="checkbox" value="Y">
209       <label for="l_main_contact_person">[% 'Main Contact Person' | $T8 %]</label>
210     </div>
211     <div>
212       <input name="l_delivery_order_mail" id="l_delivery_order_mail" type="checkbox" class="checkbox" value="Y">
213       <label for="l_delivery_order_mail">[% 'Email of the delivery order recipient' | $T8 %]</label>
214     </div>
215     <div>
216       <input name="l_department_1" id="l_department_1" type="checkbox" class="checkbox" value="Y">
217       <label for="l_department_1">[% 'Department' | $T8 %] 1</label>
218     </div>
219     <div>
220       <input name="l_department_2" id="l_department_2" type="checkbox" class="checkbox" value="Y">
221       <label for="l_department_2">[% 'Department' | $T8 %] 2</label>
222     </div>
223     [% END %]
224   </div>
225
226   <div class="list col">
227     <h4> [% 'Address' | $T8 %] </h4>
228     <div>
229       <input name="l_street" id="l_street" type="checkbox" value="Y" checked>
230       <label for="l_street"> [% 'Street' | $T8 %] </label>
231     </div>
232     <div>
233       <input name="l_zipcode" id="l_zipcode" type="checkbox" value="Y" checked>
234       <label for="l_zipcode"> [% 'Zipcode' | $T8 %] </label>
235     </div>
236     <div>
237       <input name="l_city" id="l_city" type="checkbox" value="Y" checked>
238       <label for="l_city"> [% 'City' | $T8 %] </label>
239     </div>
240     <div>
241       <input name="l_country" id="l_country" type="checkbox" value="Y" checked>
242       <label for="l_country"> [% 'Country' | $T8 %] </label>
243     </div>
244     <div>
245       <input name="l_gln" id="l_gln" type="checkbox" value="Y" checked>
246       <label for="l_gln"> [% 'GLN' | $T8 %] </label>
247     </div>
248   </div>
249
250   <div class="list col">
251     <h4> [% 'Contact' | $T8 %] </h4>
252     <div>
253       <input name="l_phone" id="l_phone" type="checkbox" value="Y" checked>
254       <label for="l_phone"> [% 'Phone' | $T8 %] </label>
255     </div>
256     <div>
257       <input name="l_fax" id="l_fax" type="checkbox" value="Y">
258       <label for="l_fax"> [% 'Fax' | $T8 %] </label>
259     </div>
260     <div>
261       <input name="l_email" id="l_email" type="checkbox" value="Y" checked>
262       <label for="l_email"> [% 'E-mail' | $T8 %] </label>
263     </div>
264   </div>
265
266   <div class="list col">
267     <h4> [% 'Orders' | $T8 %] </h4>
268     <div>
269       <input name="l_ordnumber" id="l_ordnumber" type="checkbox" value="Y">
270       <label for="l_ordnumber"> [% IF IS_CUSTOMER %][% 'Sales Orders' | $T8 %][% ELSE %][% 'Purchase Orders' | $T8 %][% END %] </label>
271     </div>
272     <div>
273       <input name="l_quonumber" id="l_quonumber" type="checkbox" value="Y">
274       <label for="l_quonumber"> [% IF IS_CUSTOMER %][% 'Quotations' | $T8 %][% ELSE %][% 'RFQs' | $T8 %][% END %] </label>
275     </div>
276     <div>
277       <input name="l_discount" id="l_discount" type="checkbox" value="Y">
278       <label for="l_discount"> [% 'Discount' | $T8 %] </label>
279     </div>
280     <div>
281       <input name="l_payment" id="l_payment" type="checkbox" value="Y">
282       <label for="l_payment"> [% 'Payment Terms' | $T8 %] </label>
283     </div>
284     <div>
285       <input name="l_taxzone" id="l_taxzone" type="checkbox" value="Y">
286       <label for="l_taxzone"> [% 'Tax rate' | $T8 %] </label>
287     </div>
288   </div>
289
290   <div class="list col">
291     <h4> [% 'Handling & Scope' | $T8 %] </h4>
292     <div>
293       <input name="l_insertdate" id="l_insertdate" type="checkbox" value="Y">
294       <label for="l_insertdate"> [% 'Insert Date' | $T8 %] </label>
295     </div>
296     [% IF IS_CUSTOMER %]
297     <div>
298       <input name="l_salesman" id="l_salesman" type="checkbox" value="Y">
299       <label for="l_salesman"> [% 'Salesman' | $T8 %] </label>
300     </div>
301     <div>
302       <input name="l_pricegroup" id="l_pricegroup" type="checkbox" value="Y">
303       <label for="l_pricegroup"> [% 'Pricegroup' | $T8 %] </label>
304     </div>
305     [% END %]
306   </div>
307
308   <div class="list col">
309     <h4> [% 'Custom Variables' | $T8 %] </h4>
310     <!-- PENDENT: bessere Loesung suchen -->
311     [% CUSTOM_VARIABLES_INCLUSION_CODE %]
312   </div>
313
314
315 </div>
316
317 </form>