1 | {combine_css path=$SMART_PATH|cat:'admin/template/style.css'} |
---|
2 | {include file='include/datepicker.inc.tpl'} |
---|
3 | {combine_script id='common' load='footer' path='admin/themes/default/js/common.js'} |
---|
4 | |
---|
5 | {combine_css path='themes/default/js/plugins/jquery.tokeninput.css'} |
---|
6 | {combine_script id='jquery.tokeninput' load='footer' require='jquery' path='themes/default/js/plugins/jquery.tokeninput.js'} |
---|
7 | |
---|
8 | {combine_css path='themes/default/js/plugins/chosen.css'} |
---|
9 | {combine_script id='jquery.chosen' load='footer' path='themes/default/js/plugins/chosen.jquery.min.js'} |
---|
10 | |
---|
11 | {combine_css path='themes/default/js/ui/theme/jquery.ui.slider.css'} |
---|
12 | {combine_script id='jquery.ui.slider' require='jquery.ui' load='footer' path='themes/default/js/ui/minified/jquery.ui.slider.min.js'} |
---|
13 | |
---|
14 | {combine_script id='smartalbums.filters' load='footer' template=true path=$SMART_PATH|cat:'admin/template/addFilters.js'} |
---|
15 | |
---|
16 | {if isset($new_smart)} |
---|
17 | {footer_script require='jquery'} |
---|
18 | function doBlink(obj,start,finish) { |
---|
19 | jQuery(obj).fadeOut(400).fadeIn(400); |
---|
20 | if(start!=finish) { |
---|
21 | doBlink(obj,start+1,finish); |
---|
22 | } |
---|
23 | else { |
---|
24 | jQuery(obj).fadeOut(400); |
---|
25 | } |
---|
26 | } |
---|
27 | |
---|
28 | doBlink('.new_smart', 0, 3); |
---|
29 | {/footer_script} |
---|
30 | {/if} |
---|
31 | |
---|
32 | |
---|
33 | <div class="titrePage"> |
---|
34 | <h2><span style="letter-spacing:0">{$CATEGORIES_NAV}</span> › {'Edit album'|translate} [SmartAlbum]</h2> |
---|
35 | </div> |
---|
36 | |
---|
37 | <noscript> |
---|
38 | <div class="errors"><ul><li>JavaScript required!</li></ul></div> |
---|
39 | </noscript> |
---|
40 | |
---|
41 | <div id="batchManagerGlobal"> |
---|
42 | <form action="{$F_ACTION}" method="POST" id="smart"> |
---|
43 | <p style="text-align:left;"><label><input type="checkbox" name="is_smart" {if isset($filters) OR isset($new_smart)}checked="checked"{/if}/> {'This album is a SmartAlbum'|translate}</label></p> |
---|
44 | |
---|
45 | <fieldset id="SmartAlbum_options" style="margin-top:1em;{if !isset($filters) AND !isset($new_smart)}display:none;{/if}"> |
---|
46 | <legend>{'Filters'|translate}</legend> |
---|
47 | |
---|
48 | <ul id="filtersList"> |
---|
49 | {foreach from=$filters item=filter}{strip} |
---|
50 | {if $filter.type == 'tags'} |
---|
51 | {capture assign='value'}{foreach from=$filter.value item=tag}<option value="{$tag.id}" class="selected">{$tag.name}</option>{/foreach}{/capture} |
---|
52 | {else} |
---|
53 | {assign var='value' value=$filter.value} |
---|
54 | {/if} |
---|
55 | |
---|
56 | {if $filter.type == 'limit'} |
---|
57 | {footer_script} |
---|
58 | limit_count=1; |
---|
59 | $("#addFilter option[value='limit']").attr('disabled','disabled'); |
---|
60 | {/footer_script} |
---|
61 | {elseif $filter.type == 'level'} |
---|
62 | {footer_script} |
---|
63 | level_count=1; |
---|
64 | $("#addFilter option[value='level']").attr('disabled','disabled'); |
---|
65 | {/footer_script} |
---|
66 | {/if} |
---|
67 | |
---|
68 | {footer_script}addFilter('{$filter.type}', '{$filter.cond}', '{$value|escape:javascript}');{/footer_script} |
---|
69 | {/strip}{/foreach} |
---|
70 | </ul> |
---|
71 | |
---|
72 | <div> |
---|
73 | <b>{'Mode'|translate} :</b> |
---|
74 | <label><input type="radio" name="filters[0][value]" value="and" {if $filter_mode=='and'}checked="checked"{/if}> AND</label> |
---|
75 | <label><input type="radio" name="filters[0][value]" value="or" {if $filter_mode=='or'}checked="checked"{/if}> OR</label> |
---|
76 | <input type="hidden" name="filters[0][type]" value="mode"> |
---|
77 | <input type="hidden" name="filters[0][cond]" value="mode"> |
---|
78 | </div> |
---|
79 | |
---|
80 | <p class="actionButtons"> |
---|
81 | <select id="addFilter"> |
---|
82 | <option value="-1">{'Add a filter'|translate}</option> |
---|
83 | <option disabled="disabled">------------------</option> |
---|
84 | <option value="tags">{'Tags'|translate}</option> |
---|
85 | <option value="date">{'Date'|translate}</option> |
---|
86 | <option value="name">{'Photo name'|translate}</option> |
---|
87 | <option value="album">{'Album'|translate}</option> |
---|
88 | <option value="dimensions">{'Dimensions'|translate}</option> |
---|
89 | <option value="author">{'Author'|translate}</option> |
---|
90 | <option value="hit">{'Hits'|translate}</option> |
---|
91 | <option value="rating_score">{'Rating score'|translate}</option> |
---|
92 | <option value="level">{'Privacy level'|translate}</option> |
---|
93 | <option value="limit">{'Max. number of photos'|translate}</option> |
---|
94 | </select> |
---|
95 | <a id="removeFilters">{'Remove all filters'|translate}</a> |
---|
96 | {if isset($new_smart)}<span class="new_smart">{'Add filters here'|translate}</span>{/if} |
---|
97 | </p> |
---|
98 | </fieldset> |
---|
99 | |
---|
100 | <p class="actionButtons" id="applyFilterBlock"> |
---|
101 | <input class="submit" type="submit" value="{'Submit'|translate}" name="submitFilters"/> |
---|
102 | <input class="submit" type="submit" value="{'Count'|translate}" name="countImages" {if !isset($filters) AND !isset($new_smart)}style="display:none;"{/if}/> |
---|
103 | <span class="count_images_wrapper" {if !isset($filters) AND !isset($new_smart)}style="display:none;"{/if}><span class="count_image">{$IMAGE_COUNT}</span></span> |
---|
104 | </p> |
---|
105 | |
---|
106 | </form> |
---|
107 | </div> |
---|
108 | |
---|
109 | <div id="filtersRepo" style="display:none;"> |
---|
110 | {include file=$SMART_ABS_PATH|cat:'admin/template/filters.inc.tpl'} |
---|
111 | </div> |
---|