Zusammengefasstes Listen von Ware,Erzeugnis,Dienstleistung und Sortimenten
[kivitendo-erp.git] / templates / webpages / ic / search.html
1 [%- USE T8 %]
2 [%- USE HTML %]
3 [%- USE LxERP %]
4 [%- USE L %]
5 [%- USE P %]
6 <h1>[% title %]</h1>
7
8  <form method="post" action="ic.pl">
9
10   <input type="hidden" name="searchitems" value="[% HTML.escape(searchitems) %]">
11   <input type="hidden" name="title" value="[% HTML.escape(title) %]">
12
13   <input type="hidden" name="revers" value="[% HTML.escape(revers) %]">
14   <input type="hidden" name="lastsort" value="[% HTML.escape(lastsort) %]">
15
16   <input type="hidden" name="nextsub" value="generate_report">
17   <input type="hidden" name="sort" value="description">
18
19   <input type="hidden" name="ndxs_counter" value="[% HTML.escape(ndxs_counter) %]">
20
21   <table width="100%">
22    <tr valign="top">
23     <td>
24      <table>
25       <tr>
26        <th align="right" nowrap>[% 'Part Type' | $T8 %]</th>
27        <td  colspan="4" ><table><tr>
28         <td>
29           <input name="l_part" id="l_part" class="checkbox" type="checkbox" value="Y" checked>
30           <label for="l_part">[% 'Part' | $T8 %]</label>
31         </td>
32         <td>
33           <input name="l_service" id="l_service" class="checkbox" type="checkbox" value="Y" checked>
34           <label for="l_service">[% 'Service' | $T8 %]</label>
35         </td>
36         <td>
37           <input name="l_assembly" id="l_assembly" class="checkbox" type="checkbox" value="Y" checked>
38           <label for="l_assembly">[% 'Assembly' | $T8 %]</label>
39         </td>
40         <td>
41           <input name="l_assortment" id="l_assortment" class="checkbox" type="checkbox" value="Y" checked>
42           <label for="l_assortment">[% 'Assortment' | $T8 %]</label>
43         </td>
44        </tr></table></td>
45       </tr>
46       <tr>
47        <th align="right" nowrap>[% 'Part Number' | $T8 %]</th>
48        <td><input name="partnumber" size="20"></td>
49        <th align="right" nowrap>[% 'EAN' | $T8 %]</th>
50        <td><input name="ean" size="20"></td>
51       </tr>
52       <tr>
53        <th align="right" nowrap>[% 'Part Classification' | $T8 %]:</th>
54        <td>[% P.select_classification('classification_id') %]</td>
55       </tr>
56       <tr>
57        <th align="right" nowrap>[% 'Part Description' | $T8 %]</th>
58        <td colspan="3"><input name="description" size="40" class="initial_focus"></td>
59       </tr>
60       <tr>
61        <th align="right" nowrap>[% 'Partsgroup' | $T8 %]</th>
62        <td>
63          [%- INCLUDE generic/multibox.html
64            name          = 'partsgroup',
65            select_name   = 'partsgroup_id',
66            DATA          = ALL_PARTSGROUPS,
67            show_empty    = 1,
68            id_key        = 'id',
69            label_key     = 'partsgroup',
70            style         = 'width:250px',
71            limit         = MYCONFIG.vclimit,
72            allow_textbox = 1
73          -%]
74        </td>
75        <th align="right" nowrap>[% 'Serial Number' | $T8 %]</th> <td><input name="serialnumber" size="20"></td>
76       </tr>
77
78       [%- UNLESS is_service %]
79       <tr>
80        <th align="right" nowrap>[% 'Make' | $T8 %]</th> <td><input name="make" size="20"></td>
81        <th align="right" nowrap>[% 'Model' | $T8 %]</th> <td><input name="model" size="20"></td>
82       </tr>
83       [%- END %]
84
85       <tr>
86        <th align="right" nowrap>[% 'Drawing' | $T8 %]</th>
87        <td><input name="drawing" size="20"></td>
88        <th align="right" nowrap>[% 'Microfiche' | $T8 %]</th>
89        <td><input name="microfiche" size="20"></td>
90       </tr>
91
92       <tr>
93        <th align="right" nowrap>[% 'Shop article' | $T8 %]</th>
94        <td>[% L.yes_no_tag('shop', shop, default='', with_empty=1, empty_title='---') %]</td>
95       </tr>
96
97       <tr>
98        <th align="right">[% 'Insert Date' | $T8 %]</th>
99        <td>
100         [% 'From' | $T8 %][% L.date_tag('insertdatefrom') %]
101         [% 'Bis' | $T8 %] [% L.date_tag('insertdateto') %]
102        </td>
103       </tr>
104
105       [% CUSTOM_VARIABLES_FILTER_CODE %]
106
107       [%- IF is_assembly %]
108       <tr>
109        <td></td>
110        <td colspan="3">
111         [% L.radio_button_tag('bom', id='bom_0', value=0, checked=1, label=LxERP.t8('Top Level Designation only')) %]
112         [% L.radio_button_tag('bom', id='bom_1', value=1,            label=LxERP.t8('Individual Items')) %]
113        </td>
114       </tr>
115       [%- END %]
116
117       <tr>
118        <td></td>
119        <td colspan="3">
120         [%- L.radio_button_tag('itemstatus', value='active', id='itemstatus_active', label=LxERP.t8('Active'), checked=1) %]
121       [%- UNLESS is_service %]
122         [%- L.radio_button_tag('itemstatus', value='onhand', id='itemstatus_onhand', label=LxERP.t8('On Hand')) %]
123         [%- L.radio_button_tag('itemstatus', value='short', id='itemstatus_short', label=LxERP.t8('Short')) %]
124         [%- L.radio_button_tag('itemstatus', value='obsolete', id='itemstatus_obsolete', label=LxERP.t8('Obsolete')) %]
125       [%- END %]
126         [%- L.radio_button_tag('itemstatus', value='orphaned', id='itemstatus_orphaned', label=LxERP.t8('Orphaned')) %]
127         [%- L.radio_button_tag('itemstatus', value='', id='itemstatus_all', label=LxERP.t8('All')) %]
128        </td>
129       </tr>
130
131       <tr>
132        <td></td>
133        <td colspan="3">
134         <table>
135          <tr>
136           <td>
137            <table>
138             <tr>
139              [%- UNLESS is_assembly %]
140              <td>[%- L.checkbox_tag('bought', label=LxERP.t8('Bought')) %]</td>
141              [%- END %]
142              <td>[%- L.checkbox_tag('sold', label=LxERP.t8('Sold')) %]</td>
143             </tr>
144
145             <tr>
146              <td colspan="2"><hr size="1" noshade></td>
147             </tr>
148
149             <tr>
150              [%- UNLESS is_assembly %]
151              <td>[%- L.checkbox_tag('onorder', label=LxERP.t8('On Order')) %]</td>
152              [%- END %]
153              <td>[%- L.checkbox_tag('ordered', label=LxERP.t8('Ordered')) %]</td>
154             </tr>
155
156             <tr>
157              <td colspan="2"><hr size="1" noshade></td>
158             </tr>
159
160             <tr>
161              [%- UNLESS is_assembly %]
162              <td>[%- L.checkbox_tag('rfq', label=LxERP.t8('RFQ')) %]</td>
163              [%- END %]
164              <td>[%- L.checkbox_tag('quoted', label=LxERP.t8('Quoted')) %]</td>
165             </tr>
166            </table>
167           </td>
168
169           <td width="5%">&nbsp;</td>
170
171           <td>
172            <table>
173             <tr>
174              <th>[% 'From' | $T8 %]</th>
175              <td nowrap>[% L.date_tag('transdatefrom') %]</td>
176              <th>[% 'To (time)' | $T8 %]</th>
177              <td nowrap>[% L.date_tag('transdateto') %]</td>
178             </tr>
179            </table>
180           </td>
181          </tr>
182         </table>
183        </td>
184       </tr>
185
186       <tr>
187        <td></td>
188        <td colspan="3">
189         <hr size="1" noshade>
190        </td>
191       </tr>
192
193       <tr>
194        <th align="right" nowrap>[% 'Include in Report' | $T8 %]</th> <td colspan="3">
195         <table>
196          <tr>
197           <td>[%- L.checkbox_tag('l_partnumber', label=LxERP.t8('Part Number'), checked=1, value='Y') %]</td>
198           <td>[%- L.checkbox_tag('l_description', label=LxERP.t8('Part Description'), checked=1, value='Y') %]</td>
199       [%- UNLESS is_service %]
200           <td>[%- L.checkbox_tag('l_serialnumber', label=LxERP.t8('Serial Number'), value='Y') %]</td>
201       [%- END %]
202           <td>[%- L.checkbox_tag('l_unit', label=LxERP.t8('Unit of measure'), value='Y', checked=1) %]</td>
203          </tr>
204
205          <tr>
206           <td>[%- L.checkbox_tag('l_listprice', label=LxERP.t8('List Price'), value='Y') %]</td>
207           <td>[%- L.checkbox_tag('l_sellprice', label=LxERP.t8('Sell Price'), value='Y', checked=1) %]</td>
208           <td>[%- L.checkbox_tag('l_lastcost', label=LxERP.t8('Last Cost'), value='Y', checked=1) %]</td>
209           <td>[%- L.checkbox_tag('l_linetotal', label=LxERP.t8('Line Total'), value='Y', checked=1) %]</td>
210          </tr>
211
212          <tr>
213           <td>[%- L.checkbox_tag('l_priceupdate', label=LxERP.t8('Updated'), value='Y') %]</td>
214           <td>[%- L.checkbox_tag('l_deliverydate', label=LxERP.t8('Delivery Date'), value='Y') %]</td>
215       [%- UNLESS is_service %]
216           <td>[%- L.checkbox_tag('l_rop', label=LxERP.t8('ROP'), value='Y') %]</td>
217           <td>[%- L.checkbox_tag('l_weight', label=LxERP.t8('Weight'), value='Y') %]</td>
218       [%- END %]
219          </tr>
220
221          <tr>
222           <td>[%- L.checkbox_tag('l_image', label=LxERP.t8('Image'), value='Y', checked=(INSTANCE_CONF.get_parts_listing_image ? 1 : 0)) %]</td>
223           <td>[%- L.checkbox_tag('l_drawing', label=LxERP.t8('Drawing'), value='Y') %]</td>
224           <td>[%- L.checkbox_tag('l_microfiche', label=LxERP.t8('Microfiche'), value='Y') %]</td>
225           <td>[%- L.checkbox_tag('l_partsgroup', label=LxERP.t8('Partsgroup'), value='Y') %]</td>
226           </td>
227          </tr>
228
229          <tr>
230           <td>[%- L.checkbox_tag('l_transdate', label=LxERP.t8('Transdate'), value='Y') %]</td>
231           <td>[%- L.checkbox_tag('l_subtotal', label=LxERP.t8('Subtotal'), value='Y') %]</td>
232           <td>[%- L.checkbox_tag('l_soldtotal', label=LxERP.t8('Qty in Selected Records'), value='Y') %]</td>
233           <td>[%- L.checkbox_tag('l_ean', label=LxERP.t8('EAN'), value='Y') %]</td>
234          </tr>
235
236          <tr>
237       [%- UNLESS is_service %]
238           <td>[%- L.checkbox_tag('l_onhand', label=LxERP.t8('Stocked Qty'), value='Y') %]</td>
239       [%- END %]
240           <td>[%- L.checkbox_tag('l_projectnumber', label=LxERP.t8('Project Number'), value='Y') %]</td>
241           <td>[%- L.checkbox_tag('l_projectdescription', label=LxERP.t8('Project Description'), value='Y') %]</td>
242           <td>[%- L.checkbox_tag('l_pricegroups', label=LxERP.t8('Pricegroups'), value='Y', checked=1) %]</td>
243          </tr>
244
245          <tr>
246           <td>[%- L.checkbox_tag('l_notes', label=LxERP.t8('Notes'), value='Y') %]</td>
247           <td>[%- L.checkbox_tag('l_name', label=LxERP.t8('Name in Selected Records'), value='Y') %]</td>
248           <td>[%- L.checkbox_tag('l_shop', label=LxERP.t8('Shop article'), value='Y') %]</td>
249           <td>[%- L.checkbox_tag('l_insertdate', label=LxERP.t8('Insert Date'), value='Y') %]</td>
250          </tr>
251
252          [% CUSTOM_VARIABLES_INCLUSION_CODE %]
253         </table>
254        </td>
255       </tr>
256      </table>
257     </td>
258    </tr>
259    <tr><td colspan="4"><hr size="3" noshade></td></tr>
260   </table>
261
262   <p>
263    <input class="submit" type="submit" name="action" value="[% 'Continue' | $T8 %]">
264    <input class="submit" type="submit" name="action" value="[% 'TOP100' | $T8 %]">
265   </p>
266  </form>