Line | |
---|
1 | {literal} |
---|
2 | <script type="text/javascript"> |
---|
3 | function change_lang() |
---|
4 | { |
---|
5 | selectedLang=$("#iLang").get(0).options[$("#iLang").get(0).selectedIndex].value; |
---|
6 | $("#iEditGroupName").val($("#iName_"+selectedLang).val()); |
---|
7 | } |
---|
8 | |
---|
9 | function apply_change() |
---|
10 | { |
---|
11 | selectedLang=$("#iLang").get(0).options[$("#iLang").get(0).selectedIndex].value; |
---|
12 | $("#iName_"+selectedLang).val($("#iEditGroupName").val()); |
---|
13 | } |
---|
14 | </script> |
---|
15 | {/literal} |
---|
16 | |
---|
17 | |
---|
18 | <form class='dialogForm'> |
---|
19 | <label>{'g003_name'|@translate} |
---|
20 | <input type='text' id='iEditGroupName' onkeyup='apply_change();' value="{$datasLang.default}"> |
---|
21 | </label> |
---|
22 | |
---|
23 | {if isset($datasLang.language_list) and count($datasLang.language_list)} |
---|
24 | {foreach from=$datasLang.language_list key=name item=language_row} |
---|
25 | <input type='hidden' id='iName_{$name}' value='{$language_row.name}' size=60 maxlength =80> |
---|
26 | {/foreach} |
---|
27 | {/if} |
---|
28 | |
---|
29 | <select id='iLang' onchange='change_lang();'> |
---|
30 | {if isset($datasLang.language_list) and count($datasLang.language_list)} |
---|
31 | {foreach from=$datasLang.language_list key=name item=language_row} |
---|
32 | <option value='{$name}' {if $datasLang.lang_selected==$name}selected{/if}>{$language_row.langName}</option> |
---|
33 | {/foreach} |
---|
34 | {/if} |
---|
35 | </select> |
---|
36 | </form> |
---|
Note: See
TracBrowser
for help on using the repository browser.