Kunden-/Lieferantensuche: Suche nach allen entsprechenden Telefonnummern
[kivitendo-erp.git] / templates / webpages / ct / search.html
1 [%- USE T8 %]
2 [%- USE L %]
3 [%- USE HTML %][%- USE LxERP -%]
4 <h1>[% title %]</h1>
5
6  <form method="post" action="ct.pl" name="Form" id="form">
7
8   <input type="hidden" name="db" value="[% HTML.escape(db) %]">
9
10   <table>
11    <tr>
12     <th align="right" nowrap>[% IF IS_CUSTOMER %][% 'Customer Number' | $T8 %][% ELSE %][% 'Vendor Number' | $T8 %][% END %]</th>
13     <td><input name="[% IF IS_CUSTOMER %]customer[% ELSE %]vendor[% END %]number" size="35"></td>
14    </tr>
15
16    <tr>
17     <th align="right" nowrap>[% IF IS_CUSTOMER %][% 'Customer Name' | $T8 %][%- ELSE %][% 'Vendor Name' | $T8 %][%- END %]</th>
18     <td><input id="name" name="name" size="35" class="initial_focus"></td>
19    </tr>
20
21    <tr>
22     <th align="right" nowrap>[% 'Contact' | $T8 %]</th>
23     <td><input name="contact" size="35"></td>
24    </tr>
25
26    <tr>
27     <th align="right" nowrap>[% 'E-mail' | $T8 %]</th>
28     <td><input name="email" size="35"></td>
29    </tr>
30    <tr>
31     <th align="right" nowrap>[% 'All phone numbers' | $T8 %]</th>
32     <td><input name="all_phonenumbers" size="35"></td>
33    </tr>
34    <tr>
35     <th align="right" nowrap>[% 'Contact person (surname)' | $T8 %]</th>
36     <td><input name="cp_name" size="35"></td>
37    </tr>
38    <tr>
39     <th align="right" nowrap>[% 'Billing/shipping address (street)' | $T8 %]</th>
40     <td><input name="addr_street" size="35"></td>
41    </tr>
42    <tr>
43     <th align="right" nowrap>[% 'Billing/shipping address (zipcode)' | $T8 %]</th>
44     <td><input name="addr_zipcode" size="35"></td>
45    </tr>
46    <tr>
47     <th align="right" nowrap>[% 'Billing/shipping address (city)' | $T8 %]</th>
48     <td><input name="addr_city" size="35"></td>
49    </tr>
50    <tr>
51     <th align="right" nowrap>[% 'Billing/shipping address (country)' | $T8 %]</th>
52     <td><input name="addr_country" size="35"></td>
53    </tr>
54    <tr>
55     <th align="right" nowrap>[% 'Billing/shipping address (GLN)' | $T8 %]</th>
56     <td><input name="addr_gln" size="35"></td>
57    </tr>
58
59    [% IF SHOW_BUSINESS_TYPES %]
60    <tr>
61     <th align="right" nowrap>[% IF IS_CUSTOMER %][% 'Customer type' | $T8 %][% ELSE %][% 'Vendor type' | $T8 %][% END %]</th>
62     <td>
63      [% L.select_tag('business_id', ALL_BUSINESS_TYPES, title_key = 'description', with_empty = 1) %]
64     </td>
65    </tr>
66    [% END %]
67
68 [% IF IS_CUSTOMER %]
69    <tr>
70      <th align="right" nowrap>[% LxERP.t8("Factur-X/ZUGFeRD settings") %]</th>
71      <td>[% L.select_tag('create_zugferd_invoices', ZUGFERD_SETTINGS, with_empty = 1) %]</td>
72    </tr>
73 [% END %]
74
75    [% IF IS_CUSTOMER && ALL_SALESMEN.size %]
76    <tr>
77     <th align="right" nowrap>[% 'Salesman' | $T8 %]</th>
78     <td>
79      [% L.select_tag('salesman_id', ALL_SALESMEN, title_key = 'name', with_empty = 1) %]
80     </td>
81    </tr>
82    [% END %]
83
84    <tr>
85     <th align="right">[% 'Insert Date' | $T8 %] [% 'From' | $T8 %]</th>
86     <td>
87       [% L.date_tag('insertdatefrom') %]
88     </td>
89     <th align="right">[% 'Bis' | $T8 %]</th>
90     <td>
91       [% L.date_tag('insertdateto') %]
92     </td>
93    </tr>
94
95    [% CUSTOM_VARIABLES_FILTER_CODE %]
96
97    <tr>
98     <td></td>
99     <td>
100      <input name="status" class="radio" type="radio" value="all" checked> [% 'All' | $T8 %]
101      <input name="status" class="radio" type="radio" value="orphaned"> [% 'Orphaned' | $T8 %]
102     </td>
103    </tr>
104
105    <tr>
106     <td></td>
107     <td><input name="obsolete" class="radio" type="radio" value="all"> [% 'All' | $T8 %]
108      <input name="obsolete" class="radio" type="radio" value="Y"> [% 'Obsolete' | $T8 %]
109      <input name="obsolete" class="radio" type="radio" value="N" checked> [% 'Not obsolete' | $T8 %]
110     </td>
111    </tr>
112
113    <tr>
114     <th align="right" nowrap>[% 'Include in Report' | $T8 %]</th>
115     <td colspan="5">
116      <table border="0">
117       <tr>
118        <td>
119         <input name="l_id" id="l_id" type="checkbox" class="checkbox" value="Y">
120         <label for="l_id">[% 'ID' | $T8 %]</label>
121        </td>
122        <td>
123         <input name="l_[% db | html %]number" id="l_[% db | html %]number" type="checkbox" class="checkbox" value="Y" checked>
124         <label for="l_[% db | html %]number">[% IF IS_CUSTOMER %][% 'Customer Number' | $T8 %][% ELSE %][% 'Vendor Number' | $T8 %][% END %]</label>
125        </td>
126        <td>
127         <input name="l_name" id="l_name" type="checkbox" class="checkbox" value="Y" checked>
128         <label for="l_name">[% IF IS_CUSTOMER %][% 'Customer Name' | $T8 %][%- ELSE %][% 'Vendor Name' | $T8 %][%- END %]</label>
129        </td>
130        <td>
131         <input name="l_street" id="l_street" type="checkbox" class="checkbox" value="Y" checked>
132         <label for="l_street">[% 'Street' | $T8 %]</label>
133        </td>
134       </tr>
135
136       <tr>
137        <td>
138         <input name="l_contact" id="l_contact" type="checkbox" class="checkbox" value="Y" checked>
139         <label for="l_contact">[% 'Contact' | $T8 %]</label>
140        </td>
141        <td>
142         <input name="l_phone" id="l_phone" type="checkbox" class="checkbox" value="Y" checked>
143         <label for="l_phone">[% 'Phone' | $T8 %]</label>
144        </td>
145        <td>
146         <input name="l_fax" id="l_fax" type="checkbox" class="checkbox" value="Y">
147         <label for="l_fax">[% 'Fax' | $T8 %]</label>
148        </td>
149        <td>
150         <input name="l_zipcode" id="l_zipcode" type="checkbox" class="checkbox" value="Y" checked>
151         <label for="l_zipcode">[% 'Zipcode' | $T8 %]</label>
152        </td>
153       </tr>
154
155       <tr>
156        <td>
157         <input name="l_taxnumber" id="l_taxnumber" type="checkbox" class="checkbox" value="Y">
158         <label for="l_taxnumber">[% 'Tax Number' | $T8 %]</label>
159        </td>
160        <td>
161         <input name="l_email" id="l_email" type="checkbox" class="checkbox" value="Y" checked>
162         <label for="l_email">[% 'E-mail' | $T8 %]</label>
163        </td>
164        <td>
165         <input name="l_business" id="l_business" type="checkbox" class="checkbox" value="Y">
166         <label for="l_business">[% IF IS_CUSTOMER %][% 'Customer type' | $T8 %][% ELSE %][% 'Vendor type' | $T8 %][% END %]</label>
167        </td>
168        <td>
169         <input name="l_city" id="l_city" type="checkbox" class="checkbox" value="Y" checked>
170         <label for="l_city">[% 'City' | $T8 %]</label>
171        </td>
172       </tr>
173
174       <tr>
175        <td>
176         <input name="l_invnumber" id="l_invnumber" type="checkbox" class="checkbox" value="Y">
177         <label for="l_invnumber">[% 'Invoices' | $T8 %]</label>
178        </td>
179        <td>
180         <input name="l_ordnumber" id="l_ordnumber" type="checkbox" class="checkbox" value="Y">
181         <label for="l_ordnumber">[% IF IS_CUSTOMER %][% 'Sales Orders' | $T8 %][% ELSE %][% 'Purchase Orders' | $T8 %][% END %]</label>
182        </td>
183        <td>
184         <input name="l_quonumber" id="l_quonumber" type="checkbox" class="checkbox" value="Y">
185         <label for="l_quonumber">[% IF IS_CUSTOMER %][% 'Quotations' | $T8 %][% ELSE %][% 'RFQs' | $T8 %][% END %]</label>
186        </td>
187        <td>
188         <input name="l_country" id="l_country" type="checkbox" class="checkbox" value="Y" checked>
189         <label for="l_country">[% 'Country' | $T8 %]</label>
190        </td>
191       </tr>
192       <tr>
193        <td>
194         <input name="l_discount" id="l_discount" type="checkbox" class="checkbox" value="Y">
195         <label for="l_discount">[% 'Discount' | $T8 %]</label>
196        </td>
197        <td>
198         <input name="l_payment" id="l_payment" type="checkbox" class="checkbox" value="Y">
199         <label for="l_payment">[% 'Payment Terms' | $T8 %]</label>
200        </td>
201        <td>
202         <input name="l_insertdate" id="l_insertdate" class="checkbox" type="checkbox" value="Y">
203         <label for="l_insertdate">[% 'Insert Date' | $T8 %]</label>
204        </td>
205        <td>
206         <input name="l_gln" id="l_gln" type="checkbox" class="checkbox" value="Y" checked>
207         <label for="l_gln">[% 'GLN' | $T8 %]</label>
208        </td>
209       </tr>
210       [% IF IS_CUSTOMER %]
211       <tr>
212        <td>
213         <input name="l_salesman" id="l_salesman" type="checkbox" class="checkbox" value="Y">
214         <label for="l_salesman">[% 'Salesman' | $T8 %]</label>
215        </td>
216        <td>
217         <input name="l_pricegroup" id="l_pricegroup" type="checkbox" class="checkbox" value="Y">
218         <label for="l_pricegroup">[% 'Pricegroup' | $T8 %]</label>
219        </td>
220        <td>
221         <input name="l_contact_origin" id="l_contact_origin" type="checkbox" class="checkbox" value="Y">
222         <label for="l_contact_origin">[% 'Origin of personal data' | $T8 %]</label>
223        </td>
224        <td>
225         <input name="l_invoice_mail" id="l_invoice_mail" type="checkbox" class="checkbox" value="Y">
226         <label for="l_invoice_mail">[% 'Email of the invoice recipient' | $T8 %]</label>
227        </td>
228       </tr>
229       [% END %]
230       <tr>
231        <td>
232         <input name="l_ustid" id="l_ustid" type="checkbox" class="checkbox" value="Y">
233         <label for="l_ustid">[% 'VAT ID' | $T8 %]</label>
234        </td>
235        <td>
236         <input name="l_main_contact_person" id="l_main_contact_person" type="checkbox" class="checkbox" value="Y">
237         <label for="l_main_contact_person">[% 'Main Contact Person' | $T8 %]</label>
238        </td>
239       [% IF !IS_CUSTOMER %]
240       </tr>
241       [% ELSE %]
242        <td>
243         <input name="l_creditlimit" id="l_creditlimit" type="checkbox" class="checkbox" value="Y">
244         <label for="l_creditlimit">[% 'Credit Limit' | $T8 %]</label>
245        </td>
246        <td>
247         <input name="l_commercial_court" id="l_commercial_court" type="checkbox" class="checkbox" value="Y">
248         <label for="l_commercial_court">[% 'Commercial court' | $T8 %]</label>
249        </td>
250
251       </tr>
252       <tr>
253        <td>
254         <input name="l_delivery_order_mail" id="l_delivery_order_mail" type="checkbox" class="checkbox" value="Y">
255         <label for="l_delivery_order_mail">[% 'Email of the delivery order recipient' | $T8 %]</label>
256        </td>
257         <td>
258         <input name="l_department_1" id="l_department_1" type="checkbox" class="checkbox" value="Y">
259         <label for="l_department_1">[% 'Department' | $T8 %] 1</label>
260        </td>
261        <td>
262         <input name="l_department_2" id="l_department_2" type="checkbox" class="checkbox" value="Y">
263         <label for="l_department_2">[% 'Department' | $T8 %] 2</label>
264        </td>
265         <td></td>
266       </tr>
267       [% END %]
268
269       [% CUSTOM_VARIABLES_INCLUSION_CODE %]
270
271      </table>
272     </td>
273    </tr>
274   </table>
275  </form>