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