]> wagnertech.de Git - mfinanz.git/blob - templates/design40_webpages/do/search.html
date error in mapping
[mfinanz.git] / templates / design40_webpages / do / search.html
1 [% USE T8 %]
2 [% USE L %]
3 [% USE HTML %]
4 [% USE LxERP %]
5 [% USE P %]
6 <h1>[% title %]</h1>
7
8 [% IF vc == 'customer' %]
9   [% SET is_customer = '1' %]
10 [% ELSE %]
11   [% SET is_customer = '0' %]
12 [% END %]
13
14 [% SET vctypelabel = vc == 'customer' ? LxERP.t8('Customer type') : LxERP.t8('Vendor type') %]
15
16 <form method="post" action="do.pl" name="Form" id="form">
17
18 <div class="wrapper">
19
20 <table class="tbl-horizontal">
21   <caption>[% 'Customer' | $T8 %]</caption>
22   <colgroup> <col class="wi-mediumsmall"><col class="wi-wide"> </colgroup>
23   <tbody>
24     <tr>
25       <th>[% IF is_customer %][% 'Customer' | $T8 %][% ELSE %][% 'Vendor' | $T8 %][% END %]</th>
26       <td>[% P.input_tag(vc, "", class="fixed_width initial_focus wi-normal") %]</td>
27     </tr>
28     [% IF ALL_BUSINESS_TYPES.size %]
29     <tr>
30       <th>[% vctypelabel %]</th>
31       <td> [% L.select_tag('business_id', ALL_BUSINESS_TYPES, title_key='description', with_empty=1, class='wi-normal') %] </td>
32     </tr>
33     [% END %]
34     <tr>
35       <th>[% 'Contact Person' | $T8 %]</th>
36       <td>[% L.input_tag("cp_name", '', class="fixed_width wi-normal") %]</td>
37     </tr>
38     <tr>
39       <th class="caption" colspan="2">[% 'Handling' | $T8 %]</th>
40     </tr>
41     <tr>
42       <th>[% 'Employee' | $T8 %]</th>
43       <td>[% L.select_tag('employee_id', ALL_EMPLOYEES, title_key='safe_name', with_empty=1, class='fixed_width wi-normal') %]</td>
44     </tr>
45     [% IF is_customer %]
46     <tr>
47       <th>[% 'Salesman' | $T8 %]</th>
48       <td>[% L.select_tag('salesman_id', ALL_EMPLOYEES, title_key='safe_name', with_empty=1, class='fixed_width wi-normal') %]</td>
49     </tr>
50     [% END %] [% IF ALL_DEPARTMENTS.size %]
51     <tr>
52       <th>[% 'Department' | $T8 %]</th>
53       <td>[% L.select_tag('department_id', ALL_DEPARTMENTS, default=department_id, title_key='description', with_empty=1, class="fixed_width wi-normal") %]</td>
54     </tr>
55     [% END %]
56     <tr>
57       <th>[% 'Delivery Order Date' | $T8 %] [% #'From' | $T8 %]</th>
58       <td><span class="wi-date">[% L.date_tag('transdatefrom') %] [% 'Bis' | $T8 %] [% L.date_tag('transdateto') %]</span></td>
59     </tr>
60     <tr>
61       <th>[% 'Reqdate' | $T8 %] [% #'From' | $T8 %]</th>
62       <td><span class="wi-date">[% L.date_tag('reqdatefrom') %] [% 'Bis' | $T8 %] [% L.date_tag('reqdateto') %]</span></td>
63     </tr>
64     <tr>
65       <th>[% 'Insert Date' | $T8 %] [% #'From' | $T8 %]</th>
66       <td><span class="wi-date">[% L.date_tag('insertdatefrom') %] [% 'Bis' | $T8 %] [% L.date_tag('insertdateto') %]</span></td>
67     </tr>
68   </tbody>
69 </table>
70
71 <table class="tbl-horizontal">
72   <caption>[% 'Order & Numbers' | $T8 %]</caption>
73   <colgroup> <col class="wi-small"><col class="wi-lightwide"> </colgroup>
74   <tbody>
75     <tr>
76       <th>[% 'Delivery Order Number' | $T8 %]</th>
77       <td> <input type="text" name="donumber" class="fixed_width wi-mediumsmall">
78       </td>
79     </tr>
80     <tr>
81       <th>[% 'Order Number' | $T8 %]</th>
82       <td> <input type="text" name="ordnumber" class="fixed_width wi-mediumsmall">
83       </td>
84     </tr>
85     [%- IF type == "purchase_delivery_order" %]
86     <tr>
87       <th>[% 'Order Confirmation Number' | $T8 %]</th>
88       <td> <input type="text" name="order_confirmation_number" class="fixed_width wi-mediumsmall">
89       </td>
90     </tr>
91     <tr>
92       <th>[% 'Vendor Confirmation Number' | $T8 %]</th>
93       <td> <input type="text" name="vendor_confirmation_number" class="fixed_width wi-mediumsmall">
94       </td>
95     </tr>
96     [%- END %]
97     <tr>
98       <th>[% 'Customer Order Number' | $T8 %]</th>
99       <td> <input type="text" name="cusordnumber" class="fixed_width wi-mediumsmall">
100       </td>
101     </tr>
102     <tr>
103       <th>[% 'Project Number' | $T8 %]</th>
104       <td>
105       <select name="project_id" class="fixed_width wi-mediumsmall">
106         <option></option>
107         [% FOREACH row = ALL_PROJECTS %]
108         <option value="[% HTML.escape(row.id) %]">[% HTML.escape(row.projectnumber) %]</option>
109         [% END %]
110       </select>
111       </td>
112     </tr>
113     <tr>
114       <th>[% 'Transaction description' | $T8 %]</th>
115       <td> <input type="text" name="transaction_description" class="fixed_width wi-mediumsmall">
116       </td>
117     </tr>
118     <tr>
119       <th align="right">[% 'Full Text' | $T8 %]</th>
120       <td>[% L.input_tag('fulltext', '', class="fixed_width wi-mediumsmall") %]</td>
121     </tr>
122     <tr>
123       <th class="caption" colspan="2">[% 'Article data' | $T8 %]</th>
124     </tr>
125     <tr>
126       <th>[% 'Part Description' | $T8 %]</th>
127       <td> <input type="text" name="parts_description" class="fixed_width wi-mediumsmall">
128       </td>
129     </tr>
130     <tr>
131       <th>[% 'Part Number' | $T8 %]</th>
132       <td> <input type="text" name="parts_partnumber" class="fixed_width wi-mediumsmall">
133       </td>
134     </tr>
135     <tr>
136       <th>[% 'Serial Number' | $T8 %]</th>
137       <td> <input type="text" name="serialnumber" class="fixed_width wi-mediumsmall">
138       </td>
139     </tr>
140     <tr>
141       <th>[% 'Charge Number' | $T8 %]</th>
142       <td> <input type="text" name="chargenumber" class="fixed_width wi-mediumsmall">
143       </td>
144     </tr>
145   </tbody>
146 </table>
147
148
149 </div><!-- ./wrapper -->
150
151 <div class="form-addition control-panel wrapper">
152   <h3>[% 'Include in Report' | $T8 %]</h3>
153   <div class="list col wi-small">
154     <h4>[% 'Status' | $T8 %]</h4>
155     <div>
156       <input type="checkbox" name="open" value="1" id="open" checked>
157       <label for="open">[% 'Open' | $T8 %]</label>
158     </div>
159     <div>
160       <input type="checkbox" name="closed" value="1" id="closed">
161       <label for="closed">[% 'Closed' | $T8 %]</label>
162     </div>
163     <div>
164       <input name="notdelivered" id="notdelivered" type="checkbox" value="1" checked>
165       <label for="notdelivered">[% 'Not delivered' | $T8 %]</label>
166     </div>
167     <div>
168       <input name="delivered" id="delivered" type="checkbox" value="1" checked>
169       <label for="delivered">[% 'Delivered' | $T8 %]</label>
170     </div>
171   </div>
172   <div class="list col">
173     <h4>[% 'Numbers & IDs' | $T8 %]</h4>
174     <div>
175       <input name="l_id" id="l_id" type="checkbox" value="Y">
176       <label for="l_id">[% 'ID' | $T8 %]</label>
177     </div>
178     <div>
179       <input name="l_donumber" id="l_donumber" type="checkbox" value="Y" checked>
180       <label for="l_donumber">[% 'Delivery Order Number' | $T8 %]</label>
181     </div>
182     <div>
183       <input name="l_ordnumber" id="l_ordnumber" type="checkbox" value="Y" checked>
184       <label for="l_ordnumber">[% 'Order Number' | $T8 %]</label>
185     </div>
186     [%- IF type == "purchase_delivery_order" %]
187     <div>
188       <input name="l_order_confirmation_number" id="l_order_confirmation_number" type="checkbox" value="Y" checked>
189       <label for="l_order_confirmation_number">[% 'Order Confirmation Number' | $T8 %]</label>
190     </div>
191     <div>
192       <input name="l_vendor_confirmation_number" id="l_vendor_confirmation_number" type="checkbox" value="Y" checked>
193       <label for="l_vendor_confirmation_number">[% 'Vendor Confirmation Number' | $T8 %]</label>
194     </div>
195     [% END %]
196     <div>
197       <input name="l_cusordnumber" id="l_cusordnumber" type="checkbox" value="Y" checked>
198       <label for="l_cusordnumber">[% 'Customer Order Number' | $T8 %]</label>
199     </div>
200     [% IF is_customer %]
201     <div>
202       <input name="l_customernumber" id="l_customernumber" type="checkbox" value="Y">
203       <label for="l_customernumber">[% 'Customer Number' | $T8 %]</label>
204     </div>
205     [% END %]
206     <div>
207       <input name="l_globalprojectnumber" id="l_globalprojectnumber" type="checkbox" value="Y">
208       <label for="l_globalprojectnumber">[% 'Project Number' | $T8 %]</label>
209     </div>
210   </div>
211   <div class="list col">
212     <h4>[% 'Dates' | $T8 %]</h4>
213     <div>
214       <input name="l_transdate" id="l_transdate" type="checkbox" value="Y" checked>
215       <label for="l_transdate">[% 'Delivery Order Date' | $T8 %]</label>
216     </div>
217     <div>
218       <input name="l_reqdate" id="l_reqdate" type="checkbox" value="Y" checked>
219       <label for="l_reqdate">[% 'Reqdate' | $T8 %]</label>
220     </div>
221     [% IF is_customer %]
222     <div>
223       <input name="l_insertdate" id="l_insertdate" type="checkbox" value="Y">
224       <label for="l_insertdate">[% 'Insert Date' | $T8 %]</label>
225     </div>
226     [% END %]
227   </div>
228   <div class="list col">
229     <h4>[% 'Order data' | $T8 %]</h4>
230     <div>
231       <input name="l_name" id="l_name" type="checkbox" value="Y" checked>
232       <label for="l_name">[% IF is_customer %][% 'Customer' | $T8 %][% ELSE %][% 'Vendor' | $T8 %][% END %]</label>
233     </div>
234     <div>
235       <input name="l_transaction_description" id="l_transaction_description" type="checkbox" value="Y" [% IF (instance_conf.get_require_transaction_description_ps) %] checked[% END %]>
236       <label for="l_transaction_description">[% 'Transaction description' | $T8 %]</label>
237     </div>
238     <div>
239       <input name="l_items" id="l_items" type="checkbox" value="Y">
240       <label for="l_items">[% 'Positions' | $T8 %]</label>
241     </div>
242   </div>
243   <div class="list col">
244     <h4>[% 'Handling' | $T8 %]</h4>
245     <div>
246       <input name="l_employee" id="l_employee" type="checkbox" value="Y" checked>
247       <label for="l_employee">[% 'Employee' | $T8 %]</label>
248     </div>
249     <div>
250       <input name="l_salesman" id="l_salesman" type="checkbox" value="Y">
251       <label for="l_salesman">[% 'Salesman' | $T8 %]</label>
252     </div>
253     <div>
254       <input name="l_department" id="l_department" type="checkbox" value="Y">
255       <label for="l_department">[% "Department" | $T8 %]</label>
256     </div>
257     <div>
258       <input name="l_shipvia" id="l_shipvia" type="checkbox" value="Y">
259       <label for="l_shipvia">[% 'Ship via' | $T8 %]</label>
260     </div>
261   </div>
262 </div><!-- /.form-addition /.wrapper -->
263
264
265
266 <input type="hidden" name="action" value="orders">
267 <input type="hidden" name="vc" value="[% HTML.escape(vc) %]">
268 <input type="hidden" name="type" value="[% HTML.escape(type) %]">
269
270 </form>