1 | {html_head} |
---|
2 | <script type="text/javascript"> |
---|
3 | jQuery().ready( function () {ldelim} |
---|
4 | jQuery("#show_menu").click( function() {ldelim} |
---|
5 | if (this.checked) {ldelim} |
---|
6 | jQuery('#menu_name').show(); |
---|
7 | } |
---|
8 | else {ldelim} |
---|
9 | jQuery('#menu_name').hide(); |
---|
10 | } |
---|
11 | }); |
---|
12 | jQuery('select[name="lang_desc_select"]').change(function () {ldelim} |
---|
13 | jQuery('[id^="menu_lang"]').hide(); |
---|
14 | jQuery("#menu_lang_"+this.options[this.selectedIndex].value).show(); |
---|
15 | }); |
---|
16 | jQuery('[id^="menu_lang_"]').keyup(function () {ldelim} |
---|
17 | arr = jQuery(this).attr("id").split("menu_lang_"); |
---|
18 | id = arr[1]; |
---|
19 | opt = jQuery('select[name="lang_desc_select"] option[id="opt_'+id+'"]'); |
---|
20 | if (this.value != '') |
---|
21 | opt.html(opt.html().replace("\u2718", "\u2714")); |
---|
22 | else |
---|
23 | opt.html(opt.html().replace("\u2714", "\u2718")); |
---|
24 | }); |
---|
25 | }); |
---|
26 | </script> |
---|
27 | {/html_head} |
---|
28 | |
---|
29 | <div class="titrePage"> |
---|
30 | <h2>Additional Pages - {'Configuration'|@translate}</h2> |
---|
31 | </div> |
---|
32 | |
---|
33 | <form name="apform" method="post" action="" class="properties" ENCTYPE="multipart/form-data"> |
---|
34 | <fieldset id="indexDisplayConf"> |
---|
35 | <legend>{'ap_perm'|@translate}</legend> |
---|
36 | <ul> |
---|
37 | <li> |
---|
38 | <label> |
---|
39 | <span class="property">{'ap_user_perm'|@translate}</span> |
---|
40 | <input type="checkbox" name="user_perm" id="user_perm" value="on" {if $ap_conf.user_perm}checked="checked"{/if}/> |
---|
41 | </label> |
---|
42 | </li> |
---|
43 | |
---|
44 | <li> |
---|
45 | <label> |
---|
46 | <span class="property">{'ap_group_perm'|@translate}</span> |
---|
47 | <input type="checkbox" name="group_perm" id="group_perm" value="on" {if $ap_conf.group_perm}checked="checked"{/if}/> |
---|
48 | </label> |
---|
49 | </li> |
---|
50 | </ul> |
---|
51 | </fieldset> |
---|
52 | |
---|
53 | <fieldset id="indexDisplayConf"> |
---|
54 | <legend>{'Display'|@translate}</legend> |
---|
55 | <ul> |
---|
56 | <li> |
---|
57 | <label> |
---|
58 | <span class="property">{'ap_show_home'|@translate}</span> |
---|
59 | <input type="checkbox" name="show_home" id="show_home" value="on" {if $ap_conf.show_home}checked="checked"{/if}/> |
---|
60 | </label> |
---|
61 | </li> |
---|
62 | |
---|
63 | <li> |
---|
64 | <label> |
---|
65 | <span class="property">{'ap_show_menu'|@translate}</span> |
---|
66 | <input type="checkbox" name="show_menu" id="show_menu" value="on" {if isset($SHOW_MENU)}checked="checked"{/if}/> |
---|
67 | </label> |
---|
68 | </li> |
---|
69 | |
---|
70 | <li id="menu_name" {if !isset($SHOW_MENU)}style="display:none;{/if}"> |
---|
71 | <span class="property">{'ap_menu_name'|@translate} : |
---|
72 | <select name="lang_desc_select" style="margin-left:30px;"> |
---|
73 | {foreach from=$language item=lang} |
---|
74 | <option value="{$lang.LANGUAGE_CODE}" id="opt_{$lang.LANGUAGE_CODE}">{if empty($lang.VALUE)}✘{else}✔{/if} {$lang.LANGUAGE_NAME}</option> |
---|
75 | {/foreach} |
---|
76 | </select> |
---|
77 | {foreach from=$language item=lang} |
---|
78 | <input type="text" size="50" name="menu_lang[{$lang.LANGUAGE_CODE}]" id="menu_lang_{$lang.LANGUAGE_CODE}" value="{$lang.VALUE}" style="{if $lang.LANGUAGE_CODE != 'default'}display:none; {/if}margin-left:10px;"> |
---|
79 | {/foreach} |
---|
80 | </span> |
---|
81 | </li> |
---|
82 | </ul> |
---|
83 | </fieldset> |
---|
84 | <p><input class="submit" type="submit" value="{'Submit'|@translate}" name="submit"/></p> |
---|
85 | </form> |
---|