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

Revision 5802, 1.6 KB checked in by grum, 9 years ago (diff)

Update release to 1.2.1 - fix minor bug in the display

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