2 [% USE HTML %]<body onload="[% onload %]">
6 <input type="hidden" name="input_name" value="[% HTML.escape(input_name) %]">
8 <div class="listtop">[% title %]</div>
10 <p>[% 'Please insert your language values below' | $T8 %]</p>
14 <tr class="listheading">
15 <th class="listheading"> </th>
16 [%- FOREACH col = HEADER %]
17 <th nowrap class="listheading">[% col.column_title %]</th>
21 [%- FOREACH row = LANGUAGES %]
22 <tr class="listrow[% loop.count % 2 %]">
23 <td><input type="hidden" id="id_[% loop.count %]" name="id_[% loop.count %]" value="[% HTML.escape(row.id) %]">[% HTML.escape(row.description) %]</td>
24 <td><input id="translation_[% loop.count %]" name="translation_[% loop.count %]" value="[% HTML.escape(row.translation) %]"></td>
25 <td><input id="longdescription_[% loop.count %]" name="longdescription_[% loop.count %]" value="[% HTML.escape(row.longdescription) %]"></td>
29 <input type="hidden" id="rowcount" name="rowcount" value="[% loop.count %]">
36 <button type="button" onclick="languages_updated()">[% 'Close' | $T8 %]</button>
41 <script type="text/javascript">
43 function languages_updated() {
45 for (var i = 1; i <= (document.getElementsByName("rowcount")[0].value); i++) {
47 var translation = "translation_" + i ;
48 var longdescription = "longdescription_" + i;
50 languages = languages +
51 "---+++---" + document.getElementsByName( id )[0].value +
52 "--++--" + document.getElementsByName( translation )[0].value +
53 "--++--" + document.getElementsByName( longdescription )[0].value;
56 window.opener.document.getElementsByName(document.Form.input_name.value)[0].value = languages;