Line | |
---|
1 | {literal} |
---|
2 | <script type="text/javascript"> |
---|
3 | |
---|
4 | function load_list(do_action, item, position) |
---|
5 | { |
---|
6 | /* |
---|
7 | do_action |
---|
8 | 'list' : just load list |
---|
9 | 'permut' : permut items in list |
---|
10 | 'delete' : delete the item in list |
---|
11 | */ |
---|
12 | var doc = document.getElementById("isections"); |
---|
13 | |
---|
14 | action_todo=''; |
---|
15 | if(do_action=='position') |
---|
16 | { |
---|
17 | action_todo='sections_position&fItem='+item+'&fPosition='+position; |
---|
18 | } |
---|
19 | else if(do_action=='showhide') |
---|
20 | { |
---|
21 | action_todo='sections_showhide&fItem='+item; |
---|
22 | } |
---|
23 | else |
---|
24 | { |
---|
25 | action_todo='sections_list'; |
---|
26 | } |
---|
27 | |
---|
28 | if(action_todo!='') |
---|
29 | { |
---|
30 | http_request=create_httpobject('get', '', '{/literal}{$datas.AMM_AJAX_URL_LIST}{literal}'+action_todo, false); |
---|
31 | http_request.send(null); |
---|
32 | doc.innerHTML=http_request.responseText; |
---|
33 | } |
---|
34 | } |
---|
35 | |
---|
36 | </script> |
---|
37 | {/literal} |
---|
38 | |
---|
39 | |
---|
40 | <h3>{'g002_sectionslist'|@translate}</h3> |
---|
41 | |
---|
42 | <div id="isections"></div> |
---|
43 | |
---|
44 | |
---|
45 | <script type="text/javascript"> |
---|
46 | load_list('list', 0, 0); |
---|
47 | </script> |
---|
Note: See
TracBrowser
for help on using the repository browser.