source: extensions/AMenuManager/admin/amm_linkslist.tpl @ 3681

Revision 3681, 1.3 KB checked in by grum, 11 years ago (diff)

Add plugin Advanced Menu Manager 2.1.0

  • Property svn:executable set to *
Line 
1{literal}
2<script type="text/javascript">
3
4  function load_list(do_action, item, permut)
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("iurls");
13
14    action_todo='';
15    if(do_action=='permut')
16    {
17      action_todo='links_permut&fItem='+item+'&fPermut='+permut;
18    }
19    else if(do_action=='delete')
20    {
21      if(confirm('{/literal}{'g002_confirm_delete_link'|@translate}{literal}'))
22      {
23        action_todo='links_delete&fItem='+item;
24      }
25    }
26    else
27    {
28      action_todo='links_list';
29    }
30
31    if(action_todo!='')
32    {
33      http_request=create_httpobject('get', '', '{/literal}{$datas.AMM_AJAX_URL_LIST}{literal}'+action_todo, false);
34      http_request.send(null);
35      doc.innerHTML=http_request.responseText;
36    }
37  }
38
39</script>
40{/literal}
41
42
43<h3>{'g002_linkslist'|@translate} / <span style="font-weight:normal"><a href="{$datas.lnk_config}" title="{'g002_configlinks'|@translate}">{'g002_configlinks'|@translate}</a></span>
44</h3>
45
46[{$datas.nburl}]<br/>
47<a href="{$datas.lnk_create}" title="{'g002_addlink'|@translate}">{'g002_addlink'|@translate}</a>
48
49<br/>
50
51<div id="iurls"></div>
52
53
54<script type="text/javascript">
55  load_list('list', 0, 0);
56</script>
Note: See TracBrowser for help on using the repository browser.