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

Revision 7560, 1.9 KB checked in by grum, 9 years ago (diff)

fix bug:1487 - LMT image not displayed with IE8
implement feature:1689 - Add possibility to search picture by licence

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