Revision 5c146eff
Von Moritz Bunkus vor fast 17 Jahren hinzugefügt
templates/webpages/ic/parts_language_selection_de.html | ||
---|---|---|
6 | 6 |
|
7 | 7 |
<div class="listtop">[% title %]</div> |
8 | 8 |
|
9 |
<table width="100%"> |
|
10 |
<tr height="5"></tr> |
|
11 |
|
|
12 |
<tr><td>Bitte die ?bersetzungen unten eintragen</td></tr> |
|
13 |
|
|
14 |
<tr> |
|
15 |
<td> |
|
16 |
|
|
17 |
<table> |
|
18 |
<tr class="listheading"> |
|
19 |
<th class="listheading"> </th> |
|
20 |
[%- FOREACH col = HEADER %] |
|
21 |
<th nowrap class="listheading">[% col.column_title %]</th> |
|
22 |
[%- END %] |
|
23 |
</tr> |
|
24 |
|
|
25 |
[%- FOREACH row = LANGUAGES %] |
|
26 |
<tr class="listrow[% loop.count % 2 %]"> |
|
27 |
<td><input type="hidden" id="id_[% loop.count %]" name="id_[% loop.count %]" value="[% HTML.escape(row.id) %]">[% HTML.escape(row.description) %]</td> |
|
28 |
<td><input id="translation_[% loop.count %]" name="translation_[% loop.count %]" value="[% HTML.escape(row.translation) %]"></td> |
|
29 |
<td><input id="longdescription_[% loop.count %]" name="longdescription_[% loop.count %]" value="[% HTML.escape(row.longdescription) %]"></td> |
|
30 |
</tr> |
|
31 |
|
|
32 |
[%- IF loop.last %] |
|
33 |
<input type="hidden" id="rowcount" name="rowcount" value="[% loop.count %]"> |
|
34 |
[%- END %] |
|
35 |
[%- END %] |
|
36 |
</table> |
|
37 |
|
|
38 |
</td> |
|
39 |
</tr> |
|
40 |
</table> |
|
41 |
<button type="button" onclick="languages_updated()">?bernehmen</button></td> |
|
9 |
<p>Bitte die ?bersetzungen unten eintragen</p> |
|
10 |
|
|
11 |
<p> |
|
12 |
<table> |
|
13 |
<tr class="listheading"> |
|
14 |
<th class="listheading"> </th> |
|
15 |
[%- FOREACH col = HEADER %] |
|
16 |
<th nowrap class="listheading">[% col.column_title %]</th> |
|
17 |
[%- END %] |
|
18 |
</tr> |
|
19 |
|
|
20 |
[%- FOREACH row = LANGUAGES %] |
|
21 |
<tr class="listrow[% loop.count % 2 %]"> |
|
22 |
<td><input type="hidden" id="id_[% loop.count %]" name="id_[% loop.count %]" value="[% HTML.escape(row.id) %]">[% HTML.escape(row.description) %]</td> |
|
23 |
<td><input id="translation_[% loop.count %]" name="translation_[% loop.count %]" value="[% HTML.escape(row.translation) %]"></td> |
|
24 |
<td><input id="longdescription_[% loop.count %]" name="longdescription_[% loop.count %]" value="[% HTML.escape(row.longdescription) %]"></td> |
|
25 |
</tr> |
|
26 |
|
|
27 |
[%- IF loop.last %] |
|
28 |
<input type="hidden" id="rowcount" name="rowcount" value="[% loop.count %]"> |
|
29 |
[%- END %] |
|
30 |
[%- END %] |
|
31 |
</table> |
|
32 |
</p> |
|
33 |
|
|
34 |
<p> |
|
35 |
<button type="button" onclick="languages_updated()">?bernehmen</button> |
|
36 |
</p> |
|
37 |
|
|
42 | 38 |
</form> |
43 | 39 |
|
44 | 40 |
<script type="text/javascript"> |
45 | 41 |
<!-- |
46 | 42 |
function languages_updated() { |
47 | 43 |
var languages = ""; |
48 |
for (var i = 1; i <= ( document.getElementsByName("rowcount")[0].value); i++) {
|
|
49 |
var id = "id_" + i ; |
|
50 |
var translation = "translation_" + i ; |
|
44 |
for (var i = 1; i <= (document.getElementsByName("rowcount")[0].value); i++) { |
|
45 |
var id = "id_" + i ;
|
|
46 |
var translation = "translation_" + i ;
|
|
51 | 47 |
var longdescription = "longdescription_" + i; |
52 |
languages = languages + "---+++---" + document.getElementsByName( id )[0].value + "--++--" + document.getElementsByName( translation )[0].value + "--++--" + document.getElementsByName( longdescription )[0].value; |
|
48 |
|
|
49 |
languages = languages + |
|
50 |
"---+++---" + document.getElementsByName( id )[0].value + |
|
51 |
"--++--" + document.getElementsByName( translation )[0].value + |
|
52 |
"--++--" + document.getElementsByName( longdescription )[0].value; |
|
53 | 53 |
} |
54 |
|
|
54 | 55 |
window.opener.document.getElementsByName(document.Form.input_name.value)[0].value = languages; |
55 | 56 |
|
56 | 57 |
self.close(); |
57 | 58 |
} |
58 |
--> |
|
59 |
//-->
|
|
59 | 60 |
</script> |
60 | 61 |
|
61 | 62 |
</body> |
templates/webpages/ic/parts_language_selection_master.html | ||
---|---|---|
6 | 6 |
|
7 | 7 |
<div class="listtop">[% title %]</div> |
8 | 8 |
|
9 |
<table width="100%"> |
|
10 |
<tr height="5"></tr> |
|
11 |
|
|
12 |
<tr><td><translate>Please insert your language values below</translate></td></tr> |
|
13 |
|
|
14 |
<tr> |
|
15 |
<td> |
|
16 |
|
|
17 |
<table> |
|
18 |
<tr class="listheading"> |
|
19 |
<th class="listheading"> </th> |
|
20 |
[%- FOREACH col = HEADER %] |
|
21 |
<th nowrap class="listheading">[% col.column_title %]</th> |
|
22 |
[%- END %] |
|
23 |
</tr> |
|
24 |
|
|
25 |
[%- FOREACH row = LANGUAGES %] |
|
26 |
<tr class="listrow[% loop.count % 2 %]"> |
|
27 |
<td><input type="hidden" id="id_[% loop.count %]" name="id_[% loop.count %]" value="[% HTML.escape(row.id) %]">[% HTML.escape(row.description) %]</td> |
|
28 |
<td><input id="translation_[% loop.count %]" name="translation_[% loop.count %]" value="[% HTML.escape(row.translation) %]"></td> |
|
29 |
<td><input id="longdescription_[% loop.count %]" name="longdescription_[% loop.count %]" value="[% HTML.escape(row.longdescription) %]"></td> |
|
30 |
</tr> |
|
31 |
|
|
32 |
[%- IF loop.last %] |
|
33 |
<input type="hidden" id="rowcount" name="rowcount" value="[% loop.count %]"> |
|
34 |
[%- END %] |
|
35 |
[%- END %] |
|
36 |
</table> |
|
37 |
|
|
38 |
</td> |
|
39 |
</tr> |
|
40 |
</table> |
|
41 |
<button type="button" onclick="languages_updated()"><translate>Close</translate></button></td> |
|
9 |
<p><translate>Please insert your language values below</translate></p> |
|
10 |
|
|
11 |
<p> |
|
12 |
<table> |
|
13 |
<tr class="listheading"> |
|
14 |
<th class="listheading"> </th> |
|
15 |
[%- FOREACH col = HEADER %] |
|
16 |
<th nowrap class="listheading">[% col.column_title %]</th> |
|
17 |
[%- END %] |
|
18 |
</tr> |
|
19 |
|
|
20 |
[%- FOREACH row = LANGUAGES %] |
|
21 |
<tr class="listrow[% loop.count % 2 %]"> |
|
22 |
<td><input type="hidden" id="id_[% loop.count %]" name="id_[% loop.count %]" value="[% HTML.escape(row.id) %]">[% HTML.escape(row.description) %]</td> |
|
23 |
<td><input id="translation_[% loop.count %]" name="translation_[% loop.count %]" value="[% HTML.escape(row.translation) %]"></td> |
|
24 |
<td><input id="longdescription_[% loop.count %]" name="longdescription_[% loop.count %]" value="[% HTML.escape(row.longdescription) %]"></td> |
|
25 |
</tr> |
|
26 |
|
|
27 |
[%- IF loop.last %] |
|
28 |
<input type="hidden" id="rowcount" name="rowcount" value="[% loop.count %]"> |
|
29 |
[%- END %] |
|
30 |
[%- END %] |
|
31 |
</table> |
|
32 |
</p> |
|
33 |
|
|
34 |
<p> |
|
35 |
<button type="button" onclick="languages_updated()"><translate>Close</translate></button> |
|
36 |
</p> |
|
37 |
|
|
42 | 38 |
</form> |
43 | 39 |
|
44 | 40 |
<script type="text/javascript"> |
45 | 41 |
<!-- |
46 | 42 |
function languages_updated() { |
47 | 43 |
var languages = ""; |
48 |
for (var i = 1; i <= ( document.getElementsByName("rowcount")[0].value); i++) {
|
|
49 |
var id = "id_" + i ; |
|
50 |
var translation = "translation_" + i ; |
|
44 |
for (var i = 1; i <= (document.getElementsByName("rowcount")[0].value); i++) { |
|
45 |
var id = "id_" + i ;
|
|
46 |
var translation = "translation_" + i ;
|
|
51 | 47 |
var longdescription = "longdescription_" + i; |
52 |
languages = languages + "---+++---" + document.getElementsByName( id )[0].value + "--++--" + document.getElementsByName( translation )[0].value + "--++--" + document.getElementsByName( longdescription )[0].value; |
|
48 |
|
|
49 |
languages = languages + |
|
50 |
"---+++---" + document.getElementsByName( id )[0].value + |
|
51 |
"--++--" + document.getElementsByName( translation )[0].value + |
|
52 |
"--++--" + document.getElementsByName( longdescription )[0].value; |
|
53 | 53 |
} |
54 |
|
|
54 | 55 |
window.opener.document.getElementsByName(document.Form.input_name.value)[0].value = languages; |
55 | 56 |
|
56 | 57 |
self.close(); |
57 | 58 |
} |
58 |
--> |
|
59 |
//-->
|
|
59 | 60 |
</script> |
60 | 61 |
|
61 | 62 |
</body> |
Auch abrufbar als: Unified diff
HTML-Code aufgeräumt.