Line | |
---|
1 | <script type="text/javascript"> |
---|
2 | function set_active(key) {ldelim} |
---|
3 | var element = document.getElementById('cf_selected'); |
---|
4 | element.value = key; |
---|
5 | } |
---|
6 | jQuery().ready( |
---|
7 | function(){ldelim} |
---|
8 | jQuery('#cf-keys').accordion({ldelim} |
---|
9 | header: '.cf-label', |
---|
10 | event: 'click', |
---|
11 | active: {$CF_CONFIG_KEYS_SELECTED} |
---|
12 | }); |
---|
13 | } |
---|
14 | ); |
---|
15 | </script> |
---|
16 | <div class="titrePage"> |
---|
17 | <h2>{$CF.TITLE} [{$CF.VERSION}]<br>{'cf_language'|@translate}</h2> |
---|
18 | </div> |
---|
19 | <h3 style="width: 100%;">{'cf_language_desc'|@translate}</h3> |
---|
20 | |
---|
21 | <form method="post" action="{$CF.F_ACTION}" id="update" enctype="multipart/form-data"> |
---|
22 | <div id="cf-keys"> |
---|
23 | <input type="hidden" id ="cf_selected" name="cf_selected" value="{$CF_CONFIG_KEYS_SELECTED}"> |
---|
24 | {foreach from=$CF_CONFIG_VALUES item=config_value key=config_key name=config_values} |
---|
25 | <div class="cf-label" onclick="set_active({$smarty.foreach.config_values.index});"> |
---|
26 | {$config_value.KEY} |
---|
27 | </div> |
---|
28 | <div> |
---|
29 | <table class="checking"> |
---|
30 | {foreach from=$config_value.VALUE item=language_values key=language_key} |
---|
31 | <tr> |
---|
32 | <td class="cf-lang">{$language_values.NAME}</td> |
---|
33 | <td class="cf-input"><input type="text" name="cf_item[{$config_key}][{$language_key}]" value="{$language_values.VALUE}" size="30"/></td> |
---|
34 | </tr> |
---|
35 | {/foreach} |
---|
36 | </table> |
---|
37 | </div> |
---|
38 | {/foreach} |
---|
39 | </div> |
---|
40 | {* ----------- LANGUAGES ----------- *} |
---|
41 | <p><input class="submit" type="submit" value="{'cf_validate'|@translate}" name="submit"></p> |
---|
42 | </form> |
---|
43 | {literal} |
---|
44 | <script type="text/javascript"> |
---|
45 | $(document).ready(function() { |
---|
46 | $(".infos").fadeOut(800).fadeIn(1200).fadeOut(400).fadeIn(800).fadeOut(400); |
---|
47 | $(".errors").fadeOut(200).fadeIn(200).fadeOut(300).fadeIn(300).fadeOut(400).fadeIn(400); |
---|
48 | }); |
---|
49 | </script> |
---|
50 | {/literal} |
---|
Note: See
TracBrowser
for help on using the repository browser.