a5ecf752dd10863dcafefbfa67d5702f942780b8
[kivitendo-erp.git] / templates / webpages / do / search.html
1 [%- USE T8 %]
2 [%- USE L %]
3 [%- USE HTML %][%- USE LxERP %]
4 <h1>[% title %]</h1>
5
6  [%- IF vc == 'customer' %]
7  [%- SET is_customer = '1' %]
8  [%- ELSE %]
9  [%- SET is_customer = '0' %]
10  [%- END %]
11
12  [%- SET vctypelabel = vc == 'customer' ? LxERP.t8('Customer type') : LxERP.t8('Vendor type') %]
13
14  <style type="text/css">
15   .fixed_width {
16     width: 250px;
17   }
18  </style>
19
20  <form method="post" action="do.pl" name="Form">
21
22   <p>
23    <table>
24     <tr>
25      <th align="right">[% IF is_customer %][% 'Customer' | $T8 %][% ELSE %][% 'Vendor' | $T8 %][% END %]</th>
26      <td colspan="3">
27       [%- UNLESS SHOW_VC_DROP_DOWN %]
28       <input type="text" name="[% HTML.escape(vc) %]" class="fixed_width initial_focus">
29       [%- ELSE %]
30       <select name="[% vc %]" class="fixed_width initial_focus">
31        <option></option>
32        [%- FOREACH row = ALL_VC %]
33        <option>[% HTML.escape(row.name) %]--[% HTML.escape(row.id) %]</option>
34        [%- END %]
35       </select>
36       <input type="hidden" name="select[% vc %]" value="1">
37       [%- END %]
38      </td>
39     </tr>
40
41     <tr>
42      <th align="right" nowrap>[% 'Contact Person' | $T8 %]</th>
43      <td colspan="3">[% L.input_tag("cp_name", '', class="fixed_width") %]</td>
44     </tr>
45
46     <tr>
47      <th align="right">[% 'Delivery Order Number' | $T8 %]</th>
48      <td colspan="3"><input name="donumber" class="fixed_width"></td>
49     </tr>
50
51     <tr>
52      <th align="right">[% 'Order Number' | $T8 %]</th>
53      <td colspan="3"><input name="ordnumber" class="fixed_width"></td>
54     </tr>
55
56     <tr>
57      <th align="right">[% 'Customer Order Number' | $T8 %]</th>
58      <td colspan="3"><input name="cusordnumber" class="fixed_width"></td>
59     </tr>
60
61     [%- IF ALL_DEPARTMENTS.size %]
62     <tr>
63      <th align="right" nowrap>[% 'Department' | $T8 %]</th>
64      <td colspan="3">
65       <select name="department" class="fixed_width">
66        <option></option>
67        [%- FOREACH row = ALL_DEPARTMENTS %]
68        <option[% IF department == row.id %] selected[% END %]>[% HTML.escape(row.description) %]--[% HTML.escape(row.id) %]</option>
69        [%- END %]
70       </select>
71      </td>
72     </tr>
73     [%- END %]
74
75     <tr>
76      <th align="right">[% 'Employee' | $T8 %]</th>
77      <td>[% L.select_tag('employee_id', ALL_EMPLOYEES, title_key = 'safe_name', with_empty = 1, class = 'fixed_width') %]</td>
78     </tr>
79
80     [%- IF is_customer %]
81     <tr>
82      <th align="right">[% 'Salesman' | $T8 %]</th>
83      <td>[% L.select_tag('salesman_id', ALL_EMPLOYEES, title_key = 'safe_name', with_empty = 1, class = 'fixed_width') %]</td>
84     </tr>
85     [%- END %]
86
87     <tr>
88      <th align="right">[% 'Transaction description' | $T8 %]</th>
89      <td colspan="3"><input name="transaction_description" class="fixed_width"></td>
90     </tr>
91
92     <tr>
93      <th align="right">[% 'Project Number' | $T8 %]</th>
94      <td colspan="3">
95       <select name="project_id" class="fixed_width">
96        <option></option>
97        [%- FOREACH row = ALL_PROJECTS %]
98        <option value="[% HTML.escape(row.id) %]">[% HTML.escape(row.projectnumber) %]</option>
99        [%- END %]
100       </select>
101      </td>
102     </tr>
103
104     <tr>
105      <th align="right">[% 'Serial Number' | $T8 %]</th>
106      <td colspan="3"><input name="serialnumber" class="fixed_width"></td>
107     </tr>
108
109     [%- IF ALL_BUSINESS_TYPES.size %]
110     <tr>
111      <th align="right" nowrap>[% vctypelabel %]</th>
112      <td colspan="3">
113       [% L.select_tag('business_id', ALL_BUSINESS_TYPES, title_key = 'description', with_empty = 1, style='width:250px') %]
114      </td>
115     </tr>
116     [%- END %]
117
118     <tr>
119      <th align="right">[% 'Delivery Order Date' | $T8 %] [% 'From' | $T8 %]</th>
120      <td>
121       [% L.date_tag('transdatefrom') %]
122      </td>
123      <th align="right">[% 'Bis' | $T8 %]</th>
124      <td>
125       [% L.date_tag('transdateto') %]
126      </td>
127     </tr>
128
129     <tr>
130      <th align="right">[% 'Reqdate' | $T8 %] [% 'From' | $T8 %]</th>
131      <td>
132       [% L.date_tag('reqdatefrom') %]
133      </td>
134      <th align="right">[% 'Bis' | $T8 %]</th>
135      <td>
136       [% L.date_tag('reqdateto') %]
137      </td>
138     </tr>
139
140     [%- IF is_customer %]
141     <tr>
142      <th align="right">[% 'Insert Date' | $T8 %] [% 'From' | $T8 %]</th>
143      <td>
144        [% L.date_tag('insertdatefrom') %]
145      </td>
146      <th align="right">[% 'Bis' | $T8 %]</th>
147      <td>
148        [% L.date_tag('insertdateto') %]
149      </td>
150     </tr>
151     [%- END %]
152
153     <tr>
154      <th align="right">[% 'Include in Report' | $T8 %]</th>
155      <td colspan="5">
156       <table>
157        <tr>
158         <td>
159          <input type="checkbox" name="open" value="1" id="open" checked>
160          <label for="open">[% 'Open' | $T8 %]</label>
161         </td>
162         <td>
163          <input type="checkbox" name="closed" value="1" id="closed">
164          <label for="closed">[% 'Closed' | $T8 %]</label>
165         </td>
166        </tr>
167
168        <tr>
169         <td>
170          <input name="notdelivered" id="notdelivered" class="checkbox" type="checkbox" value="1" checked>
171          <label for="notdelivered">[% 'Not delivered' | $T8 %]</label>
172         </td>
173         <td>
174          <input name="delivered" id="delivered" class="checkbox" type="checkbox" value="1" checked>
175          <label for="delivered">[% 'Delivered' | $T8 %]</label></td>
176        </tr>
177
178        <tr>
179         <td>
180          <input name="l_id" id="l_id" class="checkbox" type="checkbox" value="Y">
181          <label for="l_id">[% 'ID' | $T8 %]</label>
182         </td>
183
184         <td>
185          <input name="l_donumber" id="l_donumber" class="checkbox" type="checkbox" value="Y" checked>
186          <label for="l_donumber">[% 'Delivery Order Number' | $T8 %]</label>
187         </td>
188        </tr>
189
190        <tr>
191         <td>
192          <input name="l_ordnumber" id="l_ordnumber" class="checkbox" type="checkbox" value="Y" checked>
193          <label for="l_ordnumber">[% 'Order Number' | $T8 %]</label>
194         </td>
195
196         <td>
197          <input name="l_cusordnumber" id="l_cusordnumber" class="checkbox" type="checkbox" value="Y" checked>
198          <label for="l_cusordnumber">[% 'Customer Order Number' | $T8 %]</label>
199         </td>
200        </tr>
201
202        <tr>
203         <td>
204          <input name="l_transdate" id="l_transdate" class="checkbox" type="checkbox" value="Y" checked>
205          <label for="l_transdate">[% 'Delivery Order Date' | $T8 %]</label>
206         </td>
207         <td>
208          <input name="l_reqdate" id="l_reqdate" class="checkbox" type="checkbox" value="Y" checked>
209          <label for="l_reqdate">[% 'Reqdate' | $T8 %]</label>
210         </td>
211         [% IF is_customer %]
212         <td>
213          <input name="l_insertdate" id="l_insertdate" class="checkbox" type="checkbox" value="Y">
214          <label for="l_insertdate">[% 'Insert Date' | $T8 %]</label>
215         </td>
216         [%- END %]
217        </tr>
218
219        <tr>
220         <td>
221          <input name="l_name" id="l_name" class="checkbox" type="checkbox" value="Y" checked>
222          <label for="l_name">[% IF is_customer %][% 'Customer' | $T8 %][% ELSE %][% 'Vendor' | $T8 %][% END %]</label>
223         </td>
224
225         [% IF is_customer %]
226         <td>
227          <input name="l_customernumber" id="l_customernumber" class="checkbox" type="checkbox" value="Y">
228          <label for="l_customernumber">[% 'Customer Number' | $T8 %]</label>
229         </td>
230         [% END %]
231        </tr>
232
233        <tr>
234         <td>
235          <input name="l_department" id="l_department" class="checkbox" type="checkbox" value="Y">
236          <label for="l_department">[% "Department" | $T8 %]</label>
237         </td>
238
239         <td>
240          <input name="l_shipvia" id="l_shipvia" class="checkbox" type="checkbox" value="Y">
241          <label for="l_shipvia">[% 'Ship via' | $T8 %]</label>
242         </td>
243        </tr>
244
245        <tr>
246         <td>
247          <input name="l_employee" id="l_employee" class="checkbox" type="checkbox" value="Y" checked>
248          <label for="l_employee">[% 'Employee' | $T8 %]</label>
249         </td>
250
251         <td>
252          <input name="l_salesman" id="l_salesman" class="checkbox" type="checkbox" value="Y">
253          <label for="l_salesman">[% 'Salesman' | $T8 %]</label>
254         </td>
255        </tr>
256
257        <tr>
258         <td>
259          <input name="l_globalprojectnumber" id="l_globalprojectnumber" class="checkbox" type="checkbox" value="Y">
260          <label for="l_globalprojectnumber">[% 'Project Number' | $T8 %]</label>
261         </td>
262
263         <td>
264          <input name="l_transaction_description" id="l_transaction_description" class="checkbox" type="checkbox" value="Y"[% IF INSTANCE_CONF.get_require_transaction_description_ps %] checked[% END %]>
265          <label for="l_transaction_description">[% 'Transaction description' | $T8 %]</label>
266         </td>
267        </tr>
268
269       </table>
270      </td>
271     </tr>
272    </table>
273   </p>
274
275   <hr size="3" noshade>
276
277   <p>
278    <input type="hidden" name="nextsub" value="orders">
279    <input type="hidden" name="vc" value="[% HTML.escape(vc) %]">
280    <input type="hidden" name="type" value="[% HTML.escape(type) %]">
281
282    <input class="submit" type="submit" name="action" value="[% 'Continue' | $T8 %]">
283   </p>
284  </form>