Templates werden nicht mehr übersetzt gespeichert.
[kivitendo-erp.git] / templates / webpages / do / search_master.html
1 [%- USE T8 %]
2 [% USE HTML %][% USE LxERP %]<body onload="on_load();">
3
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   <!--
12       function on_load() {
13         Calendar.setup({ inputField : "transdatefrom", ifFormat :"[% myconfig_jsc_dateformat %]", align : "BL", button : "transdatefrom_trigger" });
14         Calendar.setup({ inputField : "transdateto",   ifFormat :"[% myconfig_jsc_dateformat %]", align : "BL", button : "transdateto_trigger" });
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.value %] 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>
76       <select name="employee_id" class="fixed_width">
77        <option></option>
78        [%- FOREACH row = ALL_EMPLOYEES %]
79        <option value="[% HTML.escape(row.id) %]">[% IF row.name %][% HTML.escape(row.name) %][% ELSE %][% HTML.escape(row.login) %][% END %]</option>
80        [%- END %]
81       </select>
82      </td>
83     </tr>
84
85     [%- IF is_customer %]
86     <tr>
87      <th align="right">[% 'Salesman' | $T8 %]</th>
88      <td>
89       <select name="salesman_id" class="fixed_width">
90        <option></option>
91        [%- FOREACH row = ALL_SALESMEN %]
92        <option value="[% HTML.escape(row.id) %]">[% IF row.name %][% HTML.escape(row.name) %][% ELSE %][% HTML.escape(row.login) %][% END %]</option>
93        [%- END %]
94       </select>
95      </td>
96     </tr>
97     [%- END %]
98
99     <tr>
100      <th align="right">[% 'Transaction description' | $T8 %]</th>
101      <td colspan="3"><input name="transaction_description" class="fixed_width"></td>
102     </tr>
103
104     <tr>
105      <th align="right">[% 'Customer Order Number' | $T8 %]</th>
106      <td colspan="3"><input name="cusordnumber" class="fixed_width"></td>
107     </tr>
108
109     <tr>
110      <th align="right">[% 'Project Number' | $T8 %]</th>
111      <td colspan="3">
112       <select name="project_id" class="fixed_width">
113        <option></option>
114        [%- FOREACH row = ALL_PROJECTS %]
115        <option value="[% HTML.escape(row.id) %]">[% HTML.escape(row.projectnumber) %]</option>
116        [%- END %]
117       </select>
118      </td>
119     </tr>
120
121     <tr>
122      <th align="right">[% 'From' | $T8 %]</th>
123      <td>
124       <input name="transdatefrom" id="transdatefrom" size="11" title="[% myconfig_dateformat %]" onBlur="check_right_date_format(this)">
125       <input type="button" name="transdatefrom_button" id="transdatefrom_trigger" value="?">
126      </td>
127      <th align="right">[% 'Bis' | $T8 %]</th>
128      <td>
129       <input name="transdateto" id="transdateto" size="11" title="[% myconfig_dateformat %]" onBlur="check_right_date_format(this)">
130       <input type="button" name="transdateto_button" id="transdateto_trigger" value="?">
131      </td>
132     </tr>
133
134     <tr>
135      <th align="right">[% 'Include in Report' | $T8 %]</th>
136      <td colspan="5">
137       <table>
138        <tr>
139         <td>
140          <input type="checkbox" name="open" value="1" id="open" checked>
141          <label for="open">[% 'Open' | $T8 %]</label>
142         </td>
143         <td>
144          <input type="checkbox" name="closed" value="1" id="closed">
145          <label for="closed">[% 'Closed' | $T8 %]</label>
146         </td>
147        </tr>
148
149        <tr>
150         <td>
151          <input name="notdelivered" id="notdelivered" class="checkbox" type="checkbox" value="1" checked>
152          <label for="notdelivered">[% 'Not delivered' | $T8 %]</label>
153         </td>
154         <td>
155          <input name="delivered" id="delivered" class="checkbox" type="checkbox" value="1" checked>
156          <label for="delivered">[% 'Delivered' | $T8 %]</label></td>
157        </tr>
158
159        <tr>
160         <td>
161          <input name="l_id" id="l_id" class="checkbox" type="checkbox" value="Y">
162          <label for="l_id">[% 'ID' | $T8 %]</label>
163         </td>
164
165         <td>
166          <input name="l_donumber" id="l_donumber" class="checkbox" type="checkbox" value="Y" checked>
167          <label for="l_donumber">[% 'Delivery Order Number' | $T8 %]</label>
168         </td>
169        </tr>
170
171        <tr>
172         <td>
173          <input name="l_ordnumber" id="l_ordnumber" class="checkbox" type="checkbox" value="Y" checked>
174          <label for="l_ordnumber">[% 'Order Number' | $T8 %]</label>
175         </td>
176
177         <td>
178          <input name="l_cusordnumber" id="l_cusordnumber" class="checkbox" type="checkbox" value="Y">
179          <label for="l_cusordnumber">[% 'Customer Order Number' | $T8 %]</label>
180         </td>
181        </tr>
182
183        <tr>
184         <td>
185          <input name="l_transdate" id="l_transdate" class="checkbox" type="checkbox" value="Y" checked>
186          <label for="l_transdate">[% 'Date' | $T8 %]</label>
187         </td>
188
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        </tr>
194
195        <tr>
196         <td>
197          <input name="l_employee" id="l_employee" class="checkbox" type="checkbox" value="Y" checked>
198          <label for="l_employee">[% 'Employee' | $T8 %]</label>
199         </td>
200
201         <td>
202          <input name="l_salesman" id="l_salesman" class="checkbox" type="checkbox" value="Y">
203          <label for="l_salesman">[% 'Salesman' | $T8 %]</label>
204         </td>
205
206         <td>
207          <input name="l_shipvia" id="l_shipvia" class="checkbox" type="checkbox" value="Y">
208          <label for="l_shipvia">[% 'Ship via' | $T8 %]</label>
209         </td>
210        </tr>
211
212        <tr>
213         <td>
214          <input name="l_globalprojectnumber" id="l_globalprojectnumber" class="checkbox" type="checkbox" value="Y">
215          <label for="l_globalprojectnumber">[% 'Project Number' | $T8 %]</label>
216         </td>
217
218         <td>
219          <input name="l_transaction_description" id="l_transaction_description" class="checkbox" type="checkbox" value="Y">
220          <label for="l_transaction_description">[% 'Transaction description' | $T8 %]</label>
221         </td>
222        </tr>
223
224       </table>
225      </td>
226     </tr>
227    </table>
228   </p>
229
230   <hr size="3" noshade>
231
232   <p>
233    <input type="hidden" name="nextsub" value="orders">
234    <input type="hidden" name="vc" value="[% HTML.escape(vc) %]">
235    <input type="hidden" name="type" value="[% HTML.escape(type) %]">
236
237    <input class="submit" type="submit" name="action" value="[% 'Continue' | $T8 %]">
238   </p>
239  </form>
240
241 </body>
242 </html>
243