epic-ts
[kivitendo-erp.git] / templates / webpages / ct / search.html
1 [%- USE T8 %]
2 [%- USE L %]
3 [%- USE HTML %]
4 <h1>[% title %]</h1>
5
6  <form method="post" action="ct.pl" name="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>[% 'Contact person (surname)' | $T8 %]</th>
32     <td><input name="cp_name" size="35"></td>
33    </tr>
34    </tr>
35     <th align="right" nowrap>[% 'Billing/shipping address (street)' | $T8 %]</th>
36     <td><input name="addr_street" size="35"></td>
37    </tr>
38  <tr>
39     <th align="right" nowrap>[% 'Billing/shipping address (zipcode)' | $T8 %]</th>
40     <td><input name="addr_zipcode" size="35"></td>
41  </tr>
42    <tr>
43     <th align="right" nowrap>[% 'Billing/shipping address (city)' | $T8 %]</th>
44     <td><input name="addr_city" size="35"></td>
45    </tr>
46    <tr>
47     <th align="right" nowrap>[% 'Billing/shipping address (country)' | $T8 %]</th>
48     <td><input name="addr_country" size="35"></td>
49    </tr>
50
51    [% IF SHOW_BUSINESS_TYPES %]
52    <tr>
53     <th align="right" nowrap>[% IF IS_CUSTOMER %][% 'Customer type' | $T8 %][% ELSE %][% 'Vendor type' | $T8 %][% END %]</th>
54     <td>
55      [% L.select_tag('business_id', ALL_BUSINESS_TYPES, title_key = 'description', with_empty = 1) %]
56     </td>
57    </tr>
58    [% END %]
59
60    [% IF IS_CUSTOMER && ALL_SALESMEN.size %]
61    <tr>
62     <th align="right" nowrap>[% 'Salesman' | $T8 %]</th>
63     <td>
64      [% L.select_tag('salesman_id', ALL_SALESMEN, title_key = 'name', with_empty = 1) %]
65     </td>
66    </tr>
67    [% END %]
68
69    <tr>
70     <th align="right">[% 'Insert Date' | $T8 %] [% 'From' | $T8 %]</th>
71     <td>
72       [% L.date_tag('insertdatefrom') %]
73     </td>
74     <th align="right">[% 'Bis' | $T8 %]</th>
75     <td>
76       [% L.date_tag('insertdateto') %]
77     </td>
78    </tr>
79
80    [% CUSTOM_VARIABLES_FILTER_CODE %]
81
82    <tr>
83     <td></td>
84     <td>
85      <input name="status" class="radio" type="radio" value="all" checked> [% 'All' | $T8 %]
86      <input name="status" class="radio" type="radio" value="orphaned"> [% 'Orphaned' | $T8 %]
87     </td>
88    </tr>
89
90    <tr>
91     <td></td>
92     <td><input name="obsolete" class="radio" type="radio" value="all"> [% 'All' | $T8 %]
93      <input name="obsolete" class="radio" type="radio" value="Y"> [% 'Obsolete' | $T8 %]
94      <input name="obsolete" class="radio" type="radio" value="N" checked> [% 'Not obsolete' | $T8 %]
95     </td>
96    </tr>
97
98    <tr>
99     <th align="right" nowrap>[% 'Include in Report' | $T8 %]</th>
100     <td colspan="5">
101      <table border="0">
102       <tr>
103        <td>
104         <input name="l_id" id="l_id" type="checkbox" class="checkbox" value="Y">
105         <label for="l_id">[% 'ID' | $T8 %]</label>
106        </td>
107        <td>
108         <input name="l_[% db %]number" id="l_[% db %]number" type="checkbox" class="checkbox" value="Y" checked>
109         <label for="l_[% db %]number">[% IF IS_CUSTOMER %][% 'Customer Number' | $T8 %][% ELSE %][% 'Vendor Number' | $T8 %][% END %]</label>
110        </td>
111        <td>
112         <input name="l_name" id="l_name" type="checkbox" class="checkbox" value="Y" checked>
113         <label for="l_name">[% IF IS_CUSTOMER %][% 'Customer Name' | $T8 %][%- ELSE %][% 'Vendor Name' | $T8 %][%- END %]</label>
114        </td>
115        <td>
116         <input name="l_street" id="l_street" type="checkbox" class="checkbox" value="Y" checked>
117         <label for="l_street">[% 'Street' | $T8 %]</label>
118        </td>
119       </tr>
120
121       <tr>
122        <td>
123         <input name="l_contact" id="l_contact" type="checkbox" class="checkbox" value="Y" checked>
124         <label for="l_contact">[% 'Contact' | $T8 %]</label>
125        </td>
126        <td>
127         <input name="l_phone" id="l_phone" type="checkbox" class="checkbox" value="Y" checked>
128         <label for="l_phone">[% 'Phone' | $T8 %]</label>
129        </td>
130        <td>
131         <input name="l_fax" id="l_fax" type="checkbox" class="checkbox" value="Y">
132         <label for="l_fax">[% 'Fax' | $T8 %]</label>
133        </td>
134        <td>
135         <input name="l_zipcode" id="l_zipcode" type="checkbox" class="checkbox" value="Y" checked>
136         <label for="l_zipcode">[% 'Zipcode' | $T8 %]</label>
137        </td>
138       </tr>
139
140       <tr>
141        <td>
142         <input name="l_taxnumber" id="l_taxnumber" type="checkbox" class="checkbox" value="Y">
143         <label for="l_taxnumber">[% 'Tax Number' | $T8 %]</label>
144        </td>
145        <td>
146         <input name="l_email" id="l_email" type="checkbox" class="checkbox" value="Y" checked>
147         <label for="l_email">[% 'E-mail' | $T8 %]</label>
148        </td>
149        <td>
150         <input name="l_business" id="l_business" type="checkbox" class="checkbox" value="Y">
151         <label for="l_business">[% IF IS_CUSTOMER %][% 'Customer type' | $T8 %][% ELSE %][% 'Vendor type' | $T8 %][% END %]</label>
152        </td>
153        <td>
154         <input name="l_city" id="l_city" type="checkbox" class="checkbox" value="Y" checked>
155         <label for="l_city">[% 'City' | $T8 %]</label>
156        </td>
157       </tr>
158
159       <tr>
160        <td>
161         <input name="l_invnumber" id="l_invnumber" type="checkbox" class="checkbox" value="Y">
162         <label for="l_invnumber">[% 'Invoices' | $T8 %]</label>
163        </td>
164        <td>
165         <input name="l_ordnumber" id="l_ordnumber" type="checkbox" class="checkbox" value="Y">
166         <label for="l_ordnumber">[% IF IS_CUSTOMER %][% 'Sales Orders' | $T8 %][% ELSE %][% 'Purchase Orders' | $T8 %][% END %]</label>
167        </td>
168        <td>
169         <input name="l_quonumber" id="l_quonumber" type="checkbox" class="checkbox" value="Y">
170         <label for="l_quonumber">[% IF IS_CUSTOMER %][% 'Quotations' | $T8 %][% ELSE %][% 'RFQs' | $T8 %][% END %]</label>
171        </td>
172        <td>
173         <input name="l_country" id="l_country" type="checkbox" class="checkbox" value="Y" checked>
174         <label for="l_country">[% 'Country' | $T8 %]</label>
175       </td>
176       </tr>
177       <tr>
178        <td>
179         <input name="l_discount" id="l_discount" type="checkbox" class="checkbox" value="Y">
180         <label for="l_discount">[% 'Discount' | $T8 %]</label>
181        </td>
182        <td>
183         <input name="l_payment" id="l_payment" type="checkbox" class="checkbox" value="Y">
184         <label for="l_payment">[% 'Payment Terms' | $T8 %]</label>
185        </td>
186        <td>
187         <input name="l_insertdate" id="l_insertdate" class="checkbox" type="checkbox" value="Y">
188         <label for="l_insertdate">[% 'Insert Date' | $T8 %]</label>
189        </td>
190       [% IF IS_CUSTOMER %]
191       <td>
192        <input name="l_salesman" id="l_salesman" type="checkbox" class="checkbox" value="Y">
193        <label for="l_salesman">[% 'Salesman' | $T8 %]</label>
194       </td>
195       </tr>
196       <tr>
197       <td>
198        <input name="l_pricegroup" id="l_pricegroup" type="checkbox" class="checkbox" value="Y">
199        <label for="l_pricegroup">[% 'Pricegroup' | $T8 %]</label>
200       </td>
201       [% END %]
202       </tr>
203
204       [% CUSTOM_VARIABLES_INCLUSION_CODE %]
205
206      </table>
207     </td>
208    </tr>
209   </table>
210
211   <input type="hidden" name="nextsub" value="list_names">
212
213   <input type="submit" class="submit" name="action" value="[% 'Continue' | $T8 %]">
214  </form>