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