| 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_user_perm'|@translate}</span> |
|---|
| 41 | <input type="checkbox" name="user_perm" id="user_perm" value="on" {if $ap_conf.user_perm}checked="checked"{/if}/> |
|---|
| 42 | </label> |
|---|
| 43 | </li> |
|---|
| 44 | |
|---|
| 45 | <li> |
|---|
| 46 | <label> |
|---|
| 47 | <span class="property">{'ap_group_perm'|@translate}</span> |
|---|
| 48 | <input type="checkbox" name="group_perm" id="group_perm" value="on" {if $ap_conf.group_perm}checked="checked"{/if}/> |
|---|
| 49 | </label> |
|---|
| 50 | </li> |
|---|
| 51 | </ul> |
|---|
| 52 | </fieldset> |
|---|
| 53 | |
|---|
| 54 | <fieldset id="indexDisplayConf"> |
|---|
| 55 | <legend>{'Display'|@translate}</legend> |
|---|
| 56 | <ul> |
|---|
| 57 | <li> |
|---|
| 58 | <label> |
|---|
| 59 | <span class="property">{'ap_show_home'|@translate}</span> |
|---|
| 60 | <input type="checkbox" name="show_home" id="show_home" value="on" {if $ap_conf.show_home}checked="checked"{/if}/> |
|---|
| 61 | </label> |
|---|
| 62 | </li> |
|---|
| 63 | |
|---|
| 64 | <li> |
|---|
| 65 | <label> |
|---|
| 66 | <span class="property">{'ap_show_menu'|@translate}</span> |
|---|
| 67 | <input type="checkbox" name="show_menu" id="show_menu" value="on" {if isset($SHOW_MENU)}checked="checked"{/if}/> |
|---|
| 68 | </label> |
|---|
| 69 | </li> |
|---|
| 70 | |
|---|
| 71 | <li id="menu_name" {if !isset($SHOW_MENU)}style="display:none;{/if}"> |
|---|
| 72 | <span class="property">{'ap_menu_name'|@translate} : |
|---|
| 73 | <select name="lang_desc_select" style="margin-left:30px;"> |
|---|
| 74 | {foreach from=$language item=lang} |
|---|
| 75 | <option value="{$lang.LANGUAGE_CODE}" id="opt_{$lang.LANGUAGE_CODE}">{if empty($lang.VALUE)}✘{else}✔{/if} {$lang.LANGUAGE_NAME}</option> |
|---|
| 76 | {/foreach} |
|---|
| 77 | </select> |
|---|
| 78 | {foreach from=$language item=lang} |
|---|
| 79 | <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;"> |
|---|
| 80 | {/foreach} |
|---|
| 81 | </span> |
|---|
| 82 | </li> |
|---|
| 83 | </ul> |
|---|
| 84 | </fieldset> |
|---|
| 85 | <p><input class="submit" type="submit" value="{'Submit'|@translate}" name="submit"/></p> |
|---|
| 86 | </form> |
|---|