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