1 | {literal} |
---|
2 | <script type="text/javascript"> |
---|
3 | |
---|
4 | var globalTagId; |
---|
5 | |
---|
6 | function loadTagList() |
---|
7 | { |
---|
8 | $("body").css("cursor", "wait"); |
---|
9 | order=$('#iSelectOrderTagList').val(); |
---|
10 | filter=$("#iSelectFilterTagList").val(); |
---|
11 | unusedTag=($("#iExcludeUnusedTagList").get(0).checked)?"y":"n"; |
---|
12 | selectedOnly=($("#iSelectedTagOnly").get(0).checked)?"y":"n"; |
---|
13 | |
---|
14 | $("#iListTags").html( |
---|
15 | $.ajax({ |
---|
16 | type: "POST", |
---|
17 | url: "{/literal}{$datas.urlRequest}{literal}", |
---|
18 | async: false, |
---|
19 | data: { ajaxfct:"showStatsGetListTags", orderType:order, filterType:filter, excludeUnusedTag:unusedTag, selectedTagOnly:selectedOnly } |
---|
20 | }).responseText |
---|
21 | ); |
---|
22 | $("body").css("cursor", "default"); |
---|
23 | } |
---|
24 | |
---|
25 | function loadTagDetail(tag) |
---|
26 | { |
---|
27 | globalTagId=tag; |
---|
28 | order=$('#iSelectOrderImageList').val(); |
---|
29 | $("#iListImages").html("<br>{/literal}{'g003_loading'|@translate}{literal}"); |
---|
30 | |
---|
31 | $.ajax( |
---|
32 | { |
---|
33 | type: "POST", |
---|
34 | url: "{/literal}{$datas.urlRequest}{literal}", |
---|
35 | async: true, |
---|
36 | data: { ajaxfct:"showStatsGetListImages", orderType:order, tagId:tag, }, |
---|
37 | success: |
---|
38 | function(msg) |
---|
39 | { |
---|
40 | $("#iListImages").html(msg); |
---|
41 | } |
---|
42 | } |
---|
43 | ); |
---|
44 | } |
---|
45 | |
---|
46 | function updateTagSelect(numId) |
---|
47 | { |
---|
48 | $("body").css("cursor", "wait"); |
---|
49 | selected=($("#"+numId).get(0).checked)?"y":"n"; |
---|
50 | |
---|
51 | $("#iListImages").html( |
---|
52 | $.ajax({ |
---|
53 | type: "POST", |
---|
54 | url: "{/literal}{$datas.urlRequest}{literal}", |
---|
55 | async: false, |
---|
56 | data: { ajaxfct:"updateTagSelect", tagSelected:selected, numId:numId.substr(6) } |
---|
57 | }).responseText |
---|
58 | ); |
---|
59 | $("body").css("cursor", "default"); |
---|
60 | } |
---|
61 | |
---|
62 | |
---|
63 | </script> |
---|
64 | {/literal} |
---|
65 | |
---|
66 | |
---|
67 | <h3>{'g003_select_metadata'|@translate}</h3> |
---|
68 | |
---|
69 | <form> |
---|
70 | <label>{'g003_order'|@translate} |
---|
71 | <select id="iSelectOrderTagList" onchange="loadTagList();"> |
---|
72 | <option value="tag" {if $datas.config_GetListTags_OrderType=="tag"}selected{/if}>{'g003_tagOrder'|@translate}</option> |
---|
73 | <option value="num" {if $datas.config_GetListTags_OrderType=="num"}selected{/if}>{'g003_numOrder'|@translate}</option> |
---|
74 | </select> |
---|
75 | </label> |
---|
76 | |
---|
77 | <label>{'g003_filter'|@translate} |
---|
78 | <select id="iSelectFilterTagList" onchange="loadTagList();"> |
---|
79 | <option value="" {if $datas.config_GetListTags_FilterType==""}selected{/if}>{'g003_no_filter'|@translate}</option> |
---|
80 | <option value="exif" {if $datas.config_GetListTags_FilterType=="exif"}selected{/if}>Exif</option> |
---|
81 | <option value="xmp" {if $datas.config_GetListTags_FilterType=="xmp"}selected{/if}>Xmp</option> |
---|
82 | <option value="iptc" {if $datas.config_GetListTags_FilterType=="iptc"}selected{/if}>Iptc</option> |
---|
83 | </select> |
---|
84 | </label> |
---|
85 | |
---|
86 | <label> |
---|
87 | <input type="checkbox" id="iExcludeUnusedTagList" onchange="loadTagList();" {if $datas.config_GetListTags_ExcludeUnusedTag=="y"}checked{/if}> {'g003_exclude_unused_tags'|@translate} |
---|
88 | </label> |
---|
89 | |
---|
90 | <label> |
---|
91 | <input type="checkbox" id="iSelectedTagOnly" onchange="loadTagList();" {if $datas.config_GetListTags_SelectedTagOnly=="y"}checked{/if}> {'g003_selected_tags_only'|@translate} |
---|
92 | </label> |
---|
93 | |
---|
94 | </form> |
---|
95 | |
---|
96 | <table id='iHeaderListTags' class="littlefont"> |
---|
97 | <tr> |
---|
98 | <th style="width:35%;min-width:340px;">{'g003_TagId'|@translate}</th> |
---|
99 | <th>{'g003_TagLabel'|@translate}</th> |
---|
100 | <th width="80px">{'g003_NumOfImage'|@translate}</th> |
---|
101 | <th width="40px">{'g003_Pct'|@translate}</th> |
---|
102 | <th width="110px"> </th> |
---|
103 | </tr> |
---|
104 | </table> |
---|
105 | <div id='iListTags'> |
---|
106 | </div> |
---|
107 | |
---|
108 | |
---|
109 | <form> |
---|
110 | <label>{'g003_order'|@translate} |
---|
111 | <select id="iSelectOrderImageList" onchange="loadTagDetail(globalTagId);"> |
---|
112 | <option value="value" {if $datas.config_GetListImages_OrderType=="value"}selected{/if}>{'g003_valueOrder'|@translate}</option> |
---|
113 | <option value="num" {if $datas.config_GetListImages_OrderType=="num"}selected{/if}>{'g003_numOrder'|@translate}</option> |
---|
114 | </select> |
---|
115 | </label> |
---|
116 | </form> |
---|
117 | |
---|
118 | <table id='iHeaderListImages' class="littlefont"> |
---|
119 | <tr> |
---|
120 | <th>{'g003_Value'|@translate}</th> |
---|
121 | <th width="80px">{'g003_NumOfImage'|@translate}</th> |
---|
122 | <th width="40px">{'g003_Pct'|@translate}</th> |
---|
123 | <th width="110px"> </th> |
---|
124 | </tr> |
---|
125 | </table> |
---|
126 | |
---|
127 | <div id='iListImages'> |
---|
128 | <div style="width:100%;text-align:center;padding-top:20px;">{'g003_no_items_selected'|@translate}</div> |
---|
129 | </div> |
---|
130 | |
---|
131 | |
---|
132 | <script type="text/javascript"> |
---|
133 | loadTagList(); |
---|
134 | </script> |
---|