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

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

Update LMT to 1.0.3
Minor changes (bugs / see main.inc.php file for details)

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