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