source: extensions/AMetaData/admin/amd_metadata_display_groupEdit.tpl @ 33147

Last change on this file since 33147 was 7399, checked in by grum, 14 years ago

Fix many bugs
bug:1894, bug:1898, bug:1911, bug:1863, bug:1955, bug:1956, bug:1925

  • Property svn:executable set to *
File size: 1.2 KB
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}&nbsp;
20    <input type='text' id='iEditGroupName' onkeyup='apply_change();' value="{$datasLang.default}">
21  </label>&nbsp;
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.