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