fokus gibt es nicht mehr als javascriptfunktion, also überall aus dem onload genommen.
[kivitendo-erp.git] / templates / webpages / ic / form_header.html
1 [%- USE T8 %]
2 [%- USE HTML %]
3 [%- USE LxERP %]
4  <script type="text/javascript" src="js/common.js"></script>
5  <script type="text/javascript" src="js/parts_language_selection.js"></script>
6
7  <p><div class="listtop">[% title %]  [% HTML.escape(partnumber) %]  [% HTML.escape(description) %]</div></p>
8
9  <form method="post" name="ic" action="[% script %]">
10
11   <input name="id" type="hidden" value="[% HTML.escape(id) %]">
12   <input name="item" type="hidden" value="[% HTML.escape(item) %]">
13   <input name="title" type="hidden" value="[% HTML.escape(title) %]">
14   <input name="makemodel" type="hidden" value="[% HTML.escape(makemodel) %]">
15   <input name="alternate" type="hidden" value="[% HTML.escape(alternate) %]">
16   <input name="onhand" type="hidden" value="[% HTML.escape(onhand) %]">
17   <input name="orphaned" type="hidden" value="[% HTML.escape(orphaned) %]">
18   <input name="taxaccounts" type="hidden" value="[% HTML.escape(taxaccounts) %]">
19   <input name="rowcount" type="hidden" value="[% HTML.escape(rowcount) %]">
20   <input name="eur" type="hidden" value="[% HTML.escape(eur) %]">
21   <input name="language_values" type="hidden" value="[% HTML.escape(language_values) %]">
22   <input name="original_partnumber" type="hidden" value="[% HTML.escape(original_partnumber) %]">
23
24   <ul id="maintab" class="shadetabs">
25    <li class="selected"><a href="#" rel="master_data">[% 'Basic Data' | $T8 %]</a></li>
26    [%- IF id %]
27    <li><a href="#" rel="sales_price_information">[% 'Price information' | $T8 %]</a></li>
28    [%- END %]
29    [%- IF CUSTOM_VARIABLES.size %]
30    <li><a href="#" rel="custom_variables">[% 'Custom Variables' | $T8 %]</a></li>
31    [%- END %]
32   </ul>
33
34   <div class="tabcontentstyle">
35   <div id="master_data" class="tabcontent">
36
37    <table width="100%">
38     <tr>
39      <td>
40       <table width="100%">
41        <tr valign="top">
42         <td>
43 [%- IF image && conf_parts_show_image %]
44          <a href="[% image | html %]" target="_blank"><img style="[% conf_parts_image_css %]" src="[% image | html %]"/></a>
45 [%- END %]
46
47          <table>
48           <tr>
49            <td colspan="2">
50             <table>
51              <tr>
52               <th align="right">[% 'Part Number' | $T8 %]</th>
53               <td><input name="partnumber" value="[% HTML.escape(partnumber) %]" size="40"></td>
54              </tr>
55              <tr>
56               <th align="right">[% 'Part Description' | $T8 %]</th>
57               <td>
58                [%- IF description_area %]
59                <textarea name="description" rows="[% HTML.escape(rows) %]" cols="40" wrap="soft">[% HTML.escape(description) %]</textarea>
60                [%- ELSE %]
61                <input name="description" size="40" value="[% HTML.escape(description) %]">
62                [%- END %]
63               </td>
64              </tr>
65              <tr>
66                <th align="right">[% 'EAN-Code' | $T8 %]</th>
67                <td><input name="ean" size="40" value="[% HTML.escape(ean) %]"></td>
68              </tr>
69              <tr>
70               [%- IF all_partsgroup.size %]
71               <th align="right">[% 'Group' | $T8 %]</th>
72               <td>
73                [%- INCLUDE generic/multibox.html
74                      name       = 'partsgroup',
75                      DATA       = all_partsgroup,
76                      show_empty = 1,
77                      id_sub     = 'pg_keys',
78                      label_key  = 'partsgroup',
79                      style      = 'width:250px'
80                -%]
81               </td>
82               <input type="hidden" name="oldpartsgroup" value="[% HTML.escape(oldpartsgroup) %]">
83               [% END %]
84              </tr>
85
86
87              [%- IF BUCHUNGSGRUPPEN.size %]
88              <tr>
89               <th align="right">[% 'Buchungsgruppe' | $T8 %]</th>
90               <td>
91                [%- INCLUDE generic/multibox.html
92                      name       = 'buchungsgruppen_id',
93                      DATA       = BUCHUNGSGRUPPEN,
94                      id_key     = 'id',
95                      label_key  = 'description',
96                      style      = 'width:250px'
97                -%]
98              </tr>
99              [%- END %]
100              <input type="hidden" name="IC_income" value="[% HTML.escape(IC_income_default) %]">
101              [%- UNLESS is_assembly %]
102              <input type="hidden" name="IC_expense" value="[% HTML.escape(IC_expense_default) %]">
103              [%- END %]
104              [%- IF is_part %]
105              <input type="hidden" name="IC" value="[% HTML.escape(IC_default) %]">
106              [%- END %]
107              <tr>
108               <th align="right">[% 'Payment Terms' | $T8 %]</th>
109               <td>
110                [%- INCLUDE generic/multibox.html
111                      name       = 'payment_id',
112                      DATA       = payment_terms,
113                      show_empty = 1,
114                      id_key     = 'id',
115                      label_key  = 'description',
116                      style      = 'width:250px'
117                -%]
118               </td>
119              </tr>
120             </table>
121            </td>
122           </tr>
123
124           <tr>
125            <td>
126             <button type="button" onclick="parts_language_selection_window('language_values')">[% 'Set Language Values' | $T8 %]</button>
127            </td>
128           </tr>
129
130           <tr height="5"></tr>
131
132           <tr>
133            <td>
134             <table>
135              <tr>
136               <th align="left">[% 'Part Notes' | $T8 %]</th>
137               [%- UNLESS is_service %]
138               <th align="left">[% 'Formula' | $T8 %]</th>
139               [%- END %]
140              </tr>
141              <tr>
142               <td>
143                <textarea name="notes" rows="[% HTML.escape(notes_rows) %]" cols="45" wrap="soft">[% HTML.escape(notes) %]</textarea>
144               </td>
145               [%- UNLESS is_service %]
146               <td>
147                <ilayer>
148                 <layer onmouseover="this.T_STICKY=true;this.T_STATIC=true;return escape('[% 'The formula needs the following syntax:<br>For regular article:<br>Variablename= Variable Unit;<br>Variablename2= Variable2 Unit2;<br>...<br>###<br>Variable + ( Variable2 / Variable )<br><b>Please be beware of the spaces in the formula</b><br>' | $T8 %]')">
149                  <textarea name="formel" rows="[% HTML.escape(notes_rows) %]" cols="30" wrap="soft">[% HTML.escape(formel) %]</textarea></layer></ilayer>
150                </td>
151               [%- END %]
152              </tr>
153             </table>
154            </td>
155           </tr>
156          </table>
157         </td>
158
159         <td>
160          <table>
161           <tr>
162            <th align="right" nowrap="true">[% 'Updated' | $T8 %]</th>
163            <td>
164             <input name="priceupdate" id="priceupdate" size="11"  title="[% HTML.escape(dateformat) %]" value="[% HTML.escape(priceupdate) %]" readonly>
165            </td>
166           </tr>
167
168           <tr>
169            <th align="right" nowrap="true">[% 'List Price' | $T8 %]</th>
170            <td><input name="listprice" size="11" value="[% LxERP.format_amount(listprice, 2) %]"></td>
171           </tr>
172
173           <tr>
174            <th align="right" nowrap="true">[% 'Sell Price' | $T8 %]</th>
175            <td><input name="sellprice" size="11" value="[% LxERP.format_amount(sellprice, 2) %]"></td>
176           </tr>
177
178           [%- UNLESS is_assembly %]
179           <tr>
180            <th align="right" nowrap="true">[% 'Last Cost' | $T8 %]</th>
181            <td><input name="lastcost" size="11" value="[% LxERP.format_amount(lastcost, 2) %]"></td>
182           </tr>
183           [%- END %]
184
185           [%- IF ALL_PRICE_FACTORS.size %]
186           <tr>
187            <th align="right">[% 'Price Factor' | $T8 %]</th>
188            <td>
189             [%- INCLUDE generic/multibox.html
190                   name       = 'price_factor_id',
191                   DATA       = ALL_PRICE_FACTORS,
192                   show_empty = 1,
193                   id_key     = 'id',
194                   label_key  = 'description',
195                   style      = 'width:100px'
196             -%]
197            </td>
198           </tr>
199           [%- END %]
200
201           <tr>
202            <th align="right" nowrap="true">[% 'Unit' | $T8 %]</th>
203            <td>
204             <input type="hidden" name="unit_changeable" value="[% HTML.escape(unit_changeable) %]">
205             [%- UNLESS unit_changeable %]
206             <input type="hidden" name="unit" value="[% HTML.escape(unit) %]">[% HTML.escape(unit) %]
207             [%- ELSE %]
208             [%- INCLUDE generic/multibox.html
209                   name       = 'unit',
210                   DATA       = ALL_UNITS,
211                   id_key     = 'name',
212                   label_key  = 'name',
213                   style      = 'width:100px'
214             -%]
215             [%- END %]
216            </td>
217           </tr>
218
219         [%- UNLESS is_service %]
220           <tr>
221            <th align="right" nowrap="true">[% 'Weight' | $T8 %]</th>
222            <td>
223             [%- IF is_assembly %]&nbsp;[% LxERP.format_amount(weight) %][%- END %]
224             <input[% IF is_assembly %] type="hidden"[% END %] size="10" name="weight" value="[% LxERP.format_amount(weight) %]">
225             [% HTML.escape(defaults.weightunit) %]
226            </td>
227           </tr>
228         [%- END %]
229           <tr>
230            <th align="right" nowrap>[% 'On Hand' | $T8 %]</th>
231            <th align="left" nowrap class="plus[% IF onhand > 0 %]1[% ELSE %]0[% END %]">&nbsp;[% LxERP.format_amount(onhand) %]</th>
232           </tr>
233           <tr>
234            <th align="right" nowrap="true">[% 'ROP' | $T8 %]</th>
235            <td><input name="rop" size="10" value="[% LxERP.format_amount(rop) %]"></td>
236           </tr>
237           <tr>
238            <th align="right" nowrap="true">[% 'Bin' | $T8 %]</th>
239            <td><input name="bin" size="10" value="[% HTML.escape(bin) %]"></td>
240           </tr>
241           <tr>
242            <th align="right" nowrap="true">[% 'Verrechnungseinheit' | $T8 %]</th>
243            <td><input name="ve" size="10" value="[% HTML.escape(ve) %]"></td>
244           </tr>
245           <tr>
246            <th align="right" nowrap="true">[% 'Business Volume' | $T8 %]</th>
247            <td><input name="gv" size="10" value="[% LxERP.format_amount(gv) %]"></td>
248           </tr>
249           <tr>
250            <th align="right" nowrap><label for="not_discountable">[% 'Not Discountable' | $T8 %]</label></th>
251            <td><input class="checkbox" type="checkbox" name="not_discountable" id="not_discountable" value="1" [% IF not_discountable %]checked[% END %]></td>
252           </tr>
253         [%- IF id %]
254           <tr>
255            <th align="right" nowrap="true"><label for="obsolete">[% 'Obsolete' | $T8 %]</label></th>
256            <td><input name="obsolete" id="obsolete" type="checkbox" class="checkbox" value="1" [% IF obsolete %]checked[% END %]></td>
257           </tr>
258         [%- END %]
259           <tr>
260            <th align="right" nowrap><label for="has_sernumber">[% 'Has serial number' | $T8 %]</label></th>
261            <td><input class="checkbox" type="checkbox" name="has_sernumber" id="has_sernumber" value="1" [% IF has_sernumber %]checked[% END %]></td>
262           </tr>
263           <tr>
264            <th align="right" nowrap><label for="shop">[% 'Shopartikel' | $T8 %]</label></th>
265            <td><input class="checkbox" type="checkbox" name="shop" id="shop" value="1" [% IF shop %]checked[% END %]></td>
266           </tr>
267          </table>
268         </td>
269        </tr>
270       </table>
271      </td>
272     </tr>
273
274
275     [% UNLESS is_service %]
276     <tr>
277      <td>
278       <table>
279        <tr>
280         <th align="right" nowrap>[% 'Image' | $T8 %]</th>
281         <td><input name="image" size="40" value="[% HTML.escape(image) %]"></td>
282         <th align="right" nowrap>[% 'Microfiche' | $T8 %]</th>
283         <td><input name="microfiche" size="20" value="[% HTML.escape(microfiche) %]"></td>
284        </tr>
285        <tr>
286         <th align="right" nowrap>[% 'Drawing' | $T8 %]</th>
287         <td><input name="drawing" size="40" value="[% HTML.escape(drawing) %]"></td>
288        </tr>
289       </table>
290      </td>
291     </tr>
292     [%- END %]
293
294     <script type="text/javascript">
295      <!-- Calendar.setup({ inputField : "priceupdate", ifFormat :"[% myconfig_jsc_dateformat %]", align : "BL", button : "trigger1" }); //-->
296     </script>