| 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 | |
|---|
| 59 | <li> |
|---|
| 60 | <label> |
|---|
| 61 | <span class="property">{'ap_language_perm'|@translate}</span> |
|---|
| 62 | <input type="checkbox" name="language_perm" id="language_perm" value="on" {if $ap_conf.language_perm}checked="checked"{/if}/> |
|---|
| 63 | </label> |
|---|
| 64 | </li> |
|---|
| 65 | </ul> |
|---|
| 66 | </fieldset> |
|---|
| 67 | |
|---|
| 68 | <fieldset id="indexDisplayConf"> |
|---|
| 69 | <legend>{'Display'|@translate}</legend> |
|---|
| 70 | <ul> |
|---|
| 71 | <li> |
|---|
| 72 | <label> |
|---|
| 73 | <span class="property">{'ap_show_home'|@translate}</span> |
|---|
| 74 | <input type="checkbox" name="show_home" id="show_home" value="on" {if $ap_conf.show_home}checked="checked"{/if}/> |
|---|
| 75 | </label> |
|---|
| 76 | </li> |
|---|
| 77 | |
|---|
| 78 | {if !$AMM_INSTALLED} |
|---|
| 79 | <li> |
|---|
| 80 | <label> |
|---|
| 81 | <span class="property">{'ap_show_menu'|@translate}</span> |
|---|
| 82 | <input type="checkbox" name="show_menu" id="show_menu" value="on" {if $SHOW_MENU}checked="checked"{/if}/> |
|---|
| 83 | </label> |
|---|
| 84 | </li> |
|---|
| 85 | {/if} |
|---|
| 86 | |
|---|
| 87 | <li id="menu_name" {if !$AMM_INSTALLED and !$SHOW_MENU}style="display:none;{/if}"> |
|---|
| 88 | <span class="property">{'ap_menu_name'|@translate} : |
|---|
| 89 | <select name="lang_desc_select" style="margin-left:30px;"> |
|---|
| 90 | {foreach from=$language item=lang} |
|---|
| 91 | <option value="{$lang.LANGUAGE_CODE}" id="opt_{$lang.LANGUAGE_CODE}">{if empty($lang.VALUE)}✘{else}✔{/if} {$lang.LANGUAGE_NAME}</option> |
|---|
| 92 | {/foreach} |
|---|
| 93 | </select> |
|---|
| 94 | {foreach from=$language item=lang} |
|---|
| 95 | <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;"> |
|---|
| 96 | {/foreach} |
|---|
| 97 | </span> |
|---|
| 98 | </li> |
|---|
| 99 | |
|---|
| 100 | {if $AMM_INSTALLED} |
|---|
| 101 | <li style="margin-top:40px;"> |
|---|
| 102 | <span class="property"><a href="{$AMM_URI}">{'g002_setmenu_nfo'|@translate}</a></span> |
|---|
| 103 | </li> |
|---|
| 104 | {/if} |
|---|
| 105 | </ul> |
|---|
| 106 | </fieldset> |
|---|
| 107 | <p><input class="submit" type="submit" value="{'Submit'|@translate}" name="submit"/></p> |
|---|
| 108 | </form> |
|---|