Last change
on this file since 5548 was
5548,
checked in by grum, 14 years ago
|
Update the plugin for compatibility with Piwigo 2.1
|
File size:
1.6 KB
|
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} <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 | <span id="navigate" style="float:right;">{$datas.navigate}</span> |
---|
35 | <span>{'lmt_lst_apply_filter'|@translate} |
---|
36 | <select id="filter" name="filter" onchange="loadpage(1);"> |
---|
37 | {html_options values=$filter_list_values output=$filter_list_labels selected=$filter_list_selected} |
---|
38 | </select> |
---|
39 | </span> |
---|
40 | </p> |
---|
41 | |
---|
42 | <input type="submit" name="submit_add_to_caddie" value="{'lmt_add_to_caddie'|@translate}"> |
---|
43 | <input type="submit" name="submit_replace_caddie" value="{'lmt_replace_caddie'|@translate}"> |
---|
44 | </form> |
---|
45 | </fieldset> |
---|
46 | |
---|
47 | <script type="text/javascript"> |
---|
48 | loadpage(1); |
---|
49 | </script> |
---|
Note: See
TracBrowser
for help on using the repository browser.