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