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