source: trunk/plugins/AMenuManager/admin/amm_sectionslist.tpl @ 3380

Last change on this file since 3380 was 2466, checked in by grum, 16 years ago

Asked by rvelices on this topic
http://forum.phpwebgallery.net/viewtopic.php?pid=92097#p92097

A plugin to integrate the menu class

see test_menu directory

A plugin to show how to use the menu class

see AMenuManager directory

And common classes needed for the AMenuManager plugin

see grum_plugins_classes-2 directory

See topic http://forum.phpwebgallery.net/viewtopic.php?pid=92637#p92637 for more
informations

File size: 983 bytes
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.