source: extensions/AdditionalPages/trunk/admin/template/config.tpl @ 9660

Last change on this file since 9660 was 9660, checked in by patdenice, 13 years ago

2.2 compatible

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