1 | {combine_script id='jquery.ui.slider' require='jquery.ui' load='footer' path='themes/default/js/ui/minified/jquery.ui.slider.min.js'} |
---|
2 | {combine_css path="themes/default/js/ui/theme/jquery.ui.slider.css"} |
---|
3 | |
---|
4 | {footer_script} |
---|
5 | jQuery(function($) { |
---|
6 | |
---|
7 | jQuery('.eiw').delay(2000).slideUp(); |
---|
8 | |
---|
9 | // slide |
---|
10 | $('.range').each(function(){ |
---|
11 | var cls=$(this).attr('class'); |
---|
12 | var elem=$(this).parent(); |
---|
13 | var input=elem.find('input'); |
---|
14 | var options={}; |
---|
15 | elem.append('<div class="uirange"></div>'); |
---|
16 | options.slide=function(event,ui){ |
---|
17 | elem.find('label span').empty().append(ui.value); |
---|
18 | input.val(ui.value); |
---|
19 | } |
---|
20 | options.value=input.val(); |
---|
21 | options.range='min'; |
---|
22 | options.min=$(this).data('min'); |
---|
23 | options.max=$(this).data('max'); |
---|
24 | elem.find('.uirange').slider(options); |
---|
25 | elem.find('label span').empty().append(input.val()); |
---|
26 | input.hide(); |
---|
27 | }); |
---|
28 | }); |
---|
29 | {/footer_script} |
---|
30 | |
---|
31 | {html_style} |
---|
32 | .uirange{ |
---|
33 | margin:10px; |
---|
34 | margin-left: 40px; |
---|
35 | } |
---|
36 | .pfoyaradio{ |
---|
37 | padding-left: 100px |
---|
38 | } |
---|
39 | {/html_style} |
---|
40 | |
---|
41 | <div class="titrePage"> |
---|
42 | <h2>{'Memories'|@translate}</h2> |
---|
43 | </div> |
---|
44 | |
---|
45 | <form method="post"> |
---|
46 | <fieldset> |
---|
47 | <legend>{'Configuration'|translate}</legend> |
---|
48 | <p class="input" style="width: 700px;"> |
---|
49 | <label for="range"><strong>{'Number of years you want see'|@translate} </strong><span></span></label> |
---|
50 | <input type="text" name="submitpfoyadatemax" data-min="1" data-max="50" class="range" value="{$PFOYA_DATEMAX}"/> |
---|
51 | </p> |
---|
52 | <p> |
---|
53 | <strong>{'Chosen date type'|@translate}</strong> |
---|
54 | <div class="pfoyaradio">{html_radios separator="<br>" name="submitpfoyadateb" values=$PFOYA3 output=$PFOYA3T selected="{$PFOYA_DATE}"}</div> |
---|
55 | </p> |
---|
56 | <p> |
---|
57 | <strong>{'Show other years on plugin page'|@translate}</strong> |
---|
58 | <div class="pfoyaradio">{html_radios separator="<br>" name="submitpfoyashow" values=$pfoya4 output=$pfoya4T selected="{$PFOYA_SHOW}"}</div> |
---|
59 | </p> |
---|
60 | <p> |
---|
61 | <strong>{'Show menu'|@translate}</strong> |
---|
62 | <div class="pfoyaradio">{html_radios separator="<br>" name="submitpfoyamenu" values=$pfoya2 output=$pfoya2T selected="{$PFOYA_MENU}"}</div> |
---|
63 | </p> |
---|
64 | <p class="input" style="width: 700px;"> |
---|
65 | <label for="range"><strong>{'link position in menu'|@translate} </strong><span></span></label> |
---|
66 | <input type="text" name="submitpfoyaposition" data-min="1" data-max="10" class="range" value="{$PFOYA_POSITION}"/> |
---|
67 | </p> |
---|
68 | <p class="input" style="width: 700px;"> |
---|
69 | <label for="range"><strong>{'Maximal number photos for PWG Stuffs Block'|@translate} </strong><span></span></label> |
---|
70 | <input type="text" name="submitpfoyanip" data-min="1" data-max="60" class="range" value="{$PFOYA_NIP}"/> |
---|
71 | </p> |
---|
72 | <p> |
---|
73 | <strong>{'Show other years in PWG Stuffs block'|@translate}</strong> |
---|
74 | <div class="pfoyaradio">{html_radios separator="<br>" name="submitpfoyashowps" values=$pfoya8 output=$pfoya8T selected="{$PFOYA_SHOWPS}"}</div> |
---|
75 | </p> |
---|
76 | <br> |
---|
77 | <br> |
---|
78 | <p> |
---|
79 | <input class="submit" type="submit" name="submitpfoya" value="{'Submit'|@translate}"> |
---|
80 | <input class="submit" type="submit" name="resetpfoya" value="{'Reset'|@translate}"> |
---|
81 | </p> |
---|
82 | </fieldset> |
---|
83 | </form> |
---|
84 | |
---|
85 | |
---|
86 | |
---|