source: extensions/lmt/admin/plugin_admin_list.tpl @ 3396

Last change on this file since 3396 was 3396, checked in by grum, 12 years ago

Add plugin LMT

File size: 1.5 KB
Line 
1<script type="text/javascript">
2{literal}
3  function loadpage(pagenum)
4  {
5    http_request=create_httpobject('get', '', '{/literal}{$datas.LMT_AJAX_URL_LIST}{literal}'+pagenum+"&filter="+$("#filter").val(), false);
6    http_request.send(null);
7
8    tmp=http_request.responseText;
9   
10    $("#nbphotos").attr("innerHTML", tmp.substr(0,tmp.indexOf("#")));
11    $("#list").attr("innerHTML", tmp.substr(tmp.indexOf("#")+1));
12  }
13{/literal}
14</script>
15
16<fieldset style="text-align:left;">
17  <legend>{'lmt_lst_default_licence'|@translate}</legend>
18  {if $default_licence_img!=""}
19    <img style="position:relative;top:3px;" src="{$default_licence_img}"/>
20  {/if}&nbsp;<i>{$default_licence}</i>
21</fieldset>
22
23
24<fieldset>
25  <legend>{'lmt_lst_special_licence'|@translate}</legend>
26  <div id="list">
27  </div>
28 
29    <p class="lmt_page" style="border-top:1px dotted;padding-top:10px;">
30      <span id="nbphotos" style="float:right;"></span>
31      <span id="navigate" style="float:right;">{$datas.navigate}</span>
32      <span>{'lmt_lst_apply_filter'|@translate}&nbsp;
33        <select id="filter" name="filter" onchange="loadpage(1);">
34          {html_options values=$filter_list_values output=$filter_list_labels selected=$filter_list_selected}
35        </select>
36      </span>
37    </p>
38
39  <form method="POST">
40    <input type="submit" name="submit_add_to_caddie" value="{'lmt_add_to_caddie'|@translate}">&nbsp;
41    <input type="submit" name="submit_replace_caddie" value="{'lmt_replace_caddie'|@translate}">
42  </form>
43</fieldset>
44
45<script type="text/javascript">
46  loadpage(1);
47</script>
Note: See TracBrowser for help on using the repository browser.